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
Method to call operation for insert text
public void insert(String text) { cmd = new InsertCommand(text, editor); invoker = new MiniEditorInvoker(cmd); invoker.action(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void insert(String text, AttributeSet style) {\r\n\t\ttry {\r\n\t\t\tdocument.insertString(getCaretPosition(), text, style);\r\n\t\t} catch (BadLocationException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "@Override\n\t\tpublic void addText(String txt) {\n\t\t\t\n\t\t}", "public void insertStaticText(String text){\n if(lastText != null){\n lastText.clear();\n }\n lastText = new TextBuilder(text);\n lastText.build();\n }", "@Override\r\n\tpublic String insert() {\n\t\treturn \"insert\";\r\n\t}", "public void insertOutput(int offset, String text) {\r\n\t\ttry {\r\n\t\t\tdocument.insertString(offset, text, styles.getOutput());\r\n\t\t\tcommandIndex += text.length();\r\n\t\t\tcallOffsetListeners(offset, text.length());\r\n\t\t}\r\n\t\tcatch (BadLocationException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "void insert(String delta) {\n \n if (!acceptInsert(delta)) {\n clear();\n } \n \n int cursor = mDisplay.getSelectionStart();\n mDisplay.getText().insert(cursor, delta);\n \n }", "public abstract String insert(Object obj) ;", "void insert(int pos, String s);", "void insertToNode(String text, Node n) {\n\t\tList<String> list = new ArrayList<String>();\n\t\tint pos = 0, end;\n\t\t//Method finds all text part between spaces, but ignores the last text since there is no space, just newline\n\t\twhile ((end = text.indexOf(\" \", pos)) >= 0) {\n\t\t\tlist.add(text.substring(pos, end));\n\t\t\tpos = end + 1;\n\t\t}\n\t\t//Adds the last text since it else wise is ignored\n\t\tlist.add(2, text.substring(pos, text.length() - 1));\n\t\t\n\t\tn.setNum(Integer.parseInt(list.get(0).trim()));\n\t\tn.setLatitude(Double.parseDouble(list.get(1).trim()));\n\t\tn.setLongitude(Double.parseDouble(list.get(2).trim()));\n\t\tn.setPrev(new Last());\n\t}", "public void insertBig2TextNode(Big2TextSchemaBean value){\r\n\t\tdbDataAccess.initTransaction();\r\n\r\n\t\tdbDataAccess.insertBig2Text(value, TextAnalytics.Text);\r\n\r\n\t\tdbDataAccess.commit();\r\n\t\tdbDataAccess.closeTransaction();\r\n\t}", "@Override\n\tpublic String getPreparedInsertText() {\n\t\treturn SQL_Insert;\n\t}", "@Override\n\tprotected String sql() throws OperationException {\n\t\treturn sql.insert(tbObj, fieldValue);\n\t}", "public void insert(Nodo tree, String textField) {\n tree.getRoot().insertG(tree.getRoot(),textField);\n }", "public void insert(int pos, MConstText srcText) {\r\n replace(pos, pos, srcText, 0, srcText.length());\r\n }", "@Override\n\tpublic void insert(String... args) throws SQLException {\n\t\t\n\t}", "public static void insert(String s)\n {\n }", "private void applyOnText(Function<String, String> func) {\r\n\t\tJTextArea editor = getSelectedTextArea();\r\n\t\tDocument doc = editor.getDocument();\r\n\t\t\r\n\t\tint offset = 0;\r\n\t\tint len = Math.abs(editor.getCaret().getDot() - editor.getCaret().getMark());\r\n\t\tif (len == 0) {\r\n\t\t\tlen = doc.getLength();\r\n\t\t} else {\r\n\t\t\toffset = Math.min(editor.getCaret().getDot(), editor.getCaret().getMark());\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tString text = doc.getText(offset, len);\r\n\t\t\ttext = func.apply(text);\r\n\t\t\tdoc.remove(offset, len);\r\n\t\t\tdoc.insertString(offset, text, null);\r\n\t\t} catch (BadLocationException ignorable) {\r\n\t\t}\r\n\t}", "public void insert()\n\t{\n\t}", "@Override\n\tpublic void editorInsert(String substring)\n\t{\n\t stringBuffer.replace(selectionStart,selectionEnd,substring);\n\t selectionEnd=selectionStart+substring.length();\n\t selectionStart=selectionEnd;\n\t\tSystem.out.println(\"DEBUG: inserting text [\" + substring + \"]\");\n\t}", "private static String insert(String input, int index, String toInsert) {\n return input.substring(0, index) + toInsert + input.substring(index);\n }", "public void appendText(String text) {\n\t\ttry {\n\t\t\tDocument doc = getDocument();\n\n\t\t\t// Move the insertion point to the end\n\t\t\tsetCaretPosition(doc.getLength());\n\n\t\t\t// Insert the text\n\t\t\treplaceSelection(text);\n\n\t\t\t// Convert the new end location\n\t\t\t// to view co-ordinates\n\t\t\tRectangle r = modelToView(doc.getLength());\n\n\t\t\t// Finally, scroll so that the new text is visible\n\t\t\tif (r != null) {\n\t\t\t\tscrollRectToVisible(r);\n\t\t\t}\n\t\t} catch (BadLocationException e) {\n\t\t\tSystem.out.println(\"Failed to append text: \" + e);\n\t\t}\n\t}", "public void insertCharSequenceAt(CursorPosition start, CharSequence text) {\n //todo here accounting only for when start is at a SingleText Field && isInternal\n\n SingleText f;\n try{\n f = ((SingleText) getFieldAt(start.fieldIndex));\n }catch(Exception e){return;}\n if (!start.isInternal())return;\n\n CharSequence seq1 = f.getMainTextBox().getText().subSequence(0,start.characterIndex);\n CharSequence seq2 = f.getMainTextBox().getText().subSequence(start.characterIndex,f.getMainTextBox().length());\n\n f.getMainTextBox().setText(android.text.TextUtils.concat(seq1,text,seq2));\n\n }", "@Override\n\tpublic void insertProcess() {\n\t\t\n\t}", "public xCommandOnText(String command){ this.init(command); }", "protected void processInsert(int index, Character anInput) {\n\t\tListEditInput.newCase(OperationName.ADD, index, anInput, ApplicationTags.EDITOR, this);\n\t\taddToTopic(index, anInput);\n\t}", "public void insertString(int offs, String str, AttributeSet a) throws BadLocationException {\r\r\r\r\r\r\n String currentText = getText(0, getLength());\r\r\r\r\r\r\n String beforeOffset = currentText.substring(0, offs);\r\r\r\r\r\r\n String afterOffset = currentText.substring(offs, currentText.length());\r\r\r\r\r\r\n System.out.println(\"[*********]INSERTSTRING\");\r\r\r\r\r\r\n\r\r\r\r\r\r\n // boolean validate = false;\r\r\r\r\r\r\n boolean check=false;\r\r\r\r\r\r\n // regardons si il s'agit d'une action de validation\r\r\r\r\r\r\n // if (str.equals(DefaultMask.VALIDATE)) \r\r\r\r\r\r\n // validate = true;\r\r\r\r\r\r\n //str = validate ? \"\" : str;\r\r\r\r\r\r\n String proposedResult = beforeOffset + str + afterOffset;\r\r\r\r\r\r\n if(proposedResult.length()<m_longeur_saisie || validate==true){ \r\r\r\r\r\r\n super.insertString(offs,str, a);\r\r\r\r\r\r\n validate=false;\r\r\r\r\r\r\n }\r\r\r\r\r\r\n else{\r\r\r\r\r\r\n if(charger==false){\r\r\r\r\r\r\n m_model.loadData(null,proposedResult);\r\r\r\r\r\r\n m_model.sortByColonne(0,m_parent.getGrp_Table_table());\r\r\r\r\r\r\n \r\r\r\r\r\r\n }\r\r\r\r\r\r\n charger=true;\r\r\r\r\r\r\n if(!m_model.isM_sortAsc())\r\r\r\r\r\r\n m_model.sortByColonne(0,m_parent.getGrp_Table_table());\r\r\r\r\r\r\n if(m_model.getArray()!=null){\r\r\r\r\r\r\n check=search(proposedResult); \r\r\r\r\r\r\n if (check){\r\r\r\r\r\r\n super.insertString(offs,str, a);\r\r\r\r\r\r\n affichePopup(true);\r\r\r\r\r\r\n m_parent.setGoodIcon(true); \r\r\r\r\r\r\n }\r\r\r\r\r\r\n \r\r\r\r\r\r\n else{ \r\r\r\r\r\r\n java.awt.Toolkit.getDefaultToolkit().beep();\r\r\r\r\r\r\n JToolTip toolTip=new JToolTip();\r\r\r\r\r\r\n toolTip.setToolTipText(\"test\");\r\r\r\r\r\r\n toolTip.setComponent(m_parent.getGrp_Table_table());\r\r\r\r\r\r\n toolTip.setVisible(true);\r\r\r\r\r\r\n System.out.println(\"showtooltip\");\r\r\r\r\r\r\n \r\r\r\r\r\r\n }\r\r\r\r\r\r\n }\r\r\r\r\r\r\n else{\r\r\r\r\r\r\n \r\r\r\r\r\r\n \r\r\r\r\r\r\n }\r\r\r\r\r\r\n } \r\r\r\r\r\r\n }", "@Override\n public void insert(String word) {\n root = insertIterative(word, root);\n }", "public void insertPreservingSelection(String newText, int offset) {\n getLock().getWriteLock();\n try {\n SelectionSetter noChange = new SelectionSetter(SelectionSetter.DO_NOT_CHANGE);\n PTextBuffer buffer = getTextBuffer();\n buffer.replace(noChange, offset, 0, newText, noChange);\n } finally {\n getLock().relinquishWriteLock();\n }\n }", "public void insert(String s){\n\t\tinsertHelper(root, s);\n\t}", "@Override\n\tpublic void insert() {\n\t\t\n\t}", "public void insert(String word, Point point)\r\n\t{\r\n\t\t//call insert\r\n\t\troot.insert(new Data(word, point));\r\n\t}", "public long insert(String title, String content) {\r\n\t\tthis.insertStmt.bindString(1, title);\r\n\t\tthis.insertStmt.bindString(2, content);\r\n\t\treturn this.insertStmt.executeInsert();\r\n\t}", "public void insert(String word) { \n char[] w = word.toCharArray(); \n insert(root, w, 0); \n }", "Builder addText(String value);", "private void txt() {\n\n\t}", "Builder addText(Text value);", "int insert(PdfCodeTemporary record);", "public void addText(String text) {\n\t\tthis.text = text;\n\t}", "void onItemInsert(View v, int position, String str);", "public void insertUpdate(DocumentEvent ev) {\n String stack = Log.getStack(Log.FULL_STACK);\n if (stack.indexOf(\"JTextComponent.setText\") != -1) {\n revertText = textField.getText();\n }\n if (continuousFire) {\n fireActionPerformed(ACTION_TEXT_INSERTED);\n }\n }", "private void insertPerform(){\n \tif(!verify()){\n \t\treturn;\n \t}\n \tString val=new String(\"\");\n \tval=val+\"'\"+jTextField1.getText()+\"', \"; // poNo\n \tval=val+\"'\"+\n \t\tinventorycontroller.util.DateUtil.getRawFormat(\n \t\t\t(java.util.Date)jXDatePicker1.getValue()\n \t\t)\n \t\t+\"', \"; // poDate\n \tval=val+\"'\"+vndList[jTextField2.getSelectedIndex()-1]+\"', \"; // vndNo\n \tval=val+\"'\"+jTextField3.getText()+\"', \"; // qtnNo\n \tval=val+\"'\"+\n \t\tinventorycontroller.util.DateUtil.getRawFormat(\n \t\t\t(java.util.Date)jXDatePicker2.getValue()\n \t\t)\n \t\t+\"', \"; // qtnDate\n \tval=val+\"'\"+poAmount+\"', \"; // poTotal\n \tval=val+\"'pending', \"; // poStatus\n \tval=val+\"'\"+jEditorPane1.getText()+\"' \"; // remark\n \t\n \ttry{\n \t\tdbInterface1.cmdInsert(\"poMaster\", val);\n \t\tinsertPoBomDesc();\n \t\tinsertPoDesc();\n\t \tupdateBOM();\n \t}\n \tcatch(java.sql.SQLException ex){\n \t\tSystem.out.println (ex);\n \t}\n \tresetPerform();\n }", "void insertToEdge(String text, Edge e) {\n\t\tList<String> list = new ArrayList<String>();\n\t\tint pos = 0, end, count = 0;\n\t\t//Method finds all text part between spaces, but ignores the last text since there is no space, just newline\n\t\twhile ((end = text.indexOf(\"\\t\", pos)) >= 0) {\n\t\t\tcount++;\n\t\t\tlist.add(text.substring(pos, end));\n\t\t\tpos = end + 1;\n\t\t\t//For saving time it only uses the 3 first text parts and breaks after those are found\n\t\t\tif (count == 3) break;\n\t\t}\n\t\tint from = Integer.parseInt(list.get(0).trim());\n\t\te.setFrom(from);\n\t\tint to = Integer.parseInt(list.get(1).trim());\n\t\te.setTo(this.getNodes().get(to));\n\t\te.setWeight(Integer.parseInt(list.get(2).trim()));\n\t\te.setNextEdge(this.getNodes().get(from).getEdge());\n\t\tnodes.get(from).setEdge(e);\n\t\t\n\t}", "public void insertToken(Token tok) {\r\n\t}", "private void commitText(String s){\n if (inputConn != null)\n inputConn.commitText(s, 1);\n }", "@Override\n\tpublic void insertUpdate(DocumentEvent e) {\n\t\tif(!listenChange) return;\n\t\tdisplaySelf = false;\n\t\tDocument doc = e.getDocument();\n\t\ttry {\n\t\t\tint offset = e.getOffset();\n\t\t\tString text = doc.getText(0, doc.getLength());\n\t\t\tfor(int i = 0; i < e.getLength(); ++i) {\n\t\t\t\tthis.processInsert(offset+i, text.charAt(offset+i));\n\t\t\t}\n\t\t\t//System.out.println(text.substring(offset, offset+e.getLength()));\n\t\t} catch (BadLocationException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t}", "public void insertStringItem(String itemText, T itemModel, int index) {\n\t\tthis.insertItem(itemText,itemModel, index);\n\t\tthis.modelList.add(index, itemModel);\n\t}", "public void setTextUsuarioInsercionEd(String text) { doSetText(this.$element_UsuarioInsercionEd, text); }", "public void insert(char i);", "private static void DoTextInput(TextEditor This, String textData, boolean isInsertKeyToggled, boolean acceptControlCharacters) \r\n {\r\n // Hide the mouse cursor on user input. \r\n HideCursor(This); \r\n\r\n // Remove control characters. Note that this is not included into _FilterText, \r\n // because we want such kind of filtering only for real input,\r\n // not for copy/paste.\r\n if (!acceptControlCharacters)\r\n { \r\n for (int i = 0; i < textData.Length; i++)\r\n { \r\n if (Char.IsControl(textData[i])) \r\n {\r\n textData = textData.Remove(i--, 1); // decrement i to compensate for character removal \r\n }\r\n }\r\n }\r\n\r\n String filteredText = This._FilterText(textData, This.Selection);\r\n if (filteredText.Length == 0) \r\n { \r\n return;\r\n } \r\n\r\n TextEditorTyping.OpenTypingUndoUnit(This);\r\n\r\n UndoCloseAction closeAction = UndoCloseAction.Rollback; \r\n\r\n try \r\n { \r\n using (This.Selection.DeclareChangeBlock())\r\n { \r\n This.Selection.ApplyTypingHeuristics(This.AllowOvertype && This._OvertypeMode && filteredText != \"\\t\");\r\n\r\n This.SetSelectedText(filteredText, InputLanguageManager.Current.CurrentInputLanguage);\r\n\r\n // Create caret position normalized backward to keep formatting of a character just typed\r\n ITextPointer caretPosition = This.Selection.End.CreatePointer(LogicalDirection.Backward); \r\n\r\n // Set selection at the end of input content\r\n This.Selection.SetCaretToPosition(caretPosition, LogicalDirection.Backward, /*allowStopAtLineEnd:*/true, /*allowStopNearSpace:*/true); \r\n // Note: Using explicit backward orientation we keep formatting with\r\n // a previous character during typing.\r\n\r\n closeAction = UndoCloseAction.Commit; \r\n }\r\n } \r\n finally \r\n {\r\n TextEditorTyping.CloseTypingUndoUnit(This, closeAction); \r\n }\r\n }", "public native void insertData(double offset, String arg) /*-{\r\n\t\tvar jso = [email protected]::getJsObj()();\r\n\t\tjso.insertData(offset, arg);\r\n }-*/;", "int insert(HelpInfo record);", "void addHadithText(Object newHadithText);", "String insertDocument(String doc) {\n\t\treturn insertDocument(doc, null); // no docId\n\t}", "int insert(TerminalInfo record);", "int insertSelective(PdfCodeTemporary record);", "private void insert(SQLiteDatabase db, String geomText) {\n String sql = \"INSERT INTO \"+TABLE_NAME+\" (id, polygon) VALUES (null, '\"+geomText+\"')\";\n Log.i(\"SQL line\", sql);\n db.execSQL(sql);//insert(TABLE_NAME, null, values);\n }", "public void InsertTextByText(String by)\n\t{\n\t\tWebElement insertext = ConfigBrowsers.getDriver().findElement(By.linkText(by));\n\t\tinsertext.sendKeys();\t\n\t}", "public void insert(CharSequence charSequence) {\n int start = mEditor.getSelectionStart();\n int end = mEditor.getSelectionEnd();\n Editable message = mEditor.getEditableText();\n Object[] list = ((Spanned)charSequence).getSpans(start, end, Object.class);\n for (Object span : list) {\n Log.d(\"span\", span.getClass().getName());\n }\n // Insert the emoticon.\n message.replace(start, end, charSequence);\n }", "private void insertOperator() {\n int rowsAff = 0;\n int counter = 0;\n String query = \"\";\n System.out.print(\"Table: \");\n String table = sc.nextLine();\n System.out.print(\"Comma Separated Columns: \");\n String cols = sc.nextLine();\n System.out.print(\"Comma Separated Values: \");\n String[] vals = sc.nextLine().split(\",\");\n //transform the user input into a valid SQL insert statement\n query = \"INSERT INTO \" + table + \" (\" + cols + \") VALUES(\";\n for (counter = 0; counter < vals.length - 1; counter++) {\n query = query.concat(\"'\" + vals[counter] + \"',\");\n }\n query = query.concat(\"'\" + vals[counter] + \"');\");\n System.out.println(query);\n rowsAff = sqlMngr.insertOp(query);\n System.out.println(\"\");\n System.out.println(\"Rows affected: \" + rowsAff);\n System.out.println(\"\");\n }", "Text createText();", "public int insert(String lfn, String pfn, String handle) {\n throw new UnsupportedOperationException(\n \"Method insert( String, String, String ) not supported in MRC\" );\n }", "private String insert(String input_from_user) {\n\t\tSystem.out.println(\"Enter the position you want to insert a character in the string\"+input_from_user);\n\t\tint position = in.nextInt();\n\t\tchar get_char = in.next().charAt(0);\n\t\tString result = insertCharAt(input_from_user,get_char,position);\n\t\treturn result;\n\t}", "@org.junit.Test\r\n\tpublic void insert() {\n\t\tParameters parameters = new Parameters();\r\n\t\tparameters.setUrl(\"/org/save\");\r\n\t\tparameters.setList(new ArrayList<NameValuePair>());\r\n\t\tparameters.getList().add(new BasicNameValuePair(\"name\", \"112\"));\r\n\t\t@SuppressWarnings(\"unused\")\r\n\t\tString string = (String) MainUtilityTools.execute(parameters);\r\n\t\tSystem.out.println(string);\r\n\t}", "public InsertTcFieldHandler(String text, String switches) {\n mFieldText = text;\n mFieldSwitches = switches;\n }", "void insert(String mappedNumber, String word);", "protected String createInsert(T t) {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(\"INSERT INTO \");\n\t\tsb.append(type.getSimpleName());\n\t\tsb.append(\" VALUES \");\n\t\treturn sb.toString();\n\t}", "@Override\n\t\tpublic void insert() {\n\t\t\tSystem.out.println(\"새로운 등록\");\n\t\t}", "public void insere (String nome)\n {\n //TODO\n }", "public static void main(String[] args) {\n\t\tinsert();\r\n\r\n\t}", "@Override\r\n\tpublic void insertPrestito(Prestito p) {\n\t\t\r\n\t}", "int insert(FctWorkguide record);", "public void onInsert(Statement insert, Connection cx, SimpleFeatureType featureType) throws SQLException {\r\n }", "public void setDefaultText(String text){\n this.defaultText = text;\n try {\n getDocument().insertString(0,defaultText,null); \n }catch (BadLocationException ble){\n System.err.println(\"DefaultText einfuegen ist fehlgeschlagen!\");\n }\n }", "String makeInsertedText(String base)\r\n {\r\n inserted++;\r\n\r\n return base + \":\" + Integer.toString(inserted);\r\n }", "public void insert(String word) {\n insert(root, word, new Object(), 0);\n }", "public void insertChar(int index, String charToInsert) {\r\n\t\tcommandsQueue.add(new String[] { \"insert\", \"\" + index, charToInsert });\r\n\t}", "public void insert(Conge conge) ;", "public void insert(int index, String fragment);", "int insert(Ttoken record);", "@Override\n\tpublic String insertStatement() throws Exception {\n\t\treturn null;\n\t}", "@Override\n\tpublic int insert(Utente input) throws Exception {\n\t\treturn 0;\n\t}", "private static void OnToggleInsert(Object target, ExecutedRoutedEventArgs args)\r\n { \r\n TextEditor This = TextEditor._GetTextEditor(target); \r\n\r\n if (This == null || !This._IsEnabled || This.IsReadOnly) \r\n {\r\n return;\r\n }\r\n\r\n This._OvertypeMode = !This._OvertypeMode;\r\n\r\n // Use Cicero's transitory extension for OverTyping. \r\n if (TextServicesLoader.ServicesInstalled && (This.TextStore != null))\r\n { \r\n TextServicesHost tsfHost = TextServicesHost.Current;\r\n if (tsfHost != null)\r\n {\r\n if (This._OvertypeMode) \r\n {\r\n IInputElement element = target as IInputElement; \r\n if (element != null) \r\n {\r\n PresentationSource.AddSourceChangedHandler(element, OnSourceChanged); \r\n }\r\n\r\n TextServicesHost.StartTransitoryExtension(This.TextStore);\r\n } \r\n else\r\n { \r\n IInputElement element = target as IInputElement; \r\n if (element != null)\r\n { \r\n PresentationSource.RemoveSourceChangedHandler(element, OnSourceChanged);\r\n }\r\n\r\n TextServicesHost.StopTransitoryExtension(This.TextStore); \r\n }\r\n } \r\n } \r\n }", "public void insertString(String text) {\n HashSet<Node> visited = new HashSet<Node>();\n for (int i = 0; i <= text.length(); i++) {\n addSuffix(text.substring(i) + WORD_TERMINATION, i, visited);\n }\n // fullText = text;\n for (Node n: visited) {\n n.setCount(n.getCount() + 1.0);\n }\n this.string_cnt += 1;\n }", "public void pasteText(){\n try{\n CharSequence text = mClipboardManager.getTextFromClipboard();\n if(text != null && mConnection != null){\n mConnection.commitText(text, 0);\n }\n }catch(Exception e){\n e.printStackTrace();\n Toast.makeText(getContext(),e.toString(),Toast.LENGTH_SHORT).show();\n }\n }", "public void insert(Comment com){\n //@todo implement method\n }", "public native String insertItemBefore(String newItem, Number index);", "public void jTextFieldInsertUpdateGeneral(String sTipo,JTextField jTextField,DocumentEvent evt) { \t \r\n\t\ttry {\r\n\t\t\t//System.out.println(\"INSERT\");\r\n\t\t\t\r\n \t\t} catch(Exception e) {\r\n \t\t\tFuncionesSwing.manageException2(this, e,logger,TipoDireccionConstantesFunciones.CLASSNAME);\r\n \t\t}\r\n }", "public void jTextFieldInsertUpdateGeneral(String sTipo,JTextField jTextField,DocumentEvent evt) { \t \r\n\t\ttry {\r\n\t\t\t//System.out.println(\"INSERT\");\r\n\t\t\t\r\n \t\t} catch(Exception e) {\r\n \t\t\tFuncionesSwing.manageException2(this, e,logger,LibroContableConstantesFunciones.CLASSNAME);\r\n \t\t}\r\n }", "public void insertString(final DocumentFilter.FilterBypass fb, final int offset, final String text,\n final AttributeSet attr) throws BadLocationException {\n // fb.insertString(offset, text.toUpperCase(), attr);\n fb.insertString(offset, text, attr);\n }", "public void jTextFieldInsertUpdateGeneral(String sTipo,JTextField jTextField,DocumentEvent evt) { \t \r\n\t\ttry {\r\n\t\t\t//System.out.println(\"INSERT\");\r\n\t\t\t\r\n \t\t} catch(Exception e) {\r\n \t\t\tFuncionesSwing.manageException2(this, e,logger,LiquidacionImpuestoImporConstantesFunciones.CLASSNAME);\r\n \t\t}\r\n }", "public void insertItem(String user, String text){\n SQLiteDatabase db = this.getWritableDatabase();\n db.execSQL(\"INSERT INTO tweets VALUES ('\"+String.valueOf(user)+\"','\"+String.valueOf(text)+\"');\");\n ContentValues contentvalues = new ContentValues();\n// contentvalues.put(COL2, from);\n// contentvalues.put(COL3, to);\n// contentvalues.put(COL4, status);\n// db.insert(TABLE_NAME, null, contentvalues);\n\n }", "public void editText(String t, Context ctx){\n\t\t\tChildInteraction cDb = new ChildInteraction(ctx);\t// For Writing to the database\n\t\t\ttext = t;\t\t\t\t\t\t\t\t\t\t\t// set the text\n\t\t\tfor(String key : numbers.keySet())\t\t\t\t\t// for all the numbers\n\t\t\t\tcDb.ChildEditMessage(numbers.get(key), text);\t// edit the text in the db\n\t\t\tcDb.Cleanup();\t\t\t\t\t\t\t\t\t\t// clean up the cursor\n\t\t}", "@Test(enabled = false) //ExSkip\n public void insertMergeField(final DocumentBuilder builder, final String fieldName, final String textBefore, final String textAfter) throws Exception {\n FieldMergeField field = (FieldMergeField) builder.insertField(FieldType.FIELD_MERGE_FIELD, true);\n field.setFieldName(fieldName);\n field.setTextBefore(textBefore);\n field.setTextAfter(textAfter);\n }", "public void addText(String text) {\n resultsText.append(text);\n }", "public void jTextFieldInsertUpdateGeneral(String sTipo,JTextField jTextField,DocumentEvent evt) { \t \r\n\t\ttry {\r\n\t\t\t//System.out.println(\"INSERT\");\r\n\t\t\t\r\n \t\t} catch(Exception e) {\r\n \t\t\tFuncionesSwing.manageException2(this, e,logger,TipoDetalleMovimientoInventarioConstantesFunciones.CLASSNAME);\r\n \t\t}\r\n }", "public String insert(DtoEntrprs dto){\n\t\treturn null;\r\n\t}", "void append(String text);", "void append(String text);", "public void InsertTextById(String by , String TexttoFill)\n\t{\n\t\n\t\tWebElement insertext = ConfigBrowsers.getDriver().findElement(By.id(by));\n\t\tinsertext.sendKeys(TexttoFill);\n\t}", "public void addText(String text) {\n\t\tNodeList frameList = maNoteElement.getElementsByTagNameNS(OdfDocumentNamespace.DRAW.getUri(), \"frame\");\n\t\tif (frameList.getLength() > 0) {\n\t\t\tDrawFrameElement frame = (DrawFrameElement) frameList.item(0);\n\t\t\tNodeList textBoxList = frame.getElementsByTagNameNS(OdfDocumentNamespace.DRAW.getUri(), \"text-box\");\n\t\t\tif (textBoxList.getLength() > 0) {\n\t\t\t\tDrawTextBoxElement textBox = (DrawTextBoxElement) textBoxList.item(0);\n\t\t\t\tTextPElement newPara = textBox.newTextPElement();\n\t\t\t\tnewPara.setTextContent(text);\n\t\t\t}\n\t\t}\n\t}" ]
[ "0.68558985", "0.66969365", "0.65363926", "0.6500963", "0.6482706", "0.64108133", "0.6376596", "0.6373188", "0.6347923", "0.63112485", "0.62763166", "0.61882776", "0.61236286", "0.61211413", "0.6107257", "0.60908806", "0.6072882", "0.6071305", "0.6032301", "0.5950214", "0.5939514", "0.59133077", "0.5896647", "0.58450484", "0.58318067", "0.5806788", "0.5806049", "0.5787231", "0.5781106", "0.5770645", "0.57556725", "0.5735189", "0.57351255", "0.5729135", "0.57281804", "0.57072306", "0.5701935", "0.5691513", "0.5690851", "0.56862867", "0.56839156", "0.56681573", "0.5649536", "0.5628093", "0.56031144", "0.5599285", "0.55924666", "0.5591319", "0.55791736", "0.5574974", "0.5570645", "0.55644554", "0.5553489", "0.55402267", "0.55302095", "0.5518084", "0.55065167", "0.5491557", "0.54862285", "0.5483921", "0.5482657", "0.5468435", "0.546797", "0.5465052", "0.5459353", "0.5455516", "0.54502916", "0.54480773", "0.54473674", "0.54357636", "0.54289067", "0.54275477", "0.5427135", "0.54204005", "0.5417029", "0.5416758", "0.5416409", "0.54108274", "0.54107", "0.5410345", "0.54044384", "0.5398071", "0.5391023", "0.5388675", "0.5388629", "0.53790295", "0.537814", "0.5376839", "0.53768015", "0.53716516", "0.5368626", "0.5367403", "0.53620404", "0.5360608", "0.53562635", "0.53538775", "0.5352345", "0.5352345", "0.53517795", "0.53451216" ]
0.7707553
0
Method to call operation for select text
public void select(int start, int end) { cmd = new SelectCommand(start, end, editor); invoker = new MiniEditorInvoker(cmd); invoker.action(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public native final <T> Selection text(String value)/*-{\n\t\treturn this.text(value);\n\t}-*/;", "public native final Selection text(final DatumFunction<String> callback) /*-{\n\t\treturn this\n\t\t\t\t.text(function(d, i) {\n\t\t\t\t\treturn [email protected]::apply(Lcom/google/gwt/dom/client/Element;Lcom/github/gwtd3/api/core/Datum;I)(this,{datum:d},i);\n\t\t\t\t});\n\t}-*/;", "String getSelect();", "String getSelect();", "public void select ();", "public void select() {}", "public void select();", "public void selectOption(WebElement element,String text) {\nSelect s=new Select(element);\n//List<WebElement> options = s.getOptions();\n//WebElement webElement = options.get(index);\n//String text = webElement.getText();\ns.selectByVisibleText(text);\n\n\n}", "Select(){\n }", "public void selectByPartialText(By locator,String partialText){\n\t\tWebElement element = findElementClickable(locator);\n\n try {\n\n Select select=new Select(element);\n List<WebElement> optionsList = select.getOptions();\n for (int i=0; i<optionsList.size(); i++)\n {\n if(optionsList.get(i).getText().contains(partialText))\n {\n optionsList.get(i).click();\n }\n }\n LOGGER.info(\"Step : \"+Thread.currentThread().getStackTrace()[2].getMethodName()+\": Pass\");\n }catch(Exception e)\n {\n LOGGER.error(\"Step : \"+Thread.currentThread().getStackTrace()[2].getMethodName()+\": Fail\");\n //e.printStackTrace();\n throw new NotFoundException(\"There is an error while selecting the text \"+partialText+\": with locator \"+locator+\". Exception \"+e);\n\t\t\t\n }\n\n\n }", "private void selectOperator() {\n String query = \"\";\n System.out.print(\"Issue the Select Query: \");\n query = sc.nextLine();\n query.trim();\n if (query.substring(0, 6).compareToIgnoreCase(\"select\") == 0) {\n sqlMngr.selectOp(query);\n } else {\n System.err.println(\"No select statement provided!\");\n }\n }", "public void clickOnText(String text);", "protected abstract void select();", "protected abstract void doSelection() throws IOException;", "public static void selectByVisibleText (By element , String text){\n new Select(driver.findElement(element)).selectByVisibleText(text);\n }", "public String selection() {\n return inputter.selection();\n }", "@Override\n\tpublic void select() {\n\t}", "void select();", "public void selectByText(final By locator,String text){\n\t\tWebElement element = findElementClickable(locator);\n\n try {\n\n try {\n Select select = new Select(element);\n select.selectByVisibleText(text);\n }catch(StaleElementReferenceException e){\n\n \telement = findElementClickable(locator);\n Select select = new Select(element);\n select.selectByVisibleText(text);\n\n }\n\n LOGGER.info(\"Step : \"+Thread.currentThread().getStackTrace()[2].getMethodName()+\": Pass\");\n }catch(Exception e)\n {\n LOGGER.error(\"Step : \"+Thread.currentThread().getStackTrace()[2].getMethodName()+\": Fail\");\n //e.printStackTrace();\n throw new NotFoundException(\"Exception \"+ e +\" thrown while selecting the value by text \"+text+\" using locator \"+locator);\n\t\n }\n\n\n }", "public void selectFromDropdown_Using_Text(WebElement element, String text) {\n\t\ttry {\n\t\t\tSelect select = new Select(element);\n\t\t\tselect.selectByVisibleText(text);\n\t\t} catch (NoSuchElementException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n protected void processSelect() {\n \n }", "Object getSelection();", "private static void DoSelection()\n\t{\n\n\t\tArrayList<Attribute> inAtts = new ArrayList<Attribute>();\n\t\tinAtts.add(new Attribute(\"Int\", \"o_orderkey\"));\n\t\tinAtts.add(new Attribute(\"Int\", \"o_custkey\"));\n\t\tinAtts.add(new Attribute(\"Str\", \"o_orderstatus\"));\n\t\tinAtts.add(new Attribute(\"Float\", \"o_totalprice\"));\n\t\tinAtts.add(new Attribute(\"Str\", \"o_orderdate\"));\n\t\tinAtts.add(new Attribute(\"Str\", \"o_orderpriority\"));\n\t\tinAtts.add(new Attribute(\"Str\", \"o_clerk\"));\n\t\tinAtts.add(new Attribute(\"Int\", \"o_shippriority\"));\n\t\tinAtts.add(new Attribute(\"Str\", \"o_comment\"));\n\n\t\tArrayList<Attribute> outAtts = new ArrayList<Attribute>();\n\t\toutAtts.add(new Attribute(\"Int\", \"att1\"));\n\t\toutAtts.add(new Attribute(\"Float\", \"att2\"));\n\t\toutAtts.add(new Attribute(\"Str\", \"att3\"));\n\t\toutAtts.add(new Attribute(\"Int\", \"att4\"));\n\n\t\tString selection = \"o_orderdate > Str (\\\"1996-12-19\\\") && o_custkey < Int (100)\";\n\n\t\tHashMap<String, String> exprs = new HashMap<String, String>();\n\t\texprs.put(\"att1\", \"o_orderkey\");\n\t\texprs.put(\"att2\", \"(o_totalprice * Float (1.5)) + Int (1)\");\n\t\texprs.put(\"att3\", \"o_orderdate + Str (\\\" this is my string\\\")\");\n\t\texprs.put(\"att4\", \"o_custkey\");\n\n\t\t// run the selection operation\n\t\ttry\n\t\t{\n\t\t\tnew Selection(inAtts, outAtts, selection, exprs, \"orders.tbl\", \"out.tbl\", \"g++\", \"cppDir/\");\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}", "public void SelectVisibleTextByName(String Id, String Value) {\n\t\t\r\n\t}", "private void searchAndSelect() {\n currIndex = 0;\n Highlighter h = jta.getHighlighter();\n h.removeAllHighlights();\n String text = jtfFind.getText();\n \n String jText = jta.getText();\n if (text.equals(\"\")) {\n jtfFind.setBackground(Color.WHITE);\n }\n else {\n //TestInfo.testWriteLn(\"Plain Text: \" + text);\n text = processEscapeChars(text);\n //TestInfo.testWriteLn(\"Escape Text: \" + text);\n int index = jText.toLowerCase().indexOf(text.toLowerCase());\n if (index == -1) {\n jtfFind.setBackground(Color.RED);\n }\n else {\n try {\n currIndex = index + 1;\n // An instance of the private subclass of the default highlight painter\n Highlighter.HighlightPainter myHighlightPainter = new MyHighlightPainter(Color.YELLOW);\n oldHighlightPainter = myHighlightPainter;\n h.addHighlight(index,index+text.length(),myHighlightPainter);\n jtfFind.setBackground(Color.WHITE);\n jta.setSelectionColor(Color.CYAN);\n //jta.selectAll();\n jta.select(index,index+text.length());\n lastHighlight[0] = index;\n lastHighlight[1] = index + text.length();\n //jta.setSelectionEnd(index + text.length());\n }\n catch (BadLocationException e) {\n //Do nothing\n }\n }\n }\n }", "public void performSelectAll() {\n \t\ttext.selectAll();\n \t\tcheckSelection();\n \t\tcheckDeleteable();\n \t}", "public static void selectByVisibletext(By element, String text)\n {\n new Select(driver.findElement(element)).selectByVisibleText(text);\n }", "public void setTextSelection(int start, int end) {\n/* 1735 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "private void doTestStyleWhenSelectionIsInsideText()\n {\n String text = \"123\";\n rta.setHTML(text);\n\n Range range = ((Document) rta.getDocument()).createRange();\n range.setStart(getBody().getFirstChild(), 1);\n range.setEnd(getBody().getFirstChild(), 2);\n select(range);\n\n assertFalse(executable.isExecuted());\n assertTrue(executable.execute(null));\n assertTrue(executable.isExecuted());\n assertEquals(\"1<em>2</em>3\", rta.getHTML().toLowerCase());\n assertTrue(executable.execute(null));\n assertFalse(executable.isExecuted());\n assertEquals(text, rta.getHTML().toLowerCase());\n }", "public void selectItemInDropDownByVisibleText(WebElement elementDD, String textForSelect) {\r\n try {\r\n Select optionsFromDD = new Select(elementDD);\r\n optionsFromDD.selectByVisibleText(textForSelect);\r\n logger.info(textForSelect + \" was selected in DD\");\r\n\r\n } catch (Exception e) {\r\n logger.error(\"Cannot work with element\");\r\n Assert.fail(\"Cannot work with element\");\r\n }\r\n\r\n }", "public void select(String data, String objectName) {\n\t\n}", "String getSelectedAutoCompleteString();", "default public void clickSelect() {\n\t\tremoteControlAction(RemoteControlKeyword.SELECT);\n\t}", "public void selected(String action);", "private void selectTXTFile() {\n JFileChooser jfc = new JFileChooser();\n File curDir;\n if (readFile != null) curDir = new File(readFile.getParent()); else curDir = new File(System.getProperty(\"user.home\"));\n jfc.setCurrentDirectory(curDir);\n jfc.setFileFilter(new TXTFilter());\n jfc.setMultiSelectionEnabled(false);\n int ret = jfc.showDialog(this, \"Save\");\n if (ret == 0) {\n outputField.setText(jfc.getSelectedFile().getAbsolutePath() + \".txt\");\n }\n }", "protected SelectionText input() {\n return inputter;\n }", "public void testStyleWhenSelectionIsInsideText()\n {\n deferTest(new Command()\n {\n public void execute()\n {\n doTestStyleWhenSelectionIsInsideText();\n }\n });\n }", "public ISelection getSelection(IClientContext context) throws Exception;", "public interface Selectable {\n\n /**\n * Initializes the current selection to begin with the character at (x, y).\n * @return true if action resulted in change of selection.\n */\n boolean selectAt(double x, double y);\n\n /**\n * Extends the current selection to the character at (x, y)..\n * @return true if action resulted in change of selection.\n */\n boolean selectTo(double x, double y);\n\n /**\n * Selects the entire contents of the GraphicsNode at (x, y).\n * @return true if action resulted in change of selection.\n */\n boolean selectAll(double x, double y);\n\n /**\n * Get the current text selection.\n * @return an object containing the selected content.\n */\n Object getSelection();\n\n /**\n * Return a shape in user coords which encloses the current selection.\n */\n Shape getHighlightShape();\n}", "public void selectAllAccessibleSelection() {\n // To be fully implemented in a future release\n }", "public static void selectFromDropdownByText(By by,String text)\n {\n Select select = new Select(driver.findElement(by));\n select.selectByVisibleText(text);\n }", "public static void selectByVisibleText(WebElement element,String strValue) {\n\t\tSelect slc;\n\t\ttry {\n\t\t\twaitForElementVisibility(element);\n\t\t\tslc = new Select(element);\n\t\t\tslc.selectByVisibleText(strValue);\n\t\t}catch(Exception e) {\n\t\t\tlogger.info(e.getMessage());\n\t\t}\n\t}", "java.lang.String getText();", "java.lang.String getText();", "java.lang.String getText();", "java.lang.String getText();", "java.lang.String getText();", "java.lang.String getText();", "java.lang.String getText();", "java.lang.String getText();", "public void selectA() { }", "public String getText_txt_Pick_Up_Text(){\r\n\t\treturn txt_Pick_Up_Text.getText();\r\n\t}", "public void setSelectMethod(Selection s){\n selectType = s;\n }", "@Override\r\n\t\t\tpublic void seleccionar() {\n\r\n\t\t\t}", "public void selectValuefromDropDown(WebElement element, String text) {\n\t\tSelect dropDown = new Select(element);\n\t\tdropDown.selectByVisibleText(text);\n\t}", "protected void appendSelectConstText(StringBuffer buff) {\n if (getSelectConstName() != null) {\n buff.append(\" (selection \");\n buff.append(getSelectConstName());\n buff.append(')');\n }\n }", "protected void selectionChanged(ITextSelection selection) {}", "@Override\n public String getSelectedText() {\n return super.getSelectedText().replaceAll(\"\\r\\n\", \"\\n\");\n }", "@MediumTest\n @Feature({ \"TextSelection\" })\n public void testEditableSelectionHandles() throws Throwable {\n doSelectionHandleTest(TestPageType.EDITABLE);\n }", "protected void onSelectionPerformed(boolean success) {\n }", "private void consumeFunctionCall() throws UiSelectorSyntaxException {\n String methodName;\n StringBuilder argument = new StringBuilder();\n\n int parenIndex = text.indexOf('(');\n methodName = text.substring(0, parenIndex);\n\n int index = parenIndex+1;\n int parenCount = 1;\n while (parenCount > 0) {\n try {\n switch (text.charAt(index)) {\n case ')':\n parenCount--;\n if (parenCount > 0) {\n argument.append(text.charAt(index));\n }\n break;\n case '(':\n parenCount++;\n argument.append(text.charAt(index));\n break;\n default:\n argument.append(text.charAt(index));\n }\n } catch (StringIndexOutOfBoundsException e) {\n throw new UiSelectorSyntaxException(\"unclosed paren in expression\");\n }\n index++;\n }\n\n ArrayList<String> args = splitArgs(argument.toString());\n\n Method method = getUiScrollableMethod(methodName, args);\n\n applyArgsToMethod(method, args);\n\n // add two for parentheses surrounding arg\n text = text.substring(methodName.length() + argument.length() + 2);\n }", "String getValueText();", "@Override\n public String getSelect() {\n Object ref = select_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n select_ = s;\n return s;\n }\n }", "void addSelection(String key, String message, T returnVal);", "void addSelection(String key, String message, T returnVal);", "String getText();", "String getText();", "String getText();", "String getText();", "String getText();", "String getText();", "String getText();", "public InputMethodTextRun(@NamedArg(\"text\") String text,\n @NamedArg(\"highlight\") InputMethodHighlight highlight) {\n this.text = text;\n this.highlight = highlight;\n }", "public String\t\tHtml_doc_selected_get(String site, String page) {return Exec(cfg.Doc_selected_get(site, page));}", "protected CharSequence convertSelectionToString(Object selectedItem) {\n/* 487 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public String getText();", "public String getText();", "public String getText();", "public String getText();", "void selectpos()\n {\n \n }", "public void selectFromClipboard() { genericClipboard(SetOp.SELECT); }", "public String getSelectionFormula();", "public void updateSelection() {\n\t\t\n\t}", "protected void onSelect() {\n\n }", "public static void selectFromDropdownByVisibleText(By by, String text) {\n Select select = new Select(driver.findElement(by));\n select.selectByVisibleText(text);\n }", "private String select(int start, int end) {\n this.selection = null;\n\n if (start >= end) {\n //return sb.toString();\n return printList();\n }\n if (start < 0 || start > sb.length()) {\n //return sb.toString();\n return printList();\n }\n this.selection = new Selection(start, Math.min(end, sb.length()));\n\n //return sb.toString();\n return printList();\n }", "public synchronized void replaceSelection(final String text) {\n int dot = caret.getDot();\n int mark = caret.getMark();\n try {\n int start = Math.min(dot, mark);\n int length = Math.abs(dot - mark);\n if (document instanceof AbstractDocument) {\n ((AbstractDocument)document).replace(start, length, text, null);\n } else {\n replaceString(start, length, text, null);\n }\n } catch (final BadLocationException e) { }\n }", "public String getSelectedLetters();", "void defSelect(Variable var){\r\n \t//if (isSelectAll()){\r\n \t\taddSelect(var);\r\n \t//}\r\n }", "public void consoleSelectItem() throws SQLException{\n System.out.println(\"came here\");\n ConsoleClass obj = new ConsoleClass();\n String item = console_actionItemList.getSelectionModel().getSelectedItem();\n obj.consoleSelectItem(this,item);\n }", "String getTextValue();", "public void select() {\n \t\t\tString sinput = \"\";\r\n \t\t\tOption selected = null;\r\n \t\t\tErrorLog.debug(name + \" selected.\");\r\n \t\t\t\r\n \t\t\twhile (true) {\r\n \t\t\t\tSystem.out.println(toString()); //Print menu.\r\n \t\t\t\tsinput = read(); //Get user selection.\r\n \t\t\t\tif (!sinput.equalsIgnoreCase(\"exit\")) {\r\n \t\t\t\t\tselected = options.get(sinput); //Find corresponding option.\r\n \r\n \t\t\t\t\tif (selected != null) //Sinput corresponds to an extant option.\r\n \t\t\t\t\t\tselected.select(); //Select the selected.\r\n \t\t\t\t\telse\r\n \t\t\t\t\t\tprint(sinput + \" is not a valid option\");\r\n \t\t\t\t} else\r\n \t\t\t\t\t{print(\"Returning to previous menu.\"); break;}\r\n \t\t\t}\r\n \t\t\t\r\n \t\t\tErrorLog.debug (\"Quitting \" + name + \". Sinput:\"+sinput);\r\n \t\t\t\r\n \t\t\treturn;\r\n \t\t}", "public void selectOption(WebDriver driver, Object selectionListXpath, String visibleText) throws InterruptedException{\n\t\t\tWebElement dropwDownListBox = driver.findElement(By.xpath(String.valueOf(selectionListXpath)));\n\t\t\tSelect clickThis = new Select(dropwDownListBox);\n\t\t\tThread.sleep(1000);\n\t\t clickThis.selectByVisibleText(visibleText); \n\t\t\tThread.sleep(1000);\n\t }", "public native final Selection call(IsFunction jsFunction) /*-{\n\t\treturn this.call(jsFunction);\n\t}-*/;", "public void select(WebElement element,String eventKey)\n {\n sel= new Select(element);\n sel.selectByVisibleText(eventKey);\n }", "public int getTextSelectionStart() {\n/* 1705 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "private String getText() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "protected int drawSelectedText(Graphics g, int x, int y, int p0, int p1) throws BadLocationException {\n g.setColor(selected);\n Container c = getContainer();\n if (c instanceof JPasswordField) {\n JPasswordField f = (JPasswordField) c;\n if (!f.echoCharIsSet()) {\n return super.drawSelectedText(g, x, y, p0, p1);\n }\n char echoChar = f.getEchoChar();\n int n = p1 - p0;\n for (int i = 0; i < n; i++) {\n x = drawEchoCharacter(g, x, y, echoChar);\n }\n }\n return x;\n }", "public abstract String getText();", "public abstract String getText();" ]
[ "0.7148903", "0.68439716", "0.6767826", "0.6767826", "0.6654559", "0.6637434", "0.66157347", "0.6502107", "0.646459", "0.64084363", "0.6379876", "0.6378019", "0.62857646", "0.6282028", "0.62157774", "0.6172404", "0.6168642", "0.61556274", "0.6096721", "0.606802", "0.60328174", "0.60213315", "0.59991753", "0.59918565", "0.5988333", "0.5929756", "0.59289765", "0.59143025", "0.59022796", "0.58711827", "0.58632714", "0.58412355", "0.5837314", "0.58215415", "0.5810766", "0.5794851", "0.5785793", "0.57486874", "0.5737164", "0.57326573", "0.5731456", "0.57020026", "0.56931615", "0.56931615", "0.56931615", "0.56931615", "0.56931615", "0.56931615", "0.56931615", "0.56931615", "0.5691093", "0.5682418", "0.56747675", "0.5674325", "0.56700265", "0.5666423", "0.5664125", "0.5657601", "0.5653626", "0.56527656", "0.5631754", "0.5630763", "0.56219804", "0.56032926", "0.56032926", "0.55953497", "0.55953497", "0.55953497", "0.55953497", "0.55953497", "0.55953497", "0.55953497", "0.55925137", "0.55866224", "0.5586234", "0.5578589", "0.5578589", "0.5578589", "0.5578589", "0.55605537", "0.555358", "0.5552234", "0.5549928", "0.5544457", "0.5543233", "0.55424964", "0.55335456", "0.5533379", "0.5513403", "0.55065316", "0.55047756", "0.5503895", "0.5501469", "0.54956794", "0.54949194", "0.5483944", "0.5477672", "0.54755574", "0.5465675", "0.5465675" ]
0.57378095
38
Method to call operation for copy text
public void copy() { cmd = new CopyCommand(editor); invoker = new MiniEditorInvoker(cmd); invoker.action(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void performCopy() {\n \t\ttext.copy();\n \t}", "public void onTextCopy()\n\t{\n\t}", "public void copyText() {\n ((ClipboardManager) getActivity().getSystemService(\"clipboard\")).setPrimaryClip(ClipData.newPlainText(\"textFromCoolapk\", this.mBinding.text.getText()));\n Toast.show(getActivity(), \"结果已复制\");\n }", "public void copyText(){\n try{\n if(mCursor.isSelected()){\n mClipboardManager.setTextToClipboard(getText().subContent(mCursor.getLeftLine(),\n mCursor.getLeftColumn(),\n mCursor.getRightLine(),\n mCursor.getRightColumn()).toString());\n }\n }catch(Exception e){\n e.printStackTrace();\n Toast.makeText(getContext(),e.toString(),Toast.LENGTH_SHORT).show();\n }\n }", "public void doCopy() {\n if (renderPieces.size() == 0) {\n System.out.println(\"Nothing is selected for copy operation.\");\n return;\n }\n StringBuffer sb = new StringBuffer();\n\n textBuffer.renderInit();\n Text text;\n if (!reversed) {\n while ((text = textBuffer.getTextToRender()) != null) {\n sb.append(text.getText());\n }\n } else {\n while ((text = textBuffer.getPreToRender()) != null) {\n sb.append(text);\n }\n String reversedText = sb.toString();\n sb = new StringBuffer();\n for (int i = reversedText.length()-1; i >= 0; i -= 1) {\n sb.append(reversedText.charAt(i));\n }\n }\n Clipboard clipboard = Clipboard.getSystemClipboard();\n ClipboardContent content = new ClipboardContent();\n content.putString(sb.toString());\n clipboard.setContent(content);\n System.out.println(\"Copy succeed.\");\n }", "public void pasteText(){\n try{\n CharSequence text = mClipboardManager.getTextFromClipboard();\n if(text != null && mConnection != null){\n mConnection.commitText(text, 0);\n }\n }catch(Exception e){\n e.printStackTrace();\n Toast.makeText(getContext(),e.toString(),Toast.LENGTH_SHORT).show();\n }\n }", "private void copyToClipboard(String text)\n {\n Clipboard cb = Toolkit.getDefaultToolkit().getSystemClipboard();\n cb.setContents(new StringSelection(text), null);\n }", "@Override\n\tpublic void editorCopy()\n\t{\n\t\tclipboard = stringBuffer.substring(selectionStart,selectionEnd);\n\n\t\tSystem.out.println(\"DEBUG: performing Copy\" + clipboard) ;\n\t}", "public String copyText(String object, String data) {\n\n try {\n String objects[] = object.split(\",\");\n String src = objects[0];\n String dest = objects[1];\n String SLCTaLL = Keys.chord(Keys.CONTROL, \"a\");\n String ctrlC = Keys.chord(Keys.CONTROL, \"c\");\n String ctrlV = Keys.chord(Keys.CONTROL, \"v\");\n\n wait.until(explicitWaitForElement(By.xpath(OR.getProperty(src)))).sendKeys(SLCTaLL);\n wait.until(explicitWaitForElement(By.xpath(OR.getProperty(src)))).sendKeys(ctrlC);\n Thread.sleep(2000);\n wait.until(explicitWaitForElement(By.xpath(OR.getProperty(dest)))).sendKeys(\" \" + ctrlV);\n\n }\ncatch(TimeoutException ex)\n\t\t\n\t\t{\n\t\t\treturn Constants.KEYWORD_FAIL +\"Cause: \"+ ex.getCause();\n\t\t}\n catch (Exception e) {\n \n return Constants.KEYWORD_FAIL + \" Unable to write \" + e.getLocalizedMessage();\n }\n return Constants.KEYWORD_PASS + \"--\" + data;\n\n }", "private void directToClipboard(String text) {\n\t\tthis.systemClipboard.setContents(new StringSelection(text), null);\n\t}", "@Override\r\n\tpublic void copy(String from, String to) {\n\t\t\r\n\t}", "@SuppressWarnings(\"deprecation\")\n @Override\n public void onClick(View arg0) {\n CopyText4 = copyTxt4.getText().toString();\n if (CopyText4.length() != 0) {\n if (sdk < android.os.Build.VERSION_CODES.HONEYCOMB) {\n android.text.ClipboardManager clipboard = (android.text.ClipboardManager) getSystemService(Context.CLIPBOARD_SERVICE);\n clipboard.setText(CopyText4);\n Toast.makeText(getApplicationContext(), \"Text Telah Ter-Copy ke Clipboard\", Toast.LENGTH_SHORT).show();\n } else {\n android.content.ClipboardManager clipboard = (android.content.ClipboardManager) getSystemService(Context.CLIPBOARD_SERVICE);\n android.content.ClipData clip = android.content.ClipData.newPlainText(\"Clip\", CopyText4);\n Toast.makeText(getApplicationContext(), \"Text Telah Ter-Copy ke Clipboard\", Toast.LENGTH_SHORT).show();\n clipboard.setPrimaryClip(clip);\n }\n } else {\n Toast.makeText(getApplicationContext(), \"Text Kosong, Tidak ada apapun yang ter-Copy\", Toast.LENGTH_SHORT).show();\n }\n }", "@SuppressWarnings(\"deprecation\")\n @Override\n public void onClick(View arg0) {\n CopyText3 = copyTxt3.getText().toString();\n if (CopyText3.length() != 0) {\n if (sdk < android.os.Build.VERSION_CODES.HONEYCOMB) {\n android.text.ClipboardManager clipboard = (android.text.ClipboardManager) getSystemService(Context.CLIPBOARD_SERVICE);\n clipboard.setText(CopyText3);\n Toast.makeText(getApplicationContext(), \"Text Telah Ter-Copy ke Clipboard\", Toast.LENGTH_SHORT).show();\n } else {\n android.content.ClipboardManager clipboard = (android.content.ClipboardManager) getSystemService(Context.CLIPBOARD_SERVICE);\n android.content.ClipData clip = android.content.ClipData.newPlainText(\"Clip\", CopyText3);\n Toast.makeText(getApplicationContext(), \"Text Telah Ter-Copy ke Clipboard\", Toast.LENGTH_SHORT).show();\n clipboard.setPrimaryClip(clip);\n }\n } else {\n Toast.makeText(getApplicationContext(), \"Nothing to Copy\", Toast.LENGTH_SHORT).show();\n }\n }", "public void copyToClipboard(View view) {\n //Get the text from the text view\n TextView resultTextView = findViewById(R.id.result_text_view);\n String resultText = resultTextView.getText().toString();\n\n //Copy the Text to the clipboard\n ClipboardManager clipboardManager = (ClipboardManager) getSystemService(CLIPBOARD_SERVICE);\n ClipData dataClip = ClipData.newPlainText(CLIP_TEXT_KEY, resultText);\n clipboardManager.setPrimaryClip(dataClip);\n\n //Tell the user that the text has been copied to the clipboard\n Toast.makeText(this, \"Copied to Clipboard\", Toast.LENGTH_SHORT).show();\n\n\n }", "private void handleCopyingTextToClipboard(String text){\n Intent intent = new Intent(getContext(), ClipboardEventHandler.class);\n intent.putExtra(\"action\", \"switch\");\n intent.putExtra(\"content\", text);\n\n getContext().startService(intent);\n\n Snackbar.make(getView(), getString(R.string.COPIED_BEGINNIG) + \" \" +\"\\\"\"+ text +\"\\\"\" + \" \" + getString(R.string.COPIED_END), Snackbar.LENGTH_SHORT).show();\n }", "public static void main(String[] args) {\n\t\tString sourceFile = \"E:\\\\workspace[java][ide]\\\\test\\\\src\\\\a.txt\";\n\t\tString targetFile = \"E:\\\\workspace[java][ide]\\\\test\\\\src\\\\b.txt\";\n\t\t//copy01(sourceFile, targetFile);\n\t\tString dst = \"E:\\\\workspace[java][ide]\\\\test\\\\src\\\\c.txt\";\n\t\tcopyFile(targetFile, dst);\n\t\t\n\t\t\n\t\tappendChars(dst, \"姚丹\");\n\t}", "@Override\n public String findIn(CopierData data) {\n return text;\n }", "@LargeTest\n public void testCopy() {\n TestAction ta = new TestAction(TestName.COPY);\n runTest(ta, TestName.COPY.name());\n }", "public void toClipboard(String text) {\n\t\tthis.executor.schedule(new ClearClipBoardTask(), secondsToClearClipboard, TimeUnit.SECONDS);\n\t\tdirectToClipboard(text);\n\t}", "public Object execute(ExecutionEvent event) throws ExecutionException {\n\t\tIWorkbenchWindow window = HandlerUtil.getActiveWorkbenchWindowChecked(event);\n\t\tITextSelection content = (ITextSelection) window.getActivePage().getActiveEditor().getEditorSite().getSelectionProvider().getSelection();\n\t\tString texto = content.getText();\t\t\n\t\tToolkit toolkit = Toolkit.getDefaultToolkit();\n\t\tClipboard clipboard = toolkit.getSystemClipboard();\n\t\t\n\t\tString sqlFormatado = formatSQL(texto);\n\t\t\n\t\tStringSelection textoFormatado = new StringSelection(sqlFormatado);\n\t\tclipboard.setContents(textoFormatado, null);\n\t\t\n\t\tif(isBlank(texto)){\n\t\t\tMessageDialog.openInformation(\n\t\t\t\t\twindow.getShell(),\n\t\t\t\t\t\"SQLCopy\",\n\t\t\t\t\t\"Você não selecionou nada!\");\t\t\t\n\t\t} else {\t\t\t\n\t\t\tif(isConvertToJava(texto)){//Realizar a substituição do texto selecionado apenas quando estiver convertendo um SQL para Java.\n\t\t\t\tIEditorPart part = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getActiveEditor();\t\t\t\n\t\t\t\tITextEditor editor = (ITextEditor)part;\n\t\t\t\tIDocumentProvider prov = editor.getDocumentProvider();\n\t\t IDocument doc = prov.getDocument( editor.getEditorInput() );\n\t\t ISelection sel = editor.getSelectionProvider().getSelection();\n\t\t \n\t\t if ( sel instanceof TextSelection ) {\n\t\t final TextSelection textSel = (TextSelection)sel;\n\t\t try {\n//\t\t \tIRegion region = doc.getLineInformationOfOffset(textSel.getOffset());\t\t \t\n//\t\t\t\t\t\tdoc.replace( textSel.getOffset(), textSel.getLength(), identingCode(region.getLength(), sqlFormatado));\n\t\t \tdoc.replace( textSel.getOffset(), textSel.getLength(), sqlFormatado);\n\t\t\t\t\t} catch (BadLocationException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t }\n\t\t\t}\t\t\t\n//\t\t\tMessageDialog.openInformation(\n//\t\t\t\t\twindow.getShell(),\n//\t\t\t\t\t\"SQLCopy\",\n//\t\t\t\t\tsqlFormatado.toString());\n\t\t\tCustomMessageDialog dialog = new CustomMessageDialog(window.getShell(), sqlFormatado.toString());\n\t\t\tdialog.open();\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "protected void genericClipboard(SetOp op) {\n RTGraphComponent.RenderContext myrc = (RTGraphComponent.RenderContext) (getRTComponent().getRTRenderContext()); if (myrc == null) return;\n Clipboard clipboard = getToolkit().getSystemClipboard();\n Transferable trans = clipboard.getContents(this);\n if (trans != null && trans.isDataFlavorSupported(DataFlavor.stringFlavor)) {\n try {\n\t // Extract the entities\n String clip = (String) trans.getTransferData(DataFlavor.stringFlavor);\n List<SubText> al = EntityExtractor.list(clip);\n\n // Also, extract just the single lines\n\t if (strictMatches() == false) {\n StringTokenizer st = new StringTokenizer(clip, \"\\n\");\n\t while (st.hasMoreTokens()) {\n\t String str = st.nextToken();\n\t // Remove before and after whitespaces...\n\t while (str.length() > 0 && (str.charAt(0) == ' ' || str.charAt(0) == '\\t')) \n\t str = str.substring(1,str.length());\n\t while (str.length() > 0 && (str.charAt(str.length()-1) == ' ' || str.charAt(str.length()-1) == '\\t'))\n\t str = str.substring(0,str.length()-1);\n al.add(new Entity(str,str,null,0,0));\n\t }\n }\n\n\t // Get the new items\n\t Set<String> new_set = new HashSet<String>();\n for (int i=0;i<al.size();i++) { \n\t String clip_str = al.get(i).toString();\n Iterator<String> it = entity_to_wxy.keySet().iterator();\n while (it.hasNext()) {\n\t String entity = it.next();\n\t // Check for a concat\n\t if (entity.indexOf(BundlesDT.DELIM) >= 0) entity = entity.substring(entity.lastIndexOf(BundlesDT.DELIM)+1, entity.length());\n\t if (Utils.isIPv4CIDR(clip_str) && Utils.isIPv4(entity) && Utils.ipMatchesCIDR(entity, clip_str))\n\t new_set.add(entity);\n\t if (entity.indexOf(clip_str) >= 0) \n\t new_set.add(entity);\n }\n\t }\n\n\t // Get the old items\n\t Set<String> old_set = new HashSet<String>(myrc.filterEntities(getRTParent().getSelectedEntities()));\n\n\t // Do the set operation\n\t switch (op) {\n\t case SELECT: getRTParent().setSelectedEntities(new_set);\n\t break;\n\t case ADD: new_set.addAll(old_set);\n\t getRTParent().setSelectedEntities(new_set);\n\t\t\t break;\n\t case REMOVE: old_set.removeAll(new_set);\n\t getRTParent().setSelectedEntities(old_set);\n\t\t\t break;\n\t case INTERSECT: old_set.retainAll(new_set);\n\t getRTParent().setSelectedEntities(old_set);\n\t\t\t break;\n\t }\n } catch (UnsupportedFlavorException ufe) {\n System.err.println(\"genericClipboard failed... unsupported data flavor : \" + ufe);\n ufe.printStackTrace(System.err);\n } catch (IOException ioe) {\n System.err.println(\"genericClipboard failed... io exception : \" + ioe);\n ioe.printStackTrace(System.err);\n }\n }\n }", "void copyTextToTextBox(String text,boolean isMaxSet);", "public static void copyTextWithBuffer() throws IOException {\n BufferedInputStream bufferedInputStream = new BufferedInputStream(new FileInputStream(RESOURCES_FOLDER + \"\\\\lorem_ipsum.txt\"));\n BufferedOutputStream bufferedOutputStream = new BufferedOutputStream(new FileOutputStream(COPY_FOLDER + \"\\\\copy_lorem.txt\"));\n// bufferedOutputStream.write(bufferedInputStream.readAllBytes());\n bufferedOutputStream.flush();\n bufferedOutputStream.close();\n bufferedInputStream.close();\n\n// int c;\n// while ((c = bufferedInputStream.read()) > -1) {\n// bufferedOutputStream.write(c);\n// }\n\n }", "void copyOrderText(Client_H client) throws OrderNotFoundException;", "public void copySelection() {\n RTGraphComponent.RenderContext myrc = (RTGraphComponent.RenderContext) (getRTComponent().getRTRenderContext()); if (myrc == null) return;\n Clipboard clipboard = getToolkit().getSystemClipboard();\n StringBuffer sb = new StringBuffer();\n Iterator<String> it = (myrc.filterEntities(getRTParent().getSelectedEntities())).iterator();\n while (it.hasNext()) sb.append(it.next() + \"\\n\");\n StringSelection selection = new StringSelection(sb.toString());\n clipboard.setContents(selection, null);\n }", "public void copySelection() {\r\n \t\t// Bertoli Marco\r\n \t\tclipboard.copy();\r\n \t}", "public interface Copy {\r\n public void copy(String now, String after);\r\n}", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tClipboard clipboard = Toolkit.getDefaultToolkit().getSystemClipboard();\r\n\t\t\t\tString copyString = ta_content.getText().toString();\r\n\t\t\t\tif (copyString != null) {\r\n\t\t\t\t\tStringSelection contents = new StringSelection(copyString);\r\n\t\t\t\t\tclipboard.setContents(contents, null);\r\n\t\t\t\t}\r\n\t\t\t}", "public void performPaste() {\n \t\ttext.paste();\n \t\tcheckSelection();\n \t\tcheckDeleteable();\n \t\tcheckSelectable();\n \t}", "public void copyTextFrom(Expression e) {\r\n\t\tthis.text = new StringBuffer(new String(e.text()));\r\n\t}", "public static void putTextDatatoClipBoard(String textData) {\n\t\tLog.d(TAG, \"66666,textData = \" + textData);\n\t\t// ClipData clip = ClipData.newPlainText(\"simple text\",textData);\n\t\tmClipboard.setPrimaryClip(ClipData.newPlainText(\"data\", textData));\n\t\t// getTextDataFromClipBoard();\n\n\t}", "private static void copyToClipBoard(){\n String password= passwordGenerator.generatePassword();\r\n\r\n /* For copying in windows\r\n * This will copy the password in clipboard in windows\r\n */\r\n//\t\tInitialising the toolkit and clipboard\r\n Toolkit toolkit = Toolkit.getDefaultToolkit();\r\n Clipboard clipboard = toolkit.getSystemClipboard();\r\n\r\n//\t\tclipboard.setContents takes to argument 1st is the string which has to store and 2nd is the name of clipboard owner\r\n StringSelection selection=new StringSelection(password);\r\n clipboard.setContents(selection,null);\r\n\r\n /* For copying in linux distribution\r\n * This will copy the password in xclip in linux\r\n */\r\n Runtime runtime=Runtime.getRuntime();\r\n Process p=null;\r\n try {\r\n p=runtime.exec(new String[]{\"sh\",\"-c\",\"echo\"+password+\" | xclip -selection clipboard\"});\r\n }\r\n catch (Exception e){\r\n System.out.println(e);\r\n }\r\n System.out.println(\"Password copied into clipboard\");\r\n }", "java.lang.String getTransferTxt();", "@Override\n public void onCopySuggestion(String text) {\n mUrlInput.setText(text, true);\n }", "Buffer copy();", "public void copy() {\n\n\t}", "@Override\n\t\t\tpublic void onPrimaryClipChanged() {\n\t\t\t\tClipData data = mClipboard.getPrimaryClip();\n\t\t\t\tItem item = data.getItemAt(0);\n\t\t\t\tLog.e(ClientSocketThread.TAG, \"复制文字========:\"+item.getText());\t\n \t\t\t\tsendSocketDataTotalLen = item.getText().toString().getBytes().length+4;\n\t\t\t\tsendTotalLen = FileUtil.intToByte(sendSocketDataTotalLen);\n\t\t\t\tsendSocketDataCategories =7;\n\t\t\t\tsendCategories = FileUtil.intToByte(sendSocketDataCategories);\n\t\t\t\tbyte[] sendDataBuffer = new byte[sendSocketDataTotalLen+4];\n\t\t\t\tSystem.arraycopy(sendTotalLen, 0, sendDataBuffer, 0, 4);\n\t\t\t\tSystem.arraycopy(sendCategories, 0, sendDataBuffer, 4, 4);\n\t\t\t\tSystem.arraycopy(item.getText().toString().getBytes(), 0, sendDataBuffer, 8, item.getText().toString().getBytes().length);\n\t\t\t\tThreadReadWriterIOSocket.writeDataToSocket(sendDataBuffer);\n\t\t\t}", "public String getCopyText(){\n // build text string (don't start with a blank as cursor is on\n // first date field\n StringBuilder sb = new StringBuilder();\n \n // add date\n sb.append(new SimpleDateFormat(\"dd MM yy\").format(this.getStartTime().getTime()));\n \n // 4 spaces between date and hours\n sb.append(\" \");\n \n // hours\n sb.append(Integer.toString(this.getHours()));\n \n // 3 spaces between hours and mins\n sb.append(\" \");\n \n // mins\n sb.append(this.getMinutesStr());\n\n // 2 spaces between hours and mins\n sb.append(\" \"); \n \n // add job number\n sb.append(this.getJobNoStr());\n \n // end of line\n sb.append(\"\\n\");\n \n // 15 spaces at start of second line\n sb.append(\" \");\n \n // description\n sb.append(this.getDescription());\n \n // end of line\n sb.append(\"\\n\");\n \n return sb.toString();\n }", "public static void main(String[] args) {\n\t\t\n\t\tFileCopy fc = new FileCopy();\n\t\tString inputFile = \"C:\\\\UmaTest\\\\ResumeNotesSatya.docx\";\n\t\tString outputFile = \"C:\\\\UmaTest\\\\MyTestOut.docx\";\n\t\t\n\t\tboolean isCopied = fc.copyFile(inputFile, outputFile);\n\t\t\n\t\tSystem.out.println(\"isCOpied=\"+isCopied);\n\t\t\n\t\t\n\t\t\n\n\t}", "public void copy() throws Exception {\n\t\topenPrimaryButtonDropdown();\n\t\tgetControl(\"copyButton\").click();\n\t}", "@FXML\n private void copyEdit() {\n final Clipboard clipboard = Clipboard.getSystemClipboard();\n final ClipboardContent url = new ClipboardContent();\n url.putString(EDIT_MESSAGE);\n clipboard.setContent(url);\n }", "@Override\n public void copy() {\n clipboard.setContents(getSelectionAsList(false));\n }", "public void transferTextBlock(String aFolderName) throws IllegalAccessException {\n\t\tFile inputBackupFile = new File(inputFilePath + \".bak\");\n\t\tFile inputFile = new File(inputFilePath);\n\t\ttry {\n\t\t\tFileUtils.copyFile(inputFile, inputBackupFile);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn;\n\t\t}\n\t\t// back up destination file\n\t\tFile outputBackupFile = new File(outputDirectory + aFolderName + \".mwk.bak\");\n\t\tFile outputFile = new File(outputDirectory + aFolderName + \".mwk\");\n\t\tif (!outputFile.exists()) {\n\t\t\tthrow new IllegalAccessException(\"Tag name doesn't correspond to an existing file\"\n\t\t\t\t\t+ outputFile.getAbsolutePath());\n\t\t}\n\t\ttry {\n\t\t\tFileUtils.copyFile(outputFile, outputBackupFile);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn;\n\t\t}\n\t\t// remove lines from file\n\t\tList<String> newDestLines = new LinkedList<String>();\n\t\tString lastLine;\n\t\twhile (_startIndex < _endIndex) {\n\t\t\tlastLine = _lines.remove(--_endIndex);\n\t\t\tnewDestLines.add(0, lastLine);\n\t\t}\n\n\t\t// save source file\n\t\ttry {\n\t\t\tList<String> linesToWrite = new LinkedList<String>();\n\t\t\tlinesToWrite.addAll(_lines);\n\t\t\tCollectionUtils.filter(linesToWrite, new Predicate() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic boolean evaluate(Object element) {\n\t\t\t\t\treturn element != null;\n\t\t\t\t}\n\t\t\t});\n\t\t\tFileUtils.writeLines(inputFile, linesToWrite);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn;\n\t\t}\n\t\t// read dest file lines\n\t\tList<String> existingDestLines = null;\n\t\ttry {\n\t\t\texistingDestLines = FileUtils.readLines(outputFile);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn;\n\t\t}\n\t\t// prepend new lines to dest file lines\n\t\tnewDestLines.addAll(existingDestLines);\n\t\t// save all lines to dest file\n\t\ttry {\n\t\t\tFileUtils.writeLines(outputFile, newDestLines);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn;\n\t\t}\n\t\t// delete backups\n\t\tFileUtils.deleteQuietly(inputBackupFile);\n\t\tFileUtils.deleteQuietly(outputBackupFile);\n\t\t// Re-read file from disk (since we're editing it in parallel)\n\t\tshowNext();\n\t}", "public void onPressCopyDescription(View view) {\r\n TextView textView = findViewById(R.id.textDescription);\r\n String text = textView.getText().toString();\r\n\r\n if (text.equals(\"\"))\r\n return;\r\n\r\n ClipboardManager clipManager = (ClipboardManager) getSystemService(CLIPBOARD_SERVICE);\r\n ClipData data = ClipData.newPlainText(\"text\", text);\r\n clipManager.setPrimaryClip(data);\r\n }", "private static void copyFile(String from, String to)\n\t{\n\t\tFile inputFile;\n\t File outputFile;\n\t\tint fIndex = from.indexOf(\"file:\");\n\t\tint tIndex = to.indexOf(\"file:\");\n\t\tif(fIndex < 0)\n\t\t\tinputFile = new File(from);\n\t\telse\n\t\t\tinputFile = new File(from.substring(fIndex + 5, from.length()));\n\t\tif(tIndex < 0)\n\t\t\toutputFile = new File(to);\n\t\telse\n\t\t\toutputFile = new File(to.substring(tIndex + 5, to.length())); \n\t\tcopyFile(inputFile, outputFile);\t\t\n\t}", "private void copyToClipboard(int contentType) {\n\n String clipboardText = null;\n ClipData clip;\n\n switch (contentType) {\n case COPY_STATION_ALL:\n // set clip text\n if (mThisStation.getMetadata() != null) {\n clipboardText = mThisStation.getStationName() + \" - \" + mThisStation.getMetadata() + \" (\" + mThisStation.getStreamUri().toString() + \")\";\n } else {\n clipboardText = mThisStation.getStationName() + \" (\" + mThisStation.getStreamUri().toString() + \")\";\n }\n // notify user\n Toast.makeText(mActivity, mActivity.getString(R.string.toastmessage_station_copied), Toast.LENGTH_SHORT).show();\n break;\n\n case COPY_STATION_METADATA:\n // set clip text and notify user\n if (mThisStation.getMetadata() != null) {\n clipboardText = mThisStation.getMetadata();\n }\n Toast.makeText(mActivity, mActivity.getString(R.string.toastmessage_copied_to_clipboard_metadata), Toast.LENGTH_SHORT).show();\n break;\n\n case COPY_STREAM_URL:\n // set clip text and notify user\n if (mThisStation.getStreamUri() != null) {\n clipboardText = mThisStation.getStreamUri().toString();\n }\n Toast.makeText(mActivity, mActivity.getString(R.string.toastmessage_copied_to_clipboard_url), Toast.LENGTH_SHORT).show();\n break;\n\n }\n\n // create clip and to clipboard\n if (clipboardText != null) {\n clip = ClipData.newPlainText(\"simple text\", clipboardText);\n ClipboardManager cm = (ClipboardManager) mActivity.getSystemService(Context.CLIPBOARD_SERVICE);\n cm.setPrimaryClip(clip);\n }\n\n }", "public abstract void copyFrom(KeyedString src);", "public void showCopyMenu() {\n new AlertDialog.Builder(getContext()).setItems(\n R.array.copypaste_menu_items,\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n String intentStr = null;\n switch (which) {\n case 0:\n ClipboardManager clip = (ClipboardManager) getContext()\n .getSystemService(\n Context.CLIPBOARD_SERVICE);\n if (clip != null) {\n clip.setText(mSelectedText);\n Toast.makeText(getContext(),\n R.string.text_copied,\n Toast.LENGTH_SHORT).show();\n }\n break;\n case 1:\n try {\n Uri uri = Uri.parse(\"sms:\");\n Intent intent = new Intent(\n Intent.ACTION_SENDTO, uri);\n intent.putExtra(\"sms_body\", mSelectedText);\n intent.putExtra(\"exit_on_send\", true);\n getContext().startActivity(intent);\n } catch (ActivityNotFoundException e) {\n e.printStackTrace();\n }\n break;\n case 2:\n try {\n Intent intent = new Intent();\n intent.setAction(\"com.motorola.createnote\");\n intent.putExtra(\"CLIPBOARD\", mSelectedText);\n getContext().startActivity(intent);\n } catch (ActivityNotFoundException e) {\n e.printStackTrace();\n }\n break;\n case 3:\n try {\n String broadcastAddress = String.format(\n \"%s://%s/%s\", \"searchWord\",\n \"powerword\", mSelectedText);\n Intent intent = new Intent(\n Intent.ACTION_VIEW, Uri\n .parse(broadcastAddress));\n getContext().startActivity(intent);\n } catch (ActivityNotFoundException e) {\n e.printStackTrace();\n }\n break;\n default:\n break;\n }\n\n clearSelection(true);\n\n }\n }).setOnCancelListener(new DialogInterface.OnCancelListener() {\n public void onCancel(DialogInterface dialog) {\n clearSelection(true);\n }\n }).show();\n }", "public CurrentDocumentCopyCommand() {\n\tsuper(\"Save current document as new copy.\");\n }", "public void testEditor() {\n // open sample file in Editor\n SourcePackagesNode sourcePackagesNode = new SourcePackagesNode(SAMPLE_PROJECT_NAME);\n Node sample1Node = new Node(sourcePackagesNode, SAMPLE1_PACKAGE_NAME);\n JavaNode sampleClass1Node = new JavaNode(sample1Node, SAMPLE1_FILE_NAME);\n sampleClass1Node.open();\n // find open file in editor\n EditorOperator eo = new EditorOperator(SAMPLE1_FILE_NAME);\n eo.setCaretPosition(\"public static void main\", true);\n int insertLine = eo.getLineNumber() + 2;\n eo.insert(\"\\n\", insertLine, 1); // NOI18N\n // Need to disable verification because shortcut \"sout\" is replaced\n // by \"System.out.println(\"\");\" and \"sout\" is not found in Editor\n eo.setCaretPositionToLine(insertLine);\n eo.txtEditorPane().setVerification(false);\n eo.txtEditorPane().typeText(\"sout\"); // NOI18N\n eo.txtEditorPane().typeKey('\\t');\n eo.txtEditorPane().setVerification(true);\n eo.insert(\"Hello\"); // NOI18N\n //eo.insert(\"System.out.println(\\\"Hello\\\");\\n\", insertLine+1, 1); // NOI18N\n final String textToCopy = \"System.out.println(\\\"Hello\\\");\"; // NOI18N\n eo.select(textToCopy);\n int oldDispatchingModel = JemmyProperties.getCurrentDispatchingModel();\n // \"Copy\"\n CopyAction copyAction = new CopyAction();\n try {\n copyAction.perform(eo);\n } catch (TimeoutExpiredException e) {\n // if not succed try it second time in Robot mode\n JemmyProperties.setCurrentDispatchingModel(JemmyProperties.ROBOT_MODEL_MASK);\n copyAction.perform(eo);\n } finally {\n // set previous dispatching model\n JemmyProperties.setCurrentDispatchingModel(oldDispatchingModel);\n }\n // wait until clipboard contains text to copy\n try {\n new Waiter(new Waitable() {\n\n @Override\n public Object actionProduced(Object obj) {\n try {\n String text = Toolkit.getDefaultToolkit().getSystemClipboard().\n getContents(null).getTransferData(DataFlavor.stringFlavor).toString();\n return textToCopy.equals(text) ? Boolean.TRUE : null;\n } catch (UnsupportedFlavorException e) {\n // The following exception can be thrown when clipboard is empty.\n // java.awt.datatransfer.UnsupportedFlavorException: Unicode String\n // at org.openide.util.datatransfer.ExTransferable$Empty.getTransferData(ExTransferable.java:461)\n // Ignore this exception.\n return null;\n } catch (IOException ioe) {\n throw new JemmyException(\"Failed getting clipboard content.\", ioe);\n }\n }\n\n @Override\n public String getDescription() {\n return (\"Clipboard contains \" + textToCopy); // NOI18N\n }\n }).waitAction(null);\n } catch (Exception ie) {\n throw new JemmyException(\"Interrupted.\", ie);\n }\n eo.insert(\"int xxxx;\\n\", insertLine + 1, 1); // NOI18N\n eo.select(\"int xxxx;\"); // NOI18N\n PasteAction pasteAction = new PasteAction();\n try {\n pasteAction.perform(eo);\n } catch (TimeoutExpiredException e) {\n // if not succed try it second time in Robot mode\n JemmyProperties.setCurrentDispatchingModel(JemmyProperties.ROBOT_MODEL_MASK);\n pasteAction.perform(eo);\n } finally {\n // set previous dispatching model\n JemmyProperties.setCurrentDispatchingModel(oldDispatchingModel);\n }\n eo.select(\"Hello\", 1); // NOI18N\n // \"Delete\"\n DeleteAction deleteAction = new DeleteAction();\n deleteAction.performMenu(eo);\n // wait Hello is deleted\n eo.txtEditorPane().waitText(\"System.out.println(\\\"\\\");\"); // NOI18N\n eo.insert(\"Good bye\"); // NOI18N\n // test cut action\n eo.select(3);\n // \"Cut\"\n CutAction cutAction = new CutAction();\n try {\n cutAction.perform(eo);\n } catch (TimeoutExpiredException e) {\n // if not succed try it second time in Robot mode\n JemmyProperties.setCurrentDispatchingModel(JemmyProperties.ROBOT_MODEL_MASK);\n cutAction.perform(eo);\n } finally {\n // set previous dispatching model\n JemmyProperties.setCurrentDispatchingModel(oldDispatchingModel);\n }\n // need to wait a little until editor content is refreshed after cut action\n new EventTool().waitNoEvent(500);\n // select from column 1 to 2 at line 3 \n eo.select(2, 1, 2);\n try {\n pasteAction.perform(eo);\n } catch (TimeoutExpiredException e) {\n // if not succed try it second time in Robot mode\n JemmyProperties.setCurrentDispatchingModel(JemmyProperties.ROBOT_MODEL_MASK);\n pasteAction.perform(eo);\n } finally {\n // set previous dispatching model\n JemmyProperties.setCurrentDispatchingModel(oldDispatchingModel);\n }\n }", "public void actionPerformed(ActionEvent e) {\n if (e.getActionCommand().compareTo(\"Copy\")==0) {\n StringBuilder sbf=new StringBuilder();\n // Check to ensure we have selected only a contiguous block of\n // cells\n int numcols=jTable1.getSelectedColumnCount();\n int numrows=jTable1.getSelectedRowCount();\n int[] rowsselected=jTable1.getSelectedRows();\n int[] colsselected=jTable1.getSelectedColumns();\n if (rowsselected.length==0 || colsselected.length==0) return;\n if (!((numrows-1==rowsselected[rowsselected.length-1]-rowsselected[0] &&\n numrows==rowsselected.length) &&\n (numcols-1==colsselected[colsselected.length-1]-colsselected[0] &&\n numcols==colsselected.length)))\n {\n JOptionPane.showMessageDialog(null, \"Invalid Copy Selection\",\n \"Invalid Copy Selection\",\n JOptionPane.ERROR_MESSAGE);\n return;\n }\n for (int i=0;i<numrows;i++) {\n for (int j=0;j<numcols;j++) {\n sbf.append(jTable1.getValueAt(rowsselected[i],colsselected[j]));\n if (j<numcols-1) sbf.append(\"\\t\");\n }\n sbf.append(\"\\n\");\n }\n stsel = new StringSelection(sbf.toString());\n system = Toolkit.getDefaultToolkit().getSystemClipboard();\n system.setContents(stsel,stsel);\n }\n if (e.getActionCommand().compareTo(\"Paste\")==0) {\n int[] rows=jTable1.getSelectedRows();\n int[] cols=jTable1.getSelectedColumns();\n if (rows.length==0 || cols.length==0) return;\n int startRow=rows[0];\n int startCol=cols[0];\n try\n {\n String trstring= (String)(system.getContents(this).getTransferData(DataFlavor.stringFlavor));\n //System.out.println(\"String is:\"+trstring);\n StringTokenizer st1=new StringTokenizer(trstring,\"\\n\");\n for(int i=0;st1.hasMoreTokens();i++)\n {\n rowstring=st1.nextToken();\n StringTokenizer st2=new StringTokenizer(rowstring,\"\\t\");\n for(int j=0;st2.hasMoreTokens();j++)\n {\n value=(String)st2.nextToken();\n if (startRow+i==jTable1.getRowCount() && expandable) { // add row if necessary\n TableModel model = jTable1.getModel();\n if (model instanceof DefaultTableModel) {\n Object[] newrow=new Object[jTable1.getColumnCount()];\n for (int k=0;k<newrow.length;k++) newrow[k]=\"\";\n ((DefaultTableModel)model).addRow(newrow);\n }\n }\n if (startRow+i<jTable1.getRowCount()&& startCol+j<jTable1.getColumnCount()) {\n Object typeValue=value;\n if (value!=null && convertNumerical!=CONVERT_NONE) {\n try {\n Double doubleval=Double.parseDouble(value);\n if (convertNumerical==CONVERT_TO_INTEGER || (convertNumerical==CONVERT_TO_DOUBLE_OR_INTEGER && doubleval.intValue()==doubleval.doubleValue())) typeValue=new Integer(doubleval.intValue());\n else typeValue=doubleval;\n } catch (NumberFormatException ex) {}\n }\n if (jTable1.isCellEditable(startRow+i,startCol+j)) {\n jTable1.setValueAt(typeValue,startRow+i,startCol+j);\n //System.out.println(\"Convert[\"+typeValue.getClass().getSimpleName()+\"] \"+value+\"=>\"+typeValue+\" at row=\"+startRow+i+\" column=\"+startCol+j+\" convertNumerical=\"+convertNumerical);\n }\n }\n }\n }\n }\n catch(Exception ex){}\n } \n if (e.getActionCommand().compareTo(\"Delete\")==0) {\n int[] rows=jTable1.getSelectedRows();\n int[] cols=jTable1.getSelectedColumns(); \n if (cols.length==jTable1.getColumnCount() && (jTable1.getModel() instanceof DefaultTableModel) && expandable) { // delete complete rows\n DefaultTableModel model = (DefaultTableModel)jTable1.getModel();\n for (int i=0;i<rows.length;i++) {\n model.removeRow(rows[i]-i);\n } \n if (model.getRowCount()==0) {\n Object[] newrow=new Object[jTable1.getColumnCount()];\n for (int k=0;k<newrow.length;k++) newrow[k]=null;\n model.addRow(newrow); \n }\n } else { // delete only cell content\n for (int i=0;i<rows.length;i++) {\n for (int j=0;j<cols.length;j++) {\n jTable1.setValueAt(null,rows[i],cols[j]);\n }\n }\n }\n }\n if (e.getActionCommand().compareTo(\"PressedTab\")==0) {\n if (jTable1.getModel() instanceof DefaultTableModel && expandable) {\n int currentRow=jTable1.getSelectedRow();\n int currentColumn=jTable1.getSelectedColumn();\n if (currentRow+1==jTable1.getRowCount() && currentColumn+1==jTable1.getColumnCount()) {\n Object[] newrow=new Object[jTable1.getColumnCount()];\n for (int k=0;k<newrow.length;k++) newrow[k]=null;\n ((DefaultTableModel)jTable1.getModel()).addRow(newrow);\n }\n }\n oldTabAction.actionPerformed(e);\n }\n if (e.getActionCommand().compareTo(\"PressedArrowdown\")==0) {\n if (jTable1.getModel() instanceof DefaultTableModel && expandable) {\n int currentRow=jTable1.getSelectedRow();\n if (currentRow+1==jTable1.getRowCount()) {\n Object[] newrow=new Object[jTable1.getColumnCount()];\n for (int k=0;k<newrow.length;k++) newrow[k]=null;\n ((DefaultTableModel)jTable1.getModel()).addRow(newrow);\n }\n }\n oldArrowdownAction.actionPerformed(e);\n } \n }", "protected void copyLinkToClipboard() {\r\n\t\tapp.copyTextToSystemClipboard(getURL());\r\n\t\tlink.selectAll();\r\n\t}", "public boolean isCopyEnabled() {\n \t\tif (text == null || text.isDisposed())\n \t\t\treturn false;\n \t\treturn text.getSelectionCount() > 0;\n \t}", "@SuppressLint({\"NewApi\"})\n private void copyHintToClipboard(String str, String str2) {\n if (Build.VERSION.SDK_INT >= 11) {\n ((ClipboardManager) this.cordova.getActivity().getSystemService(\"clipboard\")).setPrimaryClip(ClipData.newPlainText(str2, str));\n }\n }", "public static void main(String[] args) \r\n\t {\n\t FileInputStream ins = null;\r\n\t FileOutputStream outs = null;\r\n\t \r\n\t try\r\n\t {\r\n\t \t //input file -->abc.txt\r\n\t File infile =new File(\"C:\\\\Users\\\\omsai\\\\Desktop\\\\abc.txt\");\r\n\t \r\n\t //output file -->outfile\r\n\t File outfile =new File(\"C:\\\\Users\\\\omsai\\\\Desktop\\\\copy.txt\");\r\n\t \r\n\t ins = new FileInputStream(infile);\r\n\t outs = new FileOutputStream(outfile);\r\n\t \r\n\t byte[] buffer = new byte[1024];\r\n\t int length;\r\n\t \r\n\t //copy contents of inputfile to output file\r\n\t while ((length = ins.read(buffer)) > 0) {\r\n\t outs.write(buffer, 0, length);\r\n\t } \r\n\t \r\n\t //close input and output files\r\n\t ins.close();\r\n\t outs.close();\r\n\t \r\n\t \r\n\t System.out.println(\"File copied successfully!!\");\r\n\t } \r\n\t \r\n\t catch(IOException ioe) \r\n\t {\r\n\t ioe.printStackTrace();\r\n\t } \r\n\t }", "@Test\n public void testCopy_1() {\n LOGGER.info(\"testCopy_1\");\n final AtomString actual = new AtomString(\"Hej\");\n final AtomString expected = actual.copy();\n assertEquals(expected, actual);\n }", "public void performCut() {\n \t\ttext.cut();\n \t\tcheckSelection();\n \t\tcheckDeleteable();\n \t\tcheckSelectable();\n \t}", "@FXML\n private void copyAdd() {\n final Clipboard clipboard = Clipboard.getSystemClipboard();\n final ClipboardContent url = new ClipboardContent();\n url.putString(ADD_MESSAGE);\n clipboard.setContent(url);\n }", "public void onTextCut()\n\t{\n\t}", "public static void copyText(Document srcDoc, int srcStartOffset,\n int srcEndOffset, char[] dst, int dstOffset) throws BadLocationException {\n Segment text = new Segment();\n int gapStart = getGapStart(srcDoc);\n if (gapStart != -1 && srcStartOffset < gapStart && gapStart < srcEndOffset) {\n // Get part below gap\n srcDoc.getText(srcStartOffset, gapStart - srcStartOffset, text);\n System.arraycopy(text.array, text.offset, dst, dstOffset, text.count);\n dstOffset += text.count;\n srcStartOffset = gapStart;\n }\n\n srcDoc.getText(srcStartOffset, srcEndOffset - srcStartOffset, text);\n System.arraycopy(text.array, text.offset, dst, dstOffset, srcEndOffset - srcStartOffset);\n }", "String getToText();", "private static void copyFile(File scrFile, File file) {\n\t\r\n}", "public static void copy(String s) {\n Clipboard c = Toolkit.getDefaultToolkit().getSystemClipboard();\n StringSelection t = new StringSelection(s);\n c.setContents(t, t);\n }", "public static void copy(AbstractViewController c, OperationData o) {\n content.clear();\n\n if (o != null) {\n content.add(o);\n final String message = content.size() + \" Element(s) Copied to clipboard\";\n new InformationDialog.Builder()\n .title(\"Copy\")\n .message(message)\n .buildAccent(c).show(true);\n }\n else {\n new InformationDialog.Builder()\n .title(\"Copy\")\n .message(\"No selected items!\")\n .buildAccent(c).show(true);\n }\n }", "public void deliverRawText(String text) {\n \n }", "private void txt() {\n\n\t}", "public void doCopy ( RunData data )\n\t{\n\t\t// get the state object\n\t\tSessionState state = ((JetspeedRunData)data).getPortletSessionState (((JetspeedRunData)data).getJs_peid ());\n\n\t\t// cancel copy if there is one in progress\n\t\tif(! Boolean.FALSE.toString().equals(state.getAttribute (STATE_COPY_FLAG)))\n\t\t{\n\t\t\tinitCopyContext(state);\n\t\t}\n\n\t\t// cancel move if there is one in progress\n\t\tif(! Boolean.FALSE.toString().equals(state.getAttribute (STATE_MOVE_FLAG)))\n\t\t{\n\t\t\tinitMoveContext(state);\n\t\t}\n\n\t\tVector copyItemsVector = new Vector ();\n\n\t\tString[] copyItems = data.getParameters ().getStrings (\"selectedMembers\");\n\t\tif (copyItems == null)\n\t\t{\n\t\t\t// there is no resource selected, show the alert message to the user\n\t\t\taddAlert(state, rb.getString(\"choosefile6\"));\n\t\t\tstate.setAttribute (STATE_MODE, MODE_LIST);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tString copyId = NULL_STRING;\n\t\t\tfor (int i = 0; i < copyItems.length; i++)\n\t\t\t{\n\t\t\t\tcopyId = copyItems[i];\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tResourceProperties properties = ContentHostingService.getProperties (copyId);\n\t\t\t\t\t/*\n\t\t\t\t\tif (properties.getProperty (ResourceProperties.PROP_IS_COLLECTION).equals (Boolean.TRUE.toString()))\n\t\t\t\t\t{\n\t\t\t\t\t\tString alert = (String) state.getAttribute(STATE_MESSAGE);\n\t\t\t\t\t\tif (alert == null || ((alert != null) && (alert.indexOf(RESOURCE_INVALID_OPERATION_ON_COLLECTION_STRING) == -1)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\taddAlert(state, RESOURCE_INVALID_OPERATION_ON_COLLECTION_STRING);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t*/\n\t\t\t\t}\n\t\t\t\tcatch (PermissionException e)\n\t\t\t\t{\n\t\t\t\t\taddAlert(state, rb.getString(\"notpermis15\"));\n\t\t\t\t}\n\t\t\t\tcatch (IdUnusedException e)\n\t\t\t\t{\n\t\t\t\t\taddAlert(state,RESOURCE_NOT_EXIST_STRING);\n\t\t\t\t}\t// try-catch\n\t\t\t}\n\n\t\t\tif (state.getAttribute(STATE_MESSAGE) == null)\n\t\t\t{\n\t\t\t\tstate.setAttribute (STATE_COPY_FLAG, Boolean.TRUE.toString());\n\n\t\t\t\tcopyItemsVector.addAll(Arrays.asList(copyItems));\n\t\t\t\tContentHostingService.eliminateDuplicates(copyItemsVector);\n\t\t\t\tstate.setAttribute (STATE_COPIED_IDS, copyItemsVector);\n\n\t\t\t}\t// if-else\n\t\t}\t// if-else\n\n\t}", "public void actionPerformed(ActionEvent e) {\n if (e.getActionCommand().compareTo(\"Copy\") == 0) {\n StringBuffer sbf = new StringBuffer();\n // Check to ensure we have selected only a contiguous block of\n // cells\n int numCols = jTable.getSelectedColumnCount();\n int numRows = jTable.getSelectedRowCount();\n int[] rowsSelected = jTable.getSelectedRows();\n int[] colsSelected = jTable.getSelectedColumns();\n if (!((numRows - 1 == rowsSelected[rowsSelected.length - 1] - rowsSelected[0] &&\n numRows == rowsSelected.length) &&\n (numCols - 1 == colsSelected[colsSelected.length - 1] - colsSelected[0] &&\n numCols == colsSelected.length))) {\n JOptionPane.showMessageDialog(null, \"Invalid Copy Selection\",\n \"Invalid Copy Selection\",\n JOptionPane.ERROR_MESSAGE);\n return;\n }\n for (int i = 0; i < numRows; i++) {\n for (int j = 0; j < numCols; j++) {\n sbf.append(jTable.getValueAt(rowsSelected[i], colsSelected[j]));\n if (j < numCols - 1) sbf.append(\"\\t\");\n }\n sbf.append(\"\\n\");\n }\n StringSelection stSel = new StringSelection(sbf.toString());\n system = Toolkit.getDefaultToolkit().getSystemClipboard();\n system.setContents(stSel, stSel);\n }\n if (e.getActionCommand().compareTo(\"Paste\") == 0) {\n int startRow = (jTable.getSelectedRows())[0];\n int startCol = (jTable.getSelectedColumns())[0];\n try {\n String trString = (String) (system.getContents(this).getTransferData(DataFlavor.stringFlavor));\n StringTokenizer st1 = new StringTokenizer(trString, \"\\n\");\n for (int i = 0; st1.hasMoreTokens(); i++) {\n String rowString = st1.nextToken();\n StringTokenizer st2 = new StringTokenizer(rowString, \"\\t\");\n for (int j = 0; st2.hasMoreTokens(); j++) {\n String value = st2.nextToken();\n\n if (startRow + i < jTable.getRowCount() && startCol + j < jTable.getColumnCount()) {\n mapTable.getData()[startRow + i][startCol + j] = Double.valueOf(value);\n }\n }\n\n mapTable.setTableData(mapTable.getData());\n }\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }\n }", "default void setClipboardText(String text) {\n setClipboard(ClipboardContentType.PLAINTEXT, Base64\n .getMimeEncoder()\n .encode(text.getBytes(StandardCharsets.UTF_8)));\n }", "public String copiAllRobot() throws Exception {\n String texto = \"\";\n robot = new Robot();\n /*\n\t\t\t * robot.keyPress(KeyEvent.VK_SHIFT);\n\t\t\t * robot.keyPress(KeyEvent.VK_END);\n\t\t\t * robot.keyRelease(KeyEvent.VK_END);\n\t\t\t * robot.keyRelease(KeyEvent.VK_SHIFT);\n */\n waitSeconds(1);\n robot.keyPress(KeyEvent.VK_CONTROL);\n robot.keyPress(KeyEvent.VK_C);\n robot.keyRelease(KeyEvent.VK_C);\n robot.keyRelease(KeyEvent.VK_CONTROL);\n waitSeconds(2);\n clipboard = Toolkit.getDefaultToolkit().getSystemClipboard();\n transferable = clipboard.getContents(this);\n dataflavor = new DataFlavor(\"application/x-java-serialized-object; class=java.lang.String\");\n if (transferable.isDataFlavorSupported(dataflavor)) {\n texto = (String) transferable.getTransferData(dataflavor);\n }\n return texto;\n }", "public void actionPerformed(ActionEvent e)\n\t{\n\t\tif (e.getActionCommand().compareTo(\"Copy\")==0)\n\t\t{\n\t\t\tStringBuffer sbf=new StringBuffer();\n\t\t\t// Check to ensure we have selected only a contiguous block of\n\t\t\t// cells\n\t\t\tint numcols=jTable1.getSelectedColumnCount();\n\t\t\tint numrows=jTable1.getSelectedRowCount();\n\t\t\tint[] rowsselected=jTable1.getSelectedRows();\n\t\t\tint[] colsselected=jTable1.getSelectedColumns();\n\t\t\tif (!((numrows-1==rowsselected[rowsselected.length-1]-rowsselected[0] &&\n\t\t\t\t\tnumrows==rowsselected.length) &&\n\t\t\t\t\t(numcols-1==colsselected[colsselected.length-1]-colsselected[0] &&\n\t\t\t\t\t\t\tnumcols==colsselected.length)))\n\t\t\t{\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Invalid Copy Selection\",\n\t\t\t\t\t\t\"Invalid Copy Selection\",\n\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tfor (int i=0;i<numrows;i++)\n\t\t\t{\n\t\t\t\tfor (int j=0;j<numcols;j++)\n\t\t\t\t{\n\t\t\t\t\tsbf.append(jTable1.getValueAt(rowsselected[i],colsselected[j]));\n\t\t\t\t\tif (j<numcols-1) sbf.append(\"\\t\");\n\t\t\t\t}\n\t\t\t\tsbf.append(\"\\n\");\n\t\t\t}\n\t\t\tstsel = new StringSelection(sbf.toString());\n\t\t\tsystem = Toolkit.getDefaultToolkit().getSystemClipboard();\n\t\t\tsystem.setContents(stsel,stsel);\n\t\t}\n\t\tif (e.getActionCommand().compareTo(\"Paste\")==0)\n\t\t{\n\t\t\tif (logger.isDebugEnabled()) {\n\t\t\t\tlogger.debug(\"Trying to Paste\");\n\t\t\t}\n\t\t\tint[] selectedRows = jTable1.getSelectedRows();\n\t\t\tint[] selectedColumns = jTable1.getSelectedColumns();\n\t\t\t\n\t\t\tint startRow = 0;\n\t\t\tint startCol = 0;\n\t\t\tif (selectedRows.length > 0) {\n\t\t\t\tstartRow=selectedRows[0];\n\t\t\t}\n\t\t\tif (selectedColumns.length > 0) {\n\t\t\t\tstartCol=selectedColumns[0];\n\t\t\t}\n\t\t\t\n\t\t\ttry\n\t\t\t{\n\t\t\t\tString trstring= (String)(system.getContents(this).getTransferData(DataFlavor.stringFlavor));\n\t\t\t\tif (logger.isDebugEnabled()) {\n\t\t\t\t\tlogger.debug(\"String is:\"+trstring);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tString[] s;\n\t\t\t\tString[] rows = trstring.split(\"\\n\", -1);\n\t\t\t\tPattern p = Pattern.compile(\"\\t\");\n\t\t\t\tfor (int i = 0; i < rows.length; i++) {\n\t\t\t\t\tif (rows[i].length() == 0) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\ts = p.split(rows[i]);\n\t\t\t\t\tfor (int j = 0; j < s.length ; j++) {\n\t\t\t\t\t\tjTable1.setValueAt(s[j], startRow + i, startCol + j);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch(Exception ex){\n\t\t\t\tlogger.error(\"Error pasting data\", ex);\n\t\t\t}\n\t\t}\n\t}", "@FXML\n private void copyGoto() {\n final Clipboard clipboard = Clipboard.getSystemClipboard();\n final ClipboardContent url = new ClipboardContent();\n url.putString(GOTO_MESSAGE);\n clipboard.setContent(url);\n }", "public abstract void copy(Result result, Object object);", "public final void mT__238() throws RecognitionException {\n try {\n int _type = T__238;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalMyDsl.g:236:8: ( 'copy' )\n // InternalMyDsl.g:236:10: 'copy'\n {\n match(\"copy\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "void printTextToAnotherMedium(String content){\n }", "private void applyOnText(Function<String, String> func) {\r\n\t\tJTextArea editor = getSelectedTextArea();\r\n\t\tDocument doc = editor.getDocument();\r\n\t\t\r\n\t\tint offset = 0;\r\n\t\tint len = Math.abs(editor.getCaret().getDot() - editor.getCaret().getMark());\r\n\t\tif (len == 0) {\r\n\t\t\tlen = doc.getLength();\r\n\t\t} else {\r\n\t\t\toffset = Math.min(editor.getCaret().getDot(), editor.getCaret().getMark());\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tString text = doc.getText(offset, len);\r\n\t\t\ttext = func.apply(text);\r\n\t\t\tdoc.remove(offset, len);\r\n\t\t\tdoc.insertString(offset, text, null);\r\n\t\t} catch (BadLocationException ignorable) {\r\n\t\t}\r\n\t}", "public void copyCode(ActionEvent actionEvent) {\n content.putString(String.valueOf(teamCombobox.getValue().getTeamCode()));\n clipboard.setContent(content);\n displayMessage(messagePane,\"Code copied\",false);\n }", "public String copy(MultipartFile file) throws IOException;", "public static void main(String[] args) {\n\n File sourceFile = new File(\"/Users/oyo/Documents/book/Java8实战.pdf\");\n File destFile = new File(\"/Users/oyo/Documents/book1/Java8实战.pdf\");\n\n\n\n long beforeTime = System.currentTimeMillis();\n\n copyFile(sourceFile, destFile);\n System.out.println(System.currentTimeMillis()-beforeTime);\n\n\n }", "@Test(groups = \"Integration\")\n public void testCopyFileTo() throws Exception {\n File dest = Os.newTempFile(getClass(), \".dest.tmp\");\n File src = Os.newTempFile(getClass(), \".src.tmp\");\n try {\n Files.write(\"abc\", src, Charsets.UTF_8);\n host.copyTo(src, dest);\n assertEquals(\"abc\", Files.readFirstLine(dest, Charsets.UTF_8));\n } finally {\n src.delete();\n dest.delete();\n }\n }", "Text createText();", "WorkoutBatch copy();", "public Iterator_BuildTextExpansion_ clone(CallContext context);", "public void readAndWrite() {\n Scanner scanner = new Scanner(System.in);\n String s = scanner.nextLine();\n List<String> passedFiles = new ArrayList<>();\n copy(new File(s), true, passedFiles);\n\n }", "public static void main(String[] args) throws IOException {\n\t\t\r\n File file = new File(\"C:\\\\Users\\\\balaji\\\\Desktop\\\\commons\\\\commons-io-2.6\\\\text file\\\\text1.txt\");\r\n\t\t\r\n\t\tFileUtils.write(file, \"Learning is Growing\", \"UTF-8\", false);\r\n\r\n\r\n\t}", "public String getClipboardContents() {\n\t\tString result = \"\";\n\t\tClipboard clipboard = Toolkit.getDefaultToolkit().getSystemClipboard();\n\t\t// odd: the Object param of getContents is not currently used\n\t\tTransferable contents = clipboard.getContents(null);\n\t\tboolean hasTransferableText = (contents != null) && contents.isDataFlavorSupported(DataFlavor.stringFlavor);\n\t\tif (hasTransferableText) {\n\t\t\ttry {\n\t\t\t\tresult = (String) contents.getTransferData(DataFlavor.stringFlavor);\n\t\t\t\ttfURL.setText(result);\n\t\t\t} catch (UnsupportedFlavorException | IOException ex) {\n\t\t\t\tSystem.out.println(ex);\n\t\t\t\tex.printStackTrace();\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "public Contenido copiar() {\n\t\tthrow new NotImplementedException();\r\n\t}", "void printTextToConsole(String content){\n }", "public static void main (String args[]) {\n \n int i=0, j=0;\n Character ch;\n Character ch1, ch2;\n ch1 = new Character(' ');\n ch2 = new Character('-');\n // FileReader fr = new FileReader(\"test.txt\");\n //FileWriter fw = new FileWriter(\"test-modify2.txt\");\n /* \n if(args.length !=2 ) {\n System.out.println(\"Usage: CopyFiles fl to f2\");\n return;\n }\n */\n try(BufferedReader br = new BufferedReader (new FileReader(\"test.txt\"));\n BufferedWriter bw = new BufferedWriter(new FileWriter(\"test-modify2.txt\"))) { \n \n //TODO Read while not meet space\n do {\n i = br.read();\n ch = (char)i;\n if ( ch.equals(ch1) ) {\n ch = ch2;\n bw.write(ch);\n //Write to output file\n //System.out.print(ch);\n } else { \n // Write to output file\n bw.write(ch);\n \n }\n //System.out.println(ch);\n } while (i != -1 );\n \n \n } catch (FileNotFoundException ex) {\n ex.printStackTrace();\n Logger.getLogger(CopyWithReplace.class.getName()).log(Level.SEVERE, null, ex);\n \n } catch (IOException ex) {\n ex.printStackTrace();\n Logger.getLogger(CopyWithReplace.class.getName()).log(Level.SEVERE, null, ex);\n } \n \n }", "public void addFromClipboard() { genericClipboard(SetOp.ADD); }", "public static void copySel() {\r\n DataClipboard.clearContent();\r\n if (DataClipboard.getSelectionLineBegin() != -1) {\r\n DataClipboard.updateContentLineBegin(DataClipboard.getSelectionLineBegin());\r\n DataClipboard.updateContentLineEnd(DataClipboard.getSelectionLineEnd());\r\n for (MeasureLine ml : DataClipboard.getSelectionTrimmed()) {\r\n if (ml != null) {\r\n DataClipboard.getContent().set(ml.getLineNumber(), ml);\r\n }\r\n }\r\n }\r\n }", "String getFromText();", "public Object clone() {\n // java.lang.String implements inherently copy-on-write.\n return new PseudoText(this.m_content);\n }", "@Override\r\n\tpublic Buffer copy() {\n\t\t\r\n\t\treturn null;\r\n\t}", "public void write(String text) throws ShellIOException;", "Prototype makeCopy();", "public void actionPerformed(ActionEvent ae)\n {\n int selected = owner.getSelectedRecordIndex();\n\n String[] row = owner.getDataTableModel().getDataRecord(selected).getData();\n\n StringBuffer copy = new StringBuffer();\n\n for(int i = 0; i < row.length; i++)\n {\n byte[] array = new byte[owner.getConfiguration().getMetaSchema()[i].getLength()];\n\n for(int j = 0; j < array.length; j++)\n {\n array[j] = ' ';\n }\n\n System.arraycopy(row[i].getBytes(), 0, array, 0, row[i].length());\n\n copy.append(new String(array));\n }\n\n Clipboard cb = Toolkit.getDefaultToolkit().getSystemClipboard();\n StringSelection content = new StringSelection(copy.toString());\n cb.setContents(content, null);\n }", "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n System.out.println(\"Add the location of the source file\");\n String location1 = scanner.next();\n System.out.println(\"Add the location of the destination file\");\n String location2 = scanner.next();\n System.out.println(copyFile(location1, location2));\n }", "String getTransformedText();", "@Source(\"gr/grnet/pithos/resources/editcopy.png\")\n ImageResource copy();" ]
[ "0.793822", "0.7465726", "0.7207244", "0.7056759", "0.67021596", "0.6443375", "0.6413307", "0.6412645", "0.6407765", "0.63981944", "0.6250882", "0.6221765", "0.62206423", "0.6152328", "0.61404717", "0.60533", "0.60068184", "0.59874725", "0.59415966", "0.59155804", "0.5915283", "0.5875745", "0.5812168", "0.5803217", "0.5803112", "0.57561415", "0.5748275", "0.5740136", "0.5739078", "0.5726473", "0.5714718", "0.5700039", "0.56571305", "0.5631029", "0.56252813", "0.56192636", "0.5605998", "0.55879706", "0.55845946", "0.55616987", "0.55578995", "0.55530477", "0.55449396", "0.55444825", "0.5519318", "0.55060947", "0.5498735", "0.5446996", "0.5438152", "0.5437493", "0.5408524", "0.5371547", "0.53655434", "0.53632504", "0.5352106", "0.5346092", "0.534244", "0.5342055", "0.5339341", "0.53360265", "0.5329279", "0.5325823", "0.532497", "0.5317169", "0.52938616", "0.5288624", "0.5283004", "0.52529424", "0.5235943", "0.5224887", "0.5219006", "0.52185726", "0.5216575", "0.5216292", "0.52102304", "0.52021897", "0.51867616", "0.5182109", "0.5180553", "0.5176071", "0.5169958", "0.51551473", "0.51536876", "0.5141508", "0.5130622", "0.51173663", "0.5116397", "0.51146007", "0.5112586", "0.5092641", "0.50923914", "0.5084169", "0.50810754", "0.5080454", "0.50803286", "0.5074684", "0.50734675", "0.5065467", "0.5064969", "0.5064247" ]
0.6379855
10
Method to call operation for cut text
public void cut() { cmd = new CutCommand(editor); invoker = new MiniEditorInvoker(cmd); invoker.action(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onTextCut()\n\t{\n\t}", "public void performCut() {\n \t\ttext.cut();\n \t\tcheckSelection();\n \t\tcheckDeleteable();\n \t\tcheckSelectable();\n \t}", "public void cutSelection() {\r\n \t\t// Bertoli Marco\r\n \t\tclipboard.cut();\r\n \t}", "public void cut(final int p0, final int p1) {\n setCaretPosition(p0);\n moveCaretPosition(Math.max(p1, p0));\n JTextComponent.this.cut();\n }", "@Override\n\tpublic void editorCut()\n\t{\n\t\teditorCopy();\n\t\teditorInsert(\"\");\n\t\tSystem.out.println(\"DEBUG: performing Cut\") ;\n\t}", "@Override\n public void cut() {\n clipboard.setContents(getSelectionAsList(true));\n }", "public native Text splitText(double offset) /*-{\r\n\t\tvar jso = [email protected]::getJsObj()();\r\n\t\treturn jso.splitText(offset);\r\n }-*/;", "private String cutText(int maxLength, String content) {\n\t\tif(content.length() <= maxLength){\n\t\t\treturn content;\n\t\t}\t\t\n\t\treturn content.substring(0, maxLength) + \"...\";\n\t}", "private void applyOnText(Function<String, String> func) {\r\n\t\tJTextArea editor = getSelectedTextArea();\r\n\t\tDocument doc = editor.getDocument();\r\n\t\t\r\n\t\tint offset = 0;\r\n\t\tint len = Math.abs(editor.getCaret().getDot() - editor.getCaret().getMark());\r\n\t\tif (len == 0) {\r\n\t\t\tlen = doc.getLength();\r\n\t\t} else {\r\n\t\t\toffset = Math.min(editor.getCaret().getDot(), editor.getCaret().getMark());\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tString text = doc.getText(offset, len);\r\n\t\t\ttext = func.apply(text);\r\n\t\t\tdoc.remove(offset, len);\r\n\t\t\tdoc.insertString(offset, text, null);\r\n\t\t} catch (BadLocationException ignorable) {\r\n\t\t}\r\n\t}", "public int invokeCutMode()\n{\n \n return(0);\n\n}", "public static String cutToSize(String textIn, float targetWidth, BitmapFont fontIn){\n String out=textIn;\n for(int i = textIn.length();i>0;i--) {\n String cutText = out.substring(0, i);\n if (textWidth(fontIn, cutText) <= targetWidth) {\n return cutText;\n }\n }\n return \"\";\n }", "public void doCut()\n {\n bothToolClicked(map.selectedHexesIterator(), true);\n }", "public boolean isCutEnabled() {\n \t\tif (text == null || text.isDisposed())\n \t\t\treturn false;\n \t\treturn text.getSelectionCount() > 0;\n \t}", "void cut(int cardPosition);", "@Override\n public Object exec(List args) throws TemplateModelException {\n String result=\"\";\n String content=\"\";\n String delpatstr=\"\";\n int len=0;\n if (args.size()!=2 && args.size() != 3) {\n throw new TemplateModelException(\n \"Error: 参数个数不正确 CutStringMethodModel(content,len[,replacepattern])\");\n }\n try {\n TemplateScalarModel tsm = (TemplateScalarModel) args.get(0);\n if(null!=tsm) {\n content = tsm.getAsString();\n }\n if(args.size()==3) {\n TemplateScalarModel delsm = (TemplateScalarModel) args.get(2);\n if(null!=delsm){\n delpatstr=delsm.getAsString();\n }\n }\n SimpleNumber smLen = (SimpleNumber) args.get(1);\n if(null!=smLen) {\n len = smLen.getAsNumber().intValue();\n }\n } catch (ClassCastException cce) {\n String mess = \"Error: 无法解析参数信息\";\n throw new TemplateModelException(mess);\n }\n if(null==content || \"\".equals(content.trim())){\n return result;\n }\n if(null!=delpatstr && !\"\".equals(delpatstr.trim())){\n try{\n Pattern pattern=Pattern.compile(delpatstr);\n Matcher m=pattern.matcher(content.trim());\n if(m.find()){\n content=m.replaceAll(\"\");\n }\n }catch (Exception ex){\n String mess = \"Error: 正则替换失败,需要替换的正则\"+delpatstr;\n throw new TemplateModelException(mess);\n }\n }\n try{\n result= ValueUtils.getCutString(content, len);\n }catch (Exception ex){\n String mess = \"Error: 无法截取字符串\";\n throw new TemplateModelException(mess);\n }\n return result;\n }", "public TracePosition hCut() {\n\treturn myHCrum.hCut();\n/*\nudanax-top.st:9635:OrglRoot methodsFor: 'accessing'!\n{TracePosition} hCut\n\t\"This is primarily for the example routines.\"\n\t^myHCrum hCut!\n*/\n}", "public void onTextCopy()\n\t{\n\t}", "@Source(\"gr/grnet/pithos/resources/editcut.png\")\n ImageResource cut();", "public void copyText(){\n try{\n if(mCursor.isSelected()){\n mClipboardManager.setTextToClipboard(getText().subContent(mCursor.getLeftLine(),\n mCursor.getLeftColumn(),\n mCursor.getRightLine(),\n mCursor.getRightColumn()).toString());\n }\n }catch(Exception e){\n e.printStackTrace();\n Toast.makeText(getContext(),e.toString(),Toast.LENGTH_SHORT).show();\n }\n }", "public void performCopy() {\n \t\ttext.copy();\n \t}", "@Override\n public final CharSequence subSequence(final int start, final int end) {\n return text.subSequence(start, end);\n }", "protected void genericClipboard(SetOp op) {\n RTGraphComponent.RenderContext myrc = (RTGraphComponent.RenderContext) (getRTComponent().getRTRenderContext()); if (myrc == null) return;\n Clipboard clipboard = getToolkit().getSystemClipboard();\n Transferable trans = clipboard.getContents(this);\n if (trans != null && trans.isDataFlavorSupported(DataFlavor.stringFlavor)) {\n try {\n\t // Extract the entities\n String clip = (String) trans.getTransferData(DataFlavor.stringFlavor);\n List<SubText> al = EntityExtractor.list(clip);\n\n // Also, extract just the single lines\n\t if (strictMatches() == false) {\n StringTokenizer st = new StringTokenizer(clip, \"\\n\");\n\t while (st.hasMoreTokens()) {\n\t String str = st.nextToken();\n\t // Remove before and after whitespaces...\n\t while (str.length() > 0 && (str.charAt(0) == ' ' || str.charAt(0) == '\\t')) \n\t str = str.substring(1,str.length());\n\t while (str.length() > 0 && (str.charAt(str.length()-1) == ' ' || str.charAt(str.length()-1) == '\\t'))\n\t str = str.substring(0,str.length()-1);\n al.add(new Entity(str,str,null,0,0));\n\t }\n }\n\n\t // Get the new items\n\t Set<String> new_set = new HashSet<String>();\n for (int i=0;i<al.size();i++) { \n\t String clip_str = al.get(i).toString();\n Iterator<String> it = entity_to_wxy.keySet().iterator();\n while (it.hasNext()) {\n\t String entity = it.next();\n\t // Check for a concat\n\t if (entity.indexOf(BundlesDT.DELIM) >= 0) entity = entity.substring(entity.lastIndexOf(BundlesDT.DELIM)+1, entity.length());\n\t if (Utils.isIPv4CIDR(clip_str) && Utils.isIPv4(entity) && Utils.ipMatchesCIDR(entity, clip_str))\n\t new_set.add(entity);\n\t if (entity.indexOf(clip_str) >= 0) \n\t new_set.add(entity);\n }\n\t }\n\n\t // Get the old items\n\t Set<String> old_set = new HashSet<String>(myrc.filterEntities(getRTParent().getSelectedEntities()));\n\n\t // Do the set operation\n\t switch (op) {\n\t case SELECT: getRTParent().setSelectedEntities(new_set);\n\t break;\n\t case ADD: new_set.addAll(old_set);\n\t getRTParent().setSelectedEntities(new_set);\n\t\t\t break;\n\t case REMOVE: old_set.removeAll(new_set);\n\t getRTParent().setSelectedEntities(old_set);\n\t\t\t break;\n\t case INTERSECT: old_set.retainAll(new_set);\n\t getRTParent().setSelectedEntities(old_set);\n\t\t\t break;\n\t }\n } catch (UnsupportedFlavorException ufe) {\n System.err.println(\"genericClipboard failed... unsupported data flavor : \" + ufe);\n ufe.printStackTrace(System.err);\n } catch (IOException ioe) {\n System.err.println(\"genericClipboard failed... io exception : \" + ioe);\n ioe.printStackTrace(System.err);\n }\n }\n }", "String processing();", "String getTransformedText();", "void wrappedText(final int count);", "private String cleanup(String bibContent, boolean cut) throws UnsupportedEncodingException{\n\t\tbibContent = bibContent.replace(\"&#150;\", \"-\");\n\t\tbibContent = StringEscapeUtils.unescapeHtml(bibContent);\n\t\t\n\t\tbibContent = bibContent.replaceAll(\"<!-- CHANGE -->\", \"\");\n\t\t\n\t\tif(cut){\n\t\t\tint indexStartI = -1;\n\t\t\tint indexEndI = -1;\n\n\t\t\tdo{\n\t\t\t\t\n\t\t\t\t// cut all content between <i> and </i>\n\t\t\t\tindexStartI = bibContent.indexOf(\"<i>\");\n\t\t\t\tif(indexStartI == -1)\n\t\t\t\t\tindexStartI = bibContent.indexOf(\"<I>\");\n\t\t\t\t\n\t\t\t\tindexEndI = bibContent.indexOf(\"</i>\");\n\t\t\t\tif(indexEndI == -1)\n\t\t\t\t\tindexEndI = bibContent.indexOf(\"</I>\");\n\t\t\t\t\n\t\t\t\tif(indexStartI != -1){\n\t\t\t\t\t// cut string\n\t\t\t\t\tString firstSection = bibContent.substring(0, indexStartI);\n\t\t\t\t\t\n\t\t\t\t\tString secondSection = \"\"; \n\t\t\t\t\tif(indexEndI != -1)// has end tag\n\t\t\t\t\t\tsecondSection = bibContent.substring(indexEndI +4);\n\t\t\t\t\t// else no end tag, remove rest of the string (rest of the string is \"\")\n\t\t\t\t\t\n\t\t\t\t\t// concat\n\t\t\t\t\tbibContent = firstSection + secondSection;\n\t\t\t\t}\n\t\t\t\n\t\t\t// only start i tag is importent (may be closing tag ist missing)\n\t\t\t}while(indexStartI != -1);\n\t\t}else{\n\t\t\tbibContent = bibContent.replaceAll(\"<i>\", \"\");\n\t\t\tbibContent = bibContent.replaceAll(\"<I>\", \"\");\n\t\t\tbibContent = bibContent.replaceAll(\"</i>\", \"\");\n\t\t\tbibContent = bibContent.replaceAll(\"</I>\", \"\");\n\t\t}\n\n\t\tbibContent = bibContent.replace(\"<BR>\", \"\\n\");\n\t\tbibContent = bibContent.replace(\"<br>\", \"\\n\");\n\t\t\n\t\treturn bibContent.trim();\n\t}", "@Override\n\tpublic boolean onTextContextMenuItem(int id)\n\t{\n\t\t// Do your thing:\n\t\tboolean consumed = super.onTextContextMenuItem(id);\n\t\t// React:\n\t\tswitch (id)\n\t\t{\n\t\t\tcase android.R.id.cut:\n\t\t\t\tonTextCut();\n\t\t\t\tbreak;\n\t\t\tcase android.R.id.paste:\n\t\t\t\tonTextPaste();\n\t\t\t\tbreak;\n\t\t\tcase android.R.id.copy:\n\t\t\t\tonTextCopy();\n\t\t}\n\t\treturn consumed;\n\t}", "private void applyOnLines(Function<String, String> func) {\r\n\t\tJTextArea editor = getSelectedTextArea();\r\n\t\tDocument doc = editor.getDocument();\r\n\t\t\r\n\t\tint offset = Math.min(editor.getCaret().getDot(), editor.getCaret().getMark());\r\n\t\tint start = 0;\r\n\t\tint end = 0;\r\n\t\tint len = Math.abs(editor.getCaret().getDot() - editor.getCaret().getMark());;\r\n\t\ttry {\r\n\t\t\tint lineS = editor.getLineOfOffset(offset);\r\n\t\t\tint lineE = editor.getLineOfOffset(offset+len);\r\n\t\t\tstart = editor.getLineStartOffset(lineS);\r\n\t\t\tend = editor.getLineEndOffset(lineE);\r\n\t\t\tlen = end - start;\r\n\t\t} catch (BadLocationException ignorable) {\r\n\t\t}\r\n\t\t\r\n\t\ttry {\r\n\t\t\tString text = doc.getText(start, len);\r\n\t\t\ttext = func.apply(text);\r\n\t\t\tdoc.remove(start, len);\r\n\t\t\tdoc.insertString(start, text, null);\r\n\t\t} catch (BadLocationException ignorable) {\r\n\t\t\tthrow new RuntimeException();\r\n\t\t}\r\n\t}", "private void textilize () {\n\n textIndex = 0;\n int textEnd = line.length() - 1;\n listChars = new StringBuffer();\n linkAlias = false;\n while (textIndex < line.length()\n && (Character.isWhitespace(textChar()))) {\n textIndex++;\n }\n while (textEnd >= 0\n && textEnd >= textIndex\n && Character.isWhitespace (line.charAt (textEnd))) {\n textEnd--;\n }\n boolean blankLine = (textIndex >= line.length());\n if (blankLine) {\n textilizeBlankLine();\n }\n else\n if ((textIndex > 0)\n || ((line.length() > 0 )\n && (line.charAt(0) == '<'))) {\n // First character is white space of the beginning of an html tag:\n // Doesn't look like textile... process it without modification.\n }\n else\n if (((textEnd - textIndex) == 3)\n && line.substring(textIndex,textEnd + 1).equals (\"----\")) {\n // && (line.substring(textIndex, (textEnd + 1)).equals (\"----\")) {\n textilizeHorizontalRule(textIndex, textEnd);\n } else {\n textilizeNonBlankLine();\n };\n }", "public static void substringtest(){\n }", "@Override\n\tpublic void characters(String text) {\n\t\t\n\t}", "public boolean isCut() {\n\t\treturn isCut;\n\t}", "private void collapse(StringBuffer result, String text) {\n \n }", "private void chop(String cmd){\n int n = cmd.length();\n //l and r will be used to chop the string\n int l = 0;\n int r = 0;\n\n for(; l<n; l++){\n if(separator(cmd.charAt(l))) {\n for (r = l; r < n; r++) {\n if (!separator(cmd.charAt(r))) break;\n }\n r--;\n l = r;\n }\n else {\n for (r = l; r < n; r++) {\n if (separator(cmd.charAt(r))) break;\n }\n key_words.add(cmd.substring(l, r));\n l = r;\n }\n\n }\n\n suffix();\n }", "public void copyText() {\n ((ClipboardManager) getActivity().getSystemService(\"clipboard\")).setPrimaryClip(ClipData.newPlainText(\"textFromCoolapk\", this.mBinding.text.getText()));\n Toast.show(getActivity(), \"结果已复制\");\n }", "public void setCuttOff(String value) {\n setAttributeInternal(CUTTOFF, value);\n }", "public void cut() throws IOException {\n // cut\n writer.write(0x1D);\n writer.write(\"V\");\n writer.write(48);\n writer.write(0);\n\n writer.flush();\n }", "void printTextToAnotherMedium(String content){\n }", "public String getCutString(final String s, final int i) {\n final String emptyString = \"\";\n\n final String dotted = \"...\";\n if (s.length() > (i + dotted.length())) {\n return s.substring(0, i) + dotted;\n } else if (s.length() == 0) {\n return emptyString;\n } else {\n return s;\n }\n\n }", "public String substring(int beg, int end) {\r\n\t\treturn text.substring(beg, end);\r\n\t}", "private void processText(){\n if(text == null || text.length() == 0){\n // When posting a tweet, Twitter returns the \"text\" JSON field even if it's not trimmed...\n text = trimmedText;\n }else{\n // Trim the original contents received from Twitter\n text = text.substring(0, text.offsetByCodePoints(0, displayTextRange[1]));\n }\n\n // Transform HTML characters (for some reason Twitter sends those)\n text = org.apache.commons.text.StringEscapeUtils.unescapeHtml4(text);\n }", "public static void copyText(Document srcDoc, int srcStartOffset,\n int srcEndOffset, char[] dst, int dstOffset) throws BadLocationException {\n Segment text = new Segment();\n int gapStart = getGapStart(srcDoc);\n if (gapStart != -1 && srcStartOffset < gapStart && gapStart < srcEndOffset) {\n // Get part below gap\n srcDoc.getText(srcStartOffset, gapStart - srcStartOffset, text);\n System.arraycopy(text.array, text.offset, dst, dstOffset, text.count);\n dstOffset += text.count;\n srcStartOffset = gapStart;\n }\n\n srcDoc.getText(srcStartOffset, srcEndOffset - srcStartOffset, text);\n System.arraycopy(text.array, text.offset, dst, dstOffset, srcEndOffset - srcStartOffset);\n }", "public abstract void truncate();", "public String getCuttOff() {\n return (String)getAttributeInternal(CUTTOFF);\n }", "STRIKE createSTRIKE();", "String getToText();", "public int drawSubstring(Graphics g, String text, int offset, int length, int x, int y, int anchors) {\r\n\t\tint xx = getX(substringWidth(text, offset, length), x, anchors);\r\n\t\tint yy = getY(y, anchors);\r\n\t\tsetColor(g.getColor());\r\n\t\tfor (int i = offset; i < offset + length; i++) {\r\n\t\t\txx = drawOneChar(g, text.charAt(i), xx, yy);\r\n\t\t}\r\n\t\tif ((style & Font.STYLE_UNDERLINED) != 0) {\r\n\t\t\tint yU = y + this.baseline + 2;\r\n\t\t\tg.drawLine(x, yU, xx - 1, yU);\r\n\t\t}\r\n\t\treturn xx;\r\n\t}", "private String cutString(String value){\n String [] strings = value.split(\" \");\n System.out.println(strings[0]);\n return strings[0];\n }", "protected void processTextPosition(TextPosition text) {\n//\n//\t\tif (text.getCharacter().contains(\"股\")\n//\t\t\t\t|| text.getCharacter().contains(\"票\")\n//\t\t\t\t|| text.getCharacter().contains(\"代\")\n//\t\t\t\t|| text.getCharacter().contains(\"码\")\n//\t\t\t\t|| text.getCharacter().contains(\"证\")\n//\t\t\t\t|| text.getCharacter().contains(\"券\")\n//\t\t\t\t|| Character.isDigit(text.getCharacter().charAt(0))\n//\t\t\t\t|| text.getCharacter().contains(\",\")\n//\t\t\t\t|| text.getCharacter().contains(\"。\")\n//\t\t\t\t|| text.getCharacter().contains(\",\")\n//\t\t\t\t|| text.getCharacter().contains(\".\")\n//\t\t\t\t|| text.getCharacter().contains(\":\")\n//\t\t\t\t|| text.getCharacter().contains(\":\"))\n//\t\t{\n//\t\t\tstockCode += text.getCharacter();\n//\t\t}\n\n if (text.getCharacter().endsWith(\" \"))\n return;\n\n if (textBuffer.isEmpty()) {\n textBuffer.add(text);\n } else {\n TextPosition lastText = textBuffer.get(textBuffer.size() - 1);\n\n // If current text is near enough to the end of textBuffer (lastText)\n if (isCharacterAdjacent(lastText, text) == true) {\n textBuffer.add(text);\n } else {\n\n // A new text segment is found which is adjacent to the current textBuffer,\n // but may be vertically overlapped.\n\n // Put the segment into a block, the block will be combined later.\n\n // If the text buffer is overlapped with the last buffer in infoBlock\n // then combine these two buffers.\n\n\n if (infoBlock.isEmpty() == false) {\n List<TextPosition> lastBuffer = infoBlock.get(infoBlock.size() - 1);\n\n // MAX_FEATURE_LEN is a magic number to filter too long a line that overlaps with all line below\n if (CommonUtils.isBufferHorizontalOverlapped(lastBuffer, textBuffer) && lastBuffer.size() < MAX_FEATURE_LEN) {\n lastBuffer.addAll(textBuffer);\n } else {\n infoBlock.add(textBuffer);\n }\n } else {\n infoBlock.add(textBuffer);\n }\n\n // to create a new buffer for the original object is added to the infoBlock\n textBuffer = new ArrayList<TextPosition>();\n textBuffer.add(text);\n }\n }\n\n\n\n/*\t\tSystem.out.println( \"String[\" + text.getXDirAdj() + \",\" +\n\t\t\t\ttext.getYDirAdj() + \" fs=\" + text.getFontSize() + \" xscale=\" +\n\t\t\t\ttext.getXScale() + \" height=\" + text.getHeightDir() + \" space=\" +\n\t\t\t\ttext.getWidthOfSpace() + \" width=\" +\n\t\t\t\ttext.getWidthDirAdj() + \"]\" + text.getCharacter() );*/\n }", "public String substring(int arg0, int arg1) {\n return content.substring(arg0, arg1);\n }", "public My_String substring(int start, int end);", "private String getFitText(String text, float width, Paint paint) {\r\n String newText = text;\r\n int length = text.length();\r\n int diff = 0;\r\n while (paint.measureText(newText) > width && diff < length) {\r\n diff++;\r\n newText = text.substring(0, length - diff) + \"...\";\r\n }\r\n if (diff == length) {\r\n newText = \"...\";\r\n }\r\n return newText;\r\n }", "@Override\n\tpublic void editorCopy()\n\t{\n\t\tclipboard = stringBuffer.substring(selectionStart,selectionEnd);\n\n\t\tSystem.out.println(\"DEBUG: performing Copy\" + clipboard) ;\n\t}", "public ExtractTextByArea() throws IOException {\n\t\tsuper();\n\t\t// TODO Auto-generated constructor stub\n\t}", "public void logCut(Dataset ds){\n dataProcessToolPanel.logCut(dataset);\n }", "void copyTextToTextBox(String text,boolean isMaxSet);", "public static String truncateText(String str, int lower, int upper, String appendToEnd) {\n String str2 = removeHTML(str, false);\n boolean diff = (str2.length() < str.length());\n \n // quickly adjust the upper if it is set lower than 'lower'\n if(upper < lower) {\n upper = lower;\n }\n \n // now determine if the string fits within the upper limit\n // if it does, go straight to return, do not pass 'go' and collect $200\n if(str2.length() > upper) {\n // the magic location int\n int loc;\n \n // first we determine where the next space appears after lower\n loc = str2.lastIndexOf(' ', upper);\n \n // now we'll see if the location is greater than the lower limit\n if(loc >= lower) {\n // yes it was, so we'll cut it off here\n str2 = str2.substring(0, loc);\n } else {\n // no it wasnt, so we'll cut it off at the upper limit\n str2 = str2.substring(0, upper);\n loc = upper;\n }\n // the string was truncated, so we append the appendToEnd String\n str = str2 + appendToEnd;\n }\n return str;\n }", "public String getTextSubstring(int start, int end) {\r\n return text.subSequence(start, end).toString();\r\n }", "public static String cut(String s, String seperator, double size, FontMetrics fontMetrics,String startString,boolean addSeperatorFirst){\n\t\t\n\t\tString origin = s;\n\t\tif (s==null) return s;\n\t\tif (s.equals(\"\")) return s;\n\t\tif (addSeperatorFirst) size = size - fontMetrics.stringWidth(seperator); \n\t\t\n\t\twhile (fontMetrics.stringWidth(s+startString)>size && s.contains(seperator)){\n\t\t\ts=s.substring(s.indexOf(seperator)+1, s.length());\n\t\t}\n\t\tif (s.equals(origin)) return s;\n\t\tif (addSeperatorFirst) s=seperator +s;\n\t\ts=startString+s;\n\n\t\treturn s;\n\t\t\n\t}", "private String computeCorrectedText() {\n String correctedText = getText();\n\n if (getOOVWords() != null && getOOVWords().size() > 0) {\n int diff = 0;\n\n for (OOV oov : getOOVWords()) {\n if (oov.getAnnotation() == Annotation.Variation) {\n if (oov.getStartPosition() == 0) {\n correctedText = oov.getCorrection() + correctedText.substring(oov.getEndPosition() + diff, correctedText.length());\n }else {\n correctedText = correctedText.substring(0, oov.getStartPosition() + diff)\n + oov.getCorrection()\n + correctedText.substring(oov.getEndPosition() + diff, correctedText.length());\n }\n\n diff += oov.getCorrection().length() - oov.getToken().length();\n } \n }\n }\n\n return PostProcess.apply(correctedText);\n }", "private void txt() {\n\n\t}", "private void handleCopyingTextToClipboard(String text){\n Intent intent = new Intent(getContext(), ClipboardEventHandler.class);\n intent.putExtra(\"action\", \"switch\");\n intent.putExtra(\"content\", text);\n\n getContext().startService(intent);\n\n Snackbar.make(getView(), getString(R.string.COPIED_BEGINNIG) + \" \" +\"\\\"\"+ text +\"\\\"\" + \" \" + getString(R.string.COPIED_END), Snackbar.LENGTH_SHORT).show();\n }", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t a.cut();\n\t if(e.getSource()==paste)\n\t\t a.paste();\n\t if(e.getSource()==copy)\n\t\t a.copy();\n\t if(e.getSource()==selectAll)\n\t\t a.selectAll();\n\t\n\t\t\n\t}", "public void onCutScene() {\n\t\tAnimation src = getSourceAnimation();\n\t\tif( src != null ) {\n\t\t\tcutScene(src, vm.cutInfo.getStart(), vm.cutInfo.getEnd(), buildUniqueName(vm.scenes));\n\t\t\tlog.info(\"cutting out scene from {}\", vm.cutInfo);\n\t\t\tvm.cutInfo.reset();\n\t\t\tvm.setMarkStartEnabled(true);\n\t\t}\n\t\t\n\t}", "private void performOCR(){\n }", "public void performPaste() {\n \t\ttext.paste();\n \t\tcheckSelection();\n \t\tcheckDeleteable();\n \t\tcheckSelectable();\n \t}", "void cutMenuItem_actionPerformed(ActionEvent e) {\n int selectedRow = articleTable.getSelectedRow();\n\n if ((selectedRow == -1) || (articles.size() == 0)) {\n return; //nothing selected\n }\n System.out.println(\"cut() row \" + selectedRow + \" selected \");\n articles.removeElementAt(selectedRow); // remove from vector\n articleTextArea.setText(\"\"); // clear the display area\n currentArt = null;\n refreshTable(); // update the table model and refresh display\n selectedRow = articleTable.getSelectedRow();\n if (selectedRow < articles.size()) {\n currentArt = (NewsArticle) articles.elementAt(selectedRow); // get newly selected article\n articleTextArea.setText(currentArt.getBody());\n articleTextArea.setCaretPosition(0);\n }\n if (articles.size() == 0) {\n addAllMenuItem.setEnabled(false) ;\n addArticleMenuItem.setEnabled(false) ;\n saveArticleMenuItem.setEnabled(false) ;\n }\n }", "public static String truncateNicely(String str, int lower, int upper, String appendToEnd) {\n // strip markup from the string\n String str2 = removeHTML(str, false);\n boolean diff = (str2.length() < str.length());\n \n // quickly adjust the upper if it is set lower than 'lower'\n if(upper < lower) {\n upper = lower;\n }\n \n // now determine if the string fits within the upper limit\n // if it does, go straight to return, do not pass 'go' and collect $200\n if(str2.length() > upper) {\n // the magic location int\n int loc;\n \n // first we determine where the next space appears after lower\n loc = str2.lastIndexOf(' ', upper);\n \n // now we'll see if the location is greater than the lower limit\n if(loc >= lower) {\n // yes it was, so we'll cut it off here\n str2 = str2.substring(0, loc);\n } else {\n // no it wasnt, so we'll cut it off at the upper limit\n str2 = str2.substring(0, upper);\n loc = upper;\n }\n \n // HTML was removed from original str\n if (diff) {\n \n // location of last space in truncated string\n loc = str2.lastIndexOf(' ', loc);\n \n // get last \"word\" in truncated string (add 1 to loc to eliminate space\n String str3 = str2.substring(loc+1);\n \n // find this fragment in original str, from 'loc' position\n loc = str.indexOf(str3, loc) + str3.length();\n \n // get truncated string from original str, given new 'loc'\n str2 = str.substring(0, loc);\n \n // get all the HTML from original str after loc\n str3 = extractHTML(str.substring(loc));\n \n // remove any tags which generate visible HTML\n // This call is unecessary, all HTML has already been stripped\n //str3 = removeVisibleHTMLTags(str3);\n \n // append the appendToEnd String and\n // add extracted HTML back onto truncated string\n str = str2 + appendToEnd + str3;\n } else {\n // the string was truncated, so we append the appendToEnd String\n str = str2 + appendToEnd;\n }\n \n }\n \n return str;\n }", "protected void processKeyEvent(KeyEvent event) {\n if(event.getType() == KeyEvent.KeyReleased) return;\n \n //Paste\n if(event.getKeyCode().equals(KeyEvent.KeyCode.KEY_V) && event.isSystemPressed()) {\n insertText(OSUtil.getClipboardAsString());\n return;\n }\n\n //Copy\n if(event.getKeyCode().equals(KeyEvent.KeyCode.KEY_C) && event.isSystemPressed()) {\n if(selection.isActive() && selection.getLength() > 0) {\n OSUtil.setStringToClipboard(selection.getSelectedText());\n }\n return;\n }\n\n //Cut\n if(event.getKeyCode().equals(KeyEvent.KeyCode.KEY_X) && event.isSystemPressed()) {\n if(selection.isActive() && selection.getLength() > 0) {\n OSUtil.setStringToClipboard(selection.getSelectedText());\n insertText(\"\");\n }\n return;\n }\n\n //Enter\n if(allowMultiLine && event.getKeyCode() == KeyEvent.KeyCode.KEY_ENTER) {\n insertText(\"\\n\");\n return;\n }\n\n //backspace and delete\n boolean bs = event.getKeyCode() == KeyEvent.KeyCode.KEY_BACKSPACE;\n boolean del = event.getKeyCode() == KeyEvent.KeyCode.KEY_DELETE;\n if( bs || del) {\n\n //if backspace and at start, do nothing\n if(bs && cursor.getRow() == 0 && cursor.getCol()==0) return;\n //if delete and at end, do nothing\n if(del && cursor.atEndOfText()) {\n return;\n }\n\n //if text is empty do nothing\n String t = getText();\n if(t.length() == 0) return;\n\n if(selection.isActive()) {\n String[] parts = cursor.splitSelectedText();\n setText(parts[0]+parts[2]);\n cursor.setIndex(parts[0].length());\n selection.clear();\n } else {\n //split, then remove text in the middle\n int splitPoint = cursor.getIndex();\n int altSplitPoint = cursor.rowColToIndex(cursor.getRow(),cursor.getCol());\n String[] parts = cursor.splitText(splitPoint);\n if(del) {\n parts[1] = parts[1].substring(1);\n }\n if(bs) {\n parts[0] = parts[0].substring(0,cursor.getIndex()-1);\n }\n setText(parts[0]+parts[1]);\n if(bs) {\n cursor.moveLeft(1);\n }\n }\n return;\n }\n\n //left arrow\n if(event.getKeyCode() == KeyEvent.KeyCode.KEY_LEFT_ARROW) {\n if(event.isShiftPressed()) {\n if(!selection.isActive()) {\n selection.clear();\n selection.setStart(cursor.getIndex());\n selection.setEnd(cursor.getIndex());\n }\n //extend selection only if this wouldn't make us wrap backward\n if(!cursor.atStartOfLine()) {\n selection.setEnd(selection.getEnd()-1);\n }\n } else {\n selection.clear();\n }\n cursor.moveLeft(1);\n setDrawingDirty();\n return;\n }\n\n //right arrow\n if(event.getKeyCode() == KeyEvent.KeyCode.KEY_RIGHT_ARROW) {\n if(event.isShiftPressed()) {\n if(!selection.isActive()) {\n selection.clear();\n selection.setStart(cursor.getIndex());\n selection.setEnd(cursor.getIndex());\n }\n //extend selection only it this wouldn't make us wrap forward\n if(!cursor.atEndOfLine()) {\n selection.setEnd(selection.getEnd()+1);\n }\n } else {\n selection.clear();\n }\n cursor.moveRight(1);\n setDrawingDirty();\n }\n\n //up arrow\n if(event.getKeyCode() == KeyEvent.KeyCode.KEY_UP_ARROW) {\n if(allowMultiLine) {\n cursor.moveUp(1);\n } else {\n if(event.isShiftPressed()) {\n if(!selection.isActive()) {\n selection.clear();\n selection.setStart(0);\n selection.setEnd(cursor.getIndex());\n } else {\n selection.setEnd(0);\n }\n }\n cursor.moveStart();\n }\n setDrawingDirty();\n }\n\n if(event.getKeyCode() == KeyEvent.KeyCode.KEY_DOWN_ARROW) {\n if(allowMultiLine) {\n cursor.moveDown(1);\n } else {\n if(event.isShiftPressed()) {\n if(!selection.isActive()) {\n selection.clear();\n selection.setStart(cursor.getIndex());\n selection.setEnd(getText().length());\n } else {\n selection.setEnd(getText().length());\n }\n }\n cursor.moveEnd();\n }\n setDrawingDirty();\n }\n\n if(event.getKeyCode() == KeyEvent.KeyCode.KEY_TAB) {\n if(event.isShiftPressed()) {\n Core.getShared().getFocusManager().gotoPrevFocusableNode();\n } else {\n Core.getShared().getFocusManager().gotoNextFocusableNode();\n }\n }\n\n}", "public static String cutEquidistant(String origin, String separator,int max,String cutter,String start, String end){\n\t\tString s1 = new String();\n\t\tif (origin==null) return null;\n\t\tif (origin.length() < max) return origin;\n\t\t\n\t\tString trnc = origin;\n\t\twhile (trnc.length()+start.length()>max){\n\t\t\tString part = trnc.substring(0, Math.min(max,trnc.length()));\n\t\t\tif (part.substring(1,part.length()).contains(separator))\n\t\t\t\tpart = part.substring(0, part.lastIndexOf(separator));\n\t\t\t\n\t\t\ttrnc = trnc.substring(part.length(),trnc.length());\n\t\t\ts1 = s1.concat(part).concat(cutter);\n\t\t}\n\t\treturn start+s1.concat(trnc)+end;\n\t}", "public void sug() {\n\r\n texttt.addMouseListener( new MouseAdapter()\r\n {\r\n public void mouseClicked(MouseEvent e)\r\n {\r\n if ( SwingUtilities.isLeftMouseButton(e) )\r\n {\r\n try\r\n {\r\n int offset = texttt.viewToModel( e.getPoint() );\r\n System.out.println( texttt.modelToView( offset ) );\r\n int start = Utilities.getWordStart(texttt, offset);\r\n int end = Utilities.getWordEnd(texttt, offset);\r\n String word = texttt.getDocument().getText(start, end-start);\r\n System.out.println( \"Selected word: \" + word);\r\n \r\n boolean trouver = false;\r\n \t\t\t\tfor(int i = 0; i < dictionnaire.length; i++) {\r\n \t\t\t\t\tif(word.equalsIgnoreCase(dictionnaire[i])) {\r\n \t\t\t\t\t\ttrouver = true;\r\n \t\t\t\t\t}\r\n \t\t\t\t}\r\n \t\t\t\t//Si le mot est inconnu, on affiche les cinq plus proches suggestions en distance.\r\n \t\t\t\tif(trouver == false) {\r\n \t\t\t\t\tint suggestions[][] = new int[dictionnaire.length][2];\r\n \t\t\t\t\tfor(int i = 0; i < dictionnaire.length; i++) {\r\n \t\t\t\t\t\tsuggestions[i][0] = i;\r\n \t\t\t\t\t\tsuggestions[i][1] = distance(word, dictionnaire[i]);\r\n \t\t\t\t\t}\r\n \t\t\t\t\tArrays.sort(suggestions, (a, b) -> Integer.compare(a[1], b[1]));\r\n \t\t\t\t\tJPopupMenu popup = new JPopupMenu();\r\n \t\t\t\t\tfor(int i = 0; i < 5; i++) {\r\n \t\t\t\t\t\tJMenuItem suggestion = new JMenuItem(\"\" + dictionnaire[suggestions[i][0]]);\r\n \t\t\t\t\t\tsuggestion.addActionListener(new Suggestion(suggestion, start, end));\r\n \t\t\t\t\t\tpopup.add(suggestion);\r\n \t\t\t\t\t}\r\n \t\t\t\t\tpopup.show(texttt, e.getX(), e.getY());\r\n \t\t\t\t}\r\n \t\t\t\t int rowStart = Utilities.getRowStart(texttt, offset);\r\n int rowEnd = Utilities.getRowEnd(texttt, offset);\r\n System.out.println( \"Row start offset: \" + rowStart );\r\n System.out.println( \"Row end offset: \" + rowEnd );\r\n texttt.select(rowStart, rowEnd);\r\n \t\t\t}\r\n \t\t\tcatch(BadLocationException e1) {\r\n \t\t\t\tSystem.err.println(\"On ne peut pas lire le texte à l'index indiqué.\");\r\n \t\t\t}\r\n \t\t}\r\n } \r\n });\r\n\r\ntexttt.addCaretListener( new CaretListener(){\r\n public void caretUpdate(CaretEvent e)\r\n {\r\n int caretPosition = texttt.getCaretPosition();\r\n Element root = texttt.getDocument().getDefaultRootElement();\r\n int row = root.getElementIndex( caretPosition );\r\n int column = caretPosition - root.getElement( row ).getStartOffset();\r\n System.out.println( \"Row : \" + ( row + 1 ) );\r\n System.out.println( \"Column: \" + ( column + 1 ) );\r\n }\r\n });\r\n\t\r\n\r\ntexttt.addKeyListener( new KeyAdapter()\r\n {\r\n public void keyPressed(KeyEvent e)\r\n {\r\n System.out.println( texttt.getDocument().getDefaultRootElement().getElementCount() );\r\n }\r\n });\r\n \r\n \r\n }", "private void drawText(Canvas canvas, char[] src, int index, int count, float offX, float offY){\n int end = index + count;\n int st = index;\n for(int i = index;i < end;i++) {\n if(src[i] == '\\t') {\n canvas.drawText(src,st,i - st,offX,offY,mPaint);\n offX = offX + measureText(src,st,i - st + 1);\n st = i + 1;\n }\n }\n if(st < end) {\n canvas.drawText(src,st,end - st,offX,offY,mPaint);\n }\n }", "private CutOper(CutOper orig) {\n isUndo = !orig.isUndo;\n oppOper = orig;\n\n this.itemSlots = oppOper.itemSlots;\n // construct copy of modified items\n this.items = new ObjArray(Editor.getItems(), itemSlots, true);\n\n // save clipboard\n this.savedClipboard = Editor.getClipboard();\n }", "public static void main(String[] args) {\n\n String text= \"merhaba arkadaslar \";\n System.out.println( \"1. bolum =\" + text .substring(1,5));// 1 nolu indexten 5 e kadar. 5 dahil degil\n System.out.println(\"2. bolum =\"+ text.substring(0,3));\n System.out.println(\"3. bolum =\"+ text.substring(4));// verilen indexten sonun akadar al\n\n String strAlinan= text.substring(0,3);\n\n\n\n\n\n }", "private static boolean isCut(Spreadsheet ss) {\r\n \t\treturn Boolean.valueOf( (Boolean)ss.getAttribute(KEY_IS_CUT) ); //if attr is null return false\r\n \t}", "@Override\n public boolean onTextContextMenuItem(int id) {\n if(id != android.R.id.paste || formattingAllowed){\n return super.onTextContextMenuItem(id);\n }\n\n // if its paste and formatting not allowed\n boolean proceeded;\n if(VERSION.SDK_INT >= 23) {\n proceeded = super.onTextContextMenuItem(android.R.id.pasteAsPlainText);\n }else {\n proceeded = super.onTextContextMenuItem(id);\n if (proceeded && getText() != null) {\n // rewrite with plain text so formatting is lost\n setText(getText().toString());\n setSelection(getText().length());\n }\n }\n return proceeded;\n }", "public static void main(String[] args) {\n String str = \"This is text\";\n\n // Returns the substring from index 3 to the end of string.\n String substr = str.substring(3);\n\n System.out.println(\"- substring(3)=\" + substr);\n\n // Returns the substring from index 2 to index 7.\n substr = str.substring(2, 7);\n\n System.out.println(\"- substring(2, 7) =\" + substr);\n\t}", "public void Croppedimage(CropImage.ActivityResult result, ImageView iv, EditText et )\n {\n Uri resultUri = null; // get image uri\n if (result != null) {\n resultUri = result.getUri();\n }\n\n\n //set image to image view\n iv.setImageURI(resultUri);\n\n\n //get drawable bitmap for text recognition\n BitmapDrawable bitmapDrawable = (BitmapDrawable) iv.getDrawable();\n\n Bitmap bitmap = bitmapDrawable.getBitmap();\n\n TextRecognizer recognizer = new TextRecognizer.Builder(getApplicationContext()).build();\n\n if(!recognizer.isOperational())\n {\n Toast.makeText(this, \"Error No Text To Recognize\", Toast.LENGTH_LONG).show();\n }\n else\n {\n Frame frame = new Frame.Builder().setBitmap(bitmap).build();\n SparseArray<TextBlock> items = recognizer.detect(frame);\n StringBuilder ab = new StringBuilder();\n\n //get text from ab until there is no text\n for(int i = 0 ; i < items.size(); i++)\n {\n TextBlock myItem = items.valueAt(i);\n ab.append(myItem.getValue());\n\n }\n\n //set text to edit text\n et.setText(ab.toString());\n }\n\n }", "public static String lcut(String str, String sep)\r\n {\r\n if(isEmpty(str))\r\n return \"\";\r\n if(str.startsWith(sep))\r\n return str.substring(sep.length(), str.length());\r\n return str;\r\n }", "public static String customTextFilter(BufferedImage img, String txt) {\n\n int newHeight = img.getHeight() / 200;\n int newWidth = img.getWidth() / 200;\n String html = \"\";\n int aux = 0;\n\n for (int i = 0; i < 200; i++) {\n if (i > 0) {\n html += \"\\n<br>\\n\";\n }\n for (int j = 0; j < 200; j++) {\n if (aux == txt.length()) {\n html += \"<b>&nbsp</b>\";\n aux = 0;\n } else {\n Color c = regionAvgColor(j * newWidth, (j * newWidth) + newWidth,\n i * newHeight, (i * newHeight) + newHeight, newHeight,\n newWidth, img);\n html += \"<b style='color:rgb(\" + c.getRed() + \",\"\n + c.getGreen() + \",\" + c.getBlue() + \");'>\"\n + txt.substring(aux, aux + 1) + \"</b>\";\n aux++;\n }\n }\n }\n String style = \"body{\\nfont-size: 15px\\n}\";\n String title = \"Imagen Texto\";\n int styleIndex = HTML.indexOf(\"?S\"), titleIndex = HTML.indexOf(\"?T\"),\n bodyIndex = HTML.indexOf(\"?B\");\n String htmlFile = HTML.substring(0, styleIndex) + style;\n htmlFile += HTML.substring(styleIndex + 2, titleIndex) + title;\n htmlFile += HTML.substring(titleIndex + 2, bodyIndex) + html;\n htmlFile += HTML.substring(bodyIndex + 2);\n return htmlFile;\n }", "protected void doTextOperation(IDocument doc, String actionID,\r\n TextReplaceResultSet resultSet) throws BadLocationException {\r\n int maxNbr = resultSet.getStartLine() + resultSet.getNumberOfLines();\r\n boolean removeTrailing;\r\n boolean convertEnabled;\r\n boolean tabsToSpaces;\r\n boolean addLineEnabled;\r\n CombinedPreferences prefs = getCombinedPreferences();\r\n boolean replaceAllTabs = isReplaceAllTabsEnabled(prefs);\r\n boolean replaceAllSpaces = isReplaceAllSpacesEnabled(prefs);\r\n boolean useModulo4Tabs = prefs.getBoolean(IAnyEditConstants.USE_MODULO_CALCULATION_FOR_TABS_REPLACE);\r\n\r\n boolean usedOnSave = isUsedOnSave();\r\n if (usedOnSave) {\r\n removeTrailing = isSaveAndTrimEnabled(prefs);\r\n tabsToSpaces = isDefaultTabToSpaces(prefs);\r\n convertEnabled = isSaveAndConvertEnabled(prefs);\r\n addLineEnabled = isSaveAndAddLineEnabled(prefs);\r\n } else {\r\n removeTrailing = isRemoveTrailingSpaceEnabled(prefs);\r\n tabsToSpaces = actionID.startsWith(ACTION_ID_CONVERT_TABS);\r\n convertEnabled = true;\r\n addLineEnabled = isAddLineEnabled(prefs);\r\n }\r\n\r\n int tabWidth = getTabWidth(getFile(), prefs);\r\n\r\n StringBuffer sb = new StringBuffer();\r\n if (!tabsToSpaces && tabWidth == 0) {\r\n // TODO: prevent division by zero - probably on another place?\r\n tabWidth = 1;\r\n }\r\n String line;\r\n IRegion lineInfo;\r\n\r\n for (int i = resultSet.getStartLine(); i < maxNbr; i++) {\r\n lineInfo = doc.getLineInformation(i);\r\n // whole line text will be \"replaced\"\r\n int rangeToReplace = lineInfo.getLength();\r\n line = doc.get(lineInfo.getOffset(), rangeToReplace);\r\n if (line == null) {\r\n resultSet.add(null);\r\n continue;\r\n }\r\n sb.append(line);\r\n boolean changed;\r\n if (convertEnabled) {\r\n if (tabsToSpaces) {\r\n changed = TextUtil.convertTabsToSpaces(sb, tabWidth, removeTrailing,\r\n replaceAllTabs, useModulo4Tabs);\r\n } else {\r\n changed = TextUtil.convertSpacesToTabs(sb, tabWidth, removeTrailing,\r\n replaceAllSpaces);\r\n }\r\n } else {\r\n if (!usedOnSave || removeTrailing) {\r\n changed = TextUtil.removeTrailingSpace(sb);\r\n } else {\r\n changed = false;\r\n }\r\n }\r\n\r\n // on the last NON empty line add new line character(s)\r\n if (addLineEnabled && i == maxNbr - 1 && sb.length() != 0) {\r\n String terminator;\r\n if(i - 1 >= 0) {\r\n // use same terminator as line before\r\n terminator = doc.getLineDelimiter(i - 1);\r\n } else {\r\n // use system one, which is not so good...\r\n terminator = System.getProperty(\"line.separator\", null);\r\n }\r\n if(terminator != null) {\r\n sb.append(terminator);\r\n changed = true;\r\n }\r\n }\r\n\r\n if (changed) {\r\n LineReplaceResult result = new LineReplaceResult();\r\n result.rangeToReplace = rangeToReplace;\r\n result.textToReplace = sb.toString();\r\n resultSet.add(result);\r\n } else {\r\n resultSet.add(null);\r\n }\r\n // cleanup\r\n sb.setLength(0);\r\n }\r\n }", "public void substring(LinkedList target, LinkedList LinkedList2, int start, int span) {\n\t\t\n\t}", "private void doTestStyleWhenCaretIsInsideText()\n {\n rta.setHTML(\"ac\");\n\n Range range = ((Document) rta.getDocument()).createRange();\n range.setStart(getBody().getFirstChild(), 1);\n range.collapse(true);\n select(range);\n\n assertFalse(executable.isExecuted());\n assertTrue(executable.execute(null));\n assertTrue(executable.isExecuted());\n insertHTML(\"b\");\n assertTrue(executable.isExecuted());\n assertEquals(\"a<em>b</em>c\", rta.getHTML().toLowerCase());\n assertTrue(executable.execute(null));\n assertFalse(executable.isExecuted());\n assertEquals(\"a<em></em>b<em></em>c\", rta.getHTML().toLowerCase());\n }", "static String trimTo(String text, int length) {\n if (text.length() < length) {\n return text;\n } else {\n return text.substring(\n 0,\n length\n ) + \"...\";\n }\n }", "private String clean(String target, String command) {\n String payload = target;\n int modifiedtimes = 0;\n for (int i = 0; i < target.length() - modifiedtimes; i++) {\n if (payload.charAt(i) == Character.LINE_SEPARATOR || payload.charAt(i) == '>' || payload.charAt(i) == Character.SPACE_SEPARATOR) {\n payload = removeCh(payload, i);\n i--;\n modifiedtimes++;\n // System.out.println(\"Current payload L: \"+payload.length()+\" with index:\"+ i+\" and ENDPOINT: \"+(target.length()-modifiedtimes));\n }\n\n }\n // System.out.println(\"CLEAN: payload before headercut is \"+payload.length());\n String headercut_payload = \"\";\n int LastHeaderChar_index = command.length() - 1 - 1; // -1 pentru '\\n' si -1 pentru ca incepe numaratoarea de la 0\n for (int i = LastHeaderChar_index; i < payload.length(); i++) {\n headercut_payload = headercut_payload + payload.charAt(i);\n }\n\n // System.out.println(\"CLEAN: headercut_payload leght is \"+headercut_payload.length()+\" before trim\");\n headercut_payload.trim();\n\n return headercut_payload;\n }", "private static String cutTextAtLastSpace(String lastTxt) {\n\t\tint idx = lastTxt.lastIndexOf(\" \");\n\t\t// if no space is found, cut on length\n\t\tif (idx > 0) {\n\t\t\tlastTxt = lastTxt.substring(0, idx);\n\t\t}\n\t\treturn lastTxt;\n\t}", "public void doCopy() {\n if (renderPieces.size() == 0) {\n System.out.println(\"Nothing is selected for copy operation.\");\n return;\n }\n StringBuffer sb = new StringBuffer();\n\n textBuffer.renderInit();\n Text text;\n if (!reversed) {\n while ((text = textBuffer.getTextToRender()) != null) {\n sb.append(text.getText());\n }\n } else {\n while ((text = textBuffer.getPreToRender()) != null) {\n sb.append(text);\n }\n String reversedText = sb.toString();\n sb = new StringBuffer();\n for (int i = reversedText.length()-1; i >= 0; i -= 1) {\n sb.append(reversedText.charAt(i));\n }\n }\n Clipboard clipboard = Clipboard.getSystemClipboard();\n ClipboardContent content = new ClipboardContent();\n content.putString(sb.toString());\n clipboard.setContent(content);\n System.out.println(\"Copy succeed.\");\n }", "String text();", "private void doTestStyleWhenCaretIsBeforeText()\n {\n rta.setHTML(\"d\");\n\n Range range = ((Document) rta.getDocument()).createRange();\n range.setStart(getBody().getFirstChild(), 0);\n range.collapse(true);\n select(range);\n\n assertFalse(executable.isExecuted());\n assertTrue(executable.execute(null));\n assertTrue(executable.isExecuted());\n assertTrue(executable.execute(null));\n assertFalse(executable.isExecuted());\n insertHTML(\"c\");\n assertFalse(executable.isExecuted());\n assertEquals(\"cd\", rta.getHTML().toLowerCase());\n }", "@Test\n public void testSplitCommand() throws Exception {\n\n canvasUtils.splitCommand(command, canvas);\n }", "@Override\n public String findIn(CopierData data) {\n return text;\n }", "private static void DoTextInput(TextEditor This, String textData, boolean isInsertKeyToggled, boolean acceptControlCharacters) \r\n {\r\n // Hide the mouse cursor on user input. \r\n HideCursor(This); \r\n\r\n // Remove control characters. Note that this is not included into _FilterText, \r\n // because we want such kind of filtering only for real input,\r\n // not for copy/paste.\r\n if (!acceptControlCharacters)\r\n { \r\n for (int i = 0; i < textData.Length; i++)\r\n { \r\n if (Char.IsControl(textData[i])) \r\n {\r\n textData = textData.Remove(i--, 1); // decrement i to compensate for character removal \r\n }\r\n }\r\n }\r\n\r\n String filteredText = This._FilterText(textData, This.Selection);\r\n if (filteredText.Length == 0) \r\n { \r\n return;\r\n } \r\n\r\n TextEditorTyping.OpenTypingUndoUnit(This);\r\n\r\n UndoCloseAction closeAction = UndoCloseAction.Rollback; \r\n\r\n try \r\n { \r\n using (This.Selection.DeclareChangeBlock())\r\n { \r\n This.Selection.ApplyTypingHeuristics(This.AllowOvertype && This._OvertypeMode && filteredText != \"\\t\");\r\n\r\n This.SetSelectedText(filteredText, InputLanguageManager.Current.CurrentInputLanguage);\r\n\r\n // Create caret position normalized backward to keep formatting of a character just typed\r\n ITextPointer caretPosition = This.Selection.End.CreatePointer(LogicalDirection.Backward); \r\n\r\n // Set selection at the end of input content\r\n This.Selection.SetCaretToPosition(caretPosition, LogicalDirection.Backward, /*allowStopAtLineEnd:*/true, /*allowStopNearSpace:*/true); \r\n // Note: Using explicit backward orientation we keep formatting with\r\n // a previous character during typing.\r\n\r\n closeAction = UndoCloseAction.Commit; \r\n }\r\n } \r\n finally \r\n {\r\n TextEditorTyping.CloseTypingUndoUnit(This, closeAction); \r\n }\r\n }", "public void testStyleWhenCaretIsInsideText()\n {\n deferTest(new Command()\n {\n public void execute()\n {\n doTestStyleWhenCaretIsInsideText();\n }\n });\n }", "protected final void removeChar()\n\t{\n\t\tif (showCaret && displayingCaret)\n\t\t{\n\t\t\tif (text.getText().length() > 1) text.setText(text.getText().substring(0, text.getText().length() - 2) + \"|\");\n\t\t}\n\t\telse if (text.getText().length() > 1) text.setText(text.getText().substring(0, text.getText().length() - 2) + \" \");\n\t}", "public static String getWrappedText(String text, int offset) {\r\n StringBuffer wrappedText = new StringBuffer();\r\n\r\n String currentString = null;\r\n int currentStart = 0;\r\n int strLen = 0;\r\n int len = 0;\r\n\r\n while (currentStart < text.length() && text.length() > offset) {\r\n currentString = text.substring(currentStart, (currentStart + offset));\r\n strLen += currentString.length() + len;\r\n wrappedText.append(currentString);\r\n\r\n int index = text.indexOf(\" \", (currentStart + offset));\r\n if (index == -1) {\r\n index = text.indexOf(\".\", (currentStart + offset));\r\n }\r\n if (index == -1) {\r\n index = text.indexOf(\",\", (currentStart + offset));\r\n }\r\n if (index != -1) {\r\n len = index - strLen;\r\n currentString = text.substring((currentStart + offset), (currentStart + offset + len));\r\n wrappedText.append(currentString);\r\n wrappedText.append(\"<BR>\");\r\n } else {\r\n if (currentStart == 0) {\r\n currentStart = offset;\r\n }\r\n wrappedText.append(text.substring(currentStart));\r\n return wrappedText.toString();\r\n }\r\n\r\n currentStart += offset + len;\r\n if ((currentStart + offset + len) > text.length()) {\r\n break;\r\n }\r\n }\r\n wrappedText.append(text.substring(currentStart));\r\n return wrappedText.toString();\r\n }", "public String truncateSentence(String s, int k) {\n int j = 0;\n String res = \"\";\n for (int i = 0; i < s.length(); i++) {\n if (s.charAt(i) == ' ') {\n j++;\n }\n if (j == k) {\n res = s.substring(0, i);\n break;\n }\n }\n if (j < k) {\n return s;\n }\n return res;\n }", "public void renderTagCloud(List<Tag> tags, Text text, Rectangle2D renderArea) {\n List<TextLine> textLines = new ArrayList<TextLine>();\n\n BufferedImage image = new BufferedImage(1, 1, BufferedImage.TYPE_INT_RGB);\n Graphics2D g = image.createGraphics();\n String fontFamily = text.getFontFamily();\n int fontSize = (int) text.getFontSize();\n Font font = new Font(fontFamily, Font.PLAIN, fontSize);\n FontMetrics fm = g.getFontMetrics(font);\n Point2D currentPosition = new Point2D.Double(renderArea.getX(), renderArea.getY());\n TextLine textLine = null;\n double minPadding = fm.getHeight();\n\n try {\n for (int i = 0; i < tags.size(); i++) {\n Tag tag = tags.get(i);\n String value = tag.getValue();\n Rectangle2D rect = fm.getStringBounds(value, g);\n // create new textline if not exists\n if (i == 0) {\n textLine = new TextLine();\n textLines.add(textLine);\n }\n if (currentPosition.getX() + rect.getWidth() + minPadding >= (renderArea.getX() + renderArea.getWidth())) {\n currentPosition.setLocation(renderArea.getX(),\n currentPosition.getY() + fm.getHeight() * 1.2);\n if ((currentPosition.getY() + fm.getHeight()) >= (renderArea.getY() + renderArea.getHeight()))\n break;\n textLine = new TextLine();\n textLines.add(textLine);\n }\n TSpan tspan = new TSpan(currentPosition.getX(),\n currentPosition.getY() + Math.abs(rect.getY()),\n rect.getWidth(),\n rect.getHeight(),\n fontFamily, fontSize, value);\n currentPosition.setLocation(currentPosition.getX() + rect.getWidth() + minPadding,\n currentPosition.getY());\n textLine.getTspans().add(tspan);\n text.getTspans().add(tspan);\n }\n\n for (TextLine line : textLines) {\n if (line.getTspans().size() > 1) {\n TSpan span = line.getTspans().get(line.getTspans().size() - 1);\n double additionalXPadding = ((renderArea.getX() + renderArea.getWidth()) - (span.getX() + span.getWidth())) / (double) (line.getTspans().size());\n for (int i = 0; i < line.getTspans().size(); i++) {\n TSpan tSpan = line.getTspans().get(i);\n if (i != 0) {\n tSpan.setX(tSpan.getX() + ((i + 1) * additionalXPadding));\n }\n }\n }\n }\n // remove single entry text line\n if (textLines.get(textLines.size() - 1).getTspans().size() == 1) {\n text.getTspans().remove(textLines.get(textLines.size() - 1).getTspans().get(0));\n textLines.remove(textLines.size() - 1);\n }\n\n }\n finally {\n g.dispose();\n }\n }", "public void doCut ( RunData data)\n\t{\n\t\t// get the state object\n\t\tSessionState state = ((JetspeedRunData)data).getPortletSessionState (((JetspeedRunData)data).getJs_peid ());\n\n\t\tString[] cutItems = data.getParameters ().getStrings (\"selectedMembers\");\n\t\tif (cutItems == null)\n\t\t{\n\t\t\t// there is no resource selected, show the alert message to the user\n\t\t\taddAlert(state, rb.getString(\"choosefile5\"));\n\t\t\tstate.setAttribute (STATE_MODE, MODE_LIST);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tVector cutIdsVector = new Vector ();\n\t\t\tString nonCutIds = NULL_STRING;\n\n\t\t\tString cutId = NULL_STRING;\n\t\t\tfor (int i = 0; i < cutItems.length; i++)\n\t\t\t{\n\t\t\t\tcutId = cutItems[i];\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tResourceProperties properties = ContentHostingService.getProperties (cutId);\n\t\t\t\t\tif (properties.getProperty (ResourceProperties.PROP_IS_COLLECTION).equals (Boolean.TRUE.toString()))\n\t\t\t\t\t{\n\t\t\t\t\t\tString alert = (String) state.getAttribute(STATE_MESSAGE);\n\t\t\t\t\t\tif (alert == null || ((alert != null) && (alert.indexOf(RESOURCE_INVALID_OPERATION_ON_COLLECTION_STRING) == -1)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\taddAlert(state, RESOURCE_INVALID_OPERATION_ON_COLLECTION_STRING);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tif (ContentHostingService.allowRemoveResource (cutId))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcutIdsVector.add (cutId);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tnonCutIds = nonCutIds + \" \" + properties.getProperty (ResourceProperties.PROP_DISPLAY_NAME) + \"; \";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch (PermissionException e)\n\t\t\t\t{\n\t\t\t\t\taddAlert(state, rb.getString(\"notpermis15\"));\n\t\t\t\t}\n\t\t\t\tcatch (IdUnusedException e)\n\t\t\t\t{\n\t\t\t\t\taddAlert(state,RESOURCE_NOT_EXIST_STRING);\n\t\t\t\t}\t// try-catch\n\t\t\t}\n\n\t\t\tif (state.getAttribute(STATE_MESSAGE) == null)\n\t\t\t{\n\t\t\t\tif (nonCutIds.length ()>0)\n\t\t\t\t{\n\t\t\t\t\taddAlert(state, rb.getString(\"notpermis16\") +\" \" + nonCutIds);\n\t\t\t\t}\n\n\t\t\t\tif (cutIdsVector.size ()>0)\n\t\t\t\t{\n\t\t\t\t\tstate.setAttribute (STATE_CUT_FLAG, Boolean.TRUE.toString());\n\t\t\t\t\tif (((String) state.getAttribute (STATE_SELECT_ALL_FLAG)).equals (Boolean.TRUE.toString()))\n\t\t\t\t\t{\n\t\t\t\t\t\tstate.setAttribute (STATE_SELECT_ALL_FLAG, Boolean.FALSE.toString());\n\t\t\t\t\t}\n\n\t\t\t\t\tVector copiedIds = (Vector) state.getAttribute (STATE_COPIED_IDS);\n\t\t\t\t\tfor (int i = 0; i < cutIdsVector.size (); i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tString currentId = (String) cutIdsVector.elementAt (i);\n\t\t\t\t\t\tif ( copiedIds.contains (currentId))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcopiedIds.remove (currentId);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (copiedIds.size ()==0)\n\t\t\t\t\t{\n\t\t\t\t\t\tstate.setAttribute (STATE_COPY_FLAG, Boolean.FALSE.toString());\n\t\t\t\t\t}\n\n\t\t\t\t\tstate.setAttribute (STATE_COPIED_IDS, copiedIds);\n\n\t\t\t\t\tstate.setAttribute (STATE_CUT_IDS, cutIdsVector);\n\t\t\t\t}\n\t\t\t}\n\t\t}\t// if-else\n\n\t}", "protected void slice_to(StringBuilder s)\n {\n\tslice_check();\n\ts.replace(0, s.length(), current.substring(bra, ket));\n }", "public void pasteText(){\n try{\n CharSequence text = mClipboardManager.getTextFromClipboard();\n if(text != null && mConnection != null){\n mConnection.commitText(text, 0);\n }\n }catch(Exception e){\n e.printStackTrace();\n Toast.makeText(getContext(),e.toString(),Toast.LENGTH_SHORT).show();\n }\n }" ]
[ "0.7799008", "0.7625799", "0.6388251", "0.61186916", "0.60666215", "0.5999128", "0.5866894", "0.58488727", "0.56059325", "0.5589746", "0.5571445", "0.54925215", "0.54467887", "0.53462666", "0.53219604", "0.53181654", "0.5296018", "0.529069", "0.52852154", "0.52217287", "0.5203277", "0.51978445", "0.5197119", "0.5188807", "0.5116332", "0.511094", "0.5106248", "0.51039606", "0.5098772", "0.5062162", "0.5049527", "0.50393224", "0.50143987", "0.5008088", "0.4987856", "0.49863532", "0.49687326", "0.49559215", "0.4954237", "0.49459493", "0.49438435", "0.49329266", "0.49314693", "0.49240097", "0.49209136", "0.49155894", "0.49055412", "0.48971206", "0.48784992", "0.48706463", "0.48689243", "0.4866689", "0.4838417", "0.4835547", "0.48354575", "0.48248756", "0.48162672", "0.48089948", "0.47946057", "0.479406", "0.47902748", "0.47775108", "0.47771502", "0.47734398", "0.47667772", "0.47613016", "0.47612512", "0.47580066", "0.47571632", "0.4753265", "0.47375956", "0.47283155", "0.4714722", "0.47082153", "0.47035983", "0.46998745", "0.46877027", "0.46874514", "0.46758652", "0.46643776", "0.46630758", "0.46593004", "0.46547782", "0.4653918", "0.4652786", "0.46521786", "0.46475703", "0.46468595", "0.46390438", "0.46377376", "0.4636022", "0.463534", "0.46345025", "0.46301252", "0.46281624", "0.4616363", "0.46112975", "0.4605093", "0.45926535", "0.4591206" ]
0.64087576
2
Method to call operation for paste text
public void paste() { cmd = new PasteCommand(editor); invoker = new MiniEditorInvoker(cmd); invoker.action(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void performPaste() {\n \t\ttext.paste();\n \t\tcheckSelection();\n \t\tcheckDeleteable();\n \t\tcheckSelectable();\n \t}", "public void pasteText(){\n try{\n CharSequence text = mClipboardManager.getTextFromClipboard();\n if(text != null && mConnection != null){\n mConnection.commitText(text, 0);\n }\n }catch(Exception e){\n e.printStackTrace();\n Toast.makeText(getContext(),e.toString(),Toast.LENGTH_SHORT).show();\n }\n }", "@Override\r\n\tpublic void paste() {\n\t\t\r\n\t}", "@Override\n\tpublic void editorPaste()\n\t{\n editorInsert(clipboard);\n\t\tSystem.out.println(\"DEBUG: performing Paste\") ;\n\t}", "@Override\n public void paste() {\n super.paste();\n pasteActionHandler.handle();\n }", "public void paste() {\n pasteClipboard(getToolkit().getSystemClipboard());\n }", "public void onTextPaste()\n\t{\n\t\tif(onPasteListener != null)\n\t\t\tonPasteListener.onTextPasted(this);\n\t}", "public void copyText() {\n ((ClipboardManager) getActivity().getSystemService(\"clipboard\")).setPrimaryClip(ClipData.newPlainText(\"textFromCoolapk\", this.mBinding.text.getText()));\n Toast.show(getActivity(), \"结果已复制\");\n }", "public void paste() {\n\t\t\tpaste(grid);\n\t\t}", "public void onTextCopy()\n\t{\n\t}", "private void directToClipboard(String text) {\n\t\tthis.systemClipboard.setContents(new StringSelection(text), null);\n\t}", "public void copyText(){\n try{\n if(mCursor.isSelected()){\n mClipboardManager.setTextToClipboard(getText().subContent(mCursor.getLeftLine(),\n mCursor.getLeftColumn(),\n mCursor.getRightLine(),\n mCursor.getRightColumn()).toString());\n }\n }catch(Exception e){\n e.printStackTrace();\n Toast.makeText(getContext(),e.toString(),Toast.LENGTH_SHORT).show();\n }\n }", "@Override\n\tpublic void editorCopy()\n\t{\n\t\tclipboard = stringBuffer.substring(selectionStart,selectionEnd);\n\n\t\tSystem.out.println(\"DEBUG: performing Copy\" + clipboard) ;\n\t}", "@Override\n public void paste() {\n //if the cursor position is not at the start of a new line add the new line symbol before the pasted text\n if (!(keywordTextArea.getDocument().getLength()==0) && !keywordTextArea.getText().endsWith(\"\\n\")) {\n keywordTextArea.append(System.getProperty(\"line.separator\"));\n }\n keywordTextArea.setCaretPosition(keywordTextArea.getDocument().getLength());\n super.paste(); \n }", "private void PasteEmailActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_PasteEmailActionPerformed\n // TODO add your handling code here:\n textArea.paste();\n }", "public void paste() {\r\n getToolkit().beep();\r\n }", "private void copyToClipboard(String text)\n {\n Clipboard cb = Toolkit.getDefaultToolkit().getSystemClipboard();\n cb.setContents(new StringSelection(text), null);\n }", "@Source(\"gr/grnet/pithos/resources/editpaste.png\")\n ImageResource paste();", "public void performCopy() {\n \t\ttext.copy();\n \t}", "private void handleCopyingTextToClipboard(String text){\n Intent intent = new Intent(getContext(), ClipboardEventHandler.class);\n intent.putExtra(\"action\", \"switch\");\n intent.putExtra(\"content\", text);\n\n getContext().startService(intent);\n\n Snackbar.make(getView(), getString(R.string.COPIED_BEGINNIG) + \" \" +\"\\\"\"+ text +\"\\\"\" + \" \" + getString(R.string.COPIED_END), Snackbar.LENGTH_SHORT).show();\n }", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tClipboard clipboard = Toolkit.getDefaultToolkit().getSystemClipboard();\r\n\t\t\t\tString copyString = ta_content.getText().toString();\r\n\t\t\t\tif (copyString != null) {\r\n\t\t\t\t\tStringSelection contents = new StringSelection(copyString);\r\n\t\t\t\t\tclipboard.setContents(contents, null);\r\n\t\t\t\t}\r\n\t\t\t}", "public void doHandlepaste ( RunData data)\n\t{\n\t\tParameterParser params = data.getParameters ();\n\n\t\tSessionState state = ((JetspeedRunData)data).getPortletSessionState (((JetspeedRunData)data).getJs_peid ());\n\n\t\t// get the cut items to be pasted\n\t\tVector pasteCutItems = (Vector) state.getAttribute (STATE_CUT_IDS);\n\n\t\t// get the copied items to be pasted\n\t\tVector pasteCopiedItems = (Vector) state.getAttribute (STATE_COPIED_IDS);\n\n\t\tString collectionId = params.getString (\"collectionId\");\n\t\tString originalDisplayName = NULL_STRING;\n\n\t\t// handle cut and paste\n\t\tif (((String) state.getAttribute (STATE_CUT_FLAG)).equals (Boolean.TRUE.toString()))\n\t\t{\n\t\t\tfor (int i = 0; i < pasteCutItems.size (); i++)\n\t\t\t{\n\t\t\t\tString currentPasteCutItem = (String) pasteCutItems.get (i);\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tResourceProperties properties = ContentHostingService.getProperties (currentPasteCutItem);\n\n\t\t\t\t\toriginalDisplayName = properties.getPropertyFormatted (ResourceProperties.PROP_DISPLAY_NAME);\n\t\t\t\t\t/*\n\t\t\t\t\tif (Boolean.TRUE.toString().equals(properties.getProperty (ResourceProperties.PROP_IS_COLLECTION)))\n\t\t\t\t\t{\n\t\t\t\t\t\tString alert = (String) state.getAttribute(STATE_MESSAGE);\n\t\t\t\t\t\tif (alert == null || ((alert != null) && (alert.indexOf(RESOURCE_INVALID_OPERATION_ON_COLLECTION_STRING) == -1)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\taddAlert(state, RESOURCE_INVALID_OPERATION_ON_COLLECTION_STRING);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t*/\n\t\t\t\t\t\t// paste the resource\n\t\t\t\t\t\tContentResource resource = ContentHostingService.getResource (currentPasteCutItem);\n\t\t\t\t\t\tResourceProperties p = ContentHostingService.getProperties(currentPasteCutItem);\n\t\t\t\t\t\tString id = collectionId + Validator.escapeResourceName(p.getProperty(ResourceProperties.PROP_DISPLAY_NAME));\n\n\t\t\t\t\t\t// cut-paste to the same collection?\n\t\t\t\t\t\tboolean cutPasteSameCollection = false;\n\t\t\t\t\t\tString displayName = p.getProperty(ResourceProperties.PROP_DISPLAY_NAME);\n\n\t\t\t\t\t\t// till paste successfully or it fails\n\t\t\t\t\t\tResourcePropertiesEdit resourceProperties = ContentHostingService.newResourceProperties ();\n\t\t\t\t\t\t// add the properties of the pasted item\n\t\t\t\t\t\tIterator propertyNames = properties.getPropertyNames ();\n\t\t\t\t\t\twhile ( propertyNames.hasNext ())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tString propertyName = (String) propertyNames.next ();\n\t\t\t\t\t\t\tif (!properties.isLiveProperty (propertyName))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif (propertyName.equals (ResourceProperties.PROP_DISPLAY_NAME)&&(displayName.length ()>0))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tresourceProperties.addProperty (propertyName, displayName);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tresourceProperties.addProperty (propertyName, properties.getProperty (propertyName));\n\t\t\t\t\t\t\t\t}\t// if-else\n\t\t\t\t\t\t\t}\t// if\n\t\t\t\t\t\t}\t// while\n\n\t\t\t\t\t\ttry\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// paste the cutted resource to the new collection - no notification\n\t\t\t\t\t\t\tContentResource newResource = ContentHostingService.addResource (id, resource.getContentType (), resource.getContent (), resourceProperties, resource.getGroups(), NotificationService.NOTI_NONE);\n\t\t\t\t\t\t\tString uuid = ContentHostingService.getUuid(resource.getId());\n\t\t\t\t\t\t\tContentHostingService.setUuid(id, uuid);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcatch (InconsistentException e)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\taddAlert(state,RESOURCE_INVALID_TITLE_STRING);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcatch (OverQuotaException e)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\taddAlert(state, rb.getString(\"overquota\"));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcatch (IdInvalidException e)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\taddAlert(state, rb.getString(\"title\") + \" \" + e.getMessage ());\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcatch(ServerOverloadException e)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// this represents temporary unavailability of server's filesystem\n\t\t\t\t\t\t\t// for server configured to save resource body in filesystem\n\t\t\t\t\t\t\taddAlert(state, rb.getString(\"failed\"));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcatch (IdUsedException e)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// cut and paste to the same collection; stop adding new resource\n\t\t\t\t\t\t\tif (id.equals(currentPasteCutItem))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tcutPasteSameCollection = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\taddAlert(state, rb.getString(\"notaddreso\") + \" \" + id + rb.getString(\"used2\"));\n\t\t\t\t\t\t\t\t/*\n\t\t\t\t\t\t\t\t// pasted to the same folder as before; add \"Copy of \"/ \"copy (n) of\" to the id\n\t\t\t\t\t\t\t\tif (countNumber==1)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tdisplayName = DUPLICATE_STRING + p.getProperty(ResourceProperties.PROP_DISPLAY_NAME);\n\t\t\t\t\t\t\t\t\tid = collectionId + Validator.escapeResourceName(displayName);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tdisplayName = \"Copy (\" + countNumber + \") of \" + p.getProperty(ResourceProperties.PROP_DISPLAY_NAME);\n\t\t\t\t\t\t\t\t\tid = collectionId + Validator.escapeResourceName(displayName);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tcountNumber++;\n\t\t\t\t\t\t\t\t*/\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\t// try-catch\n\t\t\t\t\t\tcatch(RuntimeException e)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tlogger.debug(\"ResourcesAction.doHandlepaste ***** Unknown Exception ***** \" + e.getMessage());\n\t\t\t\t\t\t\taddAlert(state, rb.getString(\"failed\"));\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (!cutPasteSameCollection)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// remove the cutted resource\n\t\t\t\t\t\t\tContentHostingService.removeResource (currentPasteCutItem);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t// }\t// if-else\n\t\t\t\t}\n\t\t\t\tcatch (InUseException e)\n\t\t\t\t{\n\t\t\t\t\taddAlert(state, rb.getString(\"someone\") + \" \" + originalDisplayName + \". \");\n\t\t\t\t}\n\t\t\t\tcatch (PermissionException e)\n\t\t\t\t{\n\t\t\t\t\taddAlert(state, rb.getString(\"notpermis7\") + \" \" + originalDisplayName + \". \");\n\t\t\t\t}\n\t\t\t\tcatch (IdUnusedException e)\n\t\t\t\t{\n\t\t\t\t\taddAlert(state,RESOURCE_NOT_EXIST_STRING);\n\t\t\t\t}\n\t\t\t\tcatch (TypeException e)\n\t\t\t\t{\n\t\t\t\t\taddAlert(state, rb.getString(\"pasteitem\") + \" \" + originalDisplayName + \" \" + rb.getString(\"mismatch\"));\n\t\t\t\t}\t// try-catch\n\t\t\t\tcatch(RuntimeException e)\n\t\t\t\t{\n\t\t\t\t\tlogger.debug(\"ResourcesAction.doHandlepaste ***** Unknown Exception ***** \" + e.getMessage());\n\t\t\t\t\taddAlert(state, rb.getString(\"failed\"));\n\t\t\t\t}\n\n\t\t\t}\t// for\n\t\t}\t// cut\n\n\t\t// handling copy and paste\n\t\tif (Boolean.toString(true).equalsIgnoreCase((String) state.getAttribute (STATE_COPY_FLAG)))\n\t\t{\n\t\t\tfor (int i = 0; i < pasteCopiedItems.size (); i++)\n\t\t\t{\n\t\t\t\tString currentPasteCopiedItem = (String) pasteCopiedItems.get (i);\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tResourceProperties properties = ContentHostingService.getProperties (currentPasteCopiedItem);\n\t\t\t\t\toriginalDisplayName = properties.getPropertyFormatted (ResourceProperties.PROP_DISPLAY_NAME);\n\t\t\t\t\t// copy, cut and paste not operated on collections\n\t\t\t\t\tif (properties.getProperty (ResourceProperties.PROP_IS_COLLECTION).equals (Boolean.TRUE.toString()))\n\t\t\t\t\t{\n\t\t\t\t\t\tString alert = (String) state.getAttribute(STATE_MESSAGE);\n\t\t\t\t\t\tif (alert == null || ((alert != null) && (alert.indexOf(RESOURCE_INVALID_OPERATION_ON_COLLECTION_STRING) == -1)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\taddAlert(state, RESOURCE_INVALID_OPERATION_ON_COLLECTION_STRING);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t// paste the resource\n\t\t\t\t\t\tContentResource resource = ContentHostingService.getResource (currentPasteCopiedItem);\n\t\t\t\t\t\tResourceProperties p = ContentHostingService.getProperties(currentPasteCopiedItem);\n\t\t\t\t\t\tString displayName = DUPLICATE_STRING + p.getProperty(ResourceProperties.PROP_DISPLAY_NAME);\n\t\t\t\t\t\tString id = collectionId + Validator.escapeResourceName(displayName);\n\n\t\t\t\t\t\tResourcePropertiesEdit resourceProperties = ContentHostingService.newResourceProperties ();\n\n\t\t\t\t\t\t// add the properties of the pasted item\n\t\t\t\t\t\tIterator propertyNames = properties.getPropertyNames ();\n\t\t\t\t\t\twhile ( propertyNames.hasNext ())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tString propertyName = (String) propertyNames.next ();\n\t\t\t\t\t\t\tif (!properties.isLiveProperty (propertyName))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif (propertyName.equals (ResourceProperties.PROP_DISPLAY_NAME)&&(displayName.length ()>0))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tresourceProperties.addProperty (propertyName, displayName);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tresourceProperties.addProperty (propertyName, properties.getProperty (propertyName));\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttry\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// paste the copied resource to the new collection\n\t\t\t\t\t\t\tContentResource newResource = ContentHostingService.addResource (id, resource.getContentType (), resource.getContent (), resourceProperties, resource.getGroups(), NotificationService.NOTI_NONE);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcatch (InconsistentException e)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\taddAlert(state,RESOURCE_INVALID_TITLE_STRING);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcatch (IdInvalidException e)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\taddAlert(state,rb.getString(\"title\") + \" \" + e.getMessage ());\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcatch (OverQuotaException e)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\taddAlert(state, rb.getString(\"overquota\"));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcatch (ServerOverloadException e)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\taddAlert(state, rb.getString(\"failed\"));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcatch (IdUsedException e)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\taddAlert(state, rb.getString(\"notaddreso\") + \" \" + id + rb.getString(\"used2\"));\n\t\t\t\t\t\t\t/*\n\t\t\t\t\t\t\t// copying\n\t\t\t\t\t\t\t// pasted to the same folder as before; add \"Copy of \" to the id\n\t\t\t\t\t\t\tif (countNumber > 1)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tdisplayName = \"Copy (\" + countNumber + \") of \" + p.getProperty(ResourceProperties.PROP_DISPLAY_NAME);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if (countNumber == 1)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tdisplayName = \"Copy of \" + p.getProperty(ResourceProperties.PROP_DISPLAY_NAME);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tid = collectionId + Validator.escapeResourceName(displayName);\n\t\t\t\t\t\t\tcountNumber++;\n\t\t\t\t\t\t\t*/\n\t\t\t\t\t\t}\t// try-catch\n\t\t\t\t\t\tcatch(RuntimeException e)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tlogger.debug(\"ResourcesAction.doHandlepaste ***** Unknown Exception ***** \" + e.getMessage());\n\t\t\t\t\t\t\taddAlert(state, rb.getString(\"failed\"));\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\t// if-else\n\t\t\t\t}\n\t\t\t\tcatch (PermissionException e)\n\t\t\t\t{\n\t\t\t\t\taddAlert(state, rb.getString(\"notpermis8\") + \" \" + originalDisplayName + \". \");\n\t\t\t\t}\n\t\t\t\tcatch (IdUnusedException e)\n\t\t\t\t{\n\t\t\t\t\taddAlert(state,RESOURCE_NOT_EXIST_STRING);\n\t\t\t\t}\n\t\t\t\tcatch (TypeException e)\n\t\t\t\t{\n\t\t\t\t\taddAlert(state, rb.getString(\"pasteitem\") + \" \" + originalDisplayName + \" \" + rb.getString(\"mismatch\"));\n\t\t\t\t}\t// try-catch\n\n\t\t\t}\t// for\n\t\t}\t// copy\n\n\t\tif (state.getAttribute(STATE_MESSAGE) == null)\n\t\t{\n\t\t\t// delete sucessful\n\t\t\tstate.setAttribute (STATE_MODE, MODE_LIST);\n\n\t\t\t// reset the cut flag\n\t\t\tif (((String)state.getAttribute (STATE_CUT_FLAG)).equals (Boolean.TRUE.toString()))\n\t\t\t{\n\t\t\t\tstate.setAttribute (STATE_CUT_FLAG, Boolean.FALSE.toString());\n\t\t\t}\n\n\t\t\t// reset the copy flag\n\t\t\tif (Boolean.toString(true).equalsIgnoreCase((String)state.getAttribute (STATE_COPY_FLAG)))\n\t\t\t{\n\t\t\t\tstate.setAttribute (STATE_COPY_FLAG, Boolean.FALSE.toString());\n\t\t\t}\n\n\t\t\t// try to expand the collection\n\t\t\tSortedSet expandedCollections = (SortedSet) state.getAttribute(STATE_EXPANDED_COLLECTIONS);\n\t\t\tif(expandedCollections == null)\n\t\t\t{\n\t\t\t\texpandedCollections = new TreeSet();\n\t\t\t}\n\t\t\tif(! expandedCollections.contains(collectionId))\n\t\t\t{\n\t\t\t\texpandedCollections.add(collectionId);\n\t\t\t}\n\t\t\tstate.setAttribute(STATE_EXPANDED_COLLECTIONS, expandedCollections);\n\t\t}\n\n\t}", "public void copyToClipboard(View view) {\n //Get the text from the text view\n TextView resultTextView = findViewById(R.id.result_text_view);\n String resultText = resultTextView.getText().toString();\n\n //Copy the Text to the clipboard\n ClipboardManager clipboardManager = (ClipboardManager) getSystemService(CLIPBOARD_SERVICE);\n ClipData dataClip = ClipData.newPlainText(CLIP_TEXT_KEY, resultText);\n clipboardManager.setPrimaryClip(dataClip);\n\n //Tell the user that the text has been copied to the clipboard\n Toast.makeText(this, \"Copied to Clipboard\", Toast.LENGTH_SHORT).show();\n\n\n }", "void performPaste(){\n\r\n List pasteList = (TShapeClipboard.fGlobalClipboard).getShapeList();\r\n\r\n\r\n\r\n\r\n if ( (TShapeClipboard.fGlobalClipboard).clipboardValidForPaste(fShapes)) {\r\n // we have to check this because the User can bypass the menu by using the keyboard\r\n\r\n TUndoablePaste newEdit = new TUndoablePaste();\r\n\r\n newEdit.stateChanged(new ChangeEvent(this));\r\n\r\n Point whereToPaste;\r\n Rectangle unionRect=unionOfSelectees();\r\n\r\n if (unionRect!=null)\r\n whereToPaste=unionRect.getLocation();\r\n else\r\n whereToPaste=fListener.fAnchorPt; //last click\r\n\r\n if (deleteSelectedShapes(fShapes))\r\n repaint(); // it's going to repaint anyway\r\n\r\n if (pasteList.size() > 0) {\r\n Iterator iter = pasteList.iterator();\r\n TShape newShape;\r\n\r\n (TShapeClipboard.fGlobalClipboard).prepareForPaste(); // sets the top left to 00\r\n\r\n while (iter.hasNext()){\r\n newShape= ((TShape) iter.next()).copy();\r\n\r\n Rectangle boundsRect=newShape.getBoundsRect();\r\n\r\n boundsRect.translate(whereToPaste.x,whereToPaste.y);\r\n\r\n newShape.setBoundsRect(boundsRect);\r\n\r\n addShape(newShape); //more to it THAN THIS eg resolve interpr board reference\r\n }\r\n }\r\n\r\n\r\n\r\n\r\n /* newEdit.doEdit(); */\r\n\r\n /* (TShapeClipboard.fGlobalClipboard).setShapeList(copySelectedShapes());\r\n if (deleteSelectedShapes(fShapes))\r\n repaint(); */\r\n }\r\n\r\n }", "@Override\n public boolean onTextContextMenuItem(int id) {\n if(id != android.R.id.paste || formattingAllowed){\n return super.onTextContextMenuItem(id);\n }\n\n // if its paste and formatting not allowed\n boolean proceeded;\n if(VERSION.SDK_INT >= 23) {\n proceeded = super.onTextContextMenuItem(android.R.id.pasteAsPlainText);\n }else {\n proceeded = super.onTextContextMenuItem(id);\n if (proceeded && getText() != null) {\n // rewrite with plain text so formatting is lost\n setText(getText().toString());\n setSelection(getText().length());\n }\n }\n return proceeded;\n }", "protected JButton getPasteButton(final JTextField tf) {\n\t\tJButton pasteButton = new JButton(MenuUtil2.ACTION_STR_PASTE);\n\t\tpasteButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tString input = WindowUtil.getSysClipboardText();\n\t\t\t\tif (ValueWidget.isHasValue(input)) {\n\t\t\t\t\ttf.setText(input);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\treturn pasteButton;\n\t}", "public void toClipboard(String text) {\n\t\tthis.executor.schedule(new ClearClipBoardTask(), secondsToClearClipboard, TimeUnit.SECONDS);\n\t\tdirectToClipboard(text);\n\t}", "@FXML\n private void copyEdit() {\n final Clipboard clipboard = Clipboard.getSystemClipboard();\n final ClipboardContent url = new ClipboardContent();\n url.putString(EDIT_MESSAGE);\n clipboard.setContent(url);\n }", "public void onTextCut()\n\t{\n\t}", "protected void genericClipboard(SetOp op) {\n RTGraphComponent.RenderContext myrc = (RTGraphComponent.RenderContext) (getRTComponent().getRTRenderContext()); if (myrc == null) return;\n Clipboard clipboard = getToolkit().getSystemClipboard();\n Transferable trans = clipboard.getContents(this);\n if (trans != null && trans.isDataFlavorSupported(DataFlavor.stringFlavor)) {\n try {\n\t // Extract the entities\n String clip = (String) trans.getTransferData(DataFlavor.stringFlavor);\n List<SubText> al = EntityExtractor.list(clip);\n\n // Also, extract just the single lines\n\t if (strictMatches() == false) {\n StringTokenizer st = new StringTokenizer(clip, \"\\n\");\n\t while (st.hasMoreTokens()) {\n\t String str = st.nextToken();\n\t // Remove before and after whitespaces...\n\t while (str.length() > 0 && (str.charAt(0) == ' ' || str.charAt(0) == '\\t')) \n\t str = str.substring(1,str.length());\n\t while (str.length() > 0 && (str.charAt(str.length()-1) == ' ' || str.charAt(str.length()-1) == '\\t'))\n\t str = str.substring(0,str.length()-1);\n al.add(new Entity(str,str,null,0,0));\n\t }\n }\n\n\t // Get the new items\n\t Set<String> new_set = new HashSet<String>();\n for (int i=0;i<al.size();i++) { \n\t String clip_str = al.get(i).toString();\n Iterator<String> it = entity_to_wxy.keySet().iterator();\n while (it.hasNext()) {\n\t String entity = it.next();\n\t // Check for a concat\n\t if (entity.indexOf(BundlesDT.DELIM) >= 0) entity = entity.substring(entity.lastIndexOf(BundlesDT.DELIM)+1, entity.length());\n\t if (Utils.isIPv4CIDR(clip_str) && Utils.isIPv4(entity) && Utils.ipMatchesCIDR(entity, clip_str))\n\t new_set.add(entity);\n\t if (entity.indexOf(clip_str) >= 0) \n\t new_set.add(entity);\n }\n\t }\n\n\t // Get the old items\n\t Set<String> old_set = new HashSet<String>(myrc.filterEntities(getRTParent().getSelectedEntities()));\n\n\t // Do the set operation\n\t switch (op) {\n\t case SELECT: getRTParent().setSelectedEntities(new_set);\n\t break;\n\t case ADD: new_set.addAll(old_set);\n\t getRTParent().setSelectedEntities(new_set);\n\t\t\t break;\n\t case REMOVE: old_set.removeAll(new_set);\n\t getRTParent().setSelectedEntities(old_set);\n\t\t\t break;\n\t case INTERSECT: old_set.retainAll(new_set);\n\t getRTParent().setSelectedEntities(old_set);\n\t\t\t break;\n\t }\n } catch (UnsupportedFlavorException ufe) {\n System.err.println(\"genericClipboard failed... unsupported data flavor : \" + ufe);\n ufe.printStackTrace(System.err);\n } catch (IOException ioe) {\n System.err.println(\"genericClipboard failed... io exception : \" + ioe);\n ioe.printStackTrace(System.err);\n }\n }\n }", "void copyTextToTextBox(String text,boolean isMaxSet);", "public void addFromClipboard() { genericClipboard(SetOp.ADD); }", "public void performCut() {\n \t\ttext.cut();\n \t\tcheckSelection();\n \t\tcheckDeleteable();\n \t\tcheckSelectable();\n \t}", "public void pasteCode(String code) {\n engine.executeScript(\"editor.setValue(\\\"\" + escapeNewLines(code)+ \"\\\");\");\n }", "@SuppressWarnings(\"deprecation\")\n @Override\n public void onClick(View arg0) {\n CopyText3 = copyTxt3.getText().toString();\n if (CopyText3.length() != 0) {\n if (sdk < android.os.Build.VERSION_CODES.HONEYCOMB) {\n android.text.ClipboardManager clipboard = (android.text.ClipboardManager) getSystemService(Context.CLIPBOARD_SERVICE);\n clipboard.setText(CopyText3);\n Toast.makeText(getApplicationContext(), \"Text Telah Ter-Copy ke Clipboard\", Toast.LENGTH_SHORT).show();\n } else {\n android.content.ClipboardManager clipboard = (android.content.ClipboardManager) getSystemService(Context.CLIPBOARD_SERVICE);\n android.content.ClipData clip = android.content.ClipData.newPlainText(\"Clip\", CopyText3);\n Toast.makeText(getApplicationContext(), \"Text Telah Ter-Copy ke Clipboard\", Toast.LENGTH_SHORT).show();\n clipboard.setPrimaryClip(clip);\n }\n } else {\n Toast.makeText(getApplicationContext(), \"Nothing to Copy\", Toast.LENGTH_SHORT).show();\n }\n }", "private void applyOnText(Function<String, String> func) {\r\n\t\tJTextArea editor = getSelectedTextArea();\r\n\t\tDocument doc = editor.getDocument();\r\n\t\t\r\n\t\tint offset = 0;\r\n\t\tint len = Math.abs(editor.getCaret().getDot() - editor.getCaret().getMark());\r\n\t\tif (len == 0) {\r\n\t\t\tlen = doc.getLength();\r\n\t\t} else {\r\n\t\t\toffset = Math.min(editor.getCaret().getDot(), editor.getCaret().getMark());\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tString text = doc.getText(offset, len);\r\n\t\t\ttext = func.apply(text);\r\n\t\t\tdoc.remove(offset, len);\r\n\t\t\tdoc.insertString(offset, text, null);\r\n\t\t} catch (BadLocationException ignorable) {\r\n\t\t}\r\n\t}", "@Override\n public void pasteFromClipboard (boolean shft, boolean alt) {\n if (shft == false && alt == false) selectFromClipboard();\n }", "public void pasteSystemSelection() {\n Clipboard systemSelection = getToolkit().getSystemSelection();\n if (systemSelection != null) {\n pasteClipboard(systemSelection);\n }\n }", "@SuppressWarnings(\"deprecation\")\n @Override\n public void onClick(View arg0) {\n CopyText4 = copyTxt4.getText().toString();\n if (CopyText4.length() != 0) {\n if (sdk < android.os.Build.VERSION_CODES.HONEYCOMB) {\n android.text.ClipboardManager clipboard = (android.text.ClipboardManager) getSystemService(Context.CLIPBOARD_SERVICE);\n clipboard.setText(CopyText4);\n Toast.makeText(getApplicationContext(), \"Text Telah Ter-Copy ke Clipboard\", Toast.LENGTH_SHORT).show();\n } else {\n android.content.ClipboardManager clipboard = (android.content.ClipboardManager) getSystemService(Context.CLIPBOARD_SERVICE);\n android.content.ClipData clip = android.content.ClipData.newPlainText(\"Clip\", CopyText4);\n Toast.makeText(getApplicationContext(), \"Text Telah Ter-Copy ke Clipboard\", Toast.LENGTH_SHORT).show();\n clipboard.setPrimaryClip(clip);\n }\n } else {\n Toast.makeText(getApplicationContext(), \"Text Kosong, Tidak ada apapun yang ter-Copy\", Toast.LENGTH_SHORT).show();\n }\n }", "public static void onPasteEventHandler(Spreadsheet spreadsheet, String operation) {\r\n \t\tif (spreadsheet == null || getSourceRange(spreadsheet) == null || operation == null) {\r\n //\t\t\ttry {\r\n //\t\t\t\tMessagebox.show(\"Please select a range\");\r\n //\t\t\t} catch (InterruptedException e) {\r\n //\t\t\t}\r\n \t\t\treturn;\r\n \t\t}\r\n \r\n \t\tif (operation.equals(Labels.getLabel(\"pasteSpecial\")) ) {\r\n \t\t\tExecutions.createComponents(Consts._PasteSpecialDialog_zul, null, Zssapps.newSpreadsheetArg(spreadsheet));\r\n \t\t} else {\r\n \t\t\tonPasteSpecial(spreadsheet, getPasteType(operation), getPasteOperation(operation), false, isTranspose(operation));\r\n \t\t}\r\n \t}", "public void onPressCopyDescription(View view) {\r\n TextView textView = findViewById(R.id.textDescription);\r\n String text = textView.getText().toString();\r\n\r\n if (text.equals(\"\"))\r\n return;\r\n\r\n ClipboardManager clipManager = (ClipboardManager) getSystemService(CLIPBOARD_SERVICE);\r\n ClipData data = ClipData.newPlainText(\"text\", text);\r\n clipManager.setPrimaryClip(data);\r\n }", "public void doHandlepasteshortcut ( RunData data)\n\t{\n\t\tParameterParser params = data.getParameters ();\n\n\t\tSessionState state = ((JetspeedRunData)data).getPortletSessionState (((JetspeedRunData)data).getJs_peid ());\n\n\t\t// get the items to be pasted\n\t\tVector pasteItems = new Vector ();\n\n\t\tif (((String) state.getAttribute (STATE_COPY_FLAG)).equals (Boolean.TRUE.toString()))\n\t\t{\n\t\t\tpasteItems = (Vector) ( (Vector) state.getAttribute (STATE_COPIED_IDS)).clone ();\n\t\t}\n\t\tif (((String) state.getAttribute (STATE_CUT_FLAG)).equals (Boolean.TRUE.toString()))\n\t\t{\n\t\t\taddAlert(state, rb.getString(\"choosecp\"));\n\t\t}\n\n\t\tif (state.getAttribute(STATE_MESSAGE) == null)\n\t\t{\n\t\t\tString collectionId = params.getString (\"collectionId\");\n\n\t\t\tString originalDisplayName = NULL_STRING;\n\n\t\t\tfor (int i = 0; i < pasteItems.size (); i++)\n\t\t\t{\n\t\t\t\tString currentPasteItem = (String) pasteItems.get (i);\n\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tResourceProperties properties = ContentHostingService.getProperties (currentPasteItem);\n\n\t\t\t\t\toriginalDisplayName = properties.getPropertyFormatted (ResourceProperties.PROP_DISPLAY_NAME);\n\n\t\t\t\t\tif (properties.getProperty (ResourceProperties.PROP_IS_COLLECTION).equals (Boolean.TRUE.toString()))\n\t\t\t\t\t{\n\t\t\t\t\t\t// paste the collection\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t// paste the resource\n\t\t\t\t\t\tContentResource resource = ContentHostingService.getResource (currentPasteItem);\n\t\t\t\t\t\tResourceProperties p = ContentHostingService.getProperties(currentPasteItem);\n\t\t\t\t\t\tString displayName = SHORTCUT_STRING + p.getProperty(ResourceProperties.PROP_DISPLAY_NAME);\n\t\t\t\t\t\tString id = collectionId + Validator.escapeResourceName(displayName);\n\n\t\t\t\t\t\t//int countNumber = 2;\n\t\t\t\t\t\tResourcePropertiesEdit resourceProperties = ContentHostingService.newResourceProperties ();\n\t\t\t\t\t\t// add the properties of the pasted item\n\t\t\t\t\t\tIterator propertyNames = properties.getPropertyNames ();\n\t\t\t\t\t\twhile ( propertyNames.hasNext ())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tString propertyName = (String) propertyNames.next ();\n\t\t\t\t\t\t\tif ((!properties.isLiveProperty (propertyName)) && (!propertyName.equals (ResourceProperties.PROP_DISPLAY_NAME)))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tresourceProperties.addProperty (propertyName, properties.getProperty (propertyName));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// %%%%% should be _blank for items that can be displayed in browser, _self for others\n\t\t\t\t\t\t// resourceProperties.addProperty (ResourceProperties.PROP_OPEN_NEWWINDOW, \"_self\");\n\t\t\t\t\t\tresourceProperties.addProperty (ResourceProperties.PROP_DISPLAY_NAME, displayName);\n\n\t\t\t\t\t\ttry\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tContentResource referedResource= ContentHostingService.getResource (currentPasteItem);\n\t\t\t\t\t\t\tContentResource newResource = ContentHostingService.addResource (id, ResourceProperties.TYPE_URL, referedResource.getUrl().getBytes (), resourceProperties, referedResource.getGroups(), NotificationService.NOTI_NONE);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcatch (InconsistentException e)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\taddAlert(state, RESOURCE_INVALID_TITLE_STRING);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcatch (OverQuotaException e)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\taddAlert(state, rb.getString(\"overquota\"));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcatch (IdInvalidException e)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\taddAlert(state, rb.getString(\"title\") + \" \" + e.getMessage ());\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcatch (ServerOverloadException e)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\taddAlert(state, rb.getString(\"failed\"));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcatch (IdUsedException e)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\taddAlert(state, rb.getString(\"notaddreso\") + \" \" + id + rb.getString(\"used2\"));\n\t\t\t\t\t\t\t/*\n\t\t\t\t\t\t\t // pasted shortcut to the same folder as before; add countNumber to the id\n\t\t\t\t\t\t\tdisplayName = \"Shortcut (\" + countNumber + \") to \" + p.getProperty(ResourceProperties.PROP_DISPLAY_NAME);\n\t\t\t\t\t\t\tid = collectionId + Validator.escapeResourceName(displayName);\n\t\t\t\t\t\t\tcountNumber++;\n\t\t\t\t\t\t\t*/\n\t\t\t\t\t\t}\t// try-catch\n\t\t\t\t\t\tcatch(RuntimeException e)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tlogger.debug(\"ResourcesAction.doHandlepasteshortcut ***** Unknown Exception ***** \" + e.getMessage());\n\t\t\t\t\t\t\taddAlert(state, rb.getString(\"failed\"));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\t// if-else\n\t\t\t\t}\n\t\t\t\tcatch (PermissionException e)\n\t\t\t\t{\n\t\t\t\t\taddAlert(state, rb.getString(\"notpermis9\") + \" \" + currentPasteItem.substring (currentPasteItem.lastIndexOf (Entity.SEPARATOR)+1) + \". \");\n\t\t\t\t}\n\t\t\t\tcatch (IdUnusedException e)\n\t\t\t\t{\n\t\t\t\t\taddAlert(state,RESOURCE_NOT_EXIST_STRING);\n\t\t\t\t}\n\t\t\t\tcatch (TypeException e)\n\t\t\t\t{\n\t\t\t\t\taddAlert(state, rb.getString(\"pasteitem\") + \" \" + currentPasteItem.substring (currentPasteItem.lastIndexOf (Entity.SEPARATOR)+1) + \" \" + rb.getString(\"mismatch\"));\n\t\t\t\t}\t// try-catch\n\n\t\t\t}\t// for\n\t\t}\n\n\t\tif (state.getAttribute(STATE_MESSAGE) == null)\n\t\t{\n\t\t\tif (((String) state.getAttribute (STATE_COPY_FLAG)).equals (Boolean.TRUE.toString()))\n\t\t\t{\n\t\t\t\t// reset the copy flag\n\t\t\t\tstate.setAttribute (STATE_COPY_FLAG, Boolean.FALSE.toString());\n\t\t\t}\n\n\t\t\t// paste shortcut sucessful\n\t\t\tstate.setAttribute (STATE_MODE, MODE_LIST);\n\t\t}\n\n\t}", "public void pasteNode ()\n {\n PasteHelper paster = createPasteHelper(group);\n Clipboard clipboard = _tree.getToolkit().getSystemClipboard();\n if (_tree.getTransferHandler().importData(_tree, clipboard.getContents(this))) {\n paster.didPaste();\n }\n }", "protected void paste(){\n\t\tColor col = this.model.paste();\n\t\tif (col == null) return;\n\t\tthis.setBackground(col);\n\t}", "public void actionPerformed(ActionEvent e)\n\t{\n\t\tif (e.getActionCommand().compareTo(\"Copy\")==0)\n\t\t{\n\t\t\tStringBuffer sbf=new StringBuffer();\n\t\t\t// Check to ensure we have selected only a contiguous block of\n\t\t\t// cells\n\t\t\tint numcols=jTable1.getSelectedColumnCount();\n\t\t\tint numrows=jTable1.getSelectedRowCount();\n\t\t\tint[] rowsselected=jTable1.getSelectedRows();\n\t\t\tint[] colsselected=jTable1.getSelectedColumns();\n\t\t\tif (!((numrows-1==rowsselected[rowsselected.length-1]-rowsselected[0] &&\n\t\t\t\t\tnumrows==rowsselected.length) &&\n\t\t\t\t\t(numcols-1==colsselected[colsselected.length-1]-colsselected[0] &&\n\t\t\t\t\t\t\tnumcols==colsselected.length)))\n\t\t\t{\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Invalid Copy Selection\",\n\t\t\t\t\t\t\"Invalid Copy Selection\",\n\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tfor (int i=0;i<numrows;i++)\n\t\t\t{\n\t\t\t\tfor (int j=0;j<numcols;j++)\n\t\t\t\t{\n\t\t\t\t\tsbf.append(jTable1.getValueAt(rowsselected[i],colsselected[j]));\n\t\t\t\t\tif (j<numcols-1) sbf.append(\"\\t\");\n\t\t\t\t}\n\t\t\t\tsbf.append(\"\\n\");\n\t\t\t}\n\t\t\tstsel = new StringSelection(sbf.toString());\n\t\t\tsystem = Toolkit.getDefaultToolkit().getSystemClipboard();\n\t\t\tsystem.setContents(stsel,stsel);\n\t\t}\n\t\tif (e.getActionCommand().compareTo(\"Paste\")==0)\n\t\t{\n\t\t\tif (logger.isDebugEnabled()) {\n\t\t\t\tlogger.debug(\"Trying to Paste\");\n\t\t\t}\n\t\t\tint[] selectedRows = jTable1.getSelectedRows();\n\t\t\tint[] selectedColumns = jTable1.getSelectedColumns();\n\t\t\t\n\t\t\tint startRow = 0;\n\t\t\tint startCol = 0;\n\t\t\tif (selectedRows.length > 0) {\n\t\t\t\tstartRow=selectedRows[0];\n\t\t\t}\n\t\t\tif (selectedColumns.length > 0) {\n\t\t\t\tstartCol=selectedColumns[0];\n\t\t\t}\n\t\t\t\n\t\t\ttry\n\t\t\t{\n\t\t\t\tString trstring= (String)(system.getContents(this).getTransferData(DataFlavor.stringFlavor));\n\t\t\t\tif (logger.isDebugEnabled()) {\n\t\t\t\t\tlogger.debug(\"String is:\"+trstring);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tString[] s;\n\t\t\t\tString[] rows = trstring.split(\"\\n\", -1);\n\t\t\t\tPattern p = Pattern.compile(\"\\t\");\n\t\t\t\tfor (int i = 0; i < rows.length; i++) {\n\t\t\t\t\tif (rows[i].length() == 0) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\ts = p.split(rows[i]);\n\t\t\t\t\tfor (int j = 0; j < s.length ; j++) {\n\t\t\t\t\t\tjTable1.setValueAt(s[j], startRow + i, startCol + j);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch(Exception ex){\n\t\t\t\tlogger.error(\"Error pasting data\", ex);\n\t\t\t}\n\t\t}\n\t}", "public void doCopy() {\n if (renderPieces.size() == 0) {\n System.out.println(\"Nothing is selected for copy operation.\");\n return;\n }\n StringBuffer sb = new StringBuffer();\n\n textBuffer.renderInit();\n Text text;\n if (!reversed) {\n while ((text = textBuffer.getTextToRender()) != null) {\n sb.append(text.getText());\n }\n } else {\n while ((text = textBuffer.getPreToRender()) != null) {\n sb.append(text);\n }\n String reversedText = sb.toString();\n sb = new StringBuffer();\n for (int i = reversedText.length()-1; i >= 0; i -= 1) {\n sb.append(reversedText.charAt(i));\n }\n }\n Clipboard clipboard = Clipboard.getSystemClipboard();\n ClipboardContent content = new ClipboardContent();\n content.putString(sb.toString());\n clipboard.setContent(content);\n System.out.println(\"Copy succeed.\");\n }", "public void actionPerformed(ActionEvent e) {\n if (e.getActionCommand().compareTo(\"Copy\")==0) {\n StringBuilder sbf=new StringBuilder();\n // Check to ensure we have selected only a contiguous block of\n // cells\n int numcols=jTable1.getSelectedColumnCount();\n int numrows=jTable1.getSelectedRowCount();\n int[] rowsselected=jTable1.getSelectedRows();\n int[] colsselected=jTable1.getSelectedColumns();\n if (rowsselected.length==0 || colsselected.length==0) return;\n if (!((numrows-1==rowsselected[rowsselected.length-1]-rowsselected[0] &&\n numrows==rowsselected.length) &&\n (numcols-1==colsselected[colsselected.length-1]-colsselected[0] &&\n numcols==colsselected.length)))\n {\n JOptionPane.showMessageDialog(null, \"Invalid Copy Selection\",\n \"Invalid Copy Selection\",\n JOptionPane.ERROR_MESSAGE);\n return;\n }\n for (int i=0;i<numrows;i++) {\n for (int j=0;j<numcols;j++) {\n sbf.append(jTable1.getValueAt(rowsselected[i],colsselected[j]));\n if (j<numcols-1) sbf.append(\"\\t\");\n }\n sbf.append(\"\\n\");\n }\n stsel = new StringSelection(sbf.toString());\n system = Toolkit.getDefaultToolkit().getSystemClipboard();\n system.setContents(stsel,stsel);\n }\n if (e.getActionCommand().compareTo(\"Paste\")==0) {\n int[] rows=jTable1.getSelectedRows();\n int[] cols=jTable1.getSelectedColumns();\n if (rows.length==0 || cols.length==0) return;\n int startRow=rows[0];\n int startCol=cols[0];\n try\n {\n String trstring= (String)(system.getContents(this).getTransferData(DataFlavor.stringFlavor));\n //System.out.println(\"String is:\"+trstring);\n StringTokenizer st1=new StringTokenizer(trstring,\"\\n\");\n for(int i=0;st1.hasMoreTokens();i++)\n {\n rowstring=st1.nextToken();\n StringTokenizer st2=new StringTokenizer(rowstring,\"\\t\");\n for(int j=0;st2.hasMoreTokens();j++)\n {\n value=(String)st2.nextToken();\n if (startRow+i==jTable1.getRowCount() && expandable) { // add row if necessary\n TableModel model = jTable1.getModel();\n if (model instanceof DefaultTableModel) {\n Object[] newrow=new Object[jTable1.getColumnCount()];\n for (int k=0;k<newrow.length;k++) newrow[k]=\"\";\n ((DefaultTableModel)model).addRow(newrow);\n }\n }\n if (startRow+i<jTable1.getRowCount()&& startCol+j<jTable1.getColumnCount()) {\n Object typeValue=value;\n if (value!=null && convertNumerical!=CONVERT_NONE) {\n try {\n Double doubleval=Double.parseDouble(value);\n if (convertNumerical==CONVERT_TO_INTEGER || (convertNumerical==CONVERT_TO_DOUBLE_OR_INTEGER && doubleval.intValue()==doubleval.doubleValue())) typeValue=new Integer(doubleval.intValue());\n else typeValue=doubleval;\n } catch (NumberFormatException ex) {}\n }\n if (jTable1.isCellEditable(startRow+i,startCol+j)) {\n jTable1.setValueAt(typeValue,startRow+i,startCol+j);\n //System.out.println(\"Convert[\"+typeValue.getClass().getSimpleName()+\"] \"+value+\"=>\"+typeValue+\" at row=\"+startRow+i+\" column=\"+startCol+j+\" convertNumerical=\"+convertNumerical);\n }\n }\n }\n }\n }\n catch(Exception ex){}\n } \n if (e.getActionCommand().compareTo(\"Delete\")==0) {\n int[] rows=jTable1.getSelectedRows();\n int[] cols=jTable1.getSelectedColumns(); \n if (cols.length==jTable1.getColumnCount() && (jTable1.getModel() instanceof DefaultTableModel) && expandable) { // delete complete rows\n DefaultTableModel model = (DefaultTableModel)jTable1.getModel();\n for (int i=0;i<rows.length;i++) {\n model.removeRow(rows[i]-i);\n } \n if (model.getRowCount()==0) {\n Object[] newrow=new Object[jTable1.getColumnCount()];\n for (int k=0;k<newrow.length;k++) newrow[k]=null;\n model.addRow(newrow); \n }\n } else { // delete only cell content\n for (int i=0;i<rows.length;i++) {\n for (int j=0;j<cols.length;j++) {\n jTable1.setValueAt(null,rows[i],cols[j]);\n }\n }\n }\n }\n if (e.getActionCommand().compareTo(\"PressedTab\")==0) {\n if (jTable1.getModel() instanceof DefaultTableModel && expandable) {\n int currentRow=jTable1.getSelectedRow();\n int currentColumn=jTable1.getSelectedColumn();\n if (currentRow+1==jTable1.getRowCount() && currentColumn+1==jTable1.getColumnCount()) {\n Object[] newrow=new Object[jTable1.getColumnCount()];\n for (int k=0;k<newrow.length;k++) newrow[k]=null;\n ((DefaultTableModel)jTable1.getModel()).addRow(newrow);\n }\n }\n oldTabAction.actionPerformed(e);\n }\n if (e.getActionCommand().compareTo(\"PressedArrowdown\")==0) {\n if (jTable1.getModel() instanceof DefaultTableModel && expandable) {\n int currentRow=jTable1.getSelectedRow();\n if (currentRow+1==jTable1.getRowCount()) {\n Object[] newrow=new Object[jTable1.getColumnCount()];\n for (int k=0;k<newrow.length;k++) newrow[k]=null;\n ((DefaultTableModel)jTable1.getModel()).addRow(newrow);\n }\n }\n oldArrowdownAction.actionPerformed(e);\n } \n }", "default void setClipboardText(String text) {\n setClipboard(ClipboardContentType.PLAINTEXT, Base64\n .getMimeEncoder()\n .encode(text.getBytes(StandardCharsets.UTF_8)));\n }", "@Test\n\tpublic void testPaste() {\n\t\tImagePlus.resetClipboard();\n\n\t\t// paste when nothing in clipboard\n\t\tImagePlus.resetClipboard();\n\t\tproc = new ByteProcessor(2,3,new byte[] {1,2,3,4,5,6},null);\n\t\tip = new ImagePlus(\"Paster\",proc);\n\t\tassertNull(ImagePlus.getClipboard());\n\t\tassertFalse(ip.changes);\n\t\tassertNull(ip.getRoi());\n\t\tip.paste();\n\t\tassertFalse(ip.changes);\n\t\tassertNull(ip.getRoi());\n\n\t\t// paste with valid data (part of image)\n\t\tImagePlus.resetClipboard();\n\t\tproc = new ByteProcessor(2,3,new byte[] {1,2,3,4,5,6},null);\n\t\tip = new ImagePlus(\"Paster\",proc);\n\t\tassertNull(ImagePlus.getClipboard());\n\t\tassertEquals(4,proc.get(1,1));\n\t\tip.setRoi(1,1,1,1);\n\t\tip.copy(true);\n\t\tassertNotNull(ImagePlus.getClipboard());\n\t\tassertFalse(ip.changes);\n\t\tassertEquals(0,proc.get(1,1));\n\t\tip.paste();\n\t\tassertTrue(ip.changes);\n\t\tassertNotNull(ip.getRoi());\n\t\t//ip.getRoi().drawPixels();\n\t\t//assertEquals(4,proc.get(1, 1));\n\n\t\t// paste with valid data (whole image)\n\t\tImagePlus.resetClipboard();\n\t\tproc = new ByteProcessor(2,3,new byte[] {1,2,3,4,5,6},null);\n\t\tip = new ImagePlus(\"Paster\",proc);\n\t\tassertNull(ImagePlus.getClipboard());\n\t\tassertNull(ip.getRoi());\n\t\tassertEquals(4,proc.get(1,1));\n\t\tip.copy(true);\n\t\tassertNull(ImagePlus.getClipboard());\n\t\tassertFalse(ip.changes);\n\t\tassertEquals(4,proc.get(1,1));\n\t\tip.paste();\n\t\tassertFalse(ip.changes);\n\t\tassertNull(ip.getRoi());\n\t\t//ip.getRoi().drawPixels();\n\t\t//assertEquals(4,proc.get(1, 1));\n\n\t\t// reset state to keep from messing up other tests\n\t\tImagePlus.resetClipboard();\n\t}", "@Override\n public void onCopySuggestion(String text) {\n mUrlInput.setText(text, true);\n }", "void onBottomQDMPasteClicked();", "public void actionPerformed(ActionEvent e) {\n if (e.getActionCommand().compareTo(\"Copy\") == 0) {\n StringBuffer sbf = new StringBuffer();\n // Check to ensure we have selected only a contiguous block of\n // cells\n int numCols = jTable.getSelectedColumnCount();\n int numRows = jTable.getSelectedRowCount();\n int[] rowsSelected = jTable.getSelectedRows();\n int[] colsSelected = jTable.getSelectedColumns();\n if (!((numRows - 1 == rowsSelected[rowsSelected.length - 1] - rowsSelected[0] &&\n numRows == rowsSelected.length) &&\n (numCols - 1 == colsSelected[colsSelected.length - 1] - colsSelected[0] &&\n numCols == colsSelected.length))) {\n JOptionPane.showMessageDialog(null, \"Invalid Copy Selection\",\n \"Invalid Copy Selection\",\n JOptionPane.ERROR_MESSAGE);\n return;\n }\n for (int i = 0; i < numRows; i++) {\n for (int j = 0; j < numCols; j++) {\n sbf.append(jTable.getValueAt(rowsSelected[i], colsSelected[j]));\n if (j < numCols - 1) sbf.append(\"\\t\");\n }\n sbf.append(\"\\n\");\n }\n StringSelection stSel = new StringSelection(sbf.toString());\n system = Toolkit.getDefaultToolkit().getSystemClipboard();\n system.setContents(stSel, stSel);\n }\n if (e.getActionCommand().compareTo(\"Paste\") == 0) {\n int startRow = (jTable.getSelectedRows())[0];\n int startCol = (jTable.getSelectedColumns())[0];\n try {\n String trString = (String) (system.getContents(this).getTransferData(DataFlavor.stringFlavor));\n StringTokenizer st1 = new StringTokenizer(trString, \"\\n\");\n for (int i = 0; st1.hasMoreTokens(); i++) {\n String rowString = st1.nextToken();\n StringTokenizer st2 = new StringTokenizer(rowString, \"\\t\");\n for (int j = 0; st2.hasMoreTokens(); j++) {\n String value = st2.nextToken();\n\n if (startRow + i < jTable.getRowCount() && startCol + j < jTable.getColumnCount()) {\n mapTable.getData()[startRow + i][startCol + j] = Double.valueOf(value);\n }\n }\n\n mapTable.setTableData(mapTable.getData());\n }\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }\n }", "protected void addPasteListener(){\n\t\tthis.addKeyListener(new COPasteKeyListener(this));\n\t\tthis.addMouseListener(new COPastePopupMenuListener(this));\n\t}", "default String getClipboardText() {\n byte[] base64decodedBytes = Base64\n .getMimeDecoder()\n .decode(getClipboard(ClipboardContentType.PLAINTEXT));\n return new String(base64decodedBytes, StandardCharsets.UTF_8);\n }", "public static void putTextDatatoClipBoard(String textData) {\n\t\tLog.d(TAG, \"66666,textData = \" + textData);\n\t\t// ClipData clip = ClipData.newPlainText(\"simple text\",textData);\n\t\tmClipboard.setPrimaryClip(ClipData.newPlainText(\"data\", textData));\n\t\t// getTextDataFromClipBoard();\n\n\t}", "public void testEditor() {\n // open sample file in Editor\n SourcePackagesNode sourcePackagesNode = new SourcePackagesNode(SAMPLE_PROJECT_NAME);\n Node sample1Node = new Node(sourcePackagesNode, SAMPLE1_PACKAGE_NAME);\n JavaNode sampleClass1Node = new JavaNode(sample1Node, SAMPLE1_FILE_NAME);\n sampleClass1Node.open();\n // find open file in editor\n EditorOperator eo = new EditorOperator(SAMPLE1_FILE_NAME);\n eo.setCaretPosition(\"public static void main\", true);\n int insertLine = eo.getLineNumber() + 2;\n eo.insert(\"\\n\", insertLine, 1); // NOI18N\n // Need to disable verification because shortcut \"sout\" is replaced\n // by \"System.out.println(\"\");\" and \"sout\" is not found in Editor\n eo.setCaretPositionToLine(insertLine);\n eo.txtEditorPane().setVerification(false);\n eo.txtEditorPane().typeText(\"sout\"); // NOI18N\n eo.txtEditorPane().typeKey('\\t');\n eo.txtEditorPane().setVerification(true);\n eo.insert(\"Hello\"); // NOI18N\n //eo.insert(\"System.out.println(\\\"Hello\\\");\\n\", insertLine+1, 1); // NOI18N\n final String textToCopy = \"System.out.println(\\\"Hello\\\");\"; // NOI18N\n eo.select(textToCopy);\n int oldDispatchingModel = JemmyProperties.getCurrentDispatchingModel();\n // \"Copy\"\n CopyAction copyAction = new CopyAction();\n try {\n copyAction.perform(eo);\n } catch (TimeoutExpiredException e) {\n // if not succed try it second time in Robot mode\n JemmyProperties.setCurrentDispatchingModel(JemmyProperties.ROBOT_MODEL_MASK);\n copyAction.perform(eo);\n } finally {\n // set previous dispatching model\n JemmyProperties.setCurrentDispatchingModel(oldDispatchingModel);\n }\n // wait until clipboard contains text to copy\n try {\n new Waiter(new Waitable() {\n\n @Override\n public Object actionProduced(Object obj) {\n try {\n String text = Toolkit.getDefaultToolkit().getSystemClipboard().\n getContents(null).getTransferData(DataFlavor.stringFlavor).toString();\n return textToCopy.equals(text) ? Boolean.TRUE : null;\n } catch (UnsupportedFlavorException e) {\n // The following exception can be thrown when clipboard is empty.\n // java.awt.datatransfer.UnsupportedFlavorException: Unicode String\n // at org.openide.util.datatransfer.ExTransferable$Empty.getTransferData(ExTransferable.java:461)\n // Ignore this exception.\n return null;\n } catch (IOException ioe) {\n throw new JemmyException(\"Failed getting clipboard content.\", ioe);\n }\n }\n\n @Override\n public String getDescription() {\n return (\"Clipboard contains \" + textToCopy); // NOI18N\n }\n }).waitAction(null);\n } catch (Exception ie) {\n throw new JemmyException(\"Interrupted.\", ie);\n }\n eo.insert(\"int xxxx;\\n\", insertLine + 1, 1); // NOI18N\n eo.select(\"int xxxx;\"); // NOI18N\n PasteAction pasteAction = new PasteAction();\n try {\n pasteAction.perform(eo);\n } catch (TimeoutExpiredException e) {\n // if not succed try it second time in Robot mode\n JemmyProperties.setCurrentDispatchingModel(JemmyProperties.ROBOT_MODEL_MASK);\n pasteAction.perform(eo);\n } finally {\n // set previous dispatching model\n JemmyProperties.setCurrentDispatchingModel(oldDispatchingModel);\n }\n eo.select(\"Hello\", 1); // NOI18N\n // \"Delete\"\n DeleteAction deleteAction = new DeleteAction();\n deleteAction.performMenu(eo);\n // wait Hello is deleted\n eo.txtEditorPane().waitText(\"System.out.println(\\\"\\\");\"); // NOI18N\n eo.insert(\"Good bye\"); // NOI18N\n // test cut action\n eo.select(3);\n // \"Cut\"\n CutAction cutAction = new CutAction();\n try {\n cutAction.perform(eo);\n } catch (TimeoutExpiredException e) {\n // if not succed try it second time in Robot mode\n JemmyProperties.setCurrentDispatchingModel(JemmyProperties.ROBOT_MODEL_MASK);\n cutAction.perform(eo);\n } finally {\n // set previous dispatching model\n JemmyProperties.setCurrentDispatchingModel(oldDispatchingModel);\n }\n // need to wait a little until editor content is refreshed after cut action\n new EventTool().waitNoEvent(500);\n // select from column 1 to 2 at line 3 \n eo.select(2, 1, 2);\n try {\n pasteAction.perform(eo);\n } catch (TimeoutExpiredException e) {\n // if not succed try it second time in Robot mode\n JemmyProperties.setCurrentDispatchingModel(JemmyProperties.ROBOT_MODEL_MASK);\n pasteAction.perform(eo);\n } finally {\n // set previous dispatching model\n JemmyProperties.setCurrentDispatchingModel(oldDispatchingModel);\n }\n }", "public Object execute(ExecutionEvent event) throws ExecutionException {\n\t\tIWorkbenchWindow window = HandlerUtil.getActiveWorkbenchWindowChecked(event);\n\t\tITextSelection content = (ITextSelection) window.getActivePage().getActiveEditor().getEditorSite().getSelectionProvider().getSelection();\n\t\tString texto = content.getText();\t\t\n\t\tToolkit toolkit = Toolkit.getDefaultToolkit();\n\t\tClipboard clipboard = toolkit.getSystemClipboard();\n\t\t\n\t\tString sqlFormatado = formatSQL(texto);\n\t\t\n\t\tStringSelection textoFormatado = new StringSelection(sqlFormatado);\n\t\tclipboard.setContents(textoFormatado, null);\n\t\t\n\t\tif(isBlank(texto)){\n\t\t\tMessageDialog.openInformation(\n\t\t\t\t\twindow.getShell(),\n\t\t\t\t\t\"SQLCopy\",\n\t\t\t\t\t\"Você não selecionou nada!\");\t\t\t\n\t\t} else {\t\t\t\n\t\t\tif(isConvertToJava(texto)){//Realizar a substituição do texto selecionado apenas quando estiver convertendo um SQL para Java.\n\t\t\t\tIEditorPart part = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getActiveEditor();\t\t\t\n\t\t\t\tITextEditor editor = (ITextEditor)part;\n\t\t\t\tIDocumentProvider prov = editor.getDocumentProvider();\n\t\t IDocument doc = prov.getDocument( editor.getEditorInput() );\n\t\t ISelection sel = editor.getSelectionProvider().getSelection();\n\t\t \n\t\t if ( sel instanceof TextSelection ) {\n\t\t final TextSelection textSel = (TextSelection)sel;\n\t\t try {\n//\t\t \tIRegion region = doc.getLineInformationOfOffset(textSel.getOffset());\t\t \t\n//\t\t\t\t\t\tdoc.replace( textSel.getOffset(), textSel.getLength(), identingCode(region.getLength(), sqlFormatado));\n\t\t \tdoc.replace( textSel.getOffset(), textSel.getLength(), sqlFormatado);\n\t\t\t\t\t} catch (BadLocationException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t }\n\t\t\t}\t\t\t\n//\t\t\tMessageDialog.openInformation(\n//\t\t\t\t\twindow.getShell(),\n//\t\t\t\t\t\"SQLCopy\",\n//\t\t\t\t\tsqlFormatado.toString());\n\t\t\tCustomMessageDialog dialog = new CustomMessageDialog(window.getShell(), sqlFormatado.toString());\n\t\t\tdialog.open();\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "public boolean isPasteEnabled() {\n \t\tif (text == null || text.isDisposed())\n \t\t\treturn false;\n \t\treturn true;\n \t}", "@FXML\n private void copyGoto() {\n final Clipboard clipboard = Clipboard.getSystemClipboard();\n final ClipboardContent url = new ClipboardContent();\n url.putString(GOTO_MESSAGE);\n clipboard.setContent(url);\n }", "@Override\n public void run() {\n TextActionsProvider actionsProvider = textpage.getActionsProvider();\n Object object = actionsProvider.getTextActions().get(\"Edit/Edit_Undo\");\n if (object != null) {\n actionsProvider.invokeAction(object);\n editor.save();\n }\n }", "private static void copyToClipBoard(){\n String password= passwordGenerator.generatePassword();\r\n\r\n /* For copying in windows\r\n * This will copy the password in clipboard in windows\r\n */\r\n//\t\tInitialising the toolkit and clipboard\r\n Toolkit toolkit = Toolkit.getDefaultToolkit();\r\n Clipboard clipboard = toolkit.getSystemClipboard();\r\n\r\n//\t\tclipboard.setContents takes to argument 1st is the string which has to store and 2nd is the name of clipboard owner\r\n StringSelection selection=new StringSelection(password);\r\n clipboard.setContents(selection,null);\r\n\r\n /* For copying in linux distribution\r\n * This will copy the password in xclip in linux\r\n */\r\n Runtime runtime=Runtime.getRuntime();\r\n Process p=null;\r\n try {\r\n p=runtime.exec(new String[]{\"sh\",\"-c\",\"echo\"+password+\" | xclip -selection clipboard\"});\r\n }\r\n catch (Exception e){\r\n System.out.println(e);\r\n }\r\n System.out.println(\"Password copied into clipboard\");\r\n }", "@Override\n\tpublic void editorCut()\n\t{\n\t\teditorCopy();\n\t\teditorInsert(\"\");\n\t\tSystem.out.println(\"DEBUG: performing Cut\") ;\n\t}", "void onTopQDMPasteClicked();", "private void txt() {\n\n\t}", "@FXML\n private void copyAdd() {\n final Clipboard clipboard = Clipboard.getSystemClipboard();\n final ClipboardContent url = new ClipboardContent();\n url.putString(ADD_MESSAGE);\n clipboard.setContent(url);\n }", "public void pasteEnabled(boolean enabled);", "@SuppressLint({\"NewApi\"})\n private void showPasteMessage(String str) {\n if (Build.VERSION.SDK_INT >= 11) {\n Toast makeText = Toast.makeText(this.webView.getContext(), str, 1);\n makeText.setGravity(17, 0, 0);\n makeText.show();\n }\n }", "public void copySelection() {\r\n \t\t// Bertoli Marco\r\n \t\tclipboard.copy();\r\n \t}", "@Override\n public boolean canPaste(Clipboard clipboard) {\n return false;\n }", "public void cutSelection() {\r\n \t\t// Bertoli Marco\r\n \t\tclipboard.cut();\r\n \t}", "public void pasteSelection() {\r\n \t\t// Bertoli Marco\r\n \t\tclipboard.paste();\r\n \r\n \t\t// If more than one stations are present enables link button\r\n \t\tif (graph.getModel().getRootCount() > 1) {\r\n \t\t\tsetConnect.setEnabled(true);\r\n \t\t}\r\n \t\t// If one station is present show select button\r\n \t\tif (graph.getModel().getRootCount() >= 1) {\r\n \t\t\tactivateSelect();\r\n \t\t}\r\n \t}", "@Override\n public void cut() {\n clipboard.setContents(getSelectionAsList(true));\n }", "abstract BufferedImage pasteText(final BufferedImage background, final AttributedString attributedWord)\n throws CaptchaException;", "public void selectFromClipboard() { genericClipboard(SetOp.SELECT); }", "@SuppressLint({\"NewApi\"})\n private void copyHintToClipboard(String str, String str2) {\n if (Build.VERSION.SDK_INT >= 11) {\n ((ClipboardManager) this.cordova.getActivity().getSystemService(\"clipboard\")).setPrimaryClip(ClipData.newPlainText(str2, str));\n }\n }", "public static void setText(String text) {\n Toolkit.getDefaultToolkit().getSystemClipboard().setContents(new StringSelection(text), null);\n }", "private void paste() {\n FileTreeNode treeNode = (FileTreeNode) treeGrid.getSelectedRecord();\n VMResource targetRes = treeNode.getResource();\n\n if (fileTreeNodeFactory.getParentDirId(targetRes.getId()) == rootId && targetRes instanceof VMFile) {\n for (VMResource resource : getSelectedResources()) {\n copyPaste(resource, rootId, tree.getRoot());\n }\n } else {\n long targetId = 0;\n TreeNode targetTreeNode = treeNode;\n if (targetRes instanceof VMDirectory) {\n targetId = ((VMDirectory) targetRes).getId();\n } else if (targetRes instanceof VMFile) {\n targetTreeNode = tree.getParent(targetTreeNode);\n targetId = ((VMDirectory) fileTreeNodeFactory.getResource(targetTreeNode)).getId();\n }\n for (VMResource resource : getSelectedResources()) {\n copyPaste(resource, targetId, targetTreeNode);\n }\n }\n }", "@Override\n\t\t\tpublic boolean onLongClick(View v) {\n\t\t\t\tClipboardManager clipboard = (ClipboardManager) getSystemService(Context.CLIPBOARD_SERVICE);\n\t\t\t\t\n\t\t\t\tpaste_clip_data = clipboard.getText().toString();\n\t\t\t\t\n\t\t\t\tif (!TextUtils.isEmpty(paste_clip_data) && paste_btn.getVisibility() == View.GONE){\n\t\t\t\t\t\n\t\t\t \t\n\t\t\t \tpaste_btn.setVisibility(View.VISIBLE);\n\t\t\t \t\n\t\t\t }\n\t\t\t\t\n\t\t\t\treturn true;\n\t\t\t}", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t a.cut();\n\t if(e.getSource()==paste)\n\t\t a.paste();\n\t if(e.getSource()==copy)\n\t\t a.copy();\n\t if(e.getSource()==selectAll)\n\t\t a.selectAll();\n\t\n\t\t\n\t}", "public void showCopyMenu() {\n new AlertDialog.Builder(getContext()).setItems(\n R.array.copypaste_menu_items,\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n String intentStr = null;\n switch (which) {\n case 0:\n ClipboardManager clip = (ClipboardManager) getContext()\n .getSystemService(\n Context.CLIPBOARD_SERVICE);\n if (clip != null) {\n clip.setText(mSelectedText);\n Toast.makeText(getContext(),\n R.string.text_copied,\n Toast.LENGTH_SHORT).show();\n }\n break;\n case 1:\n try {\n Uri uri = Uri.parse(\"sms:\");\n Intent intent = new Intent(\n Intent.ACTION_SENDTO, uri);\n intent.putExtra(\"sms_body\", mSelectedText);\n intent.putExtra(\"exit_on_send\", true);\n getContext().startActivity(intent);\n } catch (ActivityNotFoundException e) {\n e.printStackTrace();\n }\n break;\n case 2:\n try {\n Intent intent = new Intent();\n intent.setAction(\"com.motorola.createnote\");\n intent.putExtra(\"CLIPBOARD\", mSelectedText);\n getContext().startActivity(intent);\n } catch (ActivityNotFoundException e) {\n e.printStackTrace();\n }\n break;\n case 3:\n try {\n String broadcastAddress = String.format(\n \"%s://%s/%s\", \"searchWord\",\n \"powerword\", mSelectedText);\n Intent intent = new Intent(\n Intent.ACTION_VIEW, Uri\n .parse(broadcastAddress));\n getContext().startActivity(intent);\n } catch (ActivityNotFoundException e) {\n e.printStackTrace();\n }\n break;\n default:\n break;\n }\n\n clearSelection(true);\n\n }\n }).setOnCancelListener(new DialogInterface.OnCancelListener() {\n public void onCancel(DialogInterface dialog) {\n clearSelection(true);\n }\n }).show();\n }", "public void copySelection() {\n RTGraphComponent.RenderContext myrc = (RTGraphComponent.RenderContext) (getRTComponent().getRTRenderContext()); if (myrc == null) return;\n Clipboard clipboard = getToolkit().getSystemClipboard();\n StringBuffer sb = new StringBuffer();\n Iterator<String> it = (myrc.filterEntities(getRTParent().getSelectedEntities())).iterator();\n while (it.hasNext()) sb.append(it.next() + \"\\n\");\n StringSelection selection = new StringSelection(sb.toString());\n clipboard.setContents(selection, null);\n }", "@Override\n public void copy() {\n clipboard.setContents(getSelectionAsList(false));\n }", "private static void DoTextInput(TextEditor This, String textData, boolean isInsertKeyToggled, boolean acceptControlCharacters) \r\n {\r\n // Hide the mouse cursor on user input. \r\n HideCursor(This); \r\n\r\n // Remove control characters. Note that this is not included into _FilterText, \r\n // because we want such kind of filtering only for real input,\r\n // not for copy/paste.\r\n if (!acceptControlCharacters)\r\n { \r\n for (int i = 0; i < textData.Length; i++)\r\n { \r\n if (Char.IsControl(textData[i])) \r\n {\r\n textData = textData.Remove(i--, 1); // decrement i to compensate for character removal \r\n }\r\n }\r\n }\r\n\r\n String filteredText = This._FilterText(textData, This.Selection);\r\n if (filteredText.Length == 0) \r\n { \r\n return;\r\n } \r\n\r\n TextEditorTyping.OpenTypingUndoUnit(This);\r\n\r\n UndoCloseAction closeAction = UndoCloseAction.Rollback; \r\n\r\n try \r\n { \r\n using (This.Selection.DeclareChangeBlock())\r\n { \r\n This.Selection.ApplyTypingHeuristics(This.AllowOvertype && This._OvertypeMode && filteredText != \"\\t\");\r\n\r\n This.SetSelectedText(filteredText, InputLanguageManager.Current.CurrentInputLanguage);\r\n\r\n // Create caret position normalized backward to keep formatting of a character just typed\r\n ITextPointer caretPosition = This.Selection.End.CreatePointer(LogicalDirection.Backward); \r\n\r\n // Set selection at the end of input content\r\n This.Selection.SetCaretToPosition(caretPosition, LogicalDirection.Backward, /*allowStopAtLineEnd:*/true, /*allowStopNearSpace:*/true); \r\n // Note: Using explicit backward orientation we keep formatting with\r\n // a previous character during typing.\r\n\r\n closeAction = UndoCloseAction.Commit; \r\n }\r\n } \r\n finally \r\n {\r\n TextEditorTyping.CloseTypingUndoUnit(This, closeAction); \r\n }\r\n }", "void printTextToConsole(String content){\n }", "public static void doPasteitem ( RunData data)\n\t{\n\t\tParameterParser params = data.getParameters ();\n\n\t\tSessionState state = ((JetspeedRunData)data).getPortletSessionState (((JetspeedRunData)data).getJs_peid ());\n\n\t\t// get the copied item to be pasted\n\t\tString itemId = params.getString(\"itemId\");\n\n\t\tString collectionId = params.getString (\"collectionId\");\n\n\t\tString originalDisplayName = NULL_STRING;\n\n\t\ttry\n\t\t{\n\t\t\tResourceProperties properties = ContentHostingService.getProperties (itemId);\n\t\t\toriginalDisplayName = properties.getPropertyFormatted (ResourceProperties.PROP_DISPLAY_NAME);\n\n\t\t\t// copy, cut and paste not operated on collections\n\t\t\tif (properties.getProperty (ResourceProperties.PROP_IS_COLLECTION).equals (Boolean.TRUE.toString()))\n\t\t\t{\n\t\t\t\tString alert = (String) state.getAttribute(STATE_MESSAGE);\n\t\t\t\tif (alert == null || ((alert != null) && (alert.indexOf(RESOURCE_INVALID_OPERATION_ON_COLLECTION_STRING) == -1)))\n\t\t\t\t{\n\t\t\t\t\taddAlert(state, RESOURCE_INVALID_OPERATION_ON_COLLECTION_STRING);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t// paste the resource\n\t\t\t\tContentResource resource = ContentHostingService.getResource (itemId);\n\t\t\t\tResourceProperties p = ContentHostingService.getProperties(itemId);\n\t\t\t\tString displayName = DUPLICATE_STRING + p.getProperty(ResourceProperties.PROP_DISPLAY_NAME);\n\n\t\t\t\tString newItemId = ContentHostingService.copyIntoFolder(itemId, collectionId);\n\n\t\t\t\tContentResourceEdit copy = ContentHostingService.editResource(newItemId);\n\t\t\t\tResourcePropertiesEdit pedit = copy.getPropertiesEdit();\n\t\t\t\tpedit.addProperty(ResourceProperties.PROP_DISPLAY_NAME, displayName);\n\t\t\t\tContentHostingService.commitResource(copy, NotificationService.NOTI_NONE);\n\n\t\t\t}\t// if-else\n\t\t}\n\t\tcatch (PermissionException e)\n\t\t{\n\t\t\taddAlert(state, rb.getString(\"notpermis8\") + \" \" + originalDisplayName + \". \");\n\t\t}\n\t\tcatch (IdUnusedException e)\n\t\t{\n\t\t\taddAlert(state,RESOURCE_NOT_EXIST_STRING);\n\t\t}\n\t\tcatch (IdUsedException e)\n\t\t{\n\t\t\taddAlert(state, rb.getString(\"notaddreso\") + \" \" + originalDisplayName + \" \" + rb.getString(\"used2\"));\n\t\t}\n\t\tcatch(IdLengthException e)\n\t\t{\n\t\t\taddAlert(state, rb.getString(\"toolong\") + \" \" + e.getMessage());\n\t\t}\n\t\tcatch(IdUniquenessException e)\n\t\t{\n\t\t\taddAlert(state, \"Could not add this item to this folder\");\n\t\t}\n\t\tcatch (InconsistentException ee)\n\t\t{\n\t\t\taddAlert(state, RESOURCE_INVALID_TITLE_STRING);\n\t\t}\n\t\tcatch(InUseException e)\n\t\t{\n\t\t\taddAlert(state, rb.getString(\"someone\") + \" \" + originalDisplayName + \". \");\n\t\t}\n\t\tcatch(OverQuotaException e)\n\t\t{\n\t\t\taddAlert(state, rb.getString(\"overquota\"));\n\t\t}\n\t\tcatch(ServerOverloadException e)\n\t\t{\n\t\t\t// this represents temporary unavailability of server's filesystem\n\t\t\t// for server configured to save resource body in filesystem\n\t\t\taddAlert(state, rb.getString(\"failed\"));\n\t\t}\n\t\tcatch (TypeException e)\n\t\t{\n\t\t\taddAlert(state, rb.getString(\"pasteitem\") + \" \" + originalDisplayName + \" \" + rb.getString(\"mismatch\"));\n\t\t}\t// try-catch\n\n\t\tif (state.getAttribute(STATE_MESSAGE) == null)\n\t\t{\n\t\t\t// delete sucessful\n\t\t\tString mode = (String) state.getAttribute(STATE_MODE);\n\t\t\tif(MODE_HELPER.equals(mode))\n\t\t\t{\n\t\t\t\tstate.setAttribute(STATE_RESOURCES_HELPER_MODE, MODE_ATTACHMENT_SELECT);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tstate.setAttribute (STATE_MODE, MODE_LIST);\n\t\t\t}\n\n\t\t\t// try to expand the collection\n\t\t\tSortedSet expandedCollections = (SortedSet) state.getAttribute(STATE_EXPANDED_COLLECTIONS);\n\t\t\tif(! expandedCollections.contains(collectionId))\n\t\t\t{\n\t\t\t\texpandedCollections.add(collectionId);\n\t\t\t}\n\n\t\t\t// reset the copy flag\n\t\t\tif (((String)state.getAttribute (STATE_COPY_FLAG)).equals (Boolean.TRUE.toString()))\n\t\t\t{\n\t\t\t\tstate.setAttribute (STATE_COPY_FLAG, Boolean.FALSE.toString());\n\t\t\t}\n\t\t}\n\n\t}", "private static void OnToggleInsert(Object target, ExecutedRoutedEventArgs args)\r\n { \r\n TextEditor This = TextEditor._GetTextEditor(target); \r\n\r\n if (This == null || !This._IsEnabled || This.IsReadOnly) \r\n {\r\n return;\r\n }\r\n\r\n This._OvertypeMode = !This._OvertypeMode;\r\n\r\n // Use Cicero's transitory extension for OverTyping. \r\n if (TextServicesLoader.ServicesInstalled && (This.TextStore != null))\r\n { \r\n TextServicesHost tsfHost = TextServicesHost.Current;\r\n if (tsfHost != null)\r\n {\r\n if (This._OvertypeMode) \r\n {\r\n IInputElement element = target as IInputElement; \r\n if (element != null) \r\n {\r\n PresentationSource.AddSourceChangedHandler(element, OnSourceChanged); \r\n }\r\n\r\n TextServicesHost.StartTransitoryExtension(This.TextStore);\r\n } \r\n else\r\n { \r\n IInputElement element = target as IInputElement; \r\n if (element != null)\r\n { \r\n PresentationSource.RemoveSourceChangedHandler(element, OnSourceChanged);\r\n }\r\n\r\n TextServicesHost.StopTransitoryExtension(This.TextStore); \r\n }\r\n } \r\n } \r\n }", "public interface ClipboardListener {\n\t/**\n\t * If paste is enabled (some \"pastable\" content in the clipboard)\n\t * \n\t * @param enabled\n\t * true if enabled\n\t */\n\tpublic void pasteEnabled(boolean enabled);\n\n\t/**\n\t * If there is content to copy or cut selected\n\t * \n\t * @param enabled\n\t * true if enabled\n\t */\n\tpublic void cutCopyEnabled(boolean enabled);\n}", "@Override\r\n\t\t\t\tpublic void documentChanged(DocumentEvent event) {\n\t\t\t\t\tif (event.fText.indexOf('\\r') != -1 || event.fText.indexOf('\\n') != -1) {\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tITypedRegion partition;\r\n\t\t\t\t\t\t\tpartition = event.fDocument.getPartition(event.fOffset);\r\n\t\t\t\t\t\t\tif (partition instanceof IOConsolePartition) {\r\n\t\t\t\t\t\t\t\tIOConsolePartition p = (IOConsolePartition) partition;\r\n\t\t\t\t\t\t\t\tif (p.getType().equals(IOConsolePartition.INPUT_PARTITION_TYPE)) {\r\n\t\t\t\t\t\t\t\t\tif (event.fText.length() > 2) {\r\n\t\t\t\t\t\t\t\t\t\t// user pasted something\r\n\t\t\t\t\t\t\t\t\t\tfConsoleInterpreter.postRIDECommand(event.fText);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t} catch (BadLocationException e) {\r\n\t\t\t\t\t\t\tLog.log(IStatus.ERROR, \"Can't listen what paste to RIDE console\", e);\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}", "private void paste( int index, int clipNum) {\n\n this.insertbefore( clipBoards.get(clipNum).toString(), index);\n\n\n }", "@Override\n\tprotected CommandResult doUndoWithResult(IProgressMonitor progressMonitor,\n\t\t\tIAdaptable info) throws ExecutionException {\n\t\tpasteCommand.doUndoWithResult(progressMonitor, info);\n\t\treturn null;\n\t}", "public String getClipboardContents() {\n\t\tString result = \"\";\n\t\tClipboard clipboard = Toolkit.getDefaultToolkit().getSystemClipboard();\n\t\t// odd: the Object param of getContents is not currently used\n\t\tTransferable contents = clipboard.getContents(null);\n\t\tboolean hasTransferableText = (contents != null) && contents.isDataFlavorSupported(DataFlavor.stringFlavor);\n\t\tif (hasTransferableText) {\n\t\t\ttry {\n\t\t\t\tresult = (String) contents.getTransferData(DataFlavor.stringFlavor);\n\t\t\t\ttfURL.setText(result);\n\t\t\t} catch (UnsupportedFlavorException | IOException ex) {\n\t\t\t\tSystem.out.println(ex);\n\t\t\t\tex.printStackTrace();\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "@FXML\n private void copyUrl() {\n final Clipboard clipboard = Clipboard.getSystemClipboard();\n final ClipboardContent url = new ClipboardContent();\n url.putString(HELP_URL);\n clipboard.setContent(url);\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n\n Clipboard cb = Toolkit.getDefaultToolkit().getSystemClipboard();\n //cb.setContents(new CellTransferable(component.getValueAt(row, col)), null);\n //Transferable transferable = new StringSelection((String)table.getValueAt(row, col));\n //cb.setContents(transferable,null);\n \n \n int [] rows = table.getSelectedRows();\n int [] columns = table.getSelectedColumns();\n \n \n StringBuffer selection = new StringBuffer();\n for (int r: rows)\n {\n \tfor (int c: columns)\n \t{\n \t\t\tselection.append((String)table.getValueAt(r, c)); \n \t\t\tselection.append(\";\");\n \t}\n\t\t\tselection.append(\"\\n\");\n\n }\n Transferable transferable = new StringSelection(selection.toString());\n cb.setContents(transferable,null);\n \n }", "public String copyText(String object, String data) {\n\n try {\n String objects[] = object.split(\",\");\n String src = objects[0];\n String dest = objects[1];\n String SLCTaLL = Keys.chord(Keys.CONTROL, \"a\");\n String ctrlC = Keys.chord(Keys.CONTROL, \"c\");\n String ctrlV = Keys.chord(Keys.CONTROL, \"v\");\n\n wait.until(explicitWaitForElement(By.xpath(OR.getProperty(src)))).sendKeys(SLCTaLL);\n wait.until(explicitWaitForElement(By.xpath(OR.getProperty(src)))).sendKeys(ctrlC);\n Thread.sleep(2000);\n wait.until(explicitWaitForElement(By.xpath(OR.getProperty(dest)))).sendKeys(\" \" + ctrlV);\n\n }\ncatch(TimeoutException ex)\n\t\t\n\t\t{\n\t\t\treturn Constants.KEYWORD_FAIL +\"Cause: \"+ ex.getCause();\n\t\t}\n catch (Exception e) {\n \n return Constants.KEYWORD_FAIL + \" Unable to write \" + e.getLocalizedMessage();\n }\n return Constants.KEYWORD_PASS + \"--\" + data;\n\n }", "@Override\n\tpublic boolean onTextContextMenuItem(int id)\n\t{\n\t\t// Do your thing:\n\t\tboolean consumed = super.onTextContextMenuItem(id);\n\t\t// React:\n\t\tswitch (id)\n\t\t{\n\t\t\tcase android.R.id.cut:\n\t\t\t\tonTextCut();\n\t\t\t\tbreak;\n\t\t\tcase android.R.id.paste:\n\t\t\t\tonTextPaste();\n\t\t\t\tbreak;\n\t\t\tcase android.R.id.copy:\n\t\t\t\tonTextCopy();\n\t\t}\n\t\treturn consumed;\n\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t\tif (!TextUtils.isEmpty(paste_clip_data)){\n\t\t\t\t\t\n\t\t\t\t\tphone_num_edt.setText(paste_clip_data);\n\t\t\t\t\tpaste_btn.setVisibility(View.GONE);\n\t\t\t\t}\n\t\t\t}", "@FXML\n private void copyHelp() {\n final Clipboard clipboard = Clipboard.getSystemClipboard();\n final ClipboardContent url = new ClipboardContent();\n url.putString(HELP);\n clipboard.setContent(url);\n }", "@Override\r\n\t\t\tpublic void documentChanged(DocumentEvent event) {\n\t\t\t\tif (event.fText.indexOf('\\r') != -1 || event.fText.indexOf('\\n') != -1) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tITypedRegion partition;\r\n\t\t\t\t\t\tpartition = event.fDocument.getPartition(event.fOffset);\r\n\t\t\t\t\t\tif (partition instanceof IOConsolePartition) {\r\n\t\t\t\t\t\t\tIOConsolePartition p = (IOConsolePartition) partition;\r\n\t\t\t\t\t\t\tif (p.getType().equals(IOConsolePartition.INPUT_PARTITION_TYPE)) {\r\n\t\t\t\t\t\t\t\tif (event.fText.length() > 2) {\r\n\t\t\t\t\t\t\t\t\t// user pasted something\r\n//\t\t\t\t\t\t\t\t\tfTarget.postSessionPrompt(event.fText);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} catch (BadLocationException e) {\r\n\t\t\t\t\t\tLog.log(IStatus.ERROR, \"Can't listen what paste to RIDE console\", e);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}", "public void copy() {\n\t\tcmd = new CopyCommand(editor);\n\t\tinvoker = new MiniEditorInvoker(cmd);\n\t\tinvoker.action();\n\t}", "public void copyTextFrom(Expression e) {\r\n\t\tthis.text = new StringBuffer(new String(e.text()));\r\n\t}" ]
[ "0.7854951", "0.7755361", "0.7475482", "0.721923", "0.70290637", "0.69604063", "0.6843364", "0.6831503", "0.670197", "0.6656253", "0.6628329", "0.6610946", "0.6606266", "0.6554626", "0.6538986", "0.6506413", "0.6480726", "0.63831824", "0.6377591", "0.6374312", "0.63645834", "0.6301155", "0.6282746", "0.62789553", "0.62495893", "0.6232114", "0.62315416", "0.6157473", "0.6135261", "0.61334383", "0.6061097", "0.60538024", "0.60462236", "0.60317355", "0.60125595", "0.6010511", "0.5990454", "0.5985471", "0.5978836", "0.59672225", "0.5957894", "0.591953", "0.5905452", "0.5900308", "0.58964556", "0.58747846", "0.585852", "0.5843625", "0.58431137", "0.58205974", "0.5815455", "0.57791364", "0.57601726", "0.576006", "0.57531905", "0.574989", "0.5744778", "0.56977326", "0.5696352", "0.5667441", "0.56569475", "0.56431663", "0.56427866", "0.5630022", "0.5610694", "0.56018686", "0.5601114", "0.55706775", "0.5567835", "0.5566869", "0.5565637", "0.55611455", "0.5527312", "0.551265", "0.55113447", "0.5505484", "0.54957944", "0.5484427", "0.5472654", "0.54711825", "0.54635334", "0.5461005", "0.5458084", "0.5439919", "0.5436419", "0.54103863", "0.5403405", "0.5401499", "0.53977734", "0.53677493", "0.5362001", "0.5360311", "0.5358679", "0.5354028", "0.5332228", "0.5330547", "0.5301434", "0.52885646", "0.5272533", "0.52677476" ]
0.74190396
3
Method to call operation for delete text
public void delete() { cmd = new DeleteCommand(editor); invoker = new MiniEditorInvoker(cmd); invoker.action(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void performDelete() {\n \t\tif (text.getSelectionCount() > 0)\n \t\t\ttext.insert(StringStatics.BLANK);\n \t\telse {\n \t\t\t// remove the next character\n \t\t\tint pos = text.getCaretPosition();\n \t\t\tif (pos < text.getCharCount()) {\n \t\t\t\ttext.setSelection(pos, pos + 1);\n \t\t\t\ttext.insert(StringStatics.BLANK);\n \t\t\t}\n \t\t}\n \t\tcheckSelection();\n \t\tcheckDeleteable();\n \t\tcheckSelectable();\n \t}", "private static void OnDelete(Object sender, ExecutedRoutedEventArgs args)\r\n { \r\n TextEditor This = TextEditor._GetTextEditor(sender); \r\n\r\n if (This == null || !This._IsEnabled || This.IsReadOnly || !This._IsSourceInScope(args.Source)) \r\n {\r\n return;\r\n }\r\n\r\n TextEditorTyping._FlushPendingInputItems(This);\r\n\r\n // Note, that Delete and Backspace keys behave differently. \r\n ((TextSelection)This.Selection).ClearSpringloadFormatting();\r\n\r\n // Forget previously suggested horizontal position\r\n TextEditorSelection._ClearSuggestedX(This);\r\n\r\n using (This.Selection.DeclareChangeBlock()) \r\n {\r\n ITextPointer position = This.Selection.End; \r\n if (This.Selection.IsEmpty) \r\n {\r\n ITextPointer deletePosition = position.GetNextInsertionPosition(LogicalDirection.Forward); \r\n\r\n if (deletePosition == null)\r\n {\r\n // Nothing to delete. \r\n return;\r\n } \r\n\r\n if (TextPointerBase.IsAtRowEnd(deletePosition))\r\n { \r\n // Backspace and delete are a no-op at row end positions.\r\n return;\r\n }\r\n\r\n if (position is TextPointer && !IsAtListItemStart(deletePosition) &&\r\n HandleDeleteWhenStructuralBoundaryIsCrossed(This, (TextPointer)position, (TextPointer)deletePosition)) \r\n { \r\n // We are crossing structural boundary and\r\n // selection was updated in HandleDeleteWhenStructuralBoundaryIsCrossed. \r\n return;\r\n }\r\n\r\n // Selection is empty, extend selection forward to delete the following char. \r\n This.Selection.ExtendToNextInsertionPosition(LogicalDirection.Forward);\r\n } \r\n\r\n // Delete selected text.\r\n This.Selection.Text = String.Empty; \r\n }\r\n }", "public void delete()\n {\n call(\"Delete\");\n }", "public void removeByTodoText(String todoText);", "private void excluir(String text) { \n try{\n //Variaveis de sessao\n Session s = HibernateUtil.getSessionFactory().openSession();\n s.beginTransaction();\n //sql \n Query q = s.createSQLQuery(\"delete from estacionamento where placa = \"+text);\n //execulta e grava\n q.executeUpdate();\n s.getTransaction().commit();\n \n //exeção //nao conectou // erro\n }catch(HibernateException e){\n JOptionPane.showConfirmDialog(null, \"erro :\"+e );\n }\n \n \n \n \n }", "public DeleteCommand(String commandText) {\n super();\n description = commandText;\n }", "void deleteCommand(String commandID);", "public void deleteOneWord(Pojo.OneWord e){ \n template.delete(e); \n}", "public void delete(String so_cd);", "void onDelete() {\n if (getText().equals(mResult) || mIsError) {\n clear();\n } else {\n mDisplay.dispatchKeyEvent(new KeyEvent(0, KeyEvent.KEYCODE_DEL));\n mResult = \"\";\n }\n }", "@Override\r\n\tpublic void k_delete(String MF_NO) {\n\t\t\r\n\t}", "@Override\n\tpublic void delete(String code) {\n\n\t}", "public void delete(){\n if(currentText != null) {\n //The saved character index should no longer be restored\n savedCharacterIndex = -1;\n\n //If a character is being removed from a single line\n if (characterIndex < currentText.getCharacterEdges().length - 1) {\n currentText = codeWindow.getTextLineController().backspace(currentText, characterIndex, false);\n }\n //If a newline character is being removed two lines need to be merged\n else if (lineIndex < texts.size() - 1) {\n currentText = codeWindow.getTextLineController().merge(currentText, codeWindow.getTextLineController().getCodeWindowTextLines().get(lineIndex + 1), codeWindow);\n }\n //The cursors position is unchanged\n }\n }", "@Override\n\tpublic void delete(String arg0) {\n\t\t\n\t}", "public void setDeleteButtonText(String text) {\n/*Generated! Do not modify!*/ replyDTO.getVariablesToSet().add(\"overviewSmall_deleteButton_propertyText\");\n/*Generated! Do not modify!*/ if (text == null) {\n/*Generated! Do not modify!*/ replyDTO.getVariableValues().remove(\"overviewSmall_deleteButton_propertyText\");\n/*Generated! Do not modify!*/ } else {\n/*Generated! Do not modify!*/ replyDTO.getVariableValues().put(\"overviewSmall_deleteButton_propertyText\", text);\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ if (recordMode){\n/*Generated! Do not modify!*/ addRecordedAction(\"setDeleteButtonText(\" + escapeString(text) + \");\");\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ }", "@Override\r\n\tpublic String delete() {\n\t\treturn \"delete\";\r\n\t}", "private static void OnDeleteNextWord(Object sender, ExecutedRoutedEventArgs args)\r\n { \r\n TextEditor This = TextEditor._GetTextEditor(sender); \r\n\r\n if (This == null || !This._IsEnabled || This.IsReadOnly) \r\n {\r\n return;\r\n }\r\n\r\n if (This.Selection.IsTableCellRange)\r\n { \r\n return; \r\n }\r\n\r\n TextEditorTyping._FlushPendingInputItems(This);\r\n\r\n ITextPointer wordBoundary = This.Selection.End.CreatePointer();\r\n\r\n // When selection is not empty the command deletes selected content\r\n // without extending it to the word bopundary. For empty selection \r\n // the command deletes a content from caret position to \r\n // nearest word boundary in a given direction\r\n if (This.Selection.IsEmpty) \r\n {\r\n TextPointerBase.MoveToNextWordBoundary(wordBoundary, LogicalDirection.Forward);\r\n }\r\n\r\n if (TextRangeEditTables.IsTableStructureCrossed(This.Selection.Start, wordBoundary))\r\n { \r\n return; \r\n }\r\n\r\n ITextRange textRange = new TextRange(This.Selection.Start, wordBoundary);\r\n\r\n // When a range is TableCellRange we do not want to make deletions\r\n if (textRange.IsTableCellRange) \r\n {\r\n return; \r\n } \r\n\r\n if (!textRange.IsEmpty) \r\n {\r\n using (This.Selection.DeclareChangeBlock())\r\n {\r\n // Note asymetry with Backspace: we do not load springload formatting here \r\n if (This.AcceptsRichContent)\r\n { \r\n ((TextSelection)This.Selection).ClearSpringloadFormatting(); \r\n }\r\n\r\n This.Selection.Select(textRange.Start, textRange.End);\r\n\r\n // Delete selected text\r\n This.Selection.Text = String.Empty; \r\n }\r\n } \r\n }", "public void operationDelete() {\n\r\n\t\tstatusFeldDelete();\r\n\t}", "@Override\n public int delete(String arg0) {\n return 0;\n }", "public void delete(String arg0) {\n\t\t\n\t}", "@Override\n\tpublic String getPreparedDeleteText() {\n\t\treturn SQL_Delete;\n\t}", "public void ButtonDel (View v){\n String expression = resultView.getText().toString();\n if (expression != \"Syntax Error\") {\n if (expression.length() > 2)\n expression = expression.substring(0, expression.length() - 1);\n else if (expression.length() == 2 && !expression.substring(0, 1).equals(\"-\"))\n expression = expression.substring(0, expression.length() - 1);\n else {\n expression = \"0\";\n mIsTyping = false;\n }\n resultView.setText(expression);\n }\n }", "String delete(int index);", "public void delete() {\n\t if (input.getSelectedText() != null){\n\t input.setText(input.getText().replace(\n\t input.getSelectedText(), \"\"));}\n\t}", "public void delete(String arg0) {\n\n\t}", "int deleteByExample(PdfCodeTemporaryExample example);", "public void clearTextBytes();", "@Override\n public String execute(TaskManager tm, Ui ui, Storage storage) throws DukeException {\n String[] commandDetails = command.split(\" \", 2);\n // Handles empty delete command\n if (commandDetails.length == 1) {\n throw new DukeException(\"Delete Index not provided!\");\n }\n\n assert commandDetails.length == 2;\n try {\n int delIndex = Integer.parseInt(commandDetails[1]) - 1;\n Task delTask = tm.getTask(delIndex);\n tm.deleteTask(delIndex);\n postCommandSave(tm, storage);\n return (\"Task deleted: \" + delTask);\n } catch (NumberFormatException e) {\n throw new DukeException(\"Index is not a number!\");\n }\n }", "private void delete(){\n solo.waitForView(R.id.search_action_button);\n solo.clickOnView(solo.getView(R.id.search_action_button));\n\n //Click on search bar\n SearchView searchBar = (SearchView) solo.getView(R.id.search_experiment_query);\n solo.clickOnView(searchBar);\n solo.sleep(500);\n\n //Type in a word from the description\n solo.typeText(0, searchTerm);\n\n //Make sure the experiment shows up\n assertTrue(solo.waitForText(description));\n\n //Click on experiment\n solo.clickOnText(description);\n\n //Click on more tab\n solo.waitForView(R.id.subscribe_button_experiment);\n solo.clickOnText(\"More\");\n\n //Click on unpublish button\n solo.clickOnView(solo.getView(R.id.delete_experiment_button));\n }", "private Delete() {}", "private Delete() {}", "void delete(SpCharInSeq spCharInSeq);", "public abstract void delete(int msg);", "@Override\r\n\tpublic void delete(TQssql sql) {\n\r\n\t}", "void delete( String officeCode );", "int deleteByExample(TerminalInfoExample example);", "void removeHadithText(Object oldHadithText);", "void deleteKeyword(String name);", "private void delete() {\n\n\t}", "int deleteContent(@Param(\"id\") long id);", "public static String _btndelete_click() throws Exception{\ntry { //BA.debugLineNum = 94;BA.debugLine=\"txtval.Text = txtval.Text.SubString2(0,txtval.Text.Length - 1)\";\nmostCurrent._txtval.setText((Object)(mostCurrent._txtval.getText().substring((int) (0),(int) (mostCurrent._txtval.getText().length()-1))));\n } \n catch (Exception e62) {\n\t\t\tprocessBA.setLastException(e62); };\n //BA.debugLineNum = 97;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "int deleteByTitle(String title);", "String delete(int pos, int count);", "int deleteByExample(ComplainNoteDOExample example);", "@Override\n public void onClick(View v) {\n\n CouSyncDb.getInstance(getApplicationContext()).deleteSync(bean1, new OnOperateFinish() {\n @Override\n public void onFinish(int operateType, Object result) {\n text.setText(\"delete row ID = \" + result.toString());\n }\n });\n }", "SpCharInSeq delete(Integer spcharinseqId);", "@Override\n public void clickDelete() {\n if (view.length() > 0) {\n view.setText(view.getText().subSequence(0, view.length() - 1));\n view.setSelection(view.getText().length());\n }\n }", "protected abstract void doDelete();", "private CommandResult deleteLesson() throws KolinuxException {\n timetable.executeDelete(parsedArguments);\n logger.log(Level.INFO, \"User has deleted\" + parsedArguments[0].toUpperCase()\n +\n \" from the timetable.\");\n return new CommandResult(parsedArguments[0].toUpperCase()\n +\n \" \" + parsedArguments[1].toUpperCase() + \" \" + parsedArguments[3] + \" \"\n +\n parsedArguments[2].toLowerCase()\n +\n \" has been deleted from timetable\");\n }", "public void removeByTodoRichText(String todoRichText);", "public void delete() {\n\n\t}", "public void unsetText()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(TEXT$18, 0);\n }\n }", "@Override\n\tpublic int delete(Utente input) throws Exception {\n\t\treturn 0;\n\t}", "@Override\n\tpublic void delete(String... args) throws SQLException {\n\t\t\n\t}", "public String getCommandName() {\r\n return \"batchDelete\";\r\n }", "protected void DeleteCategoryDialog(String apptext, final int position,\n final int arg2) {\n new AlertDialog.Builder(this).setCancelable(false)\n .setMessage(\"确定删除:\" + apptext + \" 分类\")// 提示框标题\n .setPositiveButton(\"确定\",// 提示框的两个按钮\n new DialogInterface.OnClickListener()\n {\n @Override\n public void onClick(DialogInterface dialog,\n int which) {\n AppManagerActivity.this.DeleteCategory(position, arg2);\n }\n }).setNegativeButton(\"取消\", null).create().show();\n }", "private void deleteFile() {\r\n actionDelete(dataModelArrayList.get(position));\r\n }", "public void processDeletion(String text, int offset) {\n\t\t// go over all concepts and look at which one might be removed\n\t\tSet<ReportConcept> torem = new HashSet<ReportConcept>();\n\t\tfor (ReportConcept c : concepts) {\n\t\t\tif (c.isInConceptText(offset) || (offset <= c.getOffset() && c.getEndOffset() <= (offset + text.length()))) {\n\t\t\t\t// remove relevant labels\n\t\t\t\tfor (ConceptLabel l : c.getLabels()) {\n\t\t\t\t\tif (l.getText() != null && text.contains(l.getText())) {\n\t\t\t\t\t\ttorem.add(c);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t// remove concepts that were removed\n\t\tconcepts.removeAll(torem);\n\n\t\t\n\t\t// add to removed\n\t\tif (!torem.isEmpty()) {\n\t\t\t// temove labels\n\t\t\tfor(ReportConcept c: torem){\n\t\t\t\tc.removeLabels();\n\t\t\t}\n\t\t\tremovedConcepts.addAll(torem);\n\n\t\t\t// start deletion process\n\t\t\tif (syncTimer.isRunning())\n\t\t\t\tsyncTimer.stop();\n\t\t\tsyncTimer.start();\n\t\t}\n\t}", "public static void main_delete(String args[]){\n\t//public static void main(String args[]){\n\t\tQueryResponse solr_response = null;\n\n\t\tSolrConnection tmp_conn = new SolrConnection();\n\t\ttmp_conn.setSolrURL(\"http://localhost:8983/solr/Test1\");\n\t\t\n\t\tHashMap<String,String> params = new HashMap<String,String>();\n\t\tparams.put(\"rows\", \"16\");\n\t\t//tmp_conn.resetQueryParams();\n\t\ttmp_conn.setQueryParams(params);\n\t\t//tmp_conn.setQueryParams(\"q\",\"id:\"+QueryParser.escape(\"com.xinhuanet.js.www:http/2013-10/14/c_117706867_16.htm\"));\n\t\t\n\t\ttry {\n\t\t\tsolr_response = tmp_conn.getContent();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\tfor (SolrDocument doc:solr_response.getResults()){\n\t\t\t//String id = doc.getFieldValue(\"id\").toString();\n\t\t\n\t\tList<String> ids = new ArrayList<String>();\n\t\t//ids.add(\"3\");\n\t\t//ids.add(\"8\");\n\t\t//ids.add(\"7\");\n\t\tids.add(doc.getFieldValue(\"id\").toString());\n\t\ttmp_conn.deleteContentById(ids);\n\t\t}\n\t}", "@Override\n\tpublic void delete(Pessoa arg0) {\n\t\t\n\t}", "public static final String delete(int count) {\n if (count == 1)\n return DELETE;\n return repeat(\"DELETE\"/*I18nOK:EMS*/, count);\n }", "public String deleteFrom(CharSequence sequence, UnicodeSet.SpanCondition spanCondition) {\n/* 137 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\n\tpublic String delete() throws Exception {\n\t\treturn null;\n\t}", "public void delete(){\r\n\r\n }", "private void cmd_deleteSelection(){\n\t\tm_frame.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));\n\t\tif (ADialog.ask(getWindowNo(), m_frame.getContainer(), \"DeleteSelection\"))\n\t\t{\t\n\t\t\tint records = deleteSelection(detail);\n\t\t\tsetStatusLine(Msg.getMsg(Env.getCtx(), \"Deleted\") + records, false);\n\t\t}\t\n\t\tm_frame.setCursor(Cursor.getDefaultCursor());\n\t\tbDelete.setSelected(false);\n\t\texecuteQuery();\n\t\t\n\t}", "@Override\r\n\tpublic int delete(ActionContext arg0) throws Exception {\n\t\treturn 0;\r\n\t}", "public void DELETE(String name){\r\n\r\n try {\r\n out.println(\"DELE \" + name);\r\n out.flush();\r\n System.out.println(in.readLine());\r\n } catch (Exception e) {\r\n System.out.println(e);\r\n }\r\n\r\n }", "public void delLiteral();", "int deleteByPrimaryKey(String terminalId);", "String deleteENH(String request) throws RemoteException;", "@Override\n public void deleteItem(P_CK t) {\n \n }", "@Override\n public void delete(int id) {\n repr.delete(id);\n }", "@Override\r\n\tpublic int delete(long id) {\n\t\treturn keywordMapper.deleteByPrimaryKey(id);\r\n\t}", "@Override\n\tpublic void delete(String id) throws Exception {\n\n\t}", "public void delete() {\n\n }", "int deleteByPrimaryKey(String licFlow);", "@Override\n\t\tpublic void setText(CharSequence text, BufferType type) {\n\t\t\tsuper.setText(text, type);\n\t\t\tmDeleteStatus = false;\n\t\t}", "public int delete( Conge conge ) ;", "@Override\r\n\t//public void sqlQueryDelete(JComboBox combo, String s, JTextArea textArea, Vector vectorCombo) {\r\n\tpublic void sqlQueryDelete(String s, Vector vectorCombo) {\n\t\ttry {\r\n\t\t\tstatement = conn.prepareStatement(\"DELETE FROM words WHERE word=?\");\t\t\r\n\t\t\tstatement.setString(1, s);\r\n\t\t\tstatement.executeUpdate();\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\ttextArea.setText(e.getMessage());\r\n\t\t}\r\n textArea.setText(\"\");\r\n JOptionPane.showMessageDialog(null, s + \" delete completed\");\r\n sqlQueryList(vectorCombo);\r\n\t}", "@Override\r\n\tpublic MorseCodeTree<String> delete(String element) throws UnsupportedOperationException {\r\n\t\t// TODO Auto-generated method stub\r\n\t\treturn null;\r\n\t}", "public abstract void deletedWords(long ms, int n);", "@Override\n\tpublic String deleteBatch() throws Exception {\n\t\treturn null;\n\t}", "@Override\n\tpublic int delete(Uri uri, String selection, String[] selectionArgs) {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int delete(Uri uri, String selection, String[] selectionArgs) {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int delete(Uri uri, String selection, String[] selectionArgs) {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int delete(Uri uri, String selection, String[] selectionArgs) {\n\t\treturn 0;\n\t}", "void delete(String id);", "void delete(String id);", "void delete(String id);", "void delete(String id);", "void delete(String id);", "void delete(String id);", "public void del(String docId);", "@Override\n\tpublic void delete(Translator entity) {\n\t\t\n\t}", "@Override\n public String executeGui(TaskList items, Ui ui) {\n String deletedStr = \" \" + items.get(index).toString();\n items.remove(index);\n String str = Ui.showDeleteGui(items, deletedStr);\n return str;\n }", "@Override\n\tpublic void deleteanswer(Integer id) throws Exception {\n\t\t\n\t}", "protected void undoTextChange() {\n \t\t\ttry {\n \t\t\t\tif (fDocumentUndoManager.fDocument instanceof IDocumentExtension4)\n \t\t\t\t\t((IDocumentExtension4) fDocumentUndoManager.fDocument).replace(fStart, fText\n \t\t\t\t\t\t\t.length(), fPreservedText, fUndoModificationStamp);\n \t\t\t\telse\n \t\t\t\t\tfDocumentUndoManager.fDocument.replace(fStart, fText.length(),\n \t\t\t\t\t\t\tfPreservedText);\n \t\t\t} catch (BadLocationException x) {\n \t\t\t}\n \t\t}", "public int delete(String code) throws DataAccessException;", "@Override\r\n\tpublic void delete(String id) {\n\t\t\r\n\t}", "public void deleteLike() {\n // TODO implement here\n }" ]
[ "0.66406405", "0.6596173", "0.6577691", "0.6477343", "0.6337705", "0.6337615", "0.63162875", "0.62906265", "0.6229601", "0.62071013", "0.6201003", "0.61753255", "0.6173185", "0.6144884", "0.60931027", "0.6085038", "0.6081478", "0.60764533", "0.60737133", "0.60608935", "0.60499185", "0.6030969", "0.60227853", "0.6002743", "0.5987347", "0.595698", "0.5940994", "0.5935749", "0.5922479", "0.59201753", "0.59201753", "0.59197986", "0.58888316", "0.5859227", "0.58460164", "0.5833099", "0.58276886", "0.5827487", "0.58080393", "0.5795233", "0.5783029", "0.5776815", "0.5773146", "0.5762928", "0.5757204", "0.57351404", "0.5734799", "0.57306796", "0.5728752", "0.5722377", "0.57051146", "0.5702382", "0.57013714", "0.57007813", "0.56924784", "0.5685163", "0.56643", "0.5662656", "0.5662166", "0.56607974", "0.5660123", "0.5651428", "0.5646294", "0.5643566", "0.5640507", "0.5626701", "0.5621604", "0.562002", "0.561676", "0.5614129", "0.56125486", "0.5595467", "0.55867505", "0.5585973", "0.5585423", "0.5582037", "0.5575334", "0.55724066", "0.5569256", "0.55600274", "0.5552864", "0.5551675", "0.5550709", "0.5550709", "0.5550709", "0.5550709", "0.55407625", "0.55407625", "0.55407625", "0.55407625", "0.55407625", "0.55407625", "0.5537356", "0.5535469", "0.55319405", "0.55284894", "0.5523887", "0.5522265", "0.55209607", "0.5516203" ]
0.59440374
26
Method to call operation for start recording
public void startRecord() { cmd = new StartRecordCommand(editor); invoker = new MiniEditorInvoker(cmd); invoker.action(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void startRecording() {\n\n }", "void startRecording() {\n synchronized (serviceConnection) {\n startNewTrackRequested = true;\n serviceConnection.startAndBind();\n \n // Binding was already requested before, it either already happened\n // (in which case running the callback manually triggers the actual recording start)\n // or it will happen in the future\n // (in which case running the callback now will have no effect).\n serviceBindCallback.run();\n }\n }", "public void startRecording() {\r\n\t\t( new Thread() {\r\n\t\t\tpublic void run() {\r\n\t\t\t\tstart(); // startAudioRecording\r\n\t\t\t}\r\n\t\t} ).start();\r\n\t}", "public void startRecord() {\n\t\tif (state == State.INITIALIZING) {\n\t\t\taudioRecorder.startRecording();\n\t\t\taudioRecorder.read(buffer, 0, buffer.length);\n\t\t\tstate = State.RECORDING;\n\t\t}\n\t\telse {\n\t\t\tLog.e(TAG, \"start() called on illegal state\");\n\t\t\tstate = State.ERROR;\n\t\t}\n\t}", "void onStartRecord();", "public void startRecording() {\n // prepare the recorder\n if (!prepareMediaRecorder()) {\n Toast.makeText(VideoCapture.getSelf(), \"Fail in prepareMediaRecorder()!\\n - Ended -\",\n Toast.LENGTH_LONG).show();\n VideoCapture.getSelf().finish();\n }\n\n // start the recording\n mediaRecorder.start();\n mIsRecording = true;\n\n // start snapshots\n mSnapshotSensor.startSnapshot();\n }", "public void onRecord(boolean start) {\n if (start) {\n startRecording();\n } else {\n stopRecording();\n }\n }", "public native void nativeStartRecord();", "private void onRecord(boolean start) {\r\n Log.w(TAG, \"Inside on record\");\r\n if (start) {\r\n startRecording();\r\n } else {\r\n stopRecording();\r\n }\r\n }", "private void startRecord() {\n try {\n if (mIsRecording) {\n setupMediaRecorder();\n } else if (mIsTimelapse) {\n setupTimelapse();\n }\n SurfaceTexture surfaceTexture = mTextureView.getSurfaceTexture();\n surfaceTexture.setDefaultBufferSize(mPreviewSize.getWidth(), mPreviewSize.getHeight());\n Surface previewSurface = new Surface(surfaceTexture);\n Surface recordSurface = mMediaRecorder.getSurface();\n mCaptureRequestBuilder = mCameraDevice.createCaptureRequest(CameraDevice.TEMPLATE_RECORD);\n mCaptureRequestBuilder.addTarget(previewSurface);\n mCaptureRequestBuilder.addTarget(recordSurface);\n\n mCameraDevice.createCaptureSession(Arrays.asList(previewSurface, recordSurface, mImageReader.getSurface()),\n new CameraCaptureSession.StateCallback() {\n\n\n @Override\n public void onConfigured(CameraCaptureSession session) {\n\n mRecordCaptureSession = session;\n\n try {\n mRecordCaptureSession.setRepeatingRequest(mCaptureRequestBuilder.build(), null, null);\n } catch (CameraAccessException e) {\n e.printStackTrace();\n }\n }\n\n @Override\n public void onConfigureFailed(@NonNull CameraCaptureSession session) {\n\n }\n }, null);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "private String getStartRecording() throws Exception {\n return curl + \" \" + recordParams + \" \" + prefixLocalIpAddress + getLocalIpAddress() + \":\" + defaultPort + \" \" + startRecording;\n }", "synchronized public void startRecording(String filename){\n\t\tif (isRecording)\n\t\t\tthrow new RuntimeException(\"record fail- allready recording\");\n\t\t\n\t\tif (!device.isFile()){\n\t\t\tisRecording=true;\n\t\t\trecorder=Recorder.create(filename);\n\t\t\tstream.start();\n\t\t\trecorder.addStream(this.stream, false);\n\t\t\trecorder.start();\n\t\t} else {\n\t\t\t//throw new RuntimeException(\"can't record from a file\");\n\t\t}\n\t \n\t \n\t \t\n\t\n\t}", "public void startRecording(){\n String samplerateString = null, buffersizeString = null;\n if (Build.VERSION.SDK_INT >= 17) {\n AudioManager audioManager = (AudioManager) this.getSystemService(Context.AUDIO_SERVICE);\n samplerateString = audioManager.getProperty(AudioManager.PROPERTY_OUTPUT_SAMPLE_RATE);\n buffersizeString = audioManager.getProperty(AudioManager.PROPERTY_OUTPUT_FRAMES_PER_BUFFER);\n }\n samplerateString= \"48000\";\n buffersizeString = \"256\";\n\n System.loadLibrary(\"FrequencyDomain\");\n FrequencyDomain(Integer.parseInt(samplerateString), Integer.parseInt(buffersizeString));\n }", "private void startRecording() {\n // When start recording, create a file with format yyyyMMdd_HHmmss.3gp\n // y, M, d, H, m,s are year, month, day, hour, minite and second when start recording\n String currentDateAndTime = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n curRecordingFileName = APP_STORAGE + \"/\" + currentDateAndTime + \".3gp\";\n Log.e(TAG, \"Start recording file: \" + curRecordingFileName);\n\n mRecorder = new MediaRecorder();\n mRecorder.setAudioSource(MediaRecorder.AudioSource.MIC);\n mRecorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);\n mRecorder.setOutputFile(curRecordingFileName);\n mRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);\n\n try {\n mRecorder.prepare();\n } catch (IOException e) {\n Log.e(TAG, \"Couldn't prepare and start MediaRecorder\");\n }\n\n mRecorder.start();\n }", "@Override\n public void onRecordingStart(String recordingId) {\n String log = \"[SRS][SA] Recording Started! isRecording=\" +\n skylinkConnection.isRecording() + \".\";\n Toast.makeText(parentActivity, log, Toast.LENGTH_LONG).show();\n Log.d(TAG, log);\n }", "private void startRecording() {\r\n\t\tThread recordThread = new Thread(new Runnable() {\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tisRecording = true;\r\n\t\t\t\t\tbuttonRecord.setText(\"Stop\");\r\n\t\t\t\t\tbuttonRecord.setIcon(iconStop);\r\n\t\t\t\t\tbuttonPlay.setEnabled(false);\r\n\r\n\t\t\t\t\trecorder.start();\r\n\r\n\t\t\t\t} catch (LineUnavailableException ex) {\r\n\t\t\t\t\tJOptionPane.showMessageDialog(SwingSoundRecorder.this,\r\n\t\t\t\t\t\t\t\"Error\", \"Could not start recording sound!\",\r\n\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t\tex.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\trecordThread.start();\r\n\t\ttimer = new RecordTimer(labelRecordTime);\r\n\t\ttimer.start();\r\n\t}", "protected void start() {\n\t\thellotv.setText(\"\");\n\t\tMap<String, Object> params = new LinkedHashMap<String, Object>();\n\t\tString event = null;\n\t\tevent = SpeechConstant.ASR_START;\n\t\t\n\t\tif (enableOffline) {\n params.put(SpeechConstant.DECODER, 2);\n }\n\t\t\n\t\tparams.put(SpeechConstant.ACCEPT_AUDIO_VOLUME, false);\n\t\t//params.put(SpeechConstant.PID, 1737);//English\n\t\t\n\t\tString json = null;\n\t\tjson = new JSONObject(params).toString();\n\t\tasr.send(event, json, null, 0, 0);\n\t\t\n\t\tprintresult(\"输入参数\"+ json);\n\t}", "public void streamRecordStart(IBroadcastStream stream);", "private void record(){\n clear();\n recording = true;\n paused = false;\n playing = false;\n setBtnState();\n recorder = new Recorder(audioFormat);\n new Thread(recorder).start();\n }", "private void startRecording() {\n Date now = new Date(System.currentTimeMillis());\n fileName = \"AccelerometerData_\" + sdf.format(now) + \"_sampling_\" + listenerSampling + \"microsec.csv\";\n String directory = Environment.getExternalStorageDirectory() + \"/_Parka/AccelerometerCsvFile\";\n\n csvWriter.createFile(fileName,directory);\n startTime = csvWriter.getStartTime();\n\n String headFileStr = \"Millisec\" + \",\" + \"TimeStamp\" + \",\"\n + \"Acce X\" + \",\" + \"Acce Y\" + \",\" + \"Acce Z\" + \",\"\n + \"Stop engine\"+\",\\n\";\n csvWriter.writeHeadFile(headFileStr);\n\n registerListener();\n Toast.makeText(this, \"START RECORDING | \"\n + \"file name = \" + fileName, Toast.LENGTH_SHORT).show();\n }", "public void record() {\n if (mCarContext.checkSelfPermission(RECORD_AUDIO)\n != PackageManager.PERMISSION_GRANTED) {\n CarToast.makeText(mCarContext, \"Grant mic permission on phone\",\n CarToast.LENGTH_LONG).show();\n List<String> permissions = Collections.singletonList(RECORD_AUDIO);\n mCarContext.requestPermissions(permissions, (grantedPermissions,\n rejectedPermissions) -> {\n if (grantedPermissions.contains(RECORD_AUDIO)) {\n record();\n }\n });\n return;\n }\n CarAudioRecord record = CarAudioRecord.create(mCarContext);\n\n Thread recordingThread =\n new Thread(\n () -> doRecord(record),\n \"AudioRecorder Thread\");\n recordingThread.start();\n }", "Sample start();", "@Override\n public void onStartedRecording(Transaction transaction) {\n setState(State.LISTENING);\n startAudioLevelPoll();\n }", "public void startRecording() {\n if (isAlreadyLaunchedRecorder) {\n return;\n } else {\n isAlreadyLaunchedRecorder = true;\n }\n\n // Try to get exclusive audio focus\n int audioFocusRequestResult = audioManager.requestAudioFocus(audioFocusChangeListener, AudioManager.STREAM_MUSIC, AudioManager.AUDIOFOCUS_GAIN_TRANSIENT_EXCLUSIVE);\n if (audioFocusRequestResult == AudioManager.AUDIOFOCUS_REQUEST_FAILED) {\n Log.d(TAG, \"Unable to get audio focus\");\n }\n\n playStartListeningSound();\n\n scheduler.schedule(new Runnable() {\n public void run() {\n try {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n countdownTimer.setMax(progressMax);\n animation.setDuration(maxRecordingTimeInSeconds * 1000);\n animation.start();\n }\n });\n\n Future<StmAudioRecorderResult> futureRecorderResult = executor.submit(new RecordShoutCallable());\n StmAudioRecorderResult recordingResult = futureRecorderResult.get();\n final Integer shoutRecordingLengthInSeconds = recordingResult.getRecordingLengthInSeconds();\n\n if (recordingResult.isCancelled() || !recordingResult.didUserSpeak()) {\n playCancelListeningSound();\n } else {\n playFinishListeningSound();\n\n Future<Shout> futureShout = executor.submit(new SendShoutCallable(recordingResult.getAudioBuffer()));\n final Shout newShout = futureShout.get();\n newShout.setRecordingLengthInSeconds(shoutRecordingLengthInSeconds);\n\n playShoutSentSound();\n\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n StmCallback<Shout> stmCallback = stmService.getShoutCreationCallback();\n if (stmCallback != null) {\n stmCallback.onResponse(newShout);\n }\n }\n });\n }\n\n // Sleeping is necessary to prevent the onDestroy being called to early\n // which results in the sent sound not being played\n Thread.sleep(700);\n\n } catch (InterruptedException ex) {\n Log.w(TAG, \"Recording and/or sending shout was interrupted\", ex);\n } catch (ExecutionException ex) {\n Log.e(TAG, \"An error occurred during the recording or sending of a new shout\", ex);\n } finally {\n // Release the audio focus\n if (audioManager != null) {\n audioManager.abandonAudioFocus(audioFocusChangeListener);\n }\n\n // Close the overlay\n Intent intent = new Intent();\n intent.putExtra(ACTIVITY_RESULT, StmService.SUCCESS);\n setResult(RESULT_OK, intent);\n finish();\n }\n }\n }, 300, TimeUnit.MILLISECONDS);\n }", "@Override\n public void run() {\n // This method will be executed once the timer is over\n // Start your app main activity\n startRecording();\n }", "public void start( )\n {\n // Implemented by student.\n }", "public void record() {\n\t\tif (isRecord) {\n\t\t\tisRecord = false;\n\n\t\t\t// Generates a unique filename.\n\t\t\tString currenttime = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(Calendar.getInstance().getTime());\n\t\t\tfilename = recordingsPath + currenttime + \".ogg\";\n\n\t\t\t// The pipe.\n\t\t\tString[] rec = new String[] { \"alsasrc\", \"!\", \"audioconvert\", \"!\", \"audioresample\", \"!\", \"vorbisenc\", \"!\", \"oggmux\", \"!\",\n\t\t\t\t\t\"filesink location = \" + filename };\n\n\t\t\trec = Gst.init(\"AudioRecorder\", rec);\n\t\t\tStringBuilder sb = new StringBuilder();\n\n\t\t\tfor (String s : rec) {\n\t\t\t\tsb.append(' ');\n\t\t\t\tsb.append(s);\n\t\t\t}\n\n\t\t\t// Start recording\n\t\t\taudiopipe = Pipeline.launch(sb.substring(1));\n\t\t\taudiopipe.play();\n\n\t\t} else {\n\t\t\t// Stop recording and add file to the list.\n\t\t\taudiopipe.stop();\n\t\t\tgui.addNewFiletoList(filename);\n\t\t\tisRecord = true;\n\t\t}\n\n\t}", "Start createStart();", "@Override\r\n public void call() {\n System.out.println(\"开始视频通话\");\r\n }", "public void startVideoRecording() {\n this.mActivity.getCameraAppUI().switchShutterSlidingAbility(false);\n if (this.mCameraState == 1) {\n setCameraState(2);\n Tag tag = TAG;\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"startVideoRecording: \");\n stringBuilder.append(Thread.currentThread());\n Log.i(tag, stringBuilder.toString());\n ToastUtil.showToast(this.mActivity, this.mActivity.getString(R.string.video_recording_start_toast), 0);\n this.mAppController.onVideoRecordingStarted();\n if (this.mModeSelectionLockToken == null) {\n this.mModeSelectionLockToken = this.mAppController.lockModuleSelection();\n }\n this.mUI.showVideoRecordingHints(false);\n this.mUI.cancelAnimations();\n this.mUI.setSwipingEnabled(false);\n this.mUI.showFocusUI(false);\n this.mAppController.getCameraAppUI().hideRotateButton();\n this.mAppController.getButtonManager().hideEffectsContainerWrapper();\n final long updateStorageSpaceTime = System.currentTimeMillis();\n this.mActivity.updateStorageSpaceAndHint(new OnStorageUpdateDoneListener() {\n public void onStorageUpdateDone(long bytes) {\n Tag access$100 = VideoModule.TAG;\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"updateStorageSpaceAndHint cost time :\");\n stringBuilder.append(System.currentTimeMillis() - updateStorageSpaceTime);\n stringBuilder.append(\"ms.\");\n Log.d(access$100, stringBuilder.toString());\n if (VideoModule.this.mCameraState != 2) {\n VideoModule.this.pendingRecordFailed();\n return;\n }\n if (bytes <= Storage.LOW_STORAGE_THRESHOLD_BYTES) {\n Log.w(VideoModule.TAG, \"Storage issue, ignore the start request\");\n VideoModule.this.pendingRecordFailed();\n } else if (VideoModule.this.mCameraDevice == null) {\n Log.v(VideoModule.TAG, \"in storage callback after camera closed\");\n VideoModule.this.pendingRecordFailed();\n } else if (VideoModule.this.mPaused) {\n Log.v(VideoModule.TAG, \"in storage callback after module paused\");\n VideoModule.this.pendingRecordFailed();\n } else if (VideoModule.this.mMediaRecorderRecording) {\n Log.v(VideoModule.TAG, \"in storage callback after recording started\");\n } else if (VideoModule.this.isSupported(VideoModule.this.mProfile.videoFrameWidth, VideoModule.this.mProfile.videoFrameHeight)) {\n VideoModule.this.mCurrentVideoUri = null;\n VideoModule.this.mCameraDevice.enableShutterSound(false);\n if (VideoModule.this.mNeedGLRender && VideoModule.this.isSupportEffects()) {\n VideoModule.this.playVideoSound();\n VideoModule.this.initGlRecorder();\n VideoModule.this.pauseAudioPlayback();\n VideoModule.this.mActivity.getCameraAppUI().startVideoRecorder();\n } else {\n VideoModule.this.initializeRecorder();\n if (VideoModule.this.mMediaRecorder == null) {\n Log.e(VideoModule.TAG, \"Fail to initialize media recorder\");\n VideoModule.this.pendingRecordFailed();\n return;\n }\n VideoModule.this.pauseAudioPlayback();\n try {\n long mediarecorderStart = System.currentTimeMillis();\n VideoModule.this.mMediaRecorder.start();\n access$100 = VideoModule.TAG;\n StringBuilder stringBuilder2 = new StringBuilder();\n stringBuilder2.append(\"mMediaRecorder.start() cost time : \");\n stringBuilder2.append(System.currentTimeMillis() - mediarecorderStart);\n Log.d(access$100, stringBuilder2.toString());\n VideoModule.this.playVideoSound();\n VideoModule.this.mCameraDevice.refreshSettings();\n VideoModule.this.mCameraSettings = VideoModule.this.mCameraDevice.getSettings();\n VideoModule.this.setFocusParameters();\n } catch (RuntimeException e) {\n Log.e(VideoModule.TAG, \"Could not start media recorder. \", e);\n VideoModule.this.releaseMediaRecorder();\n VideoModule.this.mCameraDevice.lock();\n VideoModule.this.releaseAudioFocus();\n if (VideoModule.this.mModeSelectionLockToken != null) {\n VideoModule.this.mAppController.unlockModuleSelection(VideoModule.this.mModeSelectionLockToken);\n }\n VideoModule.this.setCameraState(1);\n if (VideoModule.this.shouldHoldRecorderForSecond()) {\n VideoModule.this.mAppController.setShutterEnabled(true);\n }\n VideoModule.this.mAppController.getCameraAppUI().showModeOptions();\n if (VideoModule.this.updateModeSwitchUIinModule()) {\n VideoModule.this.mAppController.getCameraAppUI().setModeSwitchUIVisibility(true);\n }\n if (VideoModule.this.isNeedStartRecordingOnSwitching()) {\n VideoModule.this.mAppController.onVideoRecordingStop();\n }\n ToastUtil.showToast(VideoModule.this.mActivity.getApplicationContext(), (int) R.string.video_record_start_failed, 0);\n return;\n }\n }\n VideoModule.this.mAppController.getCameraAppUI().setSwipeEnabled(false);\n VideoModule.this.setCameraState(3);\n VideoModule.this.tryLockFocus();\n VideoModule.this.mMediaRecorderRecording = true;\n VideoModule.this.mActivity.lockOrientation();\n VideoModule.this.mRecordingStartTime = SystemClock.uptimeMillis() + 600;\n VideoModule.this.mAppController.getCameraAppUI().getCameraGLSurfaceView().setAngle(VideoModule.this.mOrientation);\n VideoModule.this.mAppController.getCameraAppUI().hideModeOptions();\n if (VideoModule.this.updateModeSwitchUIinModule()) {\n VideoModule.this.mAppController.getCameraAppUI().setModeSwitchUIVisibility(false);\n }\n if (VideoModule.this.isVideoShutterAnimationEnssential()) {\n VideoModule.this.mAppController.getCameraAppUI().animateBottomBarToVideoStop(R.drawable.ic_stop);\n }\n if (VideoModule.this.isNeedStartRecordingOnSwitching()) {\n VideoModule.this.mAppController.getCameraAppUI().showVideoCaptureButton(true);\n }\n if (VideoModule.this.mAppController.getCameraAppUI().getCurrentModeIndex() == VideoModule.this.mActivity.getResources().getInteger(R.integer.camera_mode_video)) {\n VideoModule.this.mAppController.getCameraAppUI().showVideoPauseButton(false);\n }\n VideoModule.this.mUI.showRecordingUI(true);\n if (VideoModule.this.mAppController.getCameraAppUI().getCameraGLSurfaceView().getVisibility() == 0) {\n VideoModule.this.mUI.hideCapButton();\n }\n VideoModule.this.showBoomKeyTip();\n VideoModule.this.updateRecordingTime();\n access$100 = VideoModule.TAG;\n StringBuilder stringBuilder3 = new StringBuilder();\n stringBuilder3.append(\"startVideoRecording cost time 1 : \");\n stringBuilder3.append(System.currentTimeMillis() - VideoModule.this.mShutterButtonClickTime);\n Log.d(access$100, stringBuilder3.toString());\n if (VideoModule.this.isSendMsgEnableShutterButton()) {\n VideoModule.this.mHandler.sendEmptyMessageDelayed(6, VideoModule.MIN_VIDEO_RECODER_DURATION);\n }\n VideoModule.this.mActivity.enableKeepScreenOn(true);\n VideoModule.this.mActivity.startInnerStorageChecking(new OnInnerStorageLowListener() {\n public void onInnerStorageLow(long bytes) {\n VideoModule.this.mActivity.stopInnerStorageChecking();\n if (VideoModule.this.mCameraState == 3) {\n VideoModule.this.showQuitDialog(R.string.quit_dialog_title_storage_low, R.string.quit_dialog_msg, VideoModule.this.saveAndQuit);\n }\n }\n });\n VideoModule.this.mActivity.startBatteryInfoChecking(new OnBatteryLowListener() {\n public void onBatteryLow(int level) {\n VideoModule.this.mActivity.stopBatteryInfoChecking();\n if (VideoModule.this.mCameraState == 3) {\n VideoModule.this.showQuitDialog(R.string.quit_dialog_title_battery_low, R.string.quit_dialog_msg, VideoModule.this.saveAndQuit);\n }\n }\n });\n } else {\n Log.e(VideoModule.TAG, \"Unsupported parameters\");\n VideoModule.this.pendingRecordFailed();\n }\n }\n });\n }\n }", "public void record(){\n\t}", "private void requestRecord() throws IOException {\n\n String targetCamCode = dis.readUTF();\n\n Cam targetCam = CamRegister.findRegisteredCam(targetCamCode);\n\n try {\n DataOutputStream targetDos = new DataOutputStream(targetCam.getCamSocket().getOutputStream());\n targetDos.writeInt(RECORD_CAM_COMMAND);\n targetDos.flush();\n\n dos.writeInt(SUCCESS_CODE);\n dos.flush();\n } catch (Exception e) {\n dos.writeInt(NOT_FOUND_CODE);\n dos.flush();\n }\n }", "public void startConferenceRecording(String path);", "private void startRecording() {\n myAudioRecorder = new MediaRecorder();\n myAudioRecorder.setAudioSource(MediaRecorder.AudioSource.MIC);\n myAudioRecorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);\n\n\n Log.i(\"METHOD\", \"Recording exists. File is called: \" + recordedPhrase);\n recordedPhrase = \"audioRecording_\" + num + \".3gp\";\n// recording = new File(Environment.getExternalStorageDirectory(), recordedPhrase);\n myAudioRecorder.setOutputFile(recordedPhrase);\n myAudioRecorder.setAudioEncoder(MediaRecorder.OutputFormat.AMR_NB);\n\n // Record audio while button is held\n try {\n // Start recording\n myAudioRecorder.prepare();\n myAudioRecorder.start();\n Log.i(\"METHOD\", \"Audio recorder prepared\");\n } catch (IOException e){\n e.printStackTrace();\n }\n Toast.makeText(getApplication(), \"Audio recording\", Toast.LENGTH_LONG).show();\n }", "public abstract void started();", "public void start(){\n }", "public void start() {\n }", "void startTracking();", "@Override\n public void startRecordView() {\n btnRecord.setImageDrawable(getResources().getDrawable(R.drawable.ic_stop));\n tvChronometer.setBase(SystemClock.elapsedRealtime());\n tvChronometer.start();\n tvChronometer.setOnChronometerTickListener(chronometer -> {\n long chronoInMillisec = SystemClock.elapsedRealtime() - chronometer.getBase();\n long seconds = TimeUnit.MILLISECONDS.toSeconds(chronoInMillisec);\n Timber.d(\"seconds %s\", seconds);\n float value = presenter.calculateProgressRecording(seconds);\n pbCircle.setSmoothPercent(value, 1000);\n });\n }", "public void start() {\n\n }", "void onCaptureStart();", "@Override\n public synchronized void start() {\n m_startTime = getMsClock();\n m_running = true;\n }", "public void onStart() {\n super.onStart();\n C0938a.m5006c(\"SR/SoundRecorder\", \"~~~~~~~~~~~~~~~~~~~~~~~~~~~~onStart\");\n f5379a = true;\n }", "public void start()\n {\n }", "public void start() {\n\n\t}", "public void start()\n\t{\n\t\tString name = getAudioFileName();\n\t\ttry\n\t\t{\t\t\t\n\t\t\tInputStream in = getAudioStream();\n\t\t\tAudioDevice dev = getAudioDevice();\n\t\t\tplay(in, dev);\n\t\t}\n\t\tcatch (JavaLayerException ex)\n\t\t{\n\t\t\tsynchronized (System.err)\n\t\t\t{\n\t\t\t\tSystem.err.println(\"Unable to play \"+name);\n\t\t\t\tex.printStackTrace(System.err);\n\t\t\t}\n\t\t}\n\t}", "private void LogRecognitionStart() {\n String recoSource;\n if (this.getUseMicrophone()) {\n recoSource = \"microphone\";\n } else if (this.getMode() == SpeechRecognitionMode.ShortPhrase) {\n recoSource = \"short wav file\";\n } else {\n recoSource = \"long wav file\";\n }\n\n this.WriteLine(\"\\n--- Start speech recognition using \" + recoSource + \" with \" + this.getMode() + \" mode in \" + this.getDefaultLocale() + \" language ----\\n\\n\");\n }", "public void startRecording() {\n heartRateBroadcastReceiver = new HeartRateBroadcastReceiver();\n LocalBroadcastManager.getInstance(activity).registerReceiver(heartRateBroadcastReceiver, new IntentFilter(LiveRecordingActivity.ACTION_RECEIVE_HEART_RATE));\n }", "@Override\n public Result start() {\n log.info(\"Start \" + this.toString());\n\n return Result.getEmptyCopyResult();\n }", "public void start() {\n\r\n }", "public void start(){\n\t\tstarted = true;\n\t\tlastTime = System.nanoTime();\n\t}", "public void start() {}", "public void start() {}", "private void startCapture() {\n if (checkAudioPermissions()) {\n requestScreenCapture();\n }\n }", "public void startVideoRecording() {\n\n try {\n mVideoFileTest = createVideoFile(mVideoFolder);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n // set up Recorder\n try {\n setupMediaRecorder();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n // prepare for recording\n sendVideoRecordingRequest();\n\n // start recording\n mMediaRecorder.start();\n\n if (mRokidCameraRecordingListener != null) {\n mRokidCameraRecordingListener.onRokidCameraRecordingStarted();\n }\n }", "public void start();", "public void start();", "public void start();", "public void start();", "public void start();", "public void start();", "public void start();", "public void start();", "public void start();", "public void start();", "public void start();", "public void start();", "public void startFirstSampleTimer() {\n }", "@Override\n\t\t\tpublic void start() {\n\t\t\t\tinitResource();\n\t\t\t\t//获取通讯录信息\n\t\t\t\tinitContactsData();\n\t\t\t\t//同步通讯录\n\t\t\t\tupLoadPhones();\n\t\t\t}", "public void startBatch() {\n\trunTimer.setVerbose(detailedMetrics);\n\trunTimer.start();\n }", "@Override\r\n\tpublic void OnDlVoiceBegin() {\n\t\tRecordingVoiceDownloadBegin();\r\n\t}", "public void start()\r\n\t{\n\tSystem.out.println(\"normal start method\");\r\n\t}", "public boolean start();", "@Override\n public void start() { }", "protected abstract void doStart();", "void onCaptureStarted(CaptureRequest request, long timestamp, long frameNumber);", "public void start()\n {}", "private void start() {\n\n\t}", "public void start(){\n this.speakerMessageScreen.printScreenName();\n mainPart();\n }", "void doManualStart();", "@Override\r\n\tpublic void start() {\n\t\t\r\n\t}", "void startReportingTask();", "void audioRecordingManager(View view) {\n\n try {\n\n //If recording status is to true, reset the current recording environment and then proceed to record new audio\n if (recordingStatus) {\n\n //Reset previous audio story\n StoryReset();\n //Setup new story location\n SetupStoryLocation();\n //Prepare the correct image views on the screen\n slideOutViewAnimation(archive);\n //Begin to animate the record button\n recordButton.setImageDrawable(recordButtonAnim);\n //Start recording audio\n recordAudio(view);\n }\n\n else {\n\n //Show the camera button - the next stage of the recording\n slideInViewAnimation(cameraButton);\n //Stop recording audio\n audioRecorder.stopRecording();\n //Stop animating the record button\n animationHandler.removeCallbacks(RecordButtonRunnable);\n recordButton.setImageDrawable(recordButtonNonAnim);\n }\n\n //The value of recording status is now opposite in anticipation of the second button event - i.e. start/stop, hold/lift\n recordingStatus = !recordingStatus;\n }\n\n catch (RuntimeException r) {\n\n }\n }", "public void start() {\n\t\t\n\t}", "public void start() {\n\t\t\n\t}", "public start() {\n\t\tsuper();\n\t}", "public abstract void start();", "public abstract void start();", "public abstract void start();", "public abstract void start();", "public abstract void start();", "@Override\r\n public void start() {\r\n }", "@Override\n\tpublic void start() {\n\n\t}", "public void SetCallRecording(boolean option){\n FunctionLogger logger=new FunctionLogger(\"SetCallRecording\",this,myLogger);\n logger.args(option);\n PlayRingbackFlag=option;\n }", "protected void startReport(){\n Intent cameraIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n startActivityForResult(cameraIntent,REQUEST_CODE);\n }", "void onStarted();", "@Override\n public void start() {\n }", "public Future<Void> startConfigurationRecorderAsync(StartConfigurationRecorderRequest startConfigurationRecorderRequest) \n throws AmazonServiceException, AmazonClientException;", "public RecorderThread (Context context) {\n\tthis.con = context;\n\trecording = true;\n\tsetDaemon(true);\n}", "@Override\n public void start() {}" ]
[ "0.78367525", "0.7101533", "0.6925923", "0.68848765", "0.68755555", "0.662867", "0.650046", "0.6481989", "0.6386355", "0.6372617", "0.62636155", "0.62215877", "0.6182795", "0.6125158", "0.6114662", "0.6067741", "0.6060718", "0.6044741", "0.60104537", "0.5987736", "0.59766155", "0.59381306", "0.5932086", "0.5895074", "0.5854391", "0.5849019", "0.5815467", "0.5785476", "0.57548016", "0.5733989", "0.5718145", "0.5714466", "0.5699426", "0.5681018", "0.5662832", "0.5660549", "0.5639015", "0.5635342", "0.56336075", "0.5633007", "0.5629565", "0.5626857", "0.562107", "0.5613182", "0.5605864", "0.5601696", "0.5598517", "0.5594594", "0.55900973", "0.55722064", "0.55573887", "0.55555534", "0.55555534", "0.5548743", "0.5545959", "0.55426043", "0.55426043", "0.55426043", "0.55426043", "0.55426043", "0.55426043", "0.55426043", "0.55426043", "0.55426043", "0.55426043", "0.55426043", "0.55426043", "0.55422604", "0.55401754", "0.5509324", "0.550761", "0.55073726", "0.54967445", "0.54855525", "0.5479054", "0.5477172", "0.54763335", "0.5474344", "0.5472781", "0.5463547", "0.5461779", "0.5456879", "0.5446348", "0.5435689", "0.5435689", "0.54325163", "0.54271615", "0.54271615", "0.54271615", "0.54271615", "0.54271615", "0.5419305", "0.54188615", "0.5416529", "0.5416296", "0.5413554", "0.5404697", "0.54015934", "0.5400127", "0.53897256" ]
0.65507865
6
Method to call operation for stop recording
public void stopRecord() { cmd = new StopRecordCommand(editor); invoker = new MiniEditorInvoker(cmd); invoker.action(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void stopRecording() {\n\n }", "public void StopRecording()\n {\n handler.stopRecording();\n\n }", "private void stopRecording() {\n recoTransaction.stopRecording();\n }", "public void stop() {\r\n\t\tisRecording = false;\r\n\t}", "File stopRecording();", "TimeInstrument stop();", "public abstract void stopRecordSensorData();", "@Override\n public void stop()\n {\n final String funcName = \"stop\";\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.API);\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.API);\n }\n\n if (playing)\n {\n analogOut.setAnalogOutputMode((byte) 0);\n analogOut.setAnalogOutputFrequency(0);\n analogOut.setAnalogOutputVoltage(0);\n playing = false;\n expiredTime = 0.0;\n setTaskEnabled(false);\n }\n }", "public void stopConferenceRecording();", "public void stop() {}", "public native void nativeStopRecord();", "private void stopRecord() {\n /*\n r6 = this;\n r5 = 0;\n r1 = r6.isRecording;\n if (r1 != 0) goto L_0x0006;\n L_0x0005:\n return;\n L_0x0006:\n r1 = com.baidu.navisdk.BNaviModuleManager.getContext();\n com.baidu.navisdk.util.listener.MediaFocuseChangeListener.releaseAudioFocus(r1);\n com.baidu.navisdk.comapi.tts.TTSPlayerControl.resumeVoiceTTSOutput();\n r1 = 0;\n r6.isRecording = r1;\n r1 = r6.recordProcessIView;\n if (r1 == 0) goto L_0x001c;\n L_0x0017:\n r1 = r6.recordProcessIView;\n r1.clearAnimation();\n L_0x001c:\n r1 = r6.mTimer;\t Catch:{ Exception -> 0x004d }\n if (r1 == 0) goto L_0x0025;\n L_0x0020:\n r1 = r6.mTimer;\t Catch:{ Exception -> 0x004d }\n r1.cancel();\t Catch:{ Exception -> 0x004d }\n L_0x0025:\n r1 = r6.mRecorder;\t Catch:{ Exception -> 0x004d }\n if (r1 == 0) goto L_0x0036;\n L_0x0029:\n r1 = r6.mRecorder;\t Catch:{ Exception -> 0x005c }\n r1.stop();\t Catch:{ Exception -> 0x005c }\n L_0x002e:\n r1 = r6.mRecorder;\t Catch:{ Exception -> 0x004d }\n r1.release();\t Catch:{ Exception -> 0x004d }\n r1 = 0;\n r6.mRecorder = r1;\t Catch:{ Exception -> 0x004d }\n L_0x0036:\n r6.mRecorder = r5;\n r6.mTimer = r5;\n L_0x003a:\n r1 = r6.mOnUgcSoundsRecordCallback;\n if (r1 == 0) goto L_0x004a;\n L_0x003e:\n r1 = r6.mOnUgcSoundsRecordCallback;\n r2 = r6.timeCountTime;\n r2 = 20 - r2;\n r3 = r6.filePath;\n r4 = 1;\n r1.onRecordFinish(r2, r3, r4);\n L_0x004a:\n mUgcSoundsRecordDialog = r5;\n goto L_0x0005;\n L_0x004d:\n r0 = move-exception;\n r0.printStackTrace();\t Catch:{ all -> 0x0056 }\n r6.mRecorder = r5;\n r6.mTimer = r5;\n goto L_0x003a;\n L_0x0056:\n r1 = move-exception;\n r6.mRecorder = r5;\n r6.mTimer = r5;\n throw r1;\n L_0x005c:\n r1 = move-exception;\n goto L_0x002e;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.baidu.navisdk.module.ugc.dialog.UgcSoundsRecordDialog.stopRecord():void\");\n }", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop() {\n }", "public void stop() {\n }", "public void stop(){\n }", "public void stopRecord() {\n\t\tif (state == State.RECORDING) {\n\t\t\taudioRecorder.stop();\n\t\t\tstate = State.STOPPED;\n\t\t}\n\t\telse {\n\t\t\tLog.e(TAG, \"stop() called on illegal state\");\n\t\t\tstate = State.ERROR;\n\t\t}\n\t\tstate = State.INITIALIZING;\n\t}", "public void stopRecording() {\n BLog.d(TAG, \"stopRecording()\");\n stopLastRunnable();\n mRecordingRunnable.stopRun();\n try {\n mRecordingThread.interrupt();\n } catch (Exception e) {}\n mRecordingThread = null;\n }", "public void stop() throws IOException {\r\n\t_bRecording=false;\r\n recorder.stop();\r\n recorder.release();\r\n }", "public void stop(boolean save) {}", "public void stop()\n {\n }", "abstract public void stop();", "public abstract void stop();", "public abstract void stop();", "public abstract void stop();", "public abstract void stop();", "public abstract void stop();", "void stop() {\n }", "public String stopRecord()\n {\n if(!_inRec) return \"\";\n _inRec=false;\n _recorder.stop();\n _recorder.release();\n _recorder = null;\n return _filePath;\n }", "public void stop(){\n\t\t\n\t}", "private void stopRecording() {\r\n\t\tisRecording = false;\r\n\t\ttry {\r\n\t\t\ttimer.cancel();\r\n\t\t\tbuttonRecord.setText(\"Record\");\r\n\t\t\tbuttonRecord.setIcon(iconRecord);\r\n\t\t\t\r\n\t\t\tsetCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));\r\n\r\n\t\t\trecorder.stop();\r\n\r\n\t\t\tsetCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));\r\n\r\n\t\t\tsaveFile();\r\n\r\n\t\t} catch (IOException ex) {\r\n\t\t\tJOptionPane.showMessageDialog(SwingSoundRecorder.this, \"Error\",\r\n\t\t\t\t\t\"Error stopping sound recording!\",\r\n\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t}", "void stop();", "void stop();", "void stop();", "void stop();", "void stop();", "void stop();", "void stop();", "void stop();", "void stop();", "void stop();", "void stop();", "void stop();", "void stop();", "void stop();", "void stop();", "void stop();", "void stop();", "@Override\n public void stop() {}", "public void stop() {\n\t}", "ActivityType stop();", "@Override\n public void stop() {\n }", "public boolean stop();", "@Override\r\n public void stop() {\r\n }", "@Override\r\n public void stop() {\r\n }", "public void stop() {\n\t\t\n\t}", "@Override\n public void stop() {\n\n leftDrive.setPower(0);\n rightDrive.setPower(0);\n armMotor.setPower(0);\n // extendingArm.setPower(0);\n\n telemetry.addData(\"Status\", \"Terminated Interative TeleOp Mode\");\n telemetry.update();\n\n\n }", "public void stop() {\n assert (timeEnd == null);\n timeEnd = System.currentTimeMillis();\n if (recordAt != null) {\n recordAt.record(this);\n }\n }", "@Override\r\n\tpublic void stop() {\n\t\t\r\n\t}", "@Override\r\n public void stop() {\r\n\r\n }", "private void stopRecording() {\n Log.e(TAG, \"Stop recording file: \" + curRecordingFileName);\n if (null != mRecorder) {\n mRecorder.stop();\n mRecorder.release();\n mRecorder = null;\n }\n\n }", "@FXML\n\tpublic void recorderStopAudio() {\n\t\tcontroller.recorderTimerCancel();\n\t\trecorderButtonPlay.setDisable(false);\n\t\trecorderButtonPause.setDisable(true);\n\t\trecorderButtonStop.setDisable(true);\n\t\tcontroller.audioRecorderStopAudio();\n\t}", "@Override\n public void stop() {\n }", "@Override\n public void stop() {\n }", "@Override\n public void stop() {\n }", "@Override\n public void stop() {\n }", "@Override\n public void stop() {\n }", "@Override\n public void stop() {\n }", "@Override\n public void stop() {\n }", "@Override\n public void stop() {\n }", "@Override\n public void stop() {\n }", "@Override\n public void stop() {\n }", "@Override\n public void stop() {\n }", "public interface StopRecordListener {\n void stop();\n\n void recorderStart();\n\n void volumeChange(float vol);\n}", "@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tif(s==true) \n\t\t\t\t\t{\n\t\t\t\t\tToast.makeText(Recordingvoice .this,\"Recording stoped\",2000).show();\n\t\t\t\t\tif(recorder == null)\n\t\t\t\t\t{\n\t\t\t\t\t\t recorder = new MediaRecorder();\n\t\t\t\t\t}\n\t\t\t\t\tif(recorder!=null)\n\t\t\t\t\t{\n\t\t\t\t\trecorder.stop();\n\t\t\t\t\trecorder.release();\n\t\t\t\t\t}\n\t\t\t\t\trecorder=null;\n\t\t\t\t\ttime.cancel();\n\t\t\t\t\tuploadCode();\n\t\t\t\t\t}\n\t\t\t\t\t \n\t\t\t\t\t\n\t\t\t\t}", "public void stop() throws OperationUnsupportedException;", "@Override\n\tpublic void stop()\n\t\t{\n\t\t}", "@Override\n public void stop() {\n telemetry.addData(\"Say\", \"It Stopped!\");\n }", "public void stopDtmfStream();", "private void stopRecording() {\n if (mRecordingHelper != null) {\n File file = mRecordingHelper.stopRecord();\n\n if (file == null) {\n return;\n }\n\n if (mOnRecordingPopupListener != null) {\n mOnRecordingPopupListener.onResultBuffer(file.getAbsolutePath());\n }\n\n// byte[] bytesArray = new byte[(int) file.length()];\n//\n// FileInputStream fis = null;\n// try {\n// fis = new FileInputStream(file);\n// fis.read(bytesArray); //read file into bytes[]\n// fis.close();\n//\n//\n// } catch (IOException e) {\n// e.printStackTrace();\n// }\n\n }\n\n if (isShowing()) {\n hide();\n }\n }", "@Override\n public void stop() {\n }", "@Override\n\tpublic void stop() {\n\t}", "@Override\n\tpublic void stop() {\n\t}", "@Override public void stop () {\n }", "@Override\n\tpublic void stop() {\n\t\tstopTask();\n\t\tmPlaybillPath = null;\n\t\tmResPlaybill = null;\n\t}", "@Override\n\tpublic void stop() {\n\t\t\n\t}" ]
[ "0.80225474", "0.78619266", "0.77146465", "0.76713675", "0.7428005", "0.73527706", "0.7350856", "0.7243132", "0.723059", "0.72104007", "0.7178489", "0.7143963", "0.711692", "0.711692", "0.711692", "0.711692", "0.711692", "0.711692", "0.711692", "0.711692", "0.711692", "0.711692", "0.711692", "0.711692", "0.711692", "0.711692", "0.711692", "0.707975", "0.707975", "0.7060363", "0.7027128", "0.7019033", "0.7018092", "0.70055676", "0.69880265", "0.69702667", "0.69669586", "0.69669586", "0.69669586", "0.69669586", "0.69669586", "0.6958301", "0.6934527", "0.69306785", "0.6906118", "0.689215", "0.689215", "0.689215", "0.689215", "0.689215", "0.689215", "0.689215", "0.689215", "0.689215", "0.689215", "0.689215", "0.689215", "0.689215", "0.689215", "0.689215", "0.689215", "0.689215", "0.68817925", "0.68743116", "0.6872811", "0.6861794", "0.68608147", "0.6850633", "0.6850633", "0.6843685", "0.68268526", "0.6821572", "0.68171054", "0.68104464", "0.68016803", "0.6799042", "0.67947525", "0.67947525", "0.67947525", "0.67947525", "0.67947525", "0.67947525", "0.67947525", "0.67947525", "0.67947525", "0.67947525", "0.67947525", "0.6793259", "0.67887497", "0.6784586", "0.6783088", "0.67719", "0.6768388", "0.67639893", "0.6749288", "0.6747786", "0.6747786", "0.6746517", "0.67458147", "0.67428565" ]
0.71742415
11
Method to call operation for replaying
public void replay() { cmd = new ReplayRecordCommand(editor); invoker = new MiniEditorInvoker(cmd); invoker.action(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void replayNextOp() {\n\t\topNum++;\n\t\tif (opNum > ops.length) {\n\t\t\topNum = -1;\n\t\t\tupdate();\n\t\t} else if (!getExited()) {\n\t\t\tjavax.swing.SwingUtilities.invokeLater(doReplayNextOp);\n\t\t}\n\t}", "private void play() {\n\t\tParcel pc = Parcel.obtain();\n\t\tParcel pc_reply = Parcel.obtain();\n\t\ttry {\n\t\t\tSystem.out.println(\"DEBUG>>>pc\" + pc.toString());\n\t\t\tSystem.out.println(\"DEBUG>>>pc_replay\" + pc_reply.toString());\n\t\t\tib.transact(1, pc, pc_reply, 0);\n\t\t} catch (RemoteException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "private void next() {\n\t\tParcel pc = Parcel.obtain();\n\t\tParcel pc_reply = Parcel.obtain();\n\t\ttry {\n\t\t\tSystem.out.println(\"DEBUG>>>pc\" + pc.toString());\n\t\t\tSystem.out.println(\"DEBUG>>>pc_replay\" + pc_reply.toString());\n\t\t\tib.transact(2, pc, pc_reply, 0);\n\t\t} catch (RemoteException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public abstract void retrain(Call serviceCall, Response serviceResponse, CallContext messageContext);", "@Override\n T restart();", "public void doCall(){\n CalculatorPayload operation = newContent();\n\n ((PBFTClient)getProtocol()).syncCall(operation);\n }", "@Override\n\tpublic void call() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void playGame() {\n\t\t\t\tSystem.out.println(\"隐式调用接口\");\r\n\t\t\t}", "@Override\n protected void execute() {\n double timePassed = Timer.getFPGATimestamp() - timePoint;\n\n boolean rumbleOver = (state == RUMBLE && timePassed > timeOn);\n boolean breakOver = (state == BREAK && timePassed > timeOff);\n\n if (rumbleOver) {\n rumble(false);\n if (repeatCount >= 0)\n repeatCount--;\n } else if (breakOver)\n rumble(true);\n }", "private void setMockControlStateToReplay() {\n this.xmlRpcElementFactoryControl.replay();\n this.xmlRpcRequestParserControl.replay();\n this.xmlRpcResponseWriterControl.replay();\n this.xmlRpcServiceExporterControl.replay();\n }", "@Override\n\tpublic void onReplayFailed(Throwable cause) {\n\n\t}", "public void forward() {\n callFunction(\"forward\");\n }", "public void replay() {\n if (currentAnimation == null) play();\n else currentAnimation.playFromStart();\n }", "void call();", "public void redoAction() {\n executeAction();\n }", "public void replay() {\n for (InnerDisposable<T> rp : (InnerDisposable[]) this.observers.get()) {\n this.buffer.replay(rp);\n }\n }", "void redo();", "@Override\n T resume();", "private void playAction(){\n\n if (stopBeforeCall.isSelected()) { execEndAction(execOnEnd.getText()); }\n execStartAction(execOnStart.getText());\n\n //if timer was inicializated\n if (timer != null) {\n if (pto == null) {\n pto = new PlayerTimerOnly(displayTimer);\n pto.play();\n } else {\n pto.stop();\n pto.play();\n }\n }\n //check if play is needed\n SolverProcess sp = solverChoices.getSelectionModel().getSelectedItem();\n if (sp == null || sp.isDummyProcess()){\n return;\n }\n\n Solution s = sp.getSolution();\n\n s = mfd.transofrmSolutionTimeIfChecked(s);\n\n List<List<AgentActionPair>> aapList = Simulator.getAAPfromSolution(s);\n rmp = new RealMapPlayer(aapList,smFront);\n rmp.play();\n\n\n }", "@Test\n public void resetCallsScheduledOperations() throws Exception {\n so.inject(vector(1.0, 1.0, 1.0));\n query.reset();\n checkVector(so.getSource(), 0.0, 0.0, 0.0);\n }", "@Nonnull \r\n\tpublic static <T> Observable<T> replay(\r\n\t\t\t@Nonnull final Observable<? extends T> source\r\n\t) {\r\n\t\treturn replay(source, scheduler());\r\n\t}", "public abstract void call();", "@Override\n public abstract void runOpMode();", "public void replayCommonBehavior() {\n\t\treplay(bundleContextMock);\n\t\treplay(bundleMock);\n\t\treplay(applicationContextMock);\n\t\tthis.replayed = true;\n\t}", "private void trigger() {\n\t\t\tif (repeatState == REPEAT_ADD) {\n\t\t\t\tadd();\n\t\t\t}\n\t\t\tif (repeatState == REPEAT_SUBTRACT) {\n\t\t\t\tsubtract();\n\t\t\t}\n\t\t}", "void undoPlay();", "public void startReplay() {\n resetMove();\n Move m;\n \n getCurrentMove().show();\n while ((m = nextMove()) != null) {\n m.show();\n }\n }", "boolean replayObserver(SubjectSubscriptionManager.SubjectObserver<? super T> observer);", "public abstract void redo();", "protected void execute() {\n\t\t_xboxControllerToRumble.setRumble(_rumbleType, _rumbleValue);\n\t\t_timesRumbled++;\n\t\tSystem.out.println(\"Rumbling \" + _timesRumbled);\n\t}", "void nextState();", "public void subscribe(p019io.reactivex.Observer<? super T> r6) {\n /*\n r5 = this;\n L_0x0000:\n java.util.concurrent.atomic.AtomicReference<io.reactivex.internal.operators.observable.ObservableReplay$ReplayObserver<T>> r0 = r5.curr\n java.lang.Object r0 = r0.get()\n io.reactivex.internal.operators.observable.ObservableReplay$ReplayObserver r0 = (p019io.reactivex.internal.operators.observable.ObservableReplay.ReplayObserver) r0\n if (r0 != 0) goto L_0x0020\n io.reactivex.internal.operators.observable.ObservableReplay$BufferSupplier<T> r1 = r5.bufferFactory\n io.reactivex.internal.operators.observable.ObservableReplay$ReplayBuffer r1 = r1.call()\n io.reactivex.internal.operators.observable.ObservableReplay$ReplayObserver r2 = new io.reactivex.internal.operators.observable.ObservableReplay$ReplayObserver\n r2.<init>(r1)\n java.util.concurrent.atomic.AtomicReference<io.reactivex.internal.operators.observable.ObservableReplay$ReplayObserver<T>> r3 = r5.curr\n r4 = 0\n boolean r3 = r3.compareAndSet(r4, r2)\n if (r3 != 0) goto L_0x001f\n goto L_0x0000\n L_0x001f:\n r0 = r2\n L_0x0020:\n io.reactivex.internal.operators.observable.ObservableReplay$InnerDisposable r1 = new io.reactivex.internal.operators.observable.ObservableReplay$InnerDisposable\n r1.<init>(r0, r6)\n r6.onSubscribe(r1)\n r0.add(r1)\n boolean r2 = r1.isDisposed()\n if (r2 == 0) goto L_0x0035\n r0.remove(r1)\n return\n L_0x0035:\n io.reactivex.internal.operators.observable.ObservableReplay$ReplayBuffer<T> r2 = r0.buffer\n r2.replay(r1)\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p019io.reactivex.internal.operators.observable.ObservableReplay.ReplaySource.subscribe(io.reactivex.Observer):void\");\n }", "@Override\n public void runOpMode() {\n initialize();\n\n //wait for user to press start\n waitForStart();\n\n if (opModeIsActive()) {\n\n // drive forward 24\"\n // turn left 90 degrees\n // turnLeft(90);\n // drive forward 20\"\n // driveForward(20);\n // turn right 90 degrees\n // turnRight(90);\n // drive forward 36\"\n // driveForward(36);\n\n }\n\n\n }", "void execute()\n\t{\n\t\tVM.top++;\n\t\tVM.opStack[VM.top] = arg();\n\t\tVM.pc++;\n\t}", "public void Execute() {\n\n }", "@Override\r\n public FlowState call() {\r\n // TODO: We should not need? to pass the flowState because this flow is already known (reapplying same values???)\r\n FlowState flowState = getFlowState();\r\n if ( flowState == null ) {\r\n throw new FlowException(\"No flowState with id:\", getExistingFlowStateLookupKey());\r\n } else {\r\n return getFlowManagementWithCheck().continueFlowState(getExistingFlowStateLookupKey(), true, this.getInitialFlowState());\r\n }\r\n }", "public void rumbleOperatorController(double power, double time) {\n // rumbleController(operatorController, power, time);\n }", "public abstract void runOperation();", "public IReplayImpl( final Replay replay ) {\r\n\t\tthis.replay = replay;\r\n\t\tinitData = replay.initData;\r\n\t\tdetails = replay.details;\r\n\t}", "void resume();", "void resume();", "void resume();", "public void replayByStep(){\n if(gamePaused == false){ return; }\n // animationThread.stop();\n replay.load();\n level = replay.getLevel();\n board = new Board(level);\n if(muteMusic == false){\n music.stopPlayingAudio(\"All\");\n music.playAudio(\"LevelMusic\");\n }\n musicName = \"LevelMusic\";\n setTitle(\"Chip's Challenge: Level \" + level);\n timeRuunableThread.setDrawNumber(true);\n timeRuunableThread.setSecond(replay.getTime());\n infoCanvas.drawLevelNumber(level);\n keysize = 0;\n originalChipNumber = board.getTreasureRemainingAmount();\n infoCanvas.drawChipsLeftNumber(board.getTreasureRemainingAmount());\n infoCanvas.drawSquares((Graphics2D) infoCanvas.getGraphics(), 14 * infoCanvas.getHeight() / 20, infoCanvas.getWidth(), infoCanvas.getHeight());\n try {\n infoCanvas.drawKeysChipsPics();\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n renderer = new MazeRenderer(boardCanvas.getGraphics());\n renderer.redraw(board, boardCanvas.getWidth(), boardCanvas.getHeight());\n for(String s : replay.getMovement()) {\n // board.moveChip(s);\n board = replay.replayByStep(board);\n checkMovedRedraw();\n replay.selectReplaySpeed();\n }\n gameStarted = true;\n gamePaused = false;\n timeRuunableThread.setPause(gamePaused);\n timeRuunableThread.setGameStart(gameStarted);\n }", "public void sampleOperation() {\n\t}", "protected abstract void internalPlay();", "protected void execute() {\n \t\n \tcurrent_time = System.currentTimeMillis();\n \t\n \tlift.liftDown(LIFT_SPEED);\n }", "Operations operations();", "public void backStep() {\r\n\t\tif (engaged && !backSteps.empty()) {\r\n\t\t\tProgramStatement statement = ((BackStep) backSteps.peek()).ps;\r\n\t\t\tengaged = false; // GOTTA DO THIS SO METHOD CALL IN SWITCH WILL NOT\r\n\t\t\t\t\t\t\t\t// RESULT IN NEW ACTION ON STACK!\r\n\t\t\tdo {\r\n\t\t\t\tBackStep step = (BackStep) backSteps.pop();\r\n\t\t\t\t/*\r\n\t\t\t\t * System.out.println(\"backstep POP: action \"+step.action+\" pc \"\r\n\t\t\t\t * +mars.util.Binary.intToHexString(step.pc)+\r\n\t\t\t\t * \" source \"+((step.ps==null)? \"none\":step.ps.getSource())+\r\n\t\t\t\t * \" parm1 \"+step.param1+\" parm2 \"+step.param2);\r\n\t\t\t\t */\r\n\t\t\t\tif (step.pc != NOT_PC_VALUE) {\r\n\t\t\t\t\tRegisterFile.setProgramCounter(step.pc);\r\n\t\t\t\t}\r\n\t\t\t\ttry {\r\n\t\t\t\t\tswitch (step.action) {\r\n\t\t\t\t\tcase MEMORY_RESTORE_RAW_WORD:\r\n\t\t\t\t\t\tGlobals.memory.setRawWord(step.param1, step.param2);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase MEMORY_RESTORE_WORD:\r\n\t\t\t\t\t\tGlobals.memory.setWord(step.param1, step.param2);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase MEMORY_RESTORE_HALF:\r\n\t\t\t\t\t\tGlobals.memory.setHalf(step.param1, step.param2);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase MEMORY_RESTORE_BYTE:\r\n\t\t\t\t\t\tGlobals.memory.setByte(step.param1, step.param2);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase REGISTER_RESTORE:\r\n\t\t\t\t\t\tRegisterFile.updateRegister(step.param1, step.param2);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase PC_RESTORE:\r\n\t\t\t\t\t\tRegisterFile.setProgramCounter(step.param1);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase COPROC0_REGISTER_RESTORE:\r\n\t\t\t\t\t\tCoprocessor0.updateRegister(step.param1, step.param2);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase COPROC1_REGISTER_RESTORE:\r\n\t\t\t\t\t\tCoprocessor1.updateRegister(step.param1, step.param2);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase COPROC1_CONDITION_CLEAR:\r\n\t\t\t\t\t\tCoprocessor1.clearConditionFlag(step.param1);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase COPROC1_CONDITION_SET:\r\n\t\t\t\t\t\tCoprocessor1.setConditionFlag(step.param1);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase DO_NOTHING:\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t// if the original action did not cause an exception this\r\n\t\t\t\t\t// will not either.\r\n\t\t\t\t\tSystem.out.println(\"Internal MARS error: address exception while back-stepping.\");\r\n\t\t\t\t\tSystem.exit(0);\r\n\t\t\t\t}\r\n\t\t\t} while (!backSteps.empty() && statement == ((BackStep) backSteps.peek()).ps);\r\n\t\t\tengaged = true; // RESET IT (was disabled at top of loop -- see\r\n\t\t\t\t\t\t\t// comment)\r\n\t\t}\r\n\t}", "private void Perform_CALL() throws RuntimeException\n {\n PCToStack();\n \n int k = Utils.GetOperand_XXXXXXX11111XXX1(mMBR);\n mPC = k + mMBR2;\n \n if (PC_BIT_SIZE == 22)\n clockTick();\n clockTick();\n clockTick();\n clockTick();\n \n return;\n }", "@Override\n public void execute() throws EngineException {\n Object target = JavaReflectionUtil.getObject(this.target, \n callStatement.getEntries().subList(1,\n callStatement.getEntries().size() - 1));\n this.getParent().setResult(executeMethod(target, callStatement));\n pop();\n }", "@Override\n\t\t\t\t\tpublic String call() throws Exception {\n\t\t\t\t\t\treturn reverser.reverseString(target);\n\t\t\t\t\t}", "public void replay(int cycles) {\n play(cycles);\n }", "public void playAgain();", "public void redo() {\n\t\t\n\t}", "public abstract void resume();", "@Override\n public void resume() {\n }", "public void callit();", "public void testMove() throws RepositoryException{\n String src = \"src\";\n String dest=\"dest\";\n \n session.move(src, dest);\n sessionControl.replay();\n sfControl.replay();\n \n jt.move(src, dest);\n }", "@Override\n public void execute() {\n\n\n /* container.swerveControllerCommand =\n new SwerveControllerCommand(\n trajectory,\n drivetrain::getCurrentPose, \n DrivetrainConstants.DRIVE_KINEMATICS,\n\n // Position controllers\n new PIDController(DrivetrainConstants.P_X_Controller, 0, 0),\n new PIDController(DrivetrainConstants.P_Y_Controller, 0, 0),\n container.thetaController,\n drivetrain::setModuleStates, //Not sure about setModuleStates\n drivetrain);*/\n\n// Reset odometry to the starting pose of the trajectory.\ndrivetrain.resetOdometry(trajectory.getInitialPose());\n\n\n}", "public void resume() {}", "public void resume();", "interface ReplayBuffer<T> {\n void complete();\n\n void error(Throwable th);\n\n void next(T t);\n\n void replay(InnerDisposable<T> innerDisposable);\n }", "@Override\n public void resume() {\n \n }", "@Override\r\npublic void Play() {\n\t\r\n}", "Snapshot apply();", "@Override\r\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\tmVideoContrl.playPrevious();\r\n\r\n\t\t\t\t\t\t\t}", "@Override\n public void resume() { }", "@Override\n public void redo() {\n\n }", "@Override\n public void run() {\n BeginTransactionMethodCall beginTransactionMethodCall = (BeginTransactionMethodCall) methodCall;\n long transactionTimeout = beginTransactionMethodCall.getTransactionTimeout();\n SpaceTransactionHolder spaceTransactionHolder = new SpaceTransactionHolder();\n spaceTransactionHolder.setSynchronizedWithTransaction( true );\n spaceTransactionHolder.setTimeoutInMillis( transactionTimeout );\n TransactionModificationContext mc = new TransactionModificationContext();\n mc.setProxyMode( true );\n spaceTransactionHolder.setModificationContext( mc );\n modificationContextFor( nodeRaised ).put( mc.getTransactionId(), spaceTransactionHolder );\n methodCall.setResponseBody( objectBuffer.writeObjectData( mc.getTransactionId() ) );\n }", "@Override\r\n\tpublic void resume() {\n\t\tcurrentState.resume();\r\n\t}", "public abstract void operation();", "public String redo() {\n/* 173 */ return redo(0, false);\n/* */ }", "@Test\n public void roundTrip() throws RemoteException {\n mHbmController.enable(mOnEnabled);\n\n // Should set the appropriate refresh rate for UDFPS and notify the caller.\n verify(mDisplayCallback).onHbmEnabled(eq(DISPLAY_ID));\n verify(mOnEnabled).run();\n\n // Disable the UDFPS mode.\n mHbmController.disable(mOnDisabled);\n\n // Should unset the refresh rate and notify the caller.\n verify(mOnDisabled).run();\n verify(mDisplayCallback).onHbmDisabled(eq(DISPLAY_ID));\n }", "@Override\n public void runOpMode() {\n commands.init(hardwareMap);\n\n // Wait for the game to start (driver presses PLAY)\n waitForStart();\n\n // run until the end of the match (driver presses STOP)\n while (opModeIsActive()) {\n sleep(30000);\n }\n }", "@Override\n\tpublic void controlProcedure(String instanceId, AsRunReplayResult result, IProgressMonitor monitor) throws LoadFailed\n\t{\n\t\tattachToRemoteProcedure(instanceId, ClientMode.CONTROL, result, monitor);\n\t}", "public void execute() {\n setExecuted(true);\n }", "@Override\n T pause();", "@Override\n public void resume() {\n\n }", "@Override\n public void resume() {\n\n }", "@Override\n public void resume() {\n\n }", "public default void onReplayDevicesLoaded() { /* empty */ }", "public void pauseAllCalls();", "@Override\r\n\tpublic void resume() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void resume() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void resume() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void resume() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void resume() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void resume() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void resume() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void resume() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void resume() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void resume() {\n\t\t\r\n\t}", "protected void takeAction() {\n lastAction = System.currentTimeMillis();\n }", "@GET(\"replays/{id}\")\n Call<DataResponse<ReplayData>> getReplayData(@Path(\"id\") String replayId);", "@Override\n public void Resume() {\n\n }", "@Override\n public void Resume() {\n\n }", "public void resume() {\n }", "@Override\n public void onClick(View v) {\n presenter.instantReplay();\n replayButton.setVisibility(View.INVISIBLE);\n\n //Create a toast that tells the player it's INSTANT REPLAY TIME\n displayReplay();\n }", "public String getReplayContext() {\n return replayContext;\n }", "@Override\r\n\tpublic void resume() {\n\t}" ]
[ "0.6497798", "0.63814116", "0.61275023", "0.58168226", "0.5693962", "0.56478035", "0.56263703", "0.5537254", "0.5513309", "0.54995555", "0.54915667", "0.54858", "0.5480367", "0.54724073", "0.5471923", "0.5467645", "0.5427843", "0.5413941", "0.5383694", "0.5381399", "0.53738916", "0.534346", "0.5335269", "0.5330134", "0.53201115", "0.5310624", "0.52649814", "0.52530044", "0.5221702", "0.5219249", "0.5186579", "0.5186389", "0.51772094", "0.51757175", "0.5168299", "0.5157208", "0.51459163", "0.5139793", "0.51394975", "0.51345587", "0.51345587", "0.51345587", "0.51338714", "0.5132067", "0.51290715", "0.51129526", "0.51127017", "0.51119834", "0.5108036", "0.51073676", "0.5101549", "0.5095521", "0.5083933", "0.50804085", "0.50796485", "0.507572", "0.5063993", "0.50586814", "0.5041893", "0.50317574", "0.50255847", "0.50198454", "0.50187874", "0.50185484", "0.50155824", "0.501434", "0.50126415", "0.5005594", "0.50037014", "0.50016934", "0.5000664", "0.49967983", "0.49958402", "0.49870303", "0.4985964", "0.49852726", "0.4979482", "0.49789113", "0.49789113", "0.49789113", "0.49719083", "0.49712208", "0.49661934", "0.49661934", "0.49661934", "0.49661934", "0.49661934", "0.49661934", "0.49661934", "0.49661934", "0.49661934", "0.49661934", "0.49633202", "0.49605528", "0.49599552", "0.49599552", "0.49501893", "0.49482682", "0.4946744", "0.49456468" ]
0.6726112
0
Method to call operation for undo
public void undo() { cmd = new UndoCommand(editor); invoker = new MiniEditorInvoker(cmd); invoker.action(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract void internalUndo();", "void undo();", "public abstract void undo();", "public void undo() {\n }", "@Override\n T undo();", "public void undoAction(){}", "public void undo() {\n\t\t\r\n\t}", "public void undo() throws CannotUndoException;", "@Override\n\tpublic void undo() {\n\t\t\n\t}", "@Override\n\tpublic void undo() {\n\t\t\n\t}", "@Override\n\tpublic void undo() {\n\t\t\n\t}", "@Override\n\tpublic void undo()\n\t{\n\t}", "@Override\n public void undo() {\n\n }", "@Override\n public void undo() {\n\n }", "public void undo() {\n setExecuted(false);\n }", "void undoPreviousAction() throws NothingToUndoException;", "public static void undo () {\r\n\t\tCommand cmd = undoCommands.pop();\r\n\t\tcmd.undo();\r\n\t\tredoCommands.push(cmd);\r\n\t}", "@Override\r\n public void undo() {\n\r\n }", "void processUndo() {\r\n boardManager.undo();\r\n }", "public String undo() {\n/* 145 */ return undo(0, false);\n/* */ }", "public void undo() {\n\t\tif (undolist.empty())\n\t\t\treturn;\n\n\t\tIHexEditorCommand comm;\n\t\tcomm = undolist.pop();\n\t\tif (comm == null)\n\t\t\treturn;\n\t\tcomm.revoke();\n\t\tredolist.push(comm);\n\n\t\tupdateStatusPanel();\n\t\tcursor.update();\n\t\tupdateActions();\n\t}", "@Override\n public void undo(int numToUndo) {\n }", "public synchronized void undo(){\n int index_of_last_operation = instructions.size() - 1;\n if (index_of_last_operation >= 0){\n instructions.remove(index_of_last_operation);\n }\n }", "@Override\r\n\tpublic void undo(Transaction tx) {\r\n\t\t// do nothing\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void undo() {\n\t\tfor (int i = 0; i < command.length; i++) {\r\n\t\t\tcommand[i].undo();\r\n\t\t}\r\n\t}", "public void undo() {\n\t\tif (lastCommand != null) {\n\t\t\tlastCommand.undo();\n\t\t\tlastCommand = null;\n\t\t}\n\t}", "@Override\n\tpublic void onUndoNotPossible() {\n\n\t}", "@Override\r\n\tpublic E undo() {\n\t\treturn null;\r\n\t}", "public void undo() {\n // only check the action can be undo or not\n if (!this.canUndo()) {\n throw new CannotUndoException();\n }\n }", "public void undoMove();", "@Override\n public void undo() {\n Memento temp = createMemento();\n memento.restore();\n memento = temp;\n }", "@Override\r\n\tpublic void undo(RechercheDetailleeAction arg0, RechercheDetailleeResult arg1, ExecutionContext arg2) throws ActionException {\n\r\n\t}", "private void cmdUndo() throws NoSystemException {\n \ttry {\n\t\t\tsystem().undoLastStatement();\n\t\t} catch (MSystemException e) {\n\t\t\tLog.error(e.getMessage());\n\t\t}\n }", "public void undo() {\n if (!undos.isEmpty()) {\n Command toUndo = undos.removeLast();\n redos.addLast(toUndo);\n toUndo.undo();\n } \n }", "public void undo() {\n if (!history.isEmpty()) {\n Command c = history.get(0);\n c.undo();\n history.remove(0);\n future.add(0, c);\n }\n }", "public final void undo() {\n\t\tthis.historyManager.undo();\n\t}", "public void undo() {\n\t\tif (doily.lines.size() > 0) {\n\t\t\tLine line = getLastLine();\n\t\t\tdoily.lines.remove(line);\n\t\t\tredoStack.push(line);\n\t\t\tredraw();\n\t\t}\n\t\telse {\n\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\"Undo Failed - Nothing to undo\", \n\t\t\t\t\t\"Undo\", JOptionPane.ERROR_MESSAGE);\n\t\t}\n\t}", "public abstract void undoMove();", "@Override\n public boolean canUndo() {\n return false;\n }", "public void doUndo()\n {\n // Get the last thing we did and reverse it, then remove it from the undoable stuff\n // This process is similar to 'Both Tool' being clicked on a hex with old values\n LinkedList\t\t\tlastChange = (LinkedList) undoableChanges.getLast();\n \n if (lastChange != null)\n {\n ListIterator\t\tit = lastChange.listIterator(0);\n ChangedMUXHex\t\tchangedHex;\n \n while (it.hasNext())\n {\n changedHex = (ChangedMUXHex) it.next();\n // We'll assume the hex is valid since it's in this list\n map.setHex(changedHex.getLocation(), changedHex.getPrevTerrain(), changedHex.getPrevElevation());\n mapComponent.repaint(mapComponent.rectForHex(changedHex.getLocation()));\n }\n \n // Repaint the hexes\n //mapComponent.repaint();\n \n // Remove what we just undid from our undoable list\n undoableChanges.removeLast();\n }\n }", "public void undo () {\n // The restores must be run in the reverse order they are added.\n for (int i = restores.size() - 1; i >= 0; --i) {\n restores.get(i).run();\n }\n restores.clear();\n }", "void undo() {\r\n if (_moveCount > 0) {\r\n undoPosition();\r\n }\r\n }", "public boolean canUndo();", "public boolean canUndo();", "@Override\n\tpublic void undo(LoginUserAction arg0, LoginUserResult arg1,\n\t\t\tExecutionContext arg2) throws ActionException {\n\n\t}", "@Override\n public boolean isUndo() {\n return false;\n }", "boolean undoLastCommand() throws Exception;", "@Override\n void undo() {\n assert false;\n }", "private String undo() {\n if (!undos.isEmpty()) {\n History history = undos.pop();\n this.redos.push(History.copy(this));\n pasteHistory(history);\n }\n\n //return sb.toString();\n return printList();\n }", "public static void undoButton(){\n\t\tundoMoveClass.undoButtonHelper(board);\n\t}", "public void undoLast() {\t\t\n\t\tCommand command = undoStack.pop();\n\t\tcommand.undo();\n\t}", "@Override\n public boolean undo() {\n // nothing required to be done\n return false;\n }", "public void undoAction() {\n classifier.removeFeature(operation);\n }", "public void undo() {\n\t\tif (currentPlayer.getUndos() > 0) {\n\t\t\tcurrentPlayer.updateUndos();\n\t\t\t//System.out.println(\"Current Player's Undos!\" + currentPlayer.getUndos());\n\t\t\tturnEnd = false;\n\t\t\tmadeMove = false;\n\t\t\tboard = cloneForUndo;\n\t\t\t//printBoard();\n\t\t}\n\t}", "public void undoableEditHappened() { }", "public void undoableEditHappened() { }", "@Override\n\t/**\n\t * undo is irrelevant in this case\n\t */\n\tpublic Task[] undo() {\n\t\treturn null;\n\t}", "@Override\r\n\tpublic void undo() throws InstructionExecutionException {\n\t\ttry\r\n\t\t{\r\n\t\t\tthis.robotContainer.pickItem(id);\r\n\t\t\tthis.robotContainer.addItem(lastItem);\r\n\t\t\tthis.engine.addFuel(lastFuel-this.engine.getFuel());\r\n\t\t\tthis.engine.addRecycledMaterial(lastRecycledMaterial-this.engine.getRecycledMaterial());\r\n\t\t} \r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\tthrow new InstructionExecutionException();\r\n\t\t}\r\n\t}", "@Test\n\tpublic void testUndo()\n\t{\n\t}", "boolean undoMove();", "public void executeUndoCommand(){\n for (Command command: undoStack) {\n command.execute();\n }\n }", "void undo() {\n Move rec = _history.get(_history.size() - 1);\n int to = rec.fromIndex();\n _directions.get(to).remove(_directions.get(to).size() - 1);\n if (rec.isJump()) {\n Move middle = Move.move(rec.col1(), rec.row1(),\n rec.col0(), rec.row0(), null);\n rec = rec.jumpTail();\n while (rec != null) {\n middle = Move.move(rec.col1(), rec.row1(),\n rec.col0(), rec.row0(), middle);\n rec = rec.jumpTail();\n }\n while (middle != null) {\n set(middle.fromIndex(), EMPTY);\n set(middle.toIndex(), _whoseMove.opposite());\n set(middle.jumpedCol(), middle.jumpedRow(), _whoseMove);\n middle = middle.jumpTail();\n }\n\n } else {\n int from = rec.toIndex();\n set(to, _whoseMove.opposite());\n set(from, EMPTY);\n\n _directions.get(from).remove(_directions.get(from).size() - 1);\n }\n\n _whoseMove = _whoseMove.opposite();\n _history.remove(_history.size() - 1);\n setChanged();\n notifyObservers();\n }", "public void undo() throws CannotUndoException {\n\t\tsuper.undo();\n\t\t\n\t\tSet affectedStates = this.getAffectedStates();\n\t\tif (iDeleting)\n\t\t\tiDoc.editAddStates(this, affectedStates);\n\t\telse\n\t\t\tiDoc.editRemoveStates(this, affectedStates);\n\t}", "int[][][] undo() throws EmptyStackException;", "public void undo()\r\n {\r\n if (changes!=null)\r\n {\r\n if (changes.getPrevious()!=null)\r\n {\r\n ignoreChange=true;\r\n changes.getElement().undo(doc);\r\n changes = changes.getPrevious();\r\n }\r\n }\r\n }", "@Override\n\tpublic void undo() {\n\t\tfor(SetValueCommand command : setCommands){\n\t\t\tcommand.undo();\n\t\t}\n\t\tif (layoutCommand != null){\n\t\t\tlayoutCommand.undo();\n\t\t}\n\t}", "@Override\n\tpublic String Undo() {\n\t\treturn \"Apagando la licuadora..........\" + receiver.turnOff();\n\t}", "public void undoAll() {\r\n\t\tListIterator<Command> it = stack.listIterator(stack.size());\r\n\r\n\t\twhile (it.hasPrevious())\r\n\t\t\ttry {\r\n\t\t\t\tit.previous().undo();\r\n\t\t\t} catch (Exception ex) {\r\n\t\t\t\tex.printStackTrace();\r\n\t\t\t}\r\n\t}", "@Override\n\tpublic boolean undo(Usuario usuario, List<Integer> params) {\n\t\treturn false;\n\t}", "@Override\n public void run() {\n TextActionsProvider actionsProvider = textpage.getActionsProvider();\n Object object = actionsProvider.getTextActions().get(\"Edit/Edit_Undo\");\n if (object != null) {\n actionsProvider.invokeAction(object);\n editor.save();\n }\n }", "@Override\n\tpublic UpdateContainer undoIt(Workspace workspace) {\n\t\treturn null;\n\t}", "public E undo() {\n if (canUndo()) {\n future.addLast(present);\n present = past.pollLast();\n }\n return getCurrentState();\n }", "public IStatus undo(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {\n \t\treturn null;\n \t}", "public void onUndo(TableroInmutable tablero) {\r\n\t\tthis.tablero.undo(tablero);\r\n\t\t\r\n\t}", "void redoPreviousAction() throws NothingToRedoException;", "public boolean undo(){\n\t\tif(!(undoStack.isEmpty())){\n\t\t\tSystem.out.println(\"Undoing one move...\");\n\t\t\tredoStack.push(undoStack.pop());\n\t\t\tthis.setState(undoStack.pop());\n\t\t\treturn true;\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"Undo is not available\");\n\t\t\treturn false;\n\t\t}\n\t}", "private void undoDelete() {\n if (!mReversDeleteItemPositionsList.isEmpty()) {\n\n mAllItems.add(mReversDeleteItemPositionsList.get(mReversDeleteItemPositionsList.size() - 1),\n mReverseDeleteItemsList.get(mReverseDeleteItemsList.size() - 1));\n //subtract from pallet total\n mPickHandlerInterface.subtractFromTOtal(Integer.parseInt(mReverseDeleteItemsList.get(mReversDeleteItemPositionsList.size() - 1).getCaseQuantity()));\n notifyItemInserted(mReversDeleteItemPositionsList.get(mReversDeleteItemPositionsList.size() - 1));\n mReverseDeleteItemsList.remove(mReverseDeleteItemsList.size() - 1);\n mReversDeleteItemPositionsList.remove(mReversDeleteItemPositionsList.size() - 1);\n showUndoSnackbar();\n SendInformationToActivity();\n\n }\n\n }", "@Override\n\tprotected CommandResult doUndoWithResult(IProgressMonitor progressMonitor,\n\t\t\tIAdaptable info) throws ExecutionException {\n\t\tpasteCommand.doUndoWithResult(progressMonitor, info);\n\t\treturn null;\n\t}", "public void undo() {\r\n pop( true );\r\n announce( null );\r\n }", "public Object execute(Object theFrame) {\n\t\tObjectEditor.setMethodsVisible(HistoryUndoerListener.class, false);\r\n\t\tKeyShortCuts.put(Common.control('z'), \"Edit>Undo\");\r\n\t\tKeyShortCuts.put(Common.control('y'), \"Edit>Redo\");\r\n\t\t //ObjectEditor.setMethodDisplayName(AFileOperationsModel.class, \"open\", \"Open..\");\r\n\t\t //ObjectEditor.setMethodDisplayName(AFileOperationsModel.class, \"load\", \"Load..\");\r\n\t\t return null;\r\n\t}", "public void undo() {\n firePropertyChange(\"undo\", null, \"enable\");\n final Drawing removeMe = myDrawingArray.get(myDrawingArray.size() - 1);\n myDrawingArray.remove(removeMe);\n myUndoStack.push(removeMe);\n myCurrentShape = new Drawing(new Line2D.Double(), Color.WHITE, 0);\n if (myDrawingArray.isEmpty()) {\n firePropertyChange(\"stack\", null, EMPTY_STRING);\n }\n repaint();\n }", "public void undo() {\n\t\tlight.on();\n\t}", "void redo();", "public void undoComamnd(Command command){\n undoStack.add(command);\n }", "@Override\n public void undo(History history) throws CommandExecutionException {\n try {\n transactionManager.deleteTransaction((Integer) history.getData(\"transactionId\"));\n history.setUndone(true);\n String oldMessage = history.getDisplayString();\n String newMessage = oldMessage + \" has been undone\";\n history.setDisplayString(newMessage);\n gateway.update(history, History.class);\n } catch (Exception e) {\n throw new CommandExecutionException(e);\n }\n }", "@Override\n\tpublic void undo() {\n\t\tthis.list.delete(shape);\n\n\t}", "public void onUndo() {\n game.undoLastTurn(player1);\n game.undoLastTurn(computer);\n if (player1.getRollCount() == 0 && computer.getRollCount() == 0) {\n setDefault(\"player\");\n setDefault(\"computer\");\n undoButton.setDisable(true);\n resetButton.setDisable(true);\n } else {\n updateFields(\"player\");\n updateFields(\"computer\");\n }\n }", "protected void undoClicked(ActionEvent e) {\n setAllToDefaultColor();\n moveStats lastMove = board.undo();\n if (lastMove == null) {\n message.setText(\"Can't undo now\");\n return; //cannot undo\n }\n\n if (selectedPiece != null){\n selectedPiece.setBackground(getDefaultColor(selectedPiece));\n selectedPiece = null;\n }\n setButtonIcon(lastMove.startRow,lastMove.startCol);\n setButtonIcon(lastMove.endRow,lastMove.endCol);\n message.setText(getTurnMessage());\n\n }", "protected final void undo() {\n requireAllNonNull(model, previousResidentBook, previousEventBook);\n model.resetData(previousResidentBook, previousEventBook);\n model.updateFilteredPersonList(PREDICATE_SHOW_ALL_PERSONS);\n model.updateFilteredEventList(PREDICATE_SHOW_ALL_EVENTS);\n\n }", "public void undo() {\n\t\tif(!committed) {\n\t\t\tSystem.arraycopy(undoWidths, 0, widths, 0, widths.length);\n\t\t\t//Undo the widths\n\t\t\tSystem.arraycopy(undoHeights, 0, heights, 0, heights.length);\n\t\t\t//Undo the heights\n\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\tSystem.arraycopy(undoGrid[i], 0, grid[i], 0,undoGrid[i].length);\n\t\t\t}\n\t\t\t//Undo the heights\n\t\t\tmaxHeight = undoMaxHeight;\n\t\t\t//Undo the max height\n\t\t}\n\t\t//if committed then we can not undo and do nothing\n\t\tcommit();\n\t\t// YOUR CODE HERE\n\t}", "@Test\n public void testUndo(){\n //TODO\n }", "public abstract void redo();", "public void undo() {\n target.setCombatState( oldState );\n }", "public void process() {\n \n//System.out.println(\"UndoCommand.undo()\");\n//System.out.println(\" command: \" + command.getDescription());\n//System.out.println(\" isTransient: \" + command.isTransient());\n//System.out.println(\" isUndoable: \" + command.isUndoable());\n\n try {\n \n command.undo();\n\n // Move the command to the top of the redo stack\n redoCommands.push(command);\n\n // Trim the redo stack\n if (redoCommands.size() > maxSize) {\n redoCommands.setSize(maxSize);\n } \n \n // finally, notify listeners of the change\n for (int i = 0; i < commandListeners.size(); i++) {\n CommandListener l = commandListeners.get(i);\n l.commandExecuted(command);\n }\n\n } catch (Exception e) {\n errorReporter.errorReport(\"Undo of \" + command.getDescription() + \" command failed.\", e);\n }\n\n }", "private void undoPopItemActionPerformed(java.awt.event.ActionEvent evt) {\n undoredo.undo();\n }", "public CommandResult undo(UniqueTaskList tasks) {\n if (!previousTask.isEmpty()) {\n Task userTask = previousTask.pop();\n String userAction = previousActionType.pop();\n int taskIndex = previousActionIndex.pop();\n\n switch (userAction) {\n // previous action was an add; delete the added task\n case \"add\":\n try {\n tasks.remove(userTask);\n if (userTask.toString().equals(userTask.getUndoFormatString())) {\n previousActionUndoString = userAction + \" \" + userTask.getUndoFormatString();\n } else {\n previousActionUndoString = userAction + \" \" + userTask.getName() + \" \"\n + userTask.getUndoFormatString();\n }\n } catch (TaskNotFoundException e) {\n return new CommandResult(\n String.format(Messages.MESSAGE_TASK_NOT_FOUND, userTask.getUndoFormatString()));\n }\n break;\n // previous action was a delete; add back the deleted task\n case \"delete\":\n try {\n tasks.add(taskIndex, userTask);\n previousActionUndoString = userAction + \" \" + (taskIndex + 1);\n } catch (DuplicateTaskException e) {\n return new CommandResult(\n String.format(Messages.MESSAGE_DUPLICATE_TASK_FOUND, userTask.getUndoFormatString()));\n }\n break;\n // previous action was an edit; set back the old task\n case \"edit\":\n try {\n Task temp = tasks.getTaskFromIndex(taskIndex);\n tasks.edit(taskIndex, userTask);\n previousActionUndoString = \"edit\" + \" \" + (taskIndex + 1) + \" \" + temp.getUndoFormatString();\n } catch (TaskNotFoundException e) {\n return new CommandResult(\n String.format(Messages.MESSAGE_TASK_NOT_FOUND, userTask.getUndoFormatString()));\n }\n break;\n // previous action was a complete; set the task back to pending\n case \"complete\":\n previousActionUndoString = userAction + \" \" + (taskIndex + 1);\n userTask = tasks.getTaskFromIndex(taskIndex);\n userTask.setPending();\n break;\n // previous action was a clear for completed tasks; add back the\n // tasks that were completed\n case \"clear\":\n previousActionUndoString = userAction;\n List<Task> lastCleared = previousClearedTasks.pop();\n List<Integer> lastClearedIndices = previousClearedIndices.pop();\n\n for (int i = 0; i < lastCleared.size(); i++) {\n int indexToUnclear = lastClearedIndices.get(i);\n Task taskToUnclear = lastCleared.get(i);\n taskToUnclear.setComplete();\n try {\n tasks.add(indexToUnclear, taskToUnclear);\n } catch (DuplicateTaskException e) {\n return new CommandResult(\n String.format(Messages.MESSAGE_DUPLICATE_TASK_FOUND, userTask.getUndoFormatString()));\n }\n }\n break;\n // previous action was a clear all regardless of status; add back\n // the tasks that were cleared\n case \"clear all\":\n previousActionUndoString = \"clear /a\";\n List<Task> lastClearedAll = previousClearedTasks.pop();\n List<Integer> lastClearedAllIndices = previousClearedIndices.pop();\n List<String> lastClearedStatuses = previousClearedStatus.pop();\n\n for (int i = 0; i < lastClearedAll.size(); i++) {\n int indexToUnclear = lastClearedAllIndices.get(i);\n Task taskToUnclear = lastClearedAll.get(i);\n String taskStatus = lastClearedStatuses.get(i);\n if (taskStatus.equals(\"Complete\")) {\n taskToUnclear.setComplete();\n } else {\n taskToUnclear.setPending();\n }\n\n try {\n tasks.add(indexToUnclear, taskToUnclear);\n } catch (DuplicateTaskException e) {\n return new CommandResult(\n String.format(Messages.MESSAGE_DUPLICATE_TASK_FOUND, userTask.getUndoFormatString()));\n }\n }\n break;\n default:\n System.out.println(\"Error occurred in undo stack\");\n }\n } else {\n throw new EmptyStackException();\n }\n return new CommandResult(MESSAGE_NOTHING_TO_UNDO);\n }", "public interface UndoableEdit {\n /**\n * Undo the edit.\n *\n * @throws CannotUndoException if this edit can not be undone\n */\n public void undo() throws CannotUndoException;\n\n /**\n * Returns true if this edit may be undone.\n *\n * @return true if this edit may be undone\n */\n public boolean canUndo();\n\n /**\n * Re-applies the edit.\n *\n * @throws CannotRedoException if this edit can not be redone\n */\n public void redo() throws CannotRedoException;\n\n /**\n * Returns true if this edit may be redone.\n *\n * @return true if this edit may be redone\n */\n public boolean canRedo();\n\n /**\n * Informs the edit that it should no longer be used. Once an\n * <code>UndoableEdit</code> has been marked as dead it can no longer\n * be undone or redone.\n * <p>\n * This is a useful hook for cleaning up state no longer\n * needed once undoing or redoing is impossible--for example,\n * deleting file resources used by objects that can no longer be\n * undeleted. <code>UndoManager</code> calls this before it dequeues edits.\n * <p>\n * Note that this is a one-way operation. There is no \"un-die\"\n * method.\n *\n * @see CompoundEdit#die\n */\n public void die();\n\n /**\n * Adds an <code>UndoableEdit</code> to this <code>UndoableEdit</code>.\n * This method can be used to coalesce smaller edits into a larger\n * compound edit. For example, text editors typically allow\n * undo operations to apply to words or sentences. The text\n * editor may choose to generate edits on each key event, but allow\n * those edits to be coalesced into a more user-friendly unit, such as\n * a word. In this case, the <code>UndoableEdit</code> would\n * override <code>addEdit</code> to return true when the edits may\n * be coalesced.\n * <p>\n * A return value of true indicates <code>anEdit</code> was incorporated\n * into this edit. A return value of false indicates <code>anEdit</code>\n * may not be incorporated into this edit.\n * <p>Typically the receiver is already in the queue of a\n * <code>UndoManager</code> (or other <code>UndoableEditListener</code>),\n * and is being given a chance to incorporate <code>anEdit</code>\n * rather than letting it be added to the queue in turn.</p>\n *\n * <p>If true is returned, from now on <code>anEdit</code> must return\n * false from <code>canUndo</code> and <code>canRedo</code>,\n * and must throw the appropriate exception on <code>undo</code> or\n * <code>redo</code>.</p>\n *\n * @param anEdit the edit to be added\n * @return true if <code>anEdit</code> may be incorporated into this\n * edit\n */\n public boolean addEdit(UndoableEdit anEdit);\n\n /**\n * Returns true if this <code>UndoableEdit</code> should replace\n * <code>anEdit</code>. This method is used by <code>CompoundEdit</code>\n * and the <code>UndoManager</code>; it is called if\n * <code>anEdit</code> could not be added to the current edit\n * (<code>addEdit</code> returns false).\n * <p>\n * This method provides a way for an edit to replace an existing edit.\n * <p>This message is the opposite of addEdit--anEdit has typically\n * already been queued in an <code>UndoManager</code> (or other\n * UndoableEditListener), and the receiver is being given a chance\n * to take its place.</p>\n *\n * <p>If true is returned, from now on anEdit must return false from\n * canUndo() and canRedo(), and must throw the appropriate\n * exception on undo() or redo().</p>\n *\n * @param anEdit the edit that replaces the current edit\n * @return true if this edit should replace <code>anEdit</code>\n */\n public boolean replaceEdit(UndoableEdit anEdit);\n\n /**\n * Returns true if this edit is considered significant. A significant\n * edit is typically an edit that should be presented to the user, perhaps\n * on a menu item or tooltip. The <code>UndoManager</code> will undo,\n * or redo, all insignificant edits to the next significant edit.\n *\n * @return true if this edit is significant\n */\n public boolean isSignificant();\n\n /**\n * Returns a localized, human-readable description of this edit, suitable\n * for use in a change log, for example.\n *\n * @return description of this edit\n */\n public String getPresentationName();\n\n /**\n * Returns a localized, human-readable description of the undoable form of\n * this edit, suitable for use as an Undo menu item, for example.\n * This is typically derived from <code>getPresentationName</code>.\n *\n * @return a description of the undoable form of this edit\n */\n public String getUndoPresentationName();\n\n /**\n * Returns a localized, human-readable description of the redoable form of\n * this edit, suitable for use as a Redo menu item, for example. This is\n * typically derived from <code>getPresentationName</code>.\n *\n * @return a description of the redoable form of this edit\n */\n public String getRedoPresentationName();\n}", "public void undo() {\n if (!canUndo()) {\n throw new VersionedAssignmentList.NoUndoableStateException();\n }\n currentStatePointer--;\n resetData(assignmentListStateList.get(currentStatePointer));\n }", "public String getNextUndoAction() {\n/* 850 */ String result = \"\";\n/* 851 */ if (!this.mPdfViewCtrl.isUndoRedoEnabled() || this.mPdfViewCtrl.getDoc() == null) {\n/* 852 */ return result;\n/* */ }\n/* */ \n/* 855 */ removeUnsafeUndoRedoInfo(true);\n/* 856 */ String info = null;\n/* 857 */ JSONObject jsonObj = null;\n/* */ try {\n/* 859 */ info = this.mPdfViewCtrl.getNextUndoInfo();\n/* 860 */ if (sDebug)\n/* 861 */ Log.d(TAG, \"next undo: \" + info); \n/* 862 */ jsonObj = new JSONObject(info);\n/* 863 */ if (jsonObj.has(\"Action\")) {\n/* 864 */ String action = jsonObj.getString(\"Action\");\n/* 865 */ if (this.mContext != null && !Utils.isNullOrEmpty(action) && isValidAction(this.mContext, action)) {\n/* 866 */ String strUndo = this.mContext.getResources().getString(R.string.undo);\n/* 867 */ result = strUndo + \": \" + action;\n/* */ } \n/* */ } \n/* 870 */ } catch (Exception e) {\n/* 871 */ if (info == null || !info.equals(\"state not found\")) {\n/* 872 */ AnalyticsHandlerAdapter.getInstance().sendException(e, \"next undo info: \" + ((info == null) ? \"null\" : info));\n/* */ }\n/* */ } \n/* */ \n/* */ \n/* 877 */ if (Utils.isNullOrEmpty(result) && jsonObj != null) {\n/* */ try {\n/* 879 */ if (jsonObj.has(\"label\")) {\n/* 880 */ String label = jsonObj.getString(\"label\");\n/* 881 */ if (!label.equals(\"initial\")) {\n/* 882 */ result = this.mContext.getResources().getString(R.string.undo) + \"...\";\n/* */ }\n/* */ } \n/* 885 */ } catch (Exception e) {\n/* 886 */ AnalyticsHandlerAdapter.getInstance().sendException(e);\n/* */ } \n/* */ }\n/* */ \n/* 890 */ return result;\n/* */ }", "public UndoableCommand undo() {\n logger.info(String.format(\"----------------[UNDOING][%s]\", this));\n return new DeleteActivityCommand(null, activityAdded);\n }" ]
[ "0.8478818", "0.8469834", "0.8380741", "0.83379406", "0.8291451", "0.8211344", "0.80587906", "0.8002802", "0.7917927", "0.7917927", "0.7917927", "0.7894641", "0.78878206", "0.78878206", "0.7814287", "0.78014576", "0.77938575", "0.77280164", "0.76928324", "0.76838416", "0.76469976", "0.76312524", "0.7625266", "0.7589649", "0.75831", "0.75118613", "0.74825054", "0.74238193", "0.7402154", "0.7388225", "0.7367213", "0.73650426", "0.73544735", "0.73421633", "0.7336319", "0.73216265", "0.7312486", "0.7266763", "0.7242334", "0.72270054", "0.7181844", "0.71695733", "0.7149112", "0.7149112", "0.7116011", "0.70899135", "0.7072051", "0.70556897", "0.705095", "0.7047961", "0.69677174", "0.6963687", "0.6908648", "0.68985885", "0.6892981", "0.6892981", "0.68899167", "0.686953", "0.6867335", "0.68531215", "0.6847314", "0.6841313", "0.68344784", "0.68332285", "0.68274736", "0.6765791", "0.6744638", "0.67402697", "0.6737419", "0.66987765", "0.66511613", "0.66430306", "0.6634678", "0.66310817", "0.6622064", "0.66192317", "0.6612212", "0.6606629", "0.6602436", "0.6599242", "0.659146", "0.65833867", "0.65792865", "0.6576244", "0.6570477", "0.6538596", "0.65384525", "0.65286046", "0.6518556", "0.6510897", "0.64983356", "0.6491225", "0.6488627", "0.6481477", "0.6465982", "0.644973", "0.6444455", "0.64314264", "0.6423617", "0.6417201" ]
0.7687506
19
Method to call operation for redo
public void redo() { cmd = new RedoCommand(editor); invoker = new MiniEditorInvoker(cmd); invoker.action(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void redo();", "public abstract void redo();", "public void redo() {\n\t\t\n\t}", "@Override\n\tpublic void redo() {\n\t\t\n\t}", "@Override\n public void redo() {\n\n }", "public void redoAction() {\n executeAction();\n }", "public void redo() throws CannotRedoException;", "public String redo() {\n/* 173 */ return redo(0, false);\n/* */ }", "public final void redo() {\n\t\tthis.historyManager.redo();\n\t}", "public static void redo () {\r\n\t\tCommand cmd = redoCommands.pop();\r\n\t\tcmd.redo();\r\n\t\tundoCommands.push(cmd);\r\n\t}", "private void cmdRedo() throws NoSystemException {\n \ttry {\n\t\t\tsystem().redoStatement();\n\t\t} catch (MSystemException e) {\n\t\t\tLog.error(e.getMessage());\n\t\t}\n }", "@Override\n public void redo(int numToRedo) {\n }", "public void redo() {\n\t\tif (redolist.empty())\n\t\t\treturn;\n\n\t\tIHexEditorCommand comm;\n\t\tcomm = redolist.pop();\n\t\tif (comm == null)\n\t\t\treturn;\n\t\tcomm.execute();\n\t\tundolist.push(comm);\n\n\t\tupdateStatusPanel();\n\t\tupdateActions();\n\t\tcursor.update();\n\t}", "public void redo() {\n // only check the action can be redo or not\n if (!this.canRedo()) {\n throw new CannotRedoException();\n }\n }", "@Override\r\n\tpublic void redo(Transaction tx) {\r\n\t\t// do nothing\r\n\t}", "boolean redoLastCommand() throws Exception;", "@Override\n public boolean redo() {\n // nothing required to be done\n return false;\n }", "void redoPreviousAction() throws NothingToRedoException;", "public void redo() {\n if (!redos.isEmpty()) {\n Command toRedo = redos.removeLast();\n undos.addLast(toRedo);\n toRedo.execute();\n }\n }", "@Override\n\t/**\n\t * redo is irrelevant in this case\n\t */\n\tpublic Task[] redo() {\n\t\treturn null;\n\t}", "public void redo() {\n if (!future.isEmpty()) {\n Command c = future.get(0);\n c.redo();\n future.remove(0);\n history.add(0, c);\n }\n }", "protected final void redo() {\n requireNonNull(model);\n try {\n executeUndoableCommand();\n } catch (CommandException ce) {\n throw new AssertionError(\"The command has been successfully executed previously; \"\n + \"it should not fail now\");\n }\n model.updateFilteredPersonList(PREDICATE_SHOW_ALL_PERSONS);\n model.updateFilteredEventList(PREDICATE_SHOW_ALL_EVENTS);\n\n }", "public void redo() {\n\t\tif (redoStack.size() > 0) {\n\t\t\tdoily.lines.add(redoStack.pop());\n\t\t\trepaint();\n\t\t}\n\t\telse {\n\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\"Redo Failed - Nothing to redo\", \n\t\t\t\t\t\"Redo\", JOptionPane.ERROR_MESSAGE);\n\t\t}\n\t}", "public void redo() throws CannotRedoException {\n\t\tsuper.redo();\n\t\t\n\t\tthis.doEdit(iDoc);\n\t}", "public void redoUndoneCommand() {\r\n // TODO: Fix me!!!\r\n try {\r\n char c=redo.pop();\r\n //redo.push(c);\r\n if(c=='c'){\r\n super.rotateClockwise();\r\n }\r\n if(c=='r'){\r\n super.rotateCounterClockwise();\r\n }\r\n if(c=='m'){\r\n super.moveForward();\r\n }\r\n } catch (Exception e) {\r\n System.out.println(e.getMessage());\r\n }\r\n }", "protected void redoSuccess() {\n this.isRedoable = false;\n this.isUndoable = true;\n }", "public void redo() {\n if (!canRedo()) {\n throw new VersionedAssignmentList.NoRedoableStateException();\n }\n currentStatePointer++;\n resetData(assignmentListStateList.get(currentStatePointer));\n }", "public void redo()\r\n {\r\n if (changes!=null)\r\n {\r\n if (changes.getNext()!=null)\r\n {\r\n ignoreChange=true;\r\n changes = changes.getNext();\r\n changes.getElement().redo(doc);\r\n \r\n }\r\n }\r\n }", "private String redo() {\n this.undos.push(History.copy(this));\n if (!redos.isEmpty()) {\n History history = redos.pop();\n this.undos.push(History.copy(this));\n pasteHistory(history);\n }\n\n //return sb.toString();\n return printList();\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}", "public void executeRedoCommand(){\n for (Command command: redoStack) {\n command.execute();\n }\n }", "public void process() {\n \n//System.out.println(\"UndoCommand.undo()\");\n//System.out.println(\" command: \" + command.getDescription());\n//System.out.println(\" isTransient: \" + command.isTransient());\n//System.out.println(\" isUndoable: \" + command.isUndoable());\n\n try {\n \n command.undo();\n\n // Move the command to the top of the redo stack\n redoCommands.push(command);\n\n // Trim the redo stack\n if (redoCommands.size() > maxSize) {\n redoCommands.setSize(maxSize);\n } \n \n // finally, notify listeners of the change\n for (int i = 0; i < commandListeners.size(); i++) {\n CommandListener l = commandListeners.get(i);\n l.commandExecuted(command);\n }\n\n } catch (Exception e) {\n errorReporter.errorReport(\"Undo of \" + command.getDescription() + \" command failed.\", e);\n }\n\n }", "public UndoableCommand redo() {\n logger.info(String.format(\"----------------[REDOING][%s]\", this));\n return new AddActivityCommand(activityAdded, true);\n }", "@Override\n\tpublic IStatus redo(IProgressMonitor monitor, IAdaptable info)\n\t\t\tthrows ExecutionException {\n\t\treturn execute(monitor,info);\n\t}", "protected abstract void internalUndo();", "public E redo() {\n if (canRedo()) {\n past.addLast(present);\n present = future.pollLast();\n }\n return getCurrentState();\n }", "public void undo() {\n setExecuted(false);\n }", "public synchronized void undo(){\n int index_of_last_operation = instructions.size() - 1;\n if (index_of_last_operation >= 0){\n instructions.remove(index_of_last_operation);\n }\n }", "@Override\n T undo();", "@Override\n public void redo()\n {\n story.setEstimate(newEstimate);\n }", "public String redo(int locationId, boolean sendEvent) {\n/* 185 */ this.mLocationId = locationId;\n/* 186 */ this.mLastActionIsUndo = false;\n/* 187 */ if (!sendEvent) {\n/* 188 */ this.mRedoCount++;\n/* */ } else {\n/* 190 */ this.mRedoCount = 0;\n/* */ } \n/* 192 */ return performUndoRedo(false, locationId, sendEvent);\n/* */ }", "public abstract void undo();", "public boolean redo(){\n\t\tif(!(redoStack.isEmpty())){\n\t\t\tSystem.out.println(\"Redoing one move...\");\n\t\t\tundoStack.push(getState());\n\t\t\tthis.setState(redoStack.pop());\n\t\t\treturn true;\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"Nothing to redo\");\n\t\t\treturn false;\n\t\t}\n\t}", "public static void undo () {\r\n\t\tCommand cmd = undoCommands.pop();\r\n\t\tcmd.undo();\r\n\t\tredoCommands.push(cmd);\r\n\t}", "boolean undoLastCommand() throws Exception;", "@Test\n\tpublic void redoTask_invalidState(){\n\t\tRedoCommand command = new RedoCommand();\n\t\tcommand.setData(model);\n\t\tCommandResult result = command.execute();\n\t\tString feedback = result.feedbackToUser;\n\t\tassertTrue(feedback.equals(RedoCommand.MESSAGE_REDO_INVALID_STATE));\n\t}", "int[][][] redo() throws EmptyStackException;", "void processUndo() {\r\n boardManager.undo();\r\n }", "public String getNextRedoAction() {\n/* 899 */ String result = \"\";\n/* 900 */ if (!this.mPdfViewCtrl.isUndoRedoEnabled() || this.mPdfViewCtrl.getDoc() == null) {\n/* 901 */ return result;\n/* */ }\n/* */ \n/* 904 */ removeUnsafeUndoRedoInfo(false);\n/* 905 */ String info = null;\n/* */ try {\n/* 907 */ info = this.mPdfViewCtrl.getNextRedoInfo();\n/* 908 */ if (sDebug)\n/* 909 */ Log.d(TAG, \"next redo: \" + info); \n/* 910 */ JSONObject jsonObj = new JSONObject(info);\n/* 911 */ if (jsonObj.has(\"Action\")) {\n/* 912 */ String action = jsonObj.getString(\"Action\");\n/* 913 */ if (this.mContext != null && isValidAction(this.mContext, action)) {\n/* 914 */ String strRedo = this.mContext.getResources().getString(R.string.redo);\n/* 915 */ result = strRedo + \": \" + action;\n/* */ } \n/* */ } \n/* 918 */ } catch (Exception e) {\n/* 919 */ if (info == null || !info.equals(\"state not found\")) {\n/* 920 */ AnalyticsHandlerAdapter.getInstance().sendException(e, \"next redo info: \" + ((info == null) ? \"null\" : info));\n/* */ }\n/* */ } \n/* */ \n/* */ \n/* 925 */ return result;\n/* */ }", "public void undoLast() {\t\t\n\t\tCommand command = undoStack.pop();\n\t\tcommand.undo();\n\t}", "public void redo() {\n firePropertyChange(ARRAY_STRING, null, NOT_EMPTY_STRING);\n myDrawingArray.add(myUndoStack.pop());\n if (myUndoStack.isEmpty()) {\n firePropertyChange(\"emptystack\", null, EMPTY_STRING);\n }\n repaint();\n }", "private void replayNextOp() {\n\t\topNum++;\n\t\tif (opNum > ops.length) {\n\t\t\topNum = -1;\n\t\t\tupdate();\n\t\t} else if (!getExited()) {\n\t\t\tjavax.swing.SwingUtilities.invokeLater(doReplayNextOp);\n\t\t}\n\t}", "private void cmdUndo() throws NoSystemException {\n \ttry {\n\t\t\tsystem().undoLastStatement();\n\t\t} catch (MSystemException e) {\n\t\t\tLog.error(e.getMessage());\n\t\t}\n }", "public void undo() {\n }", "public IStatus redo(IProgressMonitor monitor, IAdaptable uiInfo) {\n \t\t\tif (isValid()) {\n \t\t\t\tfDocumentUndoManager.fireDocumentUndo(fStart, fText, fPreservedText, uiInfo, DocumentUndoEvent.ABOUT_TO_REDO, false);\n \t\t\t\tredoTextChange();\n \t\t\t\tfDocumentUndoManager.resetProcessChangeState();\n \t\t\t\tfDocumentUndoManager.fireDocumentUndo(fStart, fText, fPreservedText, uiInfo, DocumentUndoEvent.REDONE, false);\n \t\t\t\treturn Status.OK_STATUS;\n \t\t\t}\n \t\t\treturn IOperationHistory.OPERATION_INVALID_STATUS;\n \t\t}", "public IStatus redo(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {\n \t\treturn null;\n \t}", "void undo();", "protected void executionSuccess() {\n this.isUndoable = true;\n }", "public void redo(){\n\t\tthis.setButtonVisible(true);\n\t}", "public void undo() {\n if (!history.isEmpty()) {\n Command c = history.get(0);\n c.undo();\n history.remove(0);\n future.add(0, c);\n }\n }", "public void undoAction(){}", "public void undo() {\n\t\tif (lastCommand != null) {\n\t\t\tlastCommand.undo();\n\t\t\tlastCommand = null;\n\t\t}\n\t}", "@Test\n\tpublic void testRedoAction() {\n\n\t\t//Add the new cell to the undo stack to simulate what\n\t\t//occurs during cell editing. Every change must be recorded so it can be undone and redone\n\t\tundoRedo_TestStack.noUndoRedoAction(testGrid.selectCell(\"A\",5));\n\t\t//Update cell values, simulating user manual input\n\t\ttestGrid.selectCell(\"A\",5).setValue(\"88\");\n\n\t\t//Add the new cell to the undo stack to simulate what\n\t\t//occurs during cell editing. Every change must be recorded so it can be undone and redone\n\t\tundoRedo_TestStack.noUndoRedoAction(testGrid.selectCell(\"E\",8));\n\t\t//Update cell value, simulating user manual input\n\t\ttestGrid.selectCell(\"E\",8).setValue(\"99\");\n\n\n\t\t//Simulate the undo action and keep that info\n\t\tCell result2_undo = undoRedo_TestStack.undoAction(testGrid);\n\t\ttestGrid.selectCell(result2_undo.getCol(), result2_undo.getRow()).setValue(result2_undo.getValue());\n\t\ttestGrid.selectCell(result2_undo.getCol(), result2_undo.getRow()).setCellFormat(result2_undo.getCellFormat());\n\n\t\tCell result1_undo = undoRedo_TestStack.undoAction(testGrid);\n\t\ttestGrid.selectCell(result1_undo.getCol(), result1_undo.getRow()).setValue(result1_undo.getValue());\n\t\ttestGrid.selectCell(result1_undo.getCol(), result1_undo.getRow()).setCellFormat(result1_undo.getCellFormat());\n\n\n\t\t//Now that undo action was performed, simulate the redo action and keep that info\n\t\tCell result1_redo = undoRedo_TestStack.redoAction(testGrid);\n\t\ttestGrid.selectCell(result1_redo.getCol(), result1_redo.getRow()).setValue(result1_redo.getValue());\n\t\ttestGrid.selectCell(result1_redo.getCol(), result1_redo.getRow()).setCellFormat(result1_redo.getCellFormat());\n\n\t\tCell result2_redo = undoRedo_TestStack.redoAction(testGrid);\n\t\ttestGrid.selectCell(result2_redo.getCol(), result2_redo.getRow()).setValue(result2_redo.getValue());\n\t\ttestGrid.selectCell(result2_redo.getCol(), result2_redo.getRow()).setCellFormat(result2_redo.getCellFormat());\n\n\t\t//Case when the redo stack is empty\n\t\tCell emptyRedoStackCell = undoRedo_TestStack.redoAction(testGrid);\n\n\t\t//Compare the cells modified by the undo action with the results produced by the redo action\n\t\tassertEquals(\"E\", result2_redo.getCol());\n\t\tassertEquals(8, result2_redo.getRow());\n\t\tassertEquals(\"99\", result2_redo.getValue());\n\t\tassertEquals(Formatting.REAL, result2_redo.getCellFormat());\n\n\t\tassertEquals(\"A\", result1_redo.getCol());\n\t\tassertEquals(5, result1_redo.getRow());\n\t\tassertEquals(\"88\", result1_redo.getValue());\n\t\tassertEquals(Formatting.REAL, result1_redo.getCellFormat());\n\n\t\t//Check that the undo stack is indeed empty\n\t\tassertEquals(-1, emptyRedoStackCell.getRow());\n\t\tassertEquals(\"-1\", emptyRedoStackCell.getCol());\n\t\tassertEquals(\"0\", emptyRedoStackCell.getValue());\n\n\t}", "public ReadOnlyNotebook redo() {\n statePointer++;\n ReadOnlyNotebook previousCopy = mementos.get(statePointer).getState();\n return previousCopy;\n }", "@Override\r\n\tpublic void undo() throws InstructionExecutionException {\n\t\ttry\r\n\t\t{\r\n\t\t\tthis.robotContainer.pickItem(id);\r\n\t\t\tthis.robotContainer.addItem(lastItem);\r\n\t\t\tthis.engine.addFuel(lastFuel-this.engine.getFuel());\r\n\t\t\tthis.engine.addRecycledMaterial(lastRecycledMaterial-this.engine.getRecycledMaterial());\r\n\t\t} \r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\tthrow new InstructionExecutionException();\r\n\t\t}\r\n\t}", "public void undo() {\n\t\t\r\n\t}", "@Override\n\tpublic void redo() {\n\t\tthis.list.add(shape);\n\n\t}", "public void undo () {\n // The restores must be run in the reverse order they are added.\n for (int i = restores.size() - 1; i >= 0; --i) {\n restores.get(i).run();\n }\n restores.clear();\n }", "@Override\n\tpublic void undo()\n\t{\n\t}", "public void undo() {\n\t\tif (doily.lines.size() > 0) {\n\t\t\tLine line = getLastLine();\n\t\t\tdoily.lines.remove(line);\n\t\t\tredoStack.push(line);\n\t\t\tredraw();\n\t\t}\n\t\telse {\n\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\"Undo Failed - Nothing to undo\", \n\t\t\t\t\t\"Undo\", JOptionPane.ERROR_MESSAGE);\n\t\t}\n\t}", "public void next()\n {\n if (mHistoryIdx == mCommandList.size()) {\n return;\n }\n\n mCommandList.get(mHistoryIdx++).redo();\n this.setChanged();\n this.notifyObservers(mHistoryIdx);\n }", "public boolean redo() { \n if(redoStack.peek()!=null) {\n DrawingChange change = redoStack.pop();\n drawingArray[change.x][change.y] = change.newChar;\n undoStack.push(change);\n return true;\n }\n return false;\n }", "public Move redoMove ()\n {\n Move redoneMove = Move.redoMove();\n setGridElement(redoneMove.getRow(), redoneMove.getColumn(), redoneMove.getPlayer());\n Move.addMoveToPlayedMoveStack(redoneMove);\n return redoneMove;\n }", "public String redo() {\n\t\tList<Reservation> check = reservationDB.retrieveReservations(name, reserving.getOrigin(), reserving.getDestination());\n\t\tif (check.size() > 0) {\n\t\t\treturn \"error,duplicate reservation\";\n\t\t} else {\n\t\t\treservationDB.bookReservation(reserving, name);\n\t\t}\n\t\tString response = cid + \",redo,reserve,\" + name + \",\" + reserving.toString();\n\t\treturn response;\n\t}", "@Override\n\tpublic void undo() {\n\t\t\n\t}", "@Override\n\tpublic void undo() {\n\t\t\n\t}", "@Override\n\tpublic void undo() {\n\t\t\n\t}", "@Override\n public void undo() {\n\n }", "@Override\n public void undo() {\n\n }", "void undoPreviousAction() throws NothingToUndoException;", "protected void undoSuccess() {\n this.isRedoable = true;\n this.isUndoable = false;\n }", "@Override\r\n public void undo() {\n\r\n }", "public void undo() {\n\t\tif (undolist.empty())\n\t\t\treturn;\n\n\t\tIHexEditorCommand comm;\n\t\tcomm = undolist.pop();\n\t\tif (comm == null)\n\t\t\treturn;\n\t\tcomm.revoke();\n\t\tredolist.push(comm);\n\n\t\tupdateStatusPanel();\n\t\tcursor.update();\n\t\tupdateActions();\n\t}", "@Override\n public void redo() {\n shapeList.add((newShape));\n }", "public void executeNewCommand(Command cmd)\n {\n if (mHistoryIdx < mCommandList.size()) {\n if (clobber) {\n /* Overwrite (well, remove) history past this point */\n while (mHistoryIdx < mCommandList.size()) {\n mCommandList.remove(mCommandList.size() - 1);\n this.setChanged();\n this.notifyObservers(HISTORY_CLOBBERED);\n }\n } else {\n throw new RuntimeException(\n \"Cannot execute new command while not and the end of the \" +\n \"command list\");\n }\n }\n\n mCommandList.add(cmd);\n cmd.redo();\n mHistoryIdx++;\n this.setChanged();\n this.notifyObservers(cmd);\n }", "public void initRedo(){\n redoEffects = (EditStack<Integer>) history.clone();\n redoParams = (EditStack<Float>) historyValues.clone();\n }", "@Override\n\tpublic IStatus execute(IProgressMonitor monitor, IAdaptable info)\n\t\t\tthrows ExecutionException {\n\t\treturn redo(monitor, info);\n\t}", "public String undo() {\n/* 145 */ return undo(0, false);\n/* */ }", "public void performUpdate() throws ProcessFailedException {\r\n\t\ttry{\r\n\t\t\tMoveManager.getInstance().undoMove();\r\n\t\t}catch(UnsupportedOperationException e){\r\n\t\t\tthrow new ProcessFailedException(\"Could not undo last move\");\r\n\t\t}\r\n\t\t\r\n\t}", "public boolean canRedo();", "public boolean canRedo();", "@Override\n\tpublic void onUndoNotPossible() {\n\n\t}", "@Override\r\n\tpublic void undo(RechercheDetailleeAction arg0, RechercheDetailleeResult arg1, ExecutionContext arg2) throws ActionException {\n\r\n\t}", "@Override\n public boolean canRedo() {\n return false;\n }", "protected void recordUndoRedoMacro(DocumentMacro macro) {\n super.recordUndoRedoMacro(macro);\n }", "public final void undo() {\n\t\tthis.historyManager.undo();\n\t}", "@Override\r\n\tpublic void redo() {\n\t\tfor(IShape shape : tempList)\r\n\t\t\tshapeList.add(shape);\r\n\t}", "@Override\n public void undo(int numToUndo) {\n }", "@Override\n\tprotected CommandResult doRedoWithResult(IProgressMonitor progressMonitor,\n\t\t\tIAdaptable info) throws ExecutionException {\n\t\treturn null;\n\t}", "public abstract void undoMove();" ]
[ "0.8410086", "0.84021723", "0.83095425", "0.8214474", "0.81907994", "0.78840965", "0.7841203", "0.7829721", "0.78052443", "0.7726673", "0.7672025", "0.75422955", "0.7517385", "0.7509688", "0.7474329", "0.7435631", "0.73889977", "0.73633885", "0.73042226", "0.7278587", "0.72769755", "0.7267596", "0.72197175", "0.7066431", "0.6980196", "0.68369436", "0.6814675", "0.67873687", "0.6710215", "0.6682362", "0.66618276", "0.66448295", "0.65800524", "0.6554655", "0.65437895", "0.6531904", "0.6520004", "0.6411558", "0.6374265", "0.6374261", "0.6371856", "0.63663125", "0.6350854", "0.63191396", "0.63114274", "0.6303606", "0.6294743", "0.62468624", "0.6222014", "0.6195283", "0.61891407", "0.6187688", "0.6162069", "0.61605096", "0.6128735", "0.6127135", "0.61176", "0.6116909", "0.611565", "0.6104486", "0.61022", "0.61017346", "0.6097495", "0.609267", "0.60884756", "0.6082049", "0.6077918", "0.60326666", "0.60099936", "0.5991129", "0.5977386", "0.5966526", "0.5962152", "0.5956964", "0.59497535", "0.59497535", "0.59497535", "0.5948432", "0.5948432", "0.5940028", "0.5937487", "0.5924618", "0.58893514", "0.5866151", "0.5844449", "0.5839987", "0.58336544", "0.5832911", "0.5809618", "0.58094627", "0.58094627", "0.580443", "0.5776657", "0.5776649", "0.57739186", "0.5771165", "0.5769654", "0.57634634", "0.57547957", "0.57361573" ]
0.7262787
22
Method to call operation for read from file.
public void open(String filePath) { cmd = new OpenCommand(editor, filePath); invoker = new MiniEditorInvoker(cmd); invoker.action(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void readFromFile() {\n\n\t}", "public void readFile();", "protected abstract void readFile();", "public abstract void readFromFile( ) throws Exception;", "public void performOperation() {\n processFile(this.scopedFile);\n }", "protected abstract E readFile() throws Exception;", "public FilesInputStreamLoad readFile() throws ArcException {\r\n\tFile dir = new File(this.archiveChargement + \".dir\");\r\n\tString fileName = ManipString.substringAfterFirst(this.idSource, \"_\");\r\n\tFile toRead = new File(dir + File.separator + ManipString.redoEntryName(fileName));\r\n\tFilesInputStreamLoad filesInputStreamLoadReturned = null;\r\n\ttry {\r\n\t\tfilesInputStreamLoadReturned = new FilesInputStreamLoad (toRead);\r\n\t} catch (IOException ioReadException) {\r\n\t\tthrow new ArcException(ioReadException, ArcExceptionMessage.FILE_READ_FAILED, toRead);\r\n\t}\r\n\treturn filesInputStreamLoadReturned;\r\n }", "public void readFile(View view) {\n ReadFileTask task = new ReadFileTask();\n task.execute();\n\n Toast toast = Toast.makeText(getApplicationContext(), \"Begin reading file...\", Toast.LENGTH_SHORT);\n toast.show();\n }", "public void fileRead(String filename) throws IOException;", "public static void reading(String fileName)\n {\n\n }", "public abstract T readDataFile(String fileLine);", "int retrieve(FileInputSplit fileInputSplit);", "private static IRubyObject read19(ThreadContext context, IRubyObject recv, IRubyObject path, IRubyObject length, IRubyObject offset, RubyHash options) {\n // FIXME: process options\n \n RubyString pathStr = RubyFile.get_path(context, path);\n Ruby runtime = context.getRuntime();\n failIfDirectory(runtime, pathStr);\n RubyIO file = newFile(context, recv, pathStr);\n \n try {\n if (!offset.isNil()) file.seek(context, offset);\n return !length.isNil() ? file.read(context, length) : file.read(context);\n } finally {\n file.close();\n }\n }", "@Override\n protected void execute(File file, int offset) throws IOException {\n }", "void read(StreamOption streamOpt);", "Read createRead();", "public void get(String file) {\n\n }", "@Override\n public InputStream readFileInternal(String _fileName) throws IOException\n { // Reads a file from the devices internal storage. Takes a filename as a parameter and throws an IOException if failed.\n return context.openFileInput(_fileName);\n }", "@Override\n public Ini read(Path path) throws IOException {\n try (Reader reader = Files.newBufferedReader(path)) {\n return read(reader);\n }\n }", "@RequestMapping(value=\"/read\", method = RequestMethod.GET)\n @ResponseBody\n public String readFile(@RequestParam String f) throws IOException,InvalidValueException,FilePathAccessDeniedException {\n\n String username = CSQLUserContext.getCurrentUser().getUsername();\n\n if(validator.isValidAndUserHasAccess(username,f)){\n return fileSystemService.readFile(f);\n }\n\n return null;\n }", "public String call() throws IOException {\n try {\n p2c.readAndWriteFile(file);\n } catch (Exception e) {\n e.printStackTrace();\n }\n return null;\n }", "private void fileRead(String path)\n\t{\n\t\ttry\n\t\t{\n\t\t\t// create file\n\t\t\tFile file = new File(path);\n\t\t\tFileInputStream fileStream = new FileInputStream(file);\n\t\t\t\n\t\t\t// data read\n\t\t\tthis.dataContent = new byte[(int)file.length()];\n\t\t\tint ret = fileStream.read(this.dataContent, 0, (int)file.length());\n\t\t}\n\t\tcatch(FileNotFoundException e)\n\t\t{\n\t\t\tSystem.out.println(\"File Not Found : \" + e.getMessage());\n\t\t}\n\t\tcatch(IOException e)\n\t\t{\n\t\t\tSystem.out.println(\"Failed File Read : \" + e.getMessage());\n\t\t}\n\t\t\n\t}", "File openFile();", "@Override\n public Ini read(File file) throws IOException {\n try ( Reader reader = new FileReader(file)) {\n return read(reader);\n }\n }", "@SuppressWarnings(\"unused\")\n private void _read() {\n }", "private static void read(Client client,String user,String filename) throws SystemException, TException {\n\t\t\n\t\tString keyString = user + \":\" + filename;\n\t\tString key = sha_256(keyString);\n\t\t\n\t\t\n\t\tNodeID succNode = client.findSucc(key);\n\t\tString predIP = succNode.ip;\n\t\t// predIP = \"127.0.0.1\";\n\t\tint predPort = succNode.port;\n\t\ttry {\n\t\t\tTSocket transport = new TSocket(predIP, predPort);\n\t\t\ttransport.open();\n\t\t\tTBinaryProtocol protocol = new TBinaryProtocol(transport);\n\t\t\tchord_auto_generated.FileStore.Client client1 = new chord_auto_generated.FileStore.Client(protocol);\n\t\t\tSystem.out.println(\"Reading file location : \" + predPort + \" File :\"+filename+\"Owner : \"+user);\n\t\t\tRFile rFile = new RFile();\n\t\t\trFile = client1.readFile(filename, user);\n\t\t\tSystem.out.println(rFile.getContent());\n\t\t\tSystem.out.println(rFile.getMeta().getVersion());\n\t\t\tSystem.out.println(rFile.getMeta().getContentHash());\n\t\t\tSystem.out.println(\"Reading file Done----------\");\n\t\t\ttransport.close();\n\t\t} catch (TTransportException e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(0);\n\t\t}\n\t}", "public Object execute( Object thiz, Object[] args ) throws Exception {\r\n FileConnectionWrapper fConnWrap = new FileConnectionWrapper( args[ 0 ].toString() );\r\n fConnWrap.openDataInputStream();\r\n\r\n if( args.length == 2 || ( args.length == 3 && ( (Boolean) args[ 2 ] ).booleanValue() ) ) { // Async read\r\n new Thread( new AsyncRead( this, fConnWrap, args[ 0 ].toString(), (ScriptableFunction) args[ 1 ] ) ).start();\r\n } else { // Sync read\r\n read( this, fConnWrap, args[ 0 ].toString(), (ScriptableFunction) args[ 1 ] );\r\n }\r\n return UNDEFINED;\r\n }", "abstract void read();", "public synchronized void read(StyxFileClient client, long offset, int count, int tag)\n throws StyxException\n {\n try\n {\n // Open a new FileChannel for reading\n FileChannel chan = new FileInputStream(this.file).getChannel();\n\n // Get a ByteBuffer from MINA's pool. This becomes part of the Rread\n // message and is automatically released when the message is sent\n ByteBuffer buf = ByteBuffer.allocate(count);\n // Make sure the position and limit are set correctly (remember that\n // the actual buffer size might be larger than requested)\n buf.position(0).limit(count);\n\n // Read from the channel. If no bytes were read (due to EOF), the\n // position of the buffer will not have changed\n int numRead = chan.read(buf.buf(), offset);\n log.debug(\"Read \" + numRead + \" bytes from \" + this.file.getPath());\n // Close the channel\n chan.close();\n\n buf.flip();\n this.replyRead(client, buf, tag);\n }\n catch(FileNotFoundException fnfe)\n {\n // The file does not exist\n if (mustExist)\n {\n log.debug(\"The file \" + this.file.getPath() +\n \" has been removed by another process\");\n // Remove the file from the Styx server\n this.remove();\n throw new StyxException(\"The file \" + this.name + \" was removed.\");\n }\n else\n {\n // Simply return EOF\n this.replyRead(client, new byte[0], tag);\n }\n }\n catch(IOException ioe)\n {\n throw new StyxException(\"An error of class \" + ioe.getClass() + \n \" occurred when trying to read from \" + this.getFullPath() +\n \": \" + ioe.getMessage());\n }\n }", "private void read() {\n\n\t\t\t\tString road=getActivity().getFilesDir().getAbsolutePath()+\"product\"+\".txt\";\n\n\t\t\t\ttry {\n\t\t\t\t\tFile file = new File(road); \n\t\t\t\t\tFileInputStream fis = new FileInputStream(file); \n\t\t\t\t\tint length = fis.available(); \n\t\t\t\t\tbyte [] buffer = new byte[length]; \n\t\t\t\t\tfis.read(buffer); \n\t\t\t\t\tString res1 = EncodingUtils.getString(buffer, \"UTF-8\"); \n\t\t\t\t\tfis.close(); \n\t\t\t\t\tjson(res1.toString());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} \n\t\t\t}", "public abstract <T> void read(String path, ValueCallback<T> callback) throws ValueReadingException;", "protected abstract Object readFile(BufferedReader buf) throws IOException, FileParseException;", "public void ownRead();", "List readFile(String pathToFile);", "public ScanOperator(File file){\r\n\t\tthis.file = file;\r\n\t\ttry{\r\n\t\t br = new RandomAccessFile(this.file, \"r\");\r\n\t\t}catch(FileNotFoundException e){\r\n\t\t\tSystem.out.println(\"File not found!\");\r\n\t\t}\r\n\t}", "public abstract void readFromFile(String key, String value);", "axiom Object readLine(Object BufferedReader(FileReaderr f)) {\n\treturn f.get(0);\n }", "public void fileRead() {\n\t\tString a, b;\n\t\t\n\t\twhile (input.hasNext()) {\n\t\t\ta = input.next();\n\t\t\tb = input.next();\n\t\t\tSystem.out.printf(\"%s %s\\n\", a, b);\n\t\t}\n\t}", "public void doReads(Reader reader) throws IOException;", "@Override\r\n\tpublic InputStream getFile(String filepath) throws FileSystemUtilException {\r\n\t\t\r\n\t\tthrow new FileSystemUtilException(\"000000\",null,Level.ERROR,null);\t\r\n\r\n\t}", "protected abstract InputStream getInStreamImpl(String filename) throws IOException;", "private int handleRead(int fileDescriptor, int buffer, int size){\n\n\t\tif (fileDescriptor < 0 || fileDescriptor > 15){\n\t\t\treturn -1;\t\t// return -1 on error\n\t\t}\n\n\t\tif (size < 0){\n\t\t\treturn -1; \t\t// return -1 on error\n\t\t}\n\n\t\tOpenFile file;\n\n\t\tif (fileDescriptors[fileDescriptor] == null){\n\t\t\treturn -1;\t\t// return -1 on error\n\t\t}else{\n\t\t\tfile = fileDescriptors[fileDescriptor];\n\t\t}\n\n\t\tbyte tempbuff[] = new byte[size];\n\n\t\tint readSize = file.read(tempbuff, 0, size);\n\n\t\tif (readSize < 0){\n\t\t\treturn -1;\t\t// return -1 on error\n\t\t}\n\t\treturn writeVirtualMemory(buffer, tempbuff, 0, readSize);\n\t}", "FileObject getFile();", "FileObject getFile();", "public interface ReaderFromFile {\n\t\n\tpublic List<Data> readDataFromFile (String filename);\n}", "public void handleOpenFile (File inFile) {\n openFile (inFile);\n }", "@Override\n public CommandResult execute() throws CommandException {\n if ((new File(filepath)).exists()) {\n try {\n model.openFilePath(filepath);\n return new CommandResult(MESSAGE_SUCCESS + filepath);\n } catch (IllegalValueException e) {\n throw new CommandException(MESSAGE_INVALID_XML_FILE);\n }\n } else {\n throw new CommandException(MESSAGE_FAILURE + MESSAGE_USAGE);\n }\n }", "public CompletionStage<String> readFile() {\n\n CompletableFuture<String> future = new CompletableFuture<>();\n StringBuffer sb = new StringBuffer();\n\n vertx.fileSystem().rxReadFile(path)\n .flatMapObservable(buffer -> Observable.fromArray(buffer.toString().split(\"\\n\")))\n .skip(1)\n .map(s -> s.split(\",\"))\n .map(data-> new Customer(Integer.parseInt(data[0]),data[1],data[2]))\n .subscribe(\n data -> sb.append(data.toString()),\n error -> System.err.println(error),\n () -> future.complete(sb.toString()));\n\n\n return future;\n\n }", "@Override\n @SneakyThrows\n public void process() {\n process(new FileReader(new File(fileName)));\n }", "void read ();", "public abstract <T> void read(String path, ValueCollector<T> collector) throws ValueReadingException;", "Future<File> processDataFile(File dataFile);", "protected void _openReader() throws IllegalActionException {\n\t\tfileOrURL.close();\n\n\t\t// Ignore if the fileOrUL is blank.\n\t\tif (fileOrURL.getExpression().trim().equals(\"\")) {\n\t\t\t_soundReader = null;\n\t\t\t_reachedEOF = true;\n\t\t} else {\n\t\t\t// Each read this many samples per channel when\n\t\t\t// _soundReader.getSamples() is called.\n\t\t\t// This value was chosen arbitrarily.\n\t\t\tint getSamplesArraySize = 64;\n\n\t\t\ttry {\n\t\t\t\t_soundReader = new SoundReader(fileOrURL.asURL(),\n\t\t\t\t\t\tgetSamplesArraySize);\n\t\t\t} catch (IOException ex) {\n\t\t\t\tString newFileOrURL = ((StringToken) fileOrURL.getToken())\n\t\t\t\t\t\t.stringValue();\n\t\t\t\tthrow new IllegalActionException(this, ex,\n\t\t\t\t\t\t\"Cannot open fileOrURL '\" + newFileOrURL + \"'.\");\n\t\t\t}\n\n\t\t\t// Get the number of audio channels.\n\t\t\t_channels = _soundReader.getChannels();\n\n\t\t\t// Begin immediately reading data so that we stay at\n\t\t\t// least one sample ahead. This is important so that\n\t\t\t// postfire() will return false when the last sample\n\t\t\t// in the file is encountered, rather than on the next\n\t\t\t// iteration.\n\t\t\ttry {\n\t\t\t\t// Read in audio data.\n\t\t\t\t_audioIn = _soundReader.getSamples();\n\t\t\t} catch (Exception ex) {\n\t\t\t\tthrow new IllegalActionException(this, ex,\n\t\t\t\t\t\t\"Unable to get samples from the file.\");\n\t\t\t}\n\n\t\t\t_sampleIndex = 0;\n\n\t\t\t// Check that the read was successful\n\t\t\tif (_audioIn != null) {\n\t\t\t\t_reachedEOF = false;\n\t\t\t} else {\n\t\t\t\t_reachedEOF = true;\n\t\t\t}\n\t\t}\n\t}", "private void readSourceData() throws Exception {\n\t\tthis.fileDataList = new ArrayList<String>();\n\t\tReader reader = new Reader(this.procPath);\n\t\treader.running();\n\t\tthis.fileDataList = reader.getFileDataList();\n\t}", "void citire(FileReader f);", "public void processInput(String theFile){processInput(new File(theFile));}", "public abstract void runInput(String stringFile) throws IOException;", "protected abstract InputStream getFile(final String path);", "public interface FileService {\n\n\t/**\n\t * Reads a file identified by its path, and returns its contents line by line as\n\t * a string\n\t * \n\t * @param filePath\n\t * @return\n\t * @throws APIException\n\t */\n\tpublic List<String> readFileContents(String filePath) throws APIException;\n\n}", "@Override\n protected StackAggregateNode doInBackground() throws Exception {\n\n return readStackFile(item);\n }", "public int read(String filename) {\n System.out.println(\"==== Processing data ====\");\n BufferedReader br = null;\n try {\n br = new BufferedReader(new FileReader(filename));\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n\n // Read and interpret all the lines.\n int count = 0;\n String line = null;\n while (true) {\n try {\n line = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (line == null) {\n break;\n }\n line = line.trim();\n String[] splitedLine = line.split(\"[,\\\\s]+\");\n if (splitedLine.length != 3) {\n continue;\n }\n String instructionType = splitedLine[0];\n MemRef.MemRefType refType =null;\n if (instructionType.equals(\"I\")) {\n refType = MemRef.MemRefType.INSTR_FETCH;\n } else if (instructionType.equals(\"S\")) {\n refType = MemRef.MemRefType.STORE;\n } else if (instructionType.equals(\"L\")) {\n refType = MemRef.MemRefType.FETCH;\n } else if (instructionType.equals(\"M\")) {\n refType = MemRef.MemRefType.UPDATE;\n } else {\n continue;\n }\n if (refType == null) {\n continue;\n }\n\n Long address = Long.parseLong(splitedLine[1], 16);\n int size = Integer.parseInt(splitedLine[2]);\n MemRef r = new MemRef(refType, address, size);\n count ++;\n runMemoryReference(r);\n }\n return count;\n }", "StreamReader underlyingReader();", "public void readEntries() throws FileAccessException;", "@JRubyMethod(name = \"read\", meta = true, required = 1, optional = 3, compat = RUBY1_9)\n public static IRubyObject read19(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block unusedBlock) {\n IRubyObject nil = context.getRuntime().getNil();\n IRubyObject path = args[0];\n IRubyObject length = nil;\n IRubyObject offset = nil;\n RubyHash options = null;\n if (args.length > 3) {\n if (!(args[3] instanceof RubyHash)) throw context.getRuntime().newTypeError(\"Must be a hash\");\n options = (RubyHash) args[3];\n offset = args[2];\n length = args[1];\n } else if (args.length > 2) {\n if (args[2] instanceof RubyHash) {\n options = (RubyHash) args[2];\n } else {\n offset = args[2];\n }\n length = args[1];\n } else if (args.length > 1) {\n if (args[1] instanceof RubyHash) {\n options = (RubyHash) args[1];\n } else {\n length = args[1];\n }\n }\n \n return read19(context, recv, path, length, offset, (RubyHash) options);\n }", "@Override // kotlin.jvm.functions.Function0\n public File invoke() {\n return new File(this.a.b, this.a.c);\n }", "public void load (IFile file) throws Exception;", "abstract public Entity[] getWorkDataFromFile(String filename)\n \tthrows IOException, InvalidStatusException;", "public DataModel execute(File file) {\n\t\tGlobalEnv env = new GlobalEnv();\n\t\tFileNode fileNode = new FileNode(file);\n\n\t\tfileNode.execute(env); // TODO Consider the returned CONTROL value?\n\t\tenv.finishExecution();\n\t\t\n\t\tDataNode output = env.getCurrentOutput();\n\t\treturn new DataModel(output);\n\t}", "public static void main(String[] args) throws IOException {\n\t\tRandomAccessFile file = new RandomAccessFile(\"C:/Users/Administrator/Desktop/cs.txt\", \"rw\");\n\t\tFileChannel channle = file.getChannel();\n\t\tByteBuffer buffer = ByteBuffer.allocate(10);\n\t\tint readByte = channle.read(buffer);\n\t\twhile (readByte > -1) {\n\t\t\tSystem.out.println(\"readLength:\" + readByte);\n\t\t\twhile (buffer.hasRemaining()) {\n\t\t\t\tSystem.out.println(buffer.get());\n\t\t\t}\n\t\t\tbuffer.clear();\n\t\t\treadByte = channle.read(buffer);\n\t\t}\n\t}", "String Reader(String FileName, Context context){\n FileInputStream inputStream = null;\n String Text = \"\";\n StringBuilder sb = null;\n try{\n //inputStream = context.openFileInput(FileName);\n inputStream = new FileInputStream(new File(FileName));\n InputStreamReader reader = new InputStreamReader(inputStream);\n BufferedReader buffRead = new BufferedReader(reader);\n sb = new StringBuilder();\n\n while ((Text = buffRead.readLine())!= null){\n sb.append(Text);\n sb.append(\"\\n\");\n }\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n return sb.toString();\n }", "public static void makeReadOperation(int trans_id, int var_id) {\n System.out.println(\"T\" + trans_id + \" wishes to read x\" + var_id);\n Transaction txn = null;\n if (transactions.containsKey(trans_id))\n txn = transactions.get(trans_id);\n if (txn != null) {\n if (txn.getType() == TransactionType.RO) {\n makeReadOnlyOperation(trans_id, var_id);\n return;\n }\n // System.out.println(\"makeReadOperation\");\n\n Operation oper = new Operation(trans_id, var_id);\n readOperation(txn, oper);\n } else {\n // aborted\n System.out.println(\"Aborted : T\" + trans_id);\n }\n\n }", "public void doRead() throws IOException {\n if (sc.read(bbin) == -1) {\n closed = true;\n }\n processIn();\n updateInterestOps();\n }", "@Override\n public InputStream read()\n throws EFapsException\n {\n StoreResourceInputStream in = null;\n try {\n final FileObject file = this.manager.resolveFile(this.storeFileName + VFSStoreResource.EXTENSION_NORMAL);\n if (!file.isReadable()) {\n VFSStoreResource.LOG.error(\"file for \" + this.storeFileName + \" not readable\");\n throw new EFapsException(VFSStoreResource.class, \"#####file not readable\");\n }\n in = new VFSStoreResourceInputStream(this, file);\n } catch (final FileSystemException e) {\n VFSStoreResource.LOG.error(\"read of \" + this.storeFileName + \" failed\", e);\n throw new EFapsException(VFSStoreResource.class, \"read.Throwable\", e);\n } catch (final IOException e) {\n VFSStoreResource.LOG.error(\"read of \" + this.storeFileName + \" failed\", e);\n throw new EFapsException(VFSStoreResource.class, \"read.Throwable\", e);\n }\n return in;\n }", "public void readFile(File f) {\r\n if(f.getName().endsWith(\".txt\")) {\r\n if(f.getName().equals(\"USQRecorders.txt\")) {\r\n readAndTxt(f); \r\n lab_android.setText(\"Android read in\");\r\n }else if(f.getName().equals(\"mdl_log.txt\")) {\r\n readModLog(f);\r\n lab_moodle.setText(\"Moodle read in\");\r\n }else if(f.getName().equals(\"mdl_chat_messages.txt\") || f.getName().equals(\"mdl_forum_posts.txt\") || f.getName().equals(\"mdl_quiz_attempts.txt\")) {\r\n \treadtabs(f);\r\n }else{\r\n //illegal file name\r\n //JOptionPane.showMessageDialog(null, \"only accept .txt file named 'USQRecorders.txt','mdl_log.txt','mdl_chat_messages.txt','mdl_forum_posts.txt' and 'mdl_quiz_attempts.txt'\", \"System Message\", JOptionPane.ERROR_MESSAGE);\r\n }\r\n if(fromzip == false) {\r\n copyOldtxt(f);\r\n }\r\n } else if(f.getName().endsWith(\".zip\")) {\r\n if(f.getName().endsWith(\".zip\"))fromzip=true;\r\n readZip(f);\r\n copyOldtxt(f);\r\n //delete original\r\n File del = new File(workplace + \"/temp/USQ_IMAGE\");\r\n File dels[] = del.listFiles();\r\n for(int i=0 ; i<dels.length ; i++){\r\n dels[i].delete();\r\n }\r\n File tmp = new File(workplace + \"/temp/USQ_IMAGE/\");\r\n tmp.delete();\r\n tmp = new File(workplace + \"/temp\");\r\n tmp.delete();\r\n lab_android.setText(\"Android read in\");\r\n } else if(f.getName().endsWith(\".png\")) {\r\n readImage(f);\r\n }\r\n }", "public void read() throws IOException {\n\t\tString path = \"/Users/amit/Documents/songs/A.mp3\";\n\t\tFile file = new File(path);\n\t\tfinal int EOF = -1;\n\t\t\n\t\tif(file.exists()) {\n\t\t\tSystem.out.println(\"Exist...\");\n\t\tFileInputStream fs = new FileInputStream(path);\n\t\tBufferedInputStream bs = new BufferedInputStream(fs);\n\t\tlong startTime = System.currentTimeMillis();\n\t\tint singleByte = bs.read(); // read single byte\n\t\twhile(singleByte!=EOF) {\n\t\t\t//System.out.print((char)singleByte);\n\t\t\t singleByte = bs.read();\n\t\t}\n\t\tlong endTime = System.currentTimeMillis();\n\t\tSystem.out.println(\"Total Time Taken \"+(endTime-startTime)+\"ms\");\n\t\tbs.close();\n\t\tfs.close();\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"File Not Exist\");\n\t\t}\n\t\t\n\t}", "@Test\n public void testFileReading() throws Exception {\n String[] args = new String[1];\n args[0] = testFile;\n ConferenceManager.main(args);\n\n }", "public Long getInfile_()\n{\nreturn getInputDataItemId(\"infile_\");\n}", "protected abstract Operation parseLine(File baseDir, String line, int lineNum) throws IOException;", "public int read(long offset, byte buffer[],int bufferOffset,int nrOfBytes)\n throws VlException\n {\n boolean forceUseStreamRead=false; //true; // default value \n\n// // when reading the first bytes, streamread is faster \n// if (offset==0) \n// forceUseStreamRead=true; \n\n // Try Random Accessable Interface ! \n if ((this instanceof VRandomReadable) && (forceUseStreamRead==false))\n {\n // use Sync Read ! \n return StreamUtil.syncReadBytes((VRandomReadable)this,offset,buffer,bufferOffset,nrOfBytes);\n }\n // else try StreamReadable interface \n else if (this instanceof VStreamReadable)\n {\n //sync stream Read ! \n return streamRead(offset,buffer,bufferOffset,nrOfBytes);\n }\n else\n {\n throw new nl.uva.vlet.exception.ResourceTypeMismatchException(\n \"File type does not support (remote) read access\");\n }\n }", "@Override\n public StorageInputStream open(File file) throws FileNotFoundException {\n\treturn null;\n }", "public Object readObject(File file, int format) throws IOException, FileNotFoundException;", "@Override\n public String call() throws Exception {\n String[] proParameters = {FILE_EXE_IO, \"GET\", topicName, \"0\", \"SYSTAB_SOURCE.MASTER\"}; // TODO - Check if really all 0\n\n if(util.validationNotNull(proParameters)){\n // Build the process\n ProcessBuilder pb = new ProcessBuilder(proParameters); // GET & SYSTAB_SOURCE.MASTER - needed implement to read from readerIO\n pb.directory(new File(FILE_PATH_IO));\n Process p = pb.start();\n\n StringBuilder lineText = new StringBuilder(); // Maybe only string ?\n if(stepNumber.isEmpty()){ // No need to append the stepNumber as it doesn't was insert\n lineText.append(topicName).append(\" \"); // Append the name of topic and leave a space to append the new value\n } else {\n lineText.append(stepNumber).append(\" \").append(topicName).append(\" \"); // Append the name of topic and leave a space to append the new value\n }\n\n try(BufferedReader IOBr = new BufferedReader(new InputStreamReader(p.getInputStream()))){ // Try with resource (auto close)\n String line = IOBr.readLine();\n // Start reading in loop until there isn't any more\n while (line != null) {\n lineText.append(line); // Add the new value\n line = IOBr.readLine(); // Only read one line\n if (!IOBr.ready()) {\n break;\n }\n }\n } catch (IOException e){\n e.printStackTrace();\n }\n return lineText.toString(); // Return the topicName + new value\n }\n return \"Null values\";\n }", "@JRubyMethod(meta = true, required = 1, optional = 2, compat = RUBY1_9)\n public static IRubyObject binread(ThreadContext context, IRubyObject recv, IRubyObject[] args) {\n IRubyObject nil = context.getRuntime().getNil();\n IRubyObject path = args[0];\n IRubyObject length = nil;\n IRubyObject offset = nil;\n Ruby runtime = context.runtime;\n \n if (args.length > 2) {\n offset = args[2];\n length = args[1];\n } else if (args.length > 1) {\n length = args[1];\n }\n RubyIO file = (RubyIO)RuntimeHelpers.invoke(context, runtime.getFile(), \"new\", path, runtime.newString(\"rb:ASCII-8BIT\"));\n \n try {\n if (!offset.isNil()) file.seek(context, offset);\n return !length.isNil() ? file.read(context, length) : file.read(context);\n } finally {\n file.close();\n }\n }", "public InputStream readFile( String fileName, FileType type );", "RandomAccessFile openInputFile(String fileName) {\n if (dbg) System.out.println(\"<br>\" + thisClass + \".openInputFile: \" +\n \"fileName = \" + fileName);\n RandomAccessFile file = null;\n try {\n file = new RandomAccessFile(fileName, \"r\");\n if (dbg) System.out.println(\"<br>\" + thisClass + \".openInputFile: \" +\n \"success: file opened for read\");\n } catch (Exception e) {\n ec.processError(e, thisClass, \"openInputFile\", \"\");\n if (dbg) System.out.println(\"<br>\" + thisClass + \".openInputFile: \" +\n \"error: file opened for read\");\n } // try-catch\n return file;\n }", "File getFile();", "File getFile();", "public File getFile ();", "public boolean readDataFile();", "public synchronized void readLog() {\n MemoryCache instance = MemoryCache.getInstance();\n try (Stream<String> stream = Files.lines(Paths.get(path)).skip(instance.getSkipLine())) {\n stream.forEach(s -> {\n Result result = readEachLine(s);\n instance.putResult(result);\n instance.setSkipLine(instance.getSkipLine() + 1);\n });\n } catch (IOException e) {\n logger.error(\"error during reading file \" + e.getMessage());\n }\n }", "public static <V> V executeInReadMode(String context, String uniqueLockId, String operationName, Callable<V> callable) throws Exception {\n String uniqueLockResource = getUniqueLockResource(context, uniqueLockId);\n ReadWriteLock reentrantReadWriteLock = getReentrantReadWriteLock(uniqueLockResource);\n Lock lock = reentrantReadWriteLock.readLock();\n return LockUtils.executeInLock(uniqueLockResource, \"read\", operationName, lock, callable);\n }", "private Object getFile(String path) throws Exception {\t\t\t\n\t\t \n\t\t FileInputStream fileIn = new FileInputStream(path);\n ObjectInputStream objectIn = new ObjectInputStream(fileIn);\n\n Object obj = objectIn.readObject();\n objectIn.close();\n \n return obj;\t\t\n\t}", "public interface IReadFile {\n public String readFile();\n}", "public String read();", "public void readSysCall() {\n read = false;\n clientChannel.read(readBuffer, this, readCompletionHandler);\n }", "@Override\n\t\t\t\t\tpublic void handle(File file)\n\t\t\t\t\t{\n\t\t\t\t\t\t\n\t\t\t\t\t}", "@RequestMapping(method=RequestMethod.GET, value =\"/file\")\n\t@ResponseStatus(HttpStatus.OK)\n\tpublic BatchStatus processFile() {\n\t\tSystem.out.println(\"Request received to process input transactions file\");\n\t\treturn FileProcessorService.processInputTransactionsFile();\n\t}", "SparseStream openFile(String path, FileMode mode, FileAccess access) throws IOException;", "@Override\r\n\tpublic void test() {\n\t\tFile file = new File(\"c:\\\\testing.txt\");\r\n\t\tFileInputStream fis = null;\r\n\t\tBufferedInputStream bis = null;\r\n\t\t\r\n\t\tbyte[] buf = new byte[1024];\r\n\t\t\r\n\t\ttry {\r\n\t\t\tfis = new FileInputStream(file);\r\n\t\t\tbis = new BufferedInputStream(fis);\r\n\t\t\t\r\n\t\t\twhile (bis.available() != 0) {\r\n\t\t\t\tSystem.out.println(bis.read(buf));\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tif(bis!=null)\r\n\t\t\t\t\tbis.close();\r\n\t\t\t\tif(fis != null) \r\n\t\t\t\t\tfis.close();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public String readFromFile() throws IOException {\n return br.readLine();\n }", "@Override\n public String generareSourcecodetoReadInputFromFile() throws Exception {\n String typeVar = VariableTypes.deleteStorageClasses(this.getType())\n .replace(IAbstractDataNode.REFERENCE_OPERATOR, \"\");\n // Ex: A::B, ::B. We need to get B\n if (typeVar.contains(\"::\"))\n typeVar = typeVar.substring(typeVar.lastIndexOf(\"::\") + 2);\n\n String loadValueStm = \"data.findStructure\" + typeVar + \"ByName\" + \"(\\\"\" + getVituralName() + \"\\\")\";\n\n String fullStm = typeVar + \" \" + this.getVituralName() + \"=\" + loadValueStm + SpecialCharacter.END_OF_STATEMENT;\n return fullStm;\n }" ]
[ "0.64554816", "0.6182953", "0.60658556", "0.60542345", "0.59975296", "0.5970082", "0.59692496", "0.58923244", "0.5808895", "0.58008105", "0.5759555", "0.57438976", "0.5725249", "0.57191443", "0.5674342", "0.5671826", "0.56659514", "0.56322736", "0.5628588", "0.5577427", "0.5575449", "0.55702966", "0.5548351", "0.5536834", "0.5530773", "0.5522331", "0.5510102", "0.5493771", "0.54830384", "0.5473999", "0.54662645", "0.5464765", "0.5454636", "0.5408592", "0.5399532", "0.53470165", "0.5311166", "0.5292789", "0.5291284", "0.52912754", "0.5260357", "0.5246722", "0.5232396", "0.5232396", "0.52322304", "0.52177006", "0.52158636", "0.5214573", "0.5208751", "0.5199143", "0.51949155", "0.5178932", "0.5149492", "0.51421934", "0.5135022", "0.5124553", "0.5123941", "0.5123509", "0.51227665", "0.51201713", "0.51168156", "0.5114833", "0.5113392", "0.5111679", "0.51108867", "0.50974107", "0.5089547", "0.5082818", "0.5078065", "0.5077005", "0.50739324", "0.50708795", "0.5060694", "0.5058541", "0.50507754", "0.50426215", "0.5040428", "0.5040391", "0.50385076", "0.503614", "0.5034885", "0.5033476", "0.50278425", "0.50274366", "0.5024672", "0.50208056", "0.50208056", "0.5014561", "0.5011244", "0.501009", "0.50050735", "0.5000902", "0.4992807", "0.49872318", "0.4987129", "0.49864104", "0.49831218", "0.4975125", "0.49698067", "0.49697247", "0.49576193" ]
0.0
-1
Method to call operation for write to file.
public void write(String filePath) { cmd = new WriteCommand(editor, filePath); invoker = new MiniEditorInvoker(cmd); invoker.action(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract void writeFile();", "public abstract void writeToFile( );", "static void writeOperations(){\n \ttry{\n \t\t\n\t\t\t// Create file \n\t\t\tFileWriter fstream = new FileWriter(FILE_FILEOP);\n\t\t\tBufferedWriter out = new BufferedWriter(fstream);\n\t \tfor (int i=0; i < operations.size(); i++){\n\t \t\tout.write(operations.get(i).getDetails() );\n\t \t}\n\t\t\t\n\t\t\t//Close the output stream\n\t\t\tout.close();\n\t\t}\n \tcatch (Exception e){//Catch exception if any\n\t\t\tSystem.err.println(\"Error: \" + e.getMessage());\n\t\t}\n\t\tSystem.out.print(\"Operations file written.\\n\");\n\n \t\n }", "@Override\n public void writeDataToTxtFile() {\n\n }", "@Override\n\tpublic void executeOp() {\n try {\n // Make a bunch of shit that will allow us to write to the file\n FileWriter fw = new FileWriter(file.getAbsoluteFile());\n BufferedWriter bw = new BufferedWriter(fw);\n\n // Write the text that's in our notepad to the file\n bw.write(textArea.getText());\n\n // Close the \"stream\"\n bw.close();\n\n // If the attempt fails, display the error message - then give up.\n } catch (IOException ioe) {\n JOptionPane.showMessageDialog(frame, \"PROBLEM SAVING\");\n }\n\t}", "String saveFile(FileStoreDto dto);", "public void writeFile(View view) {\n WriteFileTask task = new WriteFileTask();\n task.execute();\n\n Toast toast = Toast.makeText(getApplicationContext(), \"Begin writing file...\", Toast.LENGTH_SHORT);\n toast.show();\n }", "Write createWrite();", "public void writeToFile(File file) {\n\n\t}", "void write();", "public boolean writeDataFile();", "public static void writeOperator(String op) {\n\t\t// FileWriter fw;\n\t\tArrayList<String> al = new ArrayList<String>();\n\t\tal.add(op);\n\t\ttry {\n\t\t\tFiles.write(new File(Call.class.getResource(CONFIG_FILE).getPath()).toPath(), al, Charset.forName(\"UTF-8\"));\n\t\t\t// fw = new FileWriter(CONFIG_FILE);\n\t\t\t// fw = new FileWriter();\n\t\t\t// fw.write(op);\n\t\t\t// fw.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public abstract String FileOutput();", "void write(StreamOption streamOpt);", "public void writeFile() {\n try {\n FileWriter writer = new FileWriter(writeFile, true);\n writer.write(user + \" \" + password);\n writer.write(\"\\r\\n\"); // write new line\n writer.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n \n }", "void saveAs() {\n writeFile.Export();\n }", "public abstract boolean writeDataToFile(String fileName, boolean overwrite);", "public void write(File output) throws IOException {\n }", "void writeFile(File file, String password, String cnt);", "protected abstract void _write(DataOutput output) throws IOException;", "public String call() throws IOException {\n try {\n p2c.readAndWriteFile(file);\n } catch (Exception e) {\n e.printStackTrace();\n }\n return null;\n }", "@Override\n\tpublic void write(Object obj, File file) throws IJunitException {\n\t\t\n\t}", "public abstract void saveToFile(PrintWriter out);", "public OutputStream writeFile( String filename, FileType type );", "private void doWrite() throws IOException {\n\t\t\tbb.flip();\n\t\t\tsc.write(bb);\n\t\t\tbb.compact();\n\n\t\t\tupdateInterestOps();\n\t\t}", "public void writeToFile(byte[] output) {\r\n try {\r\n file.seek(currOffset);\r\n file.write(output);\r\n currOffset += output.length;\r\n }\r\n catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }", "private static void writeToFile(String[] data) {\n\t\t// Regatta hasn't been calculated.\n\t\tif(r == null) {\n\t\t\tSystem.out.println(\"\\nYou haven't processed a regatta yet! \\nUse regatta to begin processing.\\n\");\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// Just the command was specified, we need to get the filename.\n\t\tif(data.length == 1) {\n\t\t\tSystem.out.println(\"Oops, looks like you didn't specify an output file.\\n\");\n\t\t\tinitializeOutput(getFilename());\n\t\t}\n\n\t\t// Filename was specified but is invalid. Need to get another one.\n\t\tif(!isValidFileName(data[1])) {\n\t\t\tSystem.out.println(\"Looks like your filename is incorrect.\\n\");\n\t\t\tinitializeOutput(getFilename());\n\t\t}\n\n\t\tinitializeOutput(data[1]);\n\n\t\t// Write out.\n\t\tfileOutput.print(r.podium());\n\t\tfileOutput.close();\n\t}", "static void writeFile(String path , String data) throws IOException{\n\t\tFileOutputStream fo = new FileOutputStream(path,true);\n\t\tfo.write(data.getBytes());\n\t\tfo.close();\n\t\tSystem.out.println(\"Done...\");\n\t}", "public abstract void addFileToWrite(AsynchronousFileWriter.FileData fileData, CompilerMessageLogger logger);", "public void doWrite() throws IOException {\n\t\tbbout.flip();\n\t\tsc.write(bbout);\n\t\tbbout.compact();\n\t\tprocessOut();\n\t\tupdateInterestOps();\n\t}", "public void outputToFile(MethodCallExpr original, MethodCallExpr mutant) {\n if (comp_unit == null || currentMethodSignature == null){\n return;\n }\n num++;\n String f_name = getSourceName(\"ARGR\");\n String mutant_dir = getMuantID(\"ARGR\");\n try {\n PrintWriter out = getPrintWriter(f_name);\n ARGR_Writer writer = new ARGR_Writer(mutant_dir, out);\n writer.setMutant(original, mutant);\n writer.setMethodSignature(currentMethodSignature);\n writer.writeFile(comp_unit);\n out.flush();\n out.close();\n }\n catch (IOException e) {\n System.err.println(\"ARGR: Fails to create \" + f_name);\n logger.error(\"Fails to create \" + f_name);\n }\n }", "public void save (File argFile) throws IOException;", "public void doWrite() throws IOException {\n bbout.flip();\n sc.write(bbout);\n bbout.compact();\n processOut();\n updateInterestOps();\n }", "public void doWrite() throws IOException {\n bbout.flip();\n sc.write(bbout);\n bbout.compact();\n processOut();\n updateInterestOps();\n }", "public void writeSysCall() {\n clientChannel.write(writeBuffer, this, writeCompletionHandler);\n }", "private void writeToFile(){\n Calendar c = Calendar.getInstance();\n String dateMedTaken = DateFormat.getDateInstance(DateFormat.FULL).format(c);\n FileOutputStream fos = null;\n\n try {\n fos = openFileOutput(FILE_NAME, MODE_APPEND);\n fos.write(dateMedTaken.getBytes());\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n if(fos != null){\n try {\n fos.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n\n }", "private static IRubyObject write19(ThreadContext context, IRubyObject recv, IRubyObject path, IRubyObject str, IRubyObject offset, RubyHash options) {\n // FIXME: process options\n \n RubyString pathStr = RubyFile.get_path(context, path);\n Ruby runtime = context.getRuntime();\n failIfDirectory(runtime, pathStr);\n RubyIO file = newFile(context, recv, pathStr, context.runtime.newString(\"w\"));\n \n try {\n if (!offset.isNil()) file.seek(context, offset);\n return file.write(context, str);\n } finally {\n file.close();\n }\n }", "public void write(final File out) throws IOException;", "@Override\n public void write() {\n\n }", "@Override\r\n\tpublic void write() {\n\t\t\r\n\t}", "public abstract void Write(WriteOptions options, WriteBatch updates) throws IOException, BadFormatException, DecodeFailedException;", "private void cmdWrite(String filename) throws NoSystemException {\n MSystem system = system();\n PrintWriter out = null;\n try {\n if (filename == null)\n out = new PrintWriter(System.out);\n else {\n out = new PrintWriter(new BufferedWriter(new FileWriter(\n filename)));\n }\n out\n .println(\"-- Script generated by USE \"\n + Options.RELEASE_VERSION);\n out.println();\n system.writeSoilStatements(out);\n } catch (IOException ex) {\n Log.error(ex.getMessage());\n } finally {\n if (out != null) {\n out.flush();\n if (filename != null)\n out.close();\n }\n }\n }", "@Override\n public OutputStream writeFileInternal(String _fileName) throws IOException\n { // Writes a file to the internal device storage. Takes a filename as a parameter and throws an IOException if failed.\n return context.openFileOutput(_fileName, Context.MODE_PRIVATE);\n }", "public void outputToFile(String filemame)\n {\n }", "public static void overWriteFile(String output, String filePath,\n FileSystem fs) {\n File outFile = openFile(filePath, fs);\n if (outFile != null) {\n outFile.clearContent();\n outFile.appendContent(output);\n }\n }", "public void saveData(){\r\n file.executeAction(modelStore);\r\n }", "public static void main(String[] args) throws Exception {\n FileOutputStream fos=new FileOutputStream(\"e:/data/contents.txt\");\r\n //step-2 (write data)\r\n String s=\"Something We want To Write To A File\";\r\n byte b[]=s.getBytes();\r\n //fos.write(b);\r\n fos.write(b, 3, 10);\r\n //step-3 (close file)\r\n fos.close();\r\n System.out.println(\"DATA STORED\");\r\n }", "private void createFile(String outputData, File file) {\n try {\n FileWriter writer = new FileWriter(file);\n writer.write(outputData);\n writer.close();\n } catch (IOException e) {\n e.getSuppressed();\n }\n }", "private void writeToFile() {\n try {\n FileOutputStream fos = new FileOutputStream(f);\n String toWrite = myJSON.toString(4);\n byte[] b = toWrite.getBytes();\n fos.write(b);\n fos.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public void toFile() throws IOException {\n toFile(null);\n }", "public int writeFile(SrvSession sess,TreeConnection tree,NetworkFile file,byte[] buf,int bufoff,int siz,long fileoff)\n throws IOException {\n \n // Debug\n \n if ( Debug.EnableInfo && hasDebug())\n Debug.println(\"DB writeFile()\");\n\n // Access the JDBC context\n\n DBDeviceContext dbCtx = (DBDeviceContext) tree.getContext();\n\n // Check if the database is online\n \n if ( dbCtx.getDBInterface().isOnline() == false)\n throw new DiskOfflineException( \"Database is offline\");\n\n // Check that the network file is our type\n\n if (file instanceof DBNetworkFile) {\n\n // Access the JDBC network file\n\n DBNetworkFile jfile = (DBNetworkFile) file;\n\n // Check if there are any locks on the file\n \n if ( jfile.hasFileState() && jfile.getFileState().hasActiveLocks()) {\n \n // Check if this session has write access to the required section of the file\n \n if ( jfile.getFileState().canWriteFile( fileoff, siz, sess.getProcessId()) == false)\n throw new LockConflictException();\n }\n \n // Check if there is a maximum file size, if so then check if the write is beyond the allowed file size\n \n if ( dbCtx.hasMaximumFileSize() && (fileoff + siz) > dbCtx.getMaximumFileSize()) {\n \n // Mark the file to delete on close\n \n file.setDeleteOnClose( true);\n\n // Return a disk full error\n \n throw new DiskFullException( \"Write is beyond maximum allowed file size\");\n }\n \n // Check if there is a quota manager\n \n QuotaManager quotaMgr = dbCtx.getQuotaManager();\n \n if ( quotaMgr != null) {\n \n // Get the file information\n \n DBFileInfo finfo = getFileDetails(jfile.getFullName(), dbCtx, jfile.getFileState());\n if ( finfo == null)\n throw new FileNotFoundException(jfile.getFullName());\n \n // Check if the file requires extending\n \n long extendSize = 0L;\n long endOfWrite = fileoff + siz;\n \n if ( endOfWrite > finfo.getAllocationSize()) {\n \n // Calculate the amount the file must be extended\n\n extendSize = endOfWrite - finfo.getAllocationSize();\n \n // Allocate space for the file extend\n \n quotaMgr.allocateSpace(sess, tree, file, extendSize);\n }\n \n // Write to the file\n \n try {\n jfile.writeFile(buf, siz, bufoff, fileoff);\n }\n catch (IOException ex) {\n \n // Check if we allocated space to the file\n \n if ( extendSize > 0 && quotaMgr != null)\n quotaMgr.releaseSpace(sess, tree, file.getFileId(), null, extendSize);\n\n // Rethrow the exception\n \n throw ex; \n }\n\n // Update the file information\n \n if ( extendSize > 0)\n finfo.setAllocationSize(endOfWrite);\n }\n else { \n\n // Write to the file\n \n jfile.writeFile(buf, siz, bufoff, fileoff);\n }\n }\n\n // Return the actual write length\n\n return siz;\n }", "public abstract WriteResult writeSystemLog(Log log);", "@Override\n\tpublic void writeFile(String file_out) {\n\t\tthis.writeFile(Mode.POINT_ONLY, 0, DEFAULT_AND_LOAD_FACTOR, file_out);\n\t}", "public void streamWrite(byte[] buffer,int bufferOffset,int nrOfBytes) throws VlException\n {\n if (this instanceof VStreamWritable)\n {\n VStreamWritable wfile = (VStreamWritable) (this);\n OutputStream ostr = wfile.getOutputStream(); // do not append\n\n try\n {\n ostr.write(buffer, bufferOffset, nrOfBytes);\n ostr.flush(); \n ostr.close(); // Close between actions !\n }\n catch (IOException e)\n {\n throw new VlIOException(\"Failed to write to file:\" + this, e);\n }\n }\n else\n {\n throw new nl.uva.vlet.exception.NotImplementedException(\"File type does not support (remote) write access\");\n }\n }", "void Writer(String data, String FileName, Context context) {\n FileOutputStream outputStream = null;\n try {\n outputStream = context.openFileOutput(FileName,Context.MODE_PRIVATE);\n outputStream.write(data.getBytes());\n\n } catch (Exception e) {\n e.printStackTrace();\n }finally{\n if (outputStream != null){\n try {\n outputStream.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n }", "@Override\n protected void doWriteTo(StreamOutput out) throws IOException {\n }", "private void writeFile(TimerEntity entity) {\n final File file = fileName(entity.getTimedObjectId(), entity.getId());\n\n FileOutputStream fileOutputStream = null;\n try {\n fileOutputStream = new FileOutputStream(file, false);\n final Marshaller marshaller = factory.createMarshaller(configuration);\n marshaller.start(new OutputStreamByteOutput(fileOutputStream));\n marshaller.writeObject(entity);\n marshaller.finish();\n fileOutputStream.flush();\n fileOutputStream.getFD().sync();\n } catch (FileNotFoundException e) {\n throw new RuntimeException(e);\n } catch (IOException e) {\n throw new RuntimeException(e);\n } finally {\n if (fileOutputStream != null) {\n try {\n fileOutputStream.close();\n } catch (IOException e) {\n logger.error(\"IOException closing file \", e);\n }\n }\n }\n }", "public static void main(String [] args){\n writeFile1(\"1234567890987654321\");\n }", "@Override\n\tpublic void writeCommand(final IPrologTermOutput pto) {\n\t\tpto.openTerm(\"execute_custom_operations\").printAtomOrNumber(stateId)\n\t\t\t\t.printAtom(name);\n\t\tfinal ASTProlog prolog = new ASTProlog(pto, null);\n\t\tevalElement.getAst().apply(prolog);\n\t\tpto.printNumber(nrOfSolutions);\n\t\tpto.printVariable(NEW_STATE_ID_VARIABLE);\n\t\tpto.printVariable(\"Errors\").closeTerm();\n\t}", "public abstract void writeToStream(java.io.DataOutputStream output) throws java.io.IOException;", "public void FilesBufferWrite2Append() throws IOException {\n \ttry { \t\n \t\t\n \t \t/* This logic will check whether the file\n \t \t \t * exists or not. If the file is not found\n \t \t \t * at the specified location it would create\n \t \t \t * a new file*/\n \t \t \tif (!file.exists()) {\n \t \t\t file.createNewFile();\n \t \t \t}\n \t\t\n \t \t \t//KP : java.nio.file.Files.write - NIO is buffer oriented & IO is stream oriented!]\n \t\tString str2Write = \"\\n\" + LocalDateTime.now().toString() + \"\\t\" + outPrintLn + \"\\n\";\n \t\tFiles.write(Paths.get(outFilePath), str2Write.getBytes(), StandardOpenOption.APPEND);\n \t\t\n \t}catch (IOException e) {\n\t \t// TODO Auto-generated catch block\n\t \te.printStackTrace();\t\t\n\t\t\tSystem.out.print(outPrintLn);\n\t\t\tSystem.out.println(outPrintLn);\t\n \t}\n }", "private static void write(Client client, String user, String filename,String fileContent) throws SystemException, TException {\n\t\t\n\t\t\n\t\tString keyString = user + \":\" + filename;\n\t\tString key = sha_256(keyString);\n\t\t\n\t\tSystem.out.println(\"Client Locating server\");\n\t\tNodeID succNode = client.findSucc(key);\n\t\tString predIP = succNode.ip;\n\t\tint predPort = succNode.port;\n\t\tSystem.out.println(\"Client located server : \"+predPort);\n\n\t\ttry {\n\t\t\tTSocket transport = new TSocket(predIP, predPort);\n\t\t\ttransport.open();\n\t\t\tTBinaryProtocol protocol = new TBinaryProtocol(transport);\n\t\t\tClient client1 = new chord_auto_generated.FileStore.Client(protocol);\n\t\t\tSystem.out.println(\"Writting file location : \" + predPort);\n\t\t\tRFile rFile = new RFile();\n\t\t\t// rFile.setContent(\"More Updated Files content\");\n\t\t\trFile.setContent(fileContent);\n\t\t\tRFileMetadata localMeta = new RFileMetadata();\n\t\t\tlocalMeta.setFilename(filename);\n\t\t\tlocalMeta.setOwner(user); // Is this the client or server probably Client\n\t\t\trFile.setMeta(localMeta);\n\t\t\tSystem.out.println(\"Writting file Starting----------\");\n\t\t\tclient1.writeFile(rFile);\n\t\t\tSystem.out.println(\"Writting file Done----------\");\n\t\t\ttransport.close();\n\t\t} catch (TTransportException e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(0);\n\t\t}\n\t}", "int writeTo(OutputStream out) throws IOException;", "private void writeProc() throws Exception {\n\t\tWriter writer = new Writer(this.procPath,this.procDataList);\n\t\twriter.running();\n\t}", "private void updateFile() {\n try {\n this.taskStorage.save(this.taskList);\n this.aliasStorage.save(this.parser);\n } catch (IOException e) {\n System.out.println(\"Master i am unable to save the file!\");\n }\n }", "public ThingToWriteFile(String filename) { \n\t\ttry { \t\n\t\t\tout = new BufferedWriter(new FileWriter(filename));\n\t\t}\n\t\tcatch (FileNotFoundException ee){\n\t\t\tSystem.out.println(\"File \" + filename + \" not found.\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t\tcatch (IOException e){\n\t\t\tSystem.out.println(\"File \" + filename + \" cannot be read.\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t}", "public ReduceRecordWriter(ReduceTask task) throws FileNotFoundException {\n\t\traf = new RandomAccessFile(Utils.getReduceOutputFileName(task.reducerInputFileNumber, task.outputDir), \"rws\");\n\t\tf = new File(Utils.getReduceOutputFileName(task.reducerInputFileNumber, task.outputDir));\n\t}", "static void writeToFiles() throws IOException {\n\n writeToFilePriceHistory();\n writeToFileEmployees();\n writeToFileInventory();\n writeToSaleItems();\n writeToOrder();\n writeToFileInventory();\n writeToRevenueLog();\n }", "private static void saveIntoFile() throws IOException {\n\n\t\tDateFormat format = new SimpleDateFormat(\"yyyy.MM.dd.HH.mm.ss\");\n\t\tString fileName = \"./ipmi.\" + format.format(new Date()) + \".log\";\n\n\t\tBasicConsumptionList file = new BasicConsumptionList();\n\t\tlogger.debug(\"file:\" + fileName);\n\t\tfile.setWriter(new FileWriter(fileName));\n\n\t\tSystem.err.println(ipmi.execute(Command.IPMI_SENSOR_LIST));\n\n\t\twhile (true) {\n\t\t\tDouble watts = ipmi.getWatt();\n\t\t\tfile.addData(System.currentTimeMillis(), watts);\n\t\t\tfile.commit();\n\t\t\ttry {\n\t\t\t\tThread.sleep(1000);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\tlogger.trace(\"\", e);\n\t\t\t}\n\t\t}\n\t}", "void sendToDestination(FileItem fileItem, String file_name){\n\n Resource res = new Resource();\n\n try {\n fileItem.write( new File(res.entry.getPathToDestination() + File.separator + file_name));\n logger.info(\"Successfully sent file to destination\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n\n }", "@Test\n\tpublic void testWriteToFile() {\n\t\tArrayList<ArrayList<String>> risultatoAnalisi = \n\t\t\t\tnew ArrayList<ArrayList<String>>();\n\t\toutput.setAnalysisResult(risultatoAnalisi);\n\t\tString percorso = \"\";\n\t\toutput.setOutputFileFolder(percorso);\n\t\ttry {\n\t\t\toutput.writeToFile();\n\t\t} catch (IOException e) {\n\t\t\tfail(\"Problem when writing to specified path.\");\n\t\t}\n\t\tassertTrue(new File(percorso + \"analysis.txt\").exists());\n\t\t/*\n\t\t * Ora passo un path corretto e controllo che venga creato il fiile\n\t\t */\n\t\tpercorso = \"test-dir\";\n\t\toutput.setOutputFileFolder(percorso);\n\t\ttry {\n\t\t\toutput.writeToFile();\n\t\t} catch (IOException e) {\n\t\t\tfail(\"Problem when writing to specified path.\");\n\t\t}\n\t\tassertTrue(new File(percorso + File.separator + \"analysis.txt\").exists());\n\t\t/*\n\t\t * Ripeto il test con valori da scrivere\n\t\t */\n\t\tArrayList<String> datiCasuali = new ArrayList<String>();\n\t\tdatiCasuali.add(\"27\");\n\t\trisultatoAnalisi.add(datiCasuali);\n\t\tdatiCasuali.add(\"12\");\n\t\trisultatoAnalisi.add(datiCasuali);\n\t\tdatiCasuali.add(\"3245543\");\n\t\trisultatoAnalisi.add(datiCasuali);\n\t\toutput.setAnalysisResult(risultatoAnalisi); \n\t\tpercorso = \"\";\n\t\toutput.setOutputFileFolder(percorso);\t\t\n\t\ttry {\n\t\t\toutput.writeToFile();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\tfail(\"Problem when writing to specified path.\");\n\t\t}\n\t\tassertTrue(new File(percorso + \"analysis.txt\").exists());\n\t}", "public void startFileWrite() {\r\n this.setStatus(false);\r\n this.isFileOutStarted = true;\r\n if (!this.is_alg_started || (this.is_alg_started && ((this.is_already_read_from_DB && this.UseFile.isSelected())\r\n || (!this.is_already_read_from_DB && this.UseDB.isSelected())))) {\r\n this.startALG(true);\r\n } else {\r\n Thread t = new Thread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Controller.this.writeIntoFiles.setVisible(true);\r\n Controller.this.isFileWriteInUse = true;\r\n Controller.this.cw.setWritesOnlyFiles(true);\r\n Controller.this.cw.writeFile(true, true, false);\r\n }// run()\r\n });// Thread\r\n t.start();\r\n Timer timer = new Timer();\r\n timer.schedule(new ObserveProgress(timer, t), 200, 2000);\r\n this.isFileOutStarted = false;\r\n }\r\n }", "public abstract void write(DataOutput out) throws IOException;", "private void writeToFile(E entity){\n try (BufferedWriter bw = new BufferedWriter(new FileWriter(this.fileName,true))) {\n bw.write(entity.toFile());\n bw.newLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private static void writeStream(Path path) {\n try (DataOutputStream dataOutputStream = new DataOutputStream(new BufferedOutputStream(new FileOutputStream(path.toString())))) {\n dataOutputStream.writeUTF(\"go\");\n dataOutputStream.writeInt(5);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@Override \r\n\t@SuppressWarnings(\"unchecked\")\r\n\tpublic <K, V> void write(String namedOutput, K key, V value,\r\n\t\t\tString baseOutputPath) throws IOException, InterruptedException {\r\n\t\tcheckNamedOutputName(context, namedOutput, false);\r\n\t\tcheckBaseOutputPath(baseOutputPath);\r\n\t\tif (!namedOutputs.contains(namedOutput)) {\r\n\t\t\tthrow new IllegalArgumentException(\"Undefined named output '\" +\r\n\t\t\t\t\tnamedOutput + \"'\");\r\n\t\t}\r\n\t\tTaskAttemptContext taskContext = getContext(namedOutput);\r\n\t\tgetRecordWriter(taskContext, baseOutputPath).write(key, value);\r\n\t}", "public void performOperation() {\n processFile(this.scopedFile);\n }", "@Override\n public FSDataOutputStream create(Path f) throws IOException {\n return super.create(f);\n }", "@Override\n public void run(){\n int status = 0;\n try{\n FileWriter writer = new FileWriter(file);\n writer.append(data);\n writer.flush();\n writer.close();\n Log.d(\"MainActivity\",\"File saved to \"+file.getAbsolutePath());\n //Log.v(\"DataActivity\", data);\n status = 1;\n }catch (IOException e){\n Log.e(\"Exception\", \"File write failed: \" + e.toString());\n }\n Message msg = new Message();\n msg.what = status;\n msg.obj = file.getAbsolutePath();\n msg.arg1 = type;\n Log.d(\"File\", file.getAbsolutePath());\n if (writeToFileHandler != null){\n writeToFileHandler.sendMessage(msg);\n }\n }", "private static void writeFileOnClient(FileStore.Client client) throws SystemException, TException, IOException {\n String fileName = \"sample.txt\";\n\n String content = \"Content\";\n\n try {\n\n RFile rFile = new RFile();\n RFileMetadata rFileMetaData = new RFileMetadata();\n\n rFileMetaData.setFilename(fileName);\n rFileMetaData.setFilenameIsSet(true);\n\n rFile.setMeta(rFileMetaData);\n rFile.setMetaIsSet(true);\n\n rFile.setContent(content);\n rFile.setContentIsSet(true);\n\n client.writeFile(rFile);\n\n } catch (TException x) {\n throw x;\n }\n }", "@Override\n\t\t\tpublic Result createOutput(String ns, String file)\n\t\t\t\t\tthrows IOException {\n\t\t\t\tStreamResult res = new StreamResult(writer);\n\t\t\t\tres.setSystemId(\"no-id\");\n\t\t\t\treturn res;\n\t\t\t}", "@Override\r\n\tpublic int write() throws Exception {\n\t\treturn 0;\r\n\t}", "public void writeFile() {\n\t\ttry {\n\t\t\tFile dir = Environment.getExternalStorageDirectory();\n\t\t\tFile myFile = new File(dir.toString() + File.separator + FILENAME);\n\t\t\tLog.i(\"MyMovies\", \"SeSus write : \" + myFile.toString());\n\t\t\tmyFile.createNewFile();\n\t\t\tFileOutputStream fOut = new FileOutputStream(myFile);\n\t\t\tOutputStreamWriter myOutWriter = \n\t\t\t\t\tnew OutputStreamWriter(fOut);\n\t\t\tfor (Map.Entry<String, ValueElement> me : hm.entrySet()) {\n\t\t\t\tString refs = (me.getValue().cRefMovies>0? \"MOVIE\" : \"\");\n\t\t\t\trefs += (me.getValue().cRefBooks>0? \"BOOK\" : \"\");\n\t\t\t\tString line = me.getKey() + DELIMITER + me.getValue().zweiteZeile \n\t\t\t\t\t\t //+ DELIMITER\n\t\t\t\t\t\t //+ me.getValue().count\n\t\t\t\t\t \t+ DELIMITER\n\t\t\t\t\t \t+ refs\n\t\t\t\t\t \t + System.getProperty(\"line.separator\");\n\t\t\t\t//Log.i(\"MyMovies\", \"SeSus extracted : \" + line);\n\t\t\t\tmyOutWriter.write(line);\n\t\t\t}\n\t\t\tmyOutWriter.close();\n\t\t\tfOut.close();\n\t\t} catch (IOException e) {\n\t\t\t//\n\t\t\tLog.i(\"MyMovies\", \"SeSus write Exception : \");\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "String saveToFile(Object data, String fileName, FileFormat fileFormat) throws IOException;", "void write(TestResult testResult);", "void saveRequestToFile(MovilizerRequest request, Path filePath);", "@Override\r\n\tpublic String execute() throws Exception {\n\t\ttry{\r\n\t\t\tSystem.out.println(\"uuid=\"+uuid);\r\n\t\t\tSystem.out.println(\"txtPath=\"+txtPath);\r\n\t\t\t\r\n\t\t\tfileName=fileName.substring(0,fileName.lastIndexOf(\".\"));\r\n\t\t\ttxtPath=txtPath+fileName+\"_\"+uuid.substring(0, 6)+\".txt\";\r\n\t\t\t//txtPath=txtPath+uuid+\".txt\";\r\n\t\t\t\r\n\t\t\tOperateTxt.createText(txtPath, uuid);\r\n\t\t\ttxtFile=txtDownloadPath;\r\n\t\t}catch(Exception e){\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn ERROR;\r\n\t\t}\r\n\t\t\r\n\t\treturn SUCCESS;\r\n\t\t\r\n\t}", "public void writeToFile(RandomAccessFile fio) {\n try {\n fio.writeInt(number);\n fio.writeUTF(name);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "@Override\r\n public void write(int value) throws IOException {\r\n super.write(value);\r\n if (!(inWrite1 || inWrite3)) {\r\n /*if (!Helper.NEW_IO_HANDLING && null != IoNotifier.fileNotifier) {\r\n IoNotifier.fileNotifier.notifyWrite(recId, 1);\r\n } else {*/\r\n if (null != RecorderFrontend.instance) {\r\n RecorderFrontend.instance.writeIo(recId, \r\n null, 1, StreamType.FILE);\r\n }\r\n //}\r\n }\r\n }", "@Override\n protected Task<FileSnapshotRestRep> doExecute() throws Exception {\n String subDir = StringUtils.defaultIfEmpty(subDirectory, null);\n return getClient().fileSnapshots().updateExport(fileSystemId, subDir, input);\n }", "private void writeToFile(String pathName,Object logs) {\r\n try {\r\n File save = new File(pathName);\r\n FileOutputStream fileOutputStream = new FileOutputStream(save);\r\n ObjectOutputStream objectOutputStream = new ObjectOutputStream(fileOutputStream);\r\n objectOutputStream.writeObject(logs);\r\n // System.out.println(\"write successful for\"+pathName);\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }", "public static void write() throws Exception {\r\n \tif (FTPManager.upload())\r\n \t\tSystem.out.println(\"Written.\");\r\n \telse\r\n \t\tSystem.out.println(\"Failed.\");\r\n }", "interface WriteExecutor<R> {\n /**\n * Execute previously defined operation\n */\n R execute();\n }", "public static final void writeBytes(@org.jetbrains.annotations.NotNull java.io.File r2, @org.jetbrains.annotations.NotNull byte[] r3) {\n /*\n java.lang.String r0 = \"$this$writeBytes\"\n kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull(r2, r0)\n java.lang.String r0 = \"array\"\n kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull(r3, r0)\n java.io.FileOutputStream r0 = new java.io.FileOutputStream\n r0.<init>(r2)\n java.io.Closeable r0 = (java.io.Closeable) r0\n r2 = 0\n r1 = r0\n java.io.FileOutputStream r1 = (java.io.FileOutputStream) r1 // Catch:{ Throwable -> 0x001e }\n r1.write(r3) // Catch:{ Throwable -> 0x001e }\n kotlin.io.CloseableKt.closeFinally(r0, r2)\n return\n L_0x001c:\n r3 = move-exception\n goto L_0x0020\n L_0x001e:\n r2 = move-exception\n throw r2 // Catch:{ all -> 0x001c }\n L_0x0020:\n kotlin.io.CloseableKt.closeFinally(r0, r2)\n throw r3\n */\n throw new UnsupportedOperationException(\"Method not decompiled: kotlin.io.i.writeBytes(java.io.File, byte[]):void\");\n }", "public void write_file(String filename)\n {\n out.println(\"WRITE\");\n out.println(filename);\n int timestamp = 0;\n synchronized(cnode.r_list)\n {\n timestamp = cnode.r_list.get(filename).cword.our_sn;\n }\n // content = client <ID>, <ts>\n out.println(\"Client \"+my_c_id+\", \"+timestamp);\n // check if write operation finished on server and then exit method\n try\n {\n String em = null;\n em = in.readLine();\n Matcher m_eom = eom.matcher(em);\n if (m_eom.find())\n {\n System.out.println(\"WRITE operation finished on server : \"+remote_c_id);\n }\n else\n {\n System.out.println(\"WRITE operation ERROR on server : \"+remote_c_id);\n }\n }\n catch (IOException e) \n {\n \tSystem.out.println(\"Read failed\");\n \tSystem.exit(-1);\n }\n }", "public void writeFile()\n\t{\n\t\t//Printwriter object\n\t\tPrintWriter writer = FileUtils.openToWrite(\"TobaccoUse.txt\");\n\t\twriter.print(\"Year, State, Abbreviation, Percentage of Tobacco Use\\n\");\n\t\tfor(int i = 0; i < tobacco.size(); i++)\n\t\t{\n\t\t\tStateTobacco state = tobacco.get(i);\n\t\t\tString name = state.getState();\n\t\t\tString abbr = state.getAbbreviation();\n\t\t\tdouble percent = state.getPercentUse();\n\t\t\tint year = state.getYear();\n\t\t\twriter.print(\"\"+ year + \", \" + name + \", \" + abbr + \", \" + percent + \"\\n\");\n\t\t} \n\t\twriter.close(); //closes printwriter object\n\t}", "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}", "public abstract void write(O value) throws IOException;", "private static void outputResult(int result, File file) {\n\n try (FileWriter fileWriter = new FileWriter(file)) {\n fileWriter.write(result + \"\");\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n }", "@Override\n public long writeTo(OutputStream out) {\n // read file and write to 'out'\n if (position == -1) {\n // whole file\n return new ReaderWriter().readFile(out, storageKey);\n } else {\n // range\n return new ReaderWriter().readFile(out, storageKey,\n position, count);\n }\n }", "Path getWritePath()\n {\n return writePath;\n }" ]
[ "0.6723489", "0.65513426", "0.64439225", "0.6052708", "0.6048943", "0.59702086", "0.59248406", "0.5893463", "0.5874864", "0.5859715", "0.5844864", "0.57921183", "0.5758637", "0.5750079", "0.5735037", "0.5732849", "0.567102", "0.565091", "0.56032634", "0.55617476", "0.5536002", "0.55327505", "0.5523214", "0.5516191", "0.5509742", "0.54848284", "0.54794663", "0.5438096", "0.5429765", "0.5427844", "0.54123205", "0.54103494", "0.5409979", "0.5409979", "0.54066706", "0.5372161", "0.5367307", "0.53594095", "0.5355885", "0.53502715", "0.5347687", "0.5323446", "0.53202623", "0.53159225", "0.5304141", "0.5301091", "0.52947986", "0.5292515", "0.52856123", "0.5262353", "0.5259705", "0.5247094", "0.52341115", "0.52299863", "0.52274734", "0.5226714", "0.5226182", "0.5215671", "0.52128017", "0.5198869", "0.5197255", "0.51899683", "0.5188867", "0.5182839", "0.518182", "0.5179259", "0.51777744", "0.5174637", "0.51711255", "0.5167342", "0.51664007", "0.5160628", "0.5152286", "0.51466215", "0.51436734", "0.5143519", "0.51407087", "0.51401854", "0.5137006", "0.5136462", "0.5134751", "0.51345575", "0.51278883", "0.51269954", "0.5116391", "0.51156765", "0.511338", "0.51116645", "0.5108417", "0.51043326", "0.50944877", "0.50918984", "0.5089625", "0.50822085", "0.50791943", "0.50757784", "0.50695044", "0.50661576", "0.50650656", "0.50621086", "0.5061891" ]
0.0
-1
Constructor creates a new NewPropertyTypeDialogObject.
public NewPropertyTypeDialog(JFrame parent) { super(parent, "New Property Type", true); JPanel border = new JPanel(); border.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10)); this.getContentPane().setLayout(new BorderLayout(8, 8)); this.getContentPane().add(border, BorderLayout.CENTER); this.cmbTypes = new JComboBox<String>(AnimationProperties.getAllPropertyTypes()); this.cmbTypes.setPreferredSize(new Dimension(250, this.cmbTypes .getMinimumSize().height)); this.cmbTypes.setMaximumSize(new Dimension(Integer.MAX_VALUE, this.cmbTypes .getMinimumSize().height)); this.cmbTypes.setAlignmentX(Component.LEFT_ALIGNMENT); this.cmbTypes.setActionCommand("cmbTypes"); this.cmbTypes.addActionListener(this); this.txtName = new JTextField(); this.txtName.setText(""); this.name = ""; this.txtName.setPreferredSize(new Dimension(250, this.txtName .getMinimumSize().height)); this.txtName.setMaximumSize(new Dimension(Integer.MAX_VALUE, this.txtName .getMinimumSize().height)); this.txtName.setAlignmentX(Component.LEFT_ALIGNMENT); border.setLayout(new BoxLayout(border, BoxLayout.PAGE_AXIS)); JLabel lblType = new JLabel("Chose a Property Type:"); border.add(lblType); border.add(Box.createRigidArea(new Dimension(0, 4))); border.add(this.cmbTypes); border.add(Box.createRigidArea(new Dimension(0, 10))); JLabel lblName = new JLabel("Enter a Name:"); border.add(lblName); border.add(Box.createRigidArea(new Dimension(0, 4))); border.add(this.txtName); border.add(Box.createRigidArea(new Dimension(0, 16))); JPanel pBut = new JPanel(); pBut.setLayout(new BoxLayout(pBut, BoxLayout.LINE_AXIS)); pBut.setAlignmentX(Component.LEFT_ALIGNMENT); pBut.add(Box.createHorizontalGlue()); JButton btnCancel = new JButton("Cancel"); btnCancel.setActionCommand("cancel"); btnCancel.addActionListener(this); pBut.add(btnCancel); pBut.add(Box.createRigidArea(new Dimension(8, 0))); JButton btnOK = new JButton("OK"); btnOK.setActionCommand("ok"); btnOK.addActionListener(this); pBut.add(btnOK); border.add(pBut, BorderLayout.SOUTH); this.getRootPane().setDefaultButton(btnOK); this.txtName.requestFocus(); this.pack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "PropertyType createPropertyType();", "public ACLPropertyDialog() {\n this.setModal(true);\n try {\n jbInit();\n pack();\n }\n catch (Exception ex) {\n ex.printStackTrace();\n }\n }", "public Dialog() {\n\t}", "PropertyType(String propertyType) {\n this.propertyType = propertyType;\n }", "public JDialogParticleAnalysisNew() { }", "public StandardDialog() {\n super();\n init();\n }", "public Property createProperty() {\n if (newProject == null) {\n reinit();\n }\n Property p = new Property(true, getProject());\n p.setProject(newProject);\n p.setTaskName(\"property\");\n properties.addElement(p);\n return p;\n }", "public FiltroGirosDialog() {\n \n }", "public DialogManager() {\n }", "public Dialog<String> createDialog() {\n\t\t// Creating a dialog\n\t\tDialog<String> dialog = new Dialog<String>();\n\n\t\tButtonType type = new ButtonType(\"Ok\", ButtonData.OK_DONE);\n\t\tdialog.getDialogPane().getButtonTypes().add(type);\n\t\treturn dialog;\n\t}", "public NewItemDlg(Bundle args) {\n this.setArguments(args);}", "public JCProjectProperties() {\n this(null);\n }", "public Propuestas() {}", "public KettlePropertiesFileDialog( Shell parent, int style ) {\n super( parent, style );\n props = PropsUI.getInstance();\n kettleProperties = null;\n }", "public abstract Dialog createDialog(DialogDescriptor descriptor);", "public Property createProperty() {\n Property p = new Property();\n p.setProject(getProject());\n p.setTaskName(\"property\");\n properties.addElement(p);\n return p;\n }", "public PHConstDialog() {\n\t\tinitComponents();\n\t}", "public Properties(){\n\n }", "public ComponentDescriptor() {\r\n\t\t// initialize empty collections\r\n\t\tconstructorParametersTypes = new LinkedList<List<Class<?>>>();\r\n//\t\trequiredProperties = new HashMap<String, MetaProperty>();\r\n//\t\toptionalProperties = new HashMap<String, MetaProperty>();\r\n\t}", "void makeDialog()\n\t{\n\t\tfDialog = new ViewOptionsDialog(this.getTopLevelAncestor());\n\t}", "@SuppressWarnings(\"unchecked\")\n\tprotected DatabaseIDMapperNodeDialog() {\n super();\n \n \n this.addDialogComponent(new DialogComponentStringSelection(\n \t\tnew SettingsModelString(\n \t\t\t\tDatabaseIDMapperNodeModel.FROM_CFGKEY,\n \t\t\t\tDatabaseIDMapperNodeModel.FROM_DEFAULT),\n \t\t\"From\",\n \t\tUniprot.values()));\n \n this.addDialogComponent(new DialogComponentStringSelection(\n \t\tnew SettingsModelString(\n \t\t\t\tDatabaseIDMapperNodeModel.TO_CFGKEY,\n \t\t\t\tDatabaseIDMapperNodeModel.TO_DEFAULT),\n \t\t\"To\",\n \t\tUniprot.values()));\n \n \n this.addDialogComponent(new DialogComponentColumnNameSelection(\n \t\tnew SettingsModelString(\n \t\t\t\tDatabaseIDMapperNodeModel.INPUT_COLUMN_CFGKEY,\n \t\t\t\tDatabaseIDMapperNodeModel.INPUT_COLUMN_DEFAULT), \n \t\t\"Accession Column\",\n \t\t0,\n \t\ttrue,\n \t\tStringValue.class));\n }", "private VisualPropertyType(final String calcName, final String propertyLabel,\n \t final String bypassAttrName, final String defaultPropertyLabel,\n \t final Class dataType, final VisualProperty vizProp, \n \t\t\t\t\t\t\t final ValueParser valueParser, final boolean isNodeProp,\n \t\t\t\t\t\t\t final boolean isAllowed) {\n \t\tthis.calcName = calcName;\n \t\tthis.propertyLabel = propertyLabel;\n \t\tthis.bypassAttrName = bypassAttrName;\n \t\tthis.defaultPropertyLabel = defaultPropertyLabel;\n \t\tthis.dataType = dataType;\n \t\tthis.vizProp = vizProp;\n \t\tthis.valueParser = valueParser;\n \t\tthis.isNodeProp = isNodeProp;\n \t\tthis.isAllowed = isAllowed;\n \t}", "private ListSelectionDialogFactory() {\n }", "public Property() {}", "public Property()\r\n {\r\n }", "protected ERMinerNodeDialog() {\nsuper();\n \n addDialogComponent(new DialogComponentColumnNameSelection(ERMinerNodeModel.createSeqColumnModel(),\n\t\t\t\t\t\t\"Column containing the sequences: \", 0, true, StringValue.class));\n addDialogComponent(new DialogComponentNumber(ERMinerNodeModel.createMinSupModel(), \"Choose minSup\", 0.05));\n addDialogComponent(new DialogComponentNumber(ERMinerNodeModel.createMinConfModel(), \"Choose minConf\", 0.05));\n }", "public void addRelationshipDialog() { new RelationshipDialog(); }", "public DimensionProperties() {\n }", "public JTypeView() { }", "public NodePropertyDialog(Frame parent, NateNode node) {\r\n\t \r\n super(parent, true);\r\n this.node = node;\r\n\t initComponents();\r\n System.out.println(\"\\n\" + node.toString());\r\n setTitle(\"Node: \" + node.toString());\r\n //this.replyTextField.setValue(node.getReply());\r\n this.replyTextField.setText(node.getReply());\r\n this.nameTextField.setText(node.getSpeaker());\r\n \r\n }", "public ReorganizeDialog() { }", "private CovarianceTopicSettings(javax.swing.JDialog parent) {\n super(parent);\n initComponents();\n }", "public GAClusteringConfigurationDialog() {}", "Property createProperty();", "public static AddNewScheduleDialog createInstance(int quantity){\n AddNewScheduleDialog frag = new AddNewScheduleDialog();\n frag.quantity = quantity;\n return frag;\n }", "public VisualProperty createVisualProperty(PropertyType type) \r\n throws RepositoryAccessException {\r\n return createVisualProperty(type, type.getConfig(), null, null);\r\n }", "public ShapeFactory(Dialog dialog) {\n\t}", "public NewServerConfigDialog(final Shell shell) {\r\n super(shell);\r\n }", "public PDMRelationshipForm() {\r\n initComponents();\r\n }", "private void creerMethode() {\n if (estValide()) {\n methode = new Methode();\n methode.setNom(textFieldNom.getText());\n methode.setVisibilite(comboBoxVisibilite.getValue());\n methode.setType(comboBoxType.getValue());\n ArrayList<Parametre> temp = new ArrayList<>();\n for (Parametre parametre : parametreListView.getItems())\n temp.add(parametre);\n methode.setParametres(temp);\n close();\n }\n }", "FormPropertyEditor(RADComponent radComponent, Class propertyType, RADComponent.RADProperty radProperty) {\n source = this;\n this.radComponent = radComponent;\n this.radProperty = radProperty;\n this.propertyType = propertyType;\n modifiedEditor = radProperty.getCurrentEditor ();\n if (modifiedEditor instanceof FormAwareEditor) {\n ((FormAwareEditor)modifiedEditor).setRADComponent (radComponent, radProperty);\n }\n if (modifiedEditor instanceof org.openide.explorer.propertysheet.editors.NodePropertyEditor) {\n ((org.openide.explorer.propertysheet.editors.NodePropertyEditor)modifiedEditor).attach (new org.openide.nodes.Node[] { radComponent.getNodeReference () });\n }\n modifiedEditor.addPropertyChangeListener (this);\n }", "public NewDialog() {\n\t\t\t// super((java.awt.Frame)null, \"New Document\");\n\t\t\tsuper(\"JFLAP 7.0\");\n\t\t\tgetContentPane().setLayout(new GridLayout(0, 1));\n\t\t\tinitMenu();\n\t\t\tinitComponents();\n\t\t\tsetResizable(false);\n\t\t\tpack();\n\t\t\tthis.setLocation(50, 50);\n\n\t\t\taddWindowListener(new WindowAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void windowClosing(final WindowEvent event) {\n\t\t\t\t\tif (Universe.numberOfFrames() > 0) {\n\t\t\t\t\t\tNewDialog.this.setVisible(false);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tQuitAction.beginQuit();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t}", "public CadastroProdutoNew() {\n initComponents();\n }", "public RelationshipDialog() {\n super(getRTParent(), \"Add Relationship...\", true);\n getContentPane().setLayout(new BorderLayout(5,5));\n JPanel center = new JPanel(new GridLayout(5,2,5,5));\n center.add(new JLabel(\"From\")); \n center.add(new JLabel(\"To\"));\n\n String blanks[] = KeyMaker.blanks(getRTParent().getRootBundles().getGlobals());\n center.add(from_cb = new JComboBox(blanks));\n center.add(to_cb = new JComboBox(blanks));\n\n center.add(from_symbol_cb = new JComboBox(Utils.SHAPE_STRS));\n center.add(to_symbol_cb = new JComboBox(Utils.SHAPE_STRS));\n center.add(from_typed_cb = new JCheckBox(\"Field Typed\", false));\n center.add(to_typed_cb = new JCheckBox(\"Field Typed\", false));\n center.add(ignore_ns_cb = new JCheckBox(\"Ignore Not Sets\", true));\n getContentPane().add(\"Center\", center);\n\n getContentPane().add(\"North\", style_cb = new JComboBox(STYLE_STRS));\n\n JPanel bottom = new JPanel(new FlowLayout());\n JButton add_bt, cancel_bt;\n bottom.add(add_bt = new JButton(\"Add\"));\n bottom.add(cancel_bt = new JButton(\"Cancel\"));\n getContentPane().add(\"South\", bottom);\n\n // Add listeners\n cancel_bt.addActionListener(new ActionListener() { \n public void actionPerformed(ActionEvent ae) { setVisible(false); dispose(); } } );\n add_bt.addActionListener(new ActionListener() { \n public void actionPerformed(ActionEvent ae) {\n setVisible(false); dispose();\n\t addRelationship((String) from_cb.getSelectedItem(), \n\t (String) from_symbol_cb.getSelectedItem(),\n\t \t\t from_typed_cb.isSelected(),\n\t (String) to_cb.getSelectedItem(), \n\t (String) to_symbol_cb.getSelectedItem(),\n\t\t \t to_typed_cb.isSelected(),\n (String) style_cb.getSelectedItem(), \n\t\t\t ignore_ns_cb.isSelected(), \n\t\t\t false);\n } } );\n pack(); setVisible(true);\n }", "public MultiSelectPropertyBox() {\n\t\tthis.setRenderer(new PropertyCellRenderer());\n\t\tthis.addItemListener(new java.awt.event.ItemListener() {\n\t\t\tpublic void itemStateChanged(ItemEvent e) {\n\t\t\t\t// this_itemStateChanged(e);\n\t\t\t}\n\t\t});\n\t\tsetEditable(false);\n\t\tthis.setRenderer(new MultiSelectBoxRenderer());\n\t}", "public CreateAnimalDialog(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n AnimalManager myAnimalManager = new AnimalManager();\n FoodManager myFoodManager = new FoodManager();\n }", "public PropertiesChooserView() {\n initComponents();\n choicesModel = new DefaultListModel();\n chosenModel = new DefaultListModel();\n chooseList.setModel(choicesModel);\n chosenList.setModel(chosenModel);\n }", "public PropsGUI() {\n initComponents();\n }", "private Dialogs () {\r\n\t}", "public NewProjectDialog(String pt) {\n\t\t\t\n\t\t\tsuper(frame, \"Add new project\");\n\t\t\tresetFields();\n\t\t\tpType = pt;\n\t\t\t\n\t\t\tfinal JDialog npd = this;\n\t\t\t\n\t\t\tpSDate.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\t\tpDeadline.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\t\tpEndDate.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\t\tpBudget.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\t\tpTotalCost.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\t\tpCompletion.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\t\t\n\t\t\tint x = frame.getLocation().x;\n\t\t\tint y = frame.getLocation().y;\n\t\t\t\n\t\t\tint pWidth = frame.getSize().width;\n\t\t\tint pHeight = frame.getSize().height;\n\t\t\t\n\t\t\tgetContentPane().setLayout(new BorderLayout());\n\t\t\t\n\t\t\tfinal JPanel fieldPanel = new JPanel();\n\t\t\t\n\t\t\tpCode.setText(portfolio.getNewCode());\n\t\t\tpCode.setEditable(false);\n\t\t\t\n\t\t\tif(pType.equals(\"o\")) {\n\t\t\t\tfieldPanel.setLayout(new GridLayout(7,3));\n\t\t\t\tSystem.out.println(\"ongoing\");\n\t\t\t\tthis.setPreferredSize(new Dimension(600,230));\n\t\t\t} else if(pType.equals(\"f\")) {\n\t\t\t\tfieldPanel.setLayout(new GridLayout(6,3));\n\t\t\t\tSystem.out.println(\"finished\");\n\t\t\t\tthis.setPreferredSize(new Dimension(600,200));\n\t\t\t}\n\t\t\tfieldPanel.add(new JLabel(\"Project Code :\"));\n\t\t\tfieldPanel.add(pCode);\n\t\t\tfieldPanel.add(msgCode);\t\t\n\t\t\tfieldPanel.add(new JLabel(\"Project Name :\"));\n\t\t\tfieldPanel.add(pName);\n\t\t\tfieldPanel.add(msgName);\n\t\t\tfieldPanel.add(new JLabel(\"Client :\"));\n\t\t\tfieldPanel.add(pClient);\n\t\t\tfieldPanel.add(msgClient);\n\t\t\tfieldPanel.add(new JLabel(\"Start date: \"));\n\t\t\tfieldPanel.add(pSDate);\n\t\t\tfieldPanel.add(msgSDate);\n\t\t\tmsgSDate.setText(DATE_FORMAT);\n\t\t\t\n\t\t\tif(pType.equals(\"o\")) {\n\t\t\t\tfieldPanel.add(new JLabel(\"Deadline :\"));\n\t\t\t\tfieldPanel.add(pDeadline);\n\t\t\t\tfieldPanel.add(msgDeadline);\n\t\t\t\tmsgDeadline.setText(DATE_FORMAT);\n\t\t\t\tfieldPanel.add(new JLabel(\"Budget :\"));\n\t\t\t\tfieldPanel.add(pBudget);\n\t\t\t\tfieldPanel.add(msgBudget);\n\t\t\t\tfieldPanel.add(new JLabel(\"Completion :\"));\n\t\t\t\tfieldPanel.add(pCompletion);\t\t\t\n\t\t\t\tfieldPanel.add(msgCompletion);\n\t\t\t\t\n\t\t\t} else if(pType.equals(\"f\")) {\n\t\t\t\tfieldPanel.add(new JLabel(\"End Date :\"));\n\t\t\t\tfieldPanel.add(pEndDate);\n\t\t\t\tfieldPanel.add(msgEndDate);\n\t\t\t\tmsgEndDate.setText(DATE_FORMAT);\n\t\t\t\tfieldPanel.add(new JLabel(\"Total Cost :\"));\n\t\t\t\tfieldPanel.add(pTotalCost);\n\t\t\t\tfieldPanel.add(msgTotalCost);\n\t\t\t}\n\t\t\t\n\t\t\tJPanel optionButtons = new JPanel();\n\t\t\toptionButtons.setLayout(new FlowLayout());\n\t\t\t\n\t\t\tJButton btnAdd = new JButton(\"Add\");\n\t\t\tbtnAdd.addActionListener(new ActionListener() {\n\n\t\t\t\t/**\n\t\t\t\t * Validates the information entered by the user and adds the project to the\n\t\t\t\t * Portfolio object if data is valid.\n\t\t\t\t */\n\t\t\t\t@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\n\t\t\t\t\tif(validateForm()) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tProject prj = compileProject();\n\t\t\t\t\t\tportfolio.add(prj,config.isUpdateDB());\n\t\t\t\t\t\tif(prj instanceof OngoingProject) {\n\t\t\t\t\t\t\tProjectTableModel tm = (ProjectTableModel) opTable.getModel();\n\t\t\t\t\t\t\ttm.addRow(prj.toTable());\n\t\t\t\t\t\t\topTable.setModel(tm);\n\t\t\t\t\t\t\tupdateCounters();\n\t\t\t\t\t\t\ttoggleSaved(false);\n\t\t\t\t\t\t\tsel.add(pCode.getText());\n\t\t\t\t\t\t} else if (prj instanceof FinishedProject) {\n\t\t\t\t\t\t\tProjectTableModel tm = (ProjectTableModel) fpTable.getModel();\n\t\t\t\t\t\t\ttm.addRow(prj.toTable());\n\t\t\t\t\t\t\tfpTable.setModel(tm);\n\t\t\t\t\t\t\tupdateCounters();\n\t\t\t\t\t\t\ttoggleSaved(false);\n\t\t\t\t\t\t\tsel.add(pCode.getText());\n\t\t\t\t\t\t}\n\t\t\t\t\t\tnpd.dispose();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t});\n\t\t\toptionButtons.add(btnAdd);\n\t\t\t\n\t\t\tJButton btnClose = new JButton(\"Close\");\n\t\t\tbtnClose.addActionListener(new ActionListener() {\n\n\t\t\t\t/* Closes the NewProjectDialog window. */\n\t\t\t\t@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tnpd.dispose();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t});\n\t\t\t\n\t\t\toptionButtons.add(btnClose);\n\t\t\tgetContentPane().add(new JLabel(\"Enter the data for your new \" + getPType(pType) + \" project:\"), BorderLayout.PAGE_START);\n\t\t\tthis.add(fieldPanel, BorderLayout.CENTER);\n\t\t\tthis.add(optionButtons, BorderLayout.PAGE_END);\n\n\t\t\tthis.pack();\n\t\t\t\t\t\n\t\t\tint width = this.getSize().width;\n\t\t\tint height = this.getSize().height;\n\t\t\t\n\t\t\tthis.setLocation(new Point((x+pWidth/2-width/2),(y+pHeight/2-height/2)));\n\t\t\tthis.setVisible(true);\n\t\t}", "private void initDialog() {\n }", "public PropertyClassificationPage() {\n initComponents();\n }", "public ClassChoiceDialog(Context context) {\n // 通过LayoutInflater来加载一个xml的布局文件作为一个View对象\n this.context = context;\n initialView();\n dialog = builder.create();\n initListener();\n\n }", "default PropertyBox cloneBox() {\n\t\treturn builder(this).invalidAllowed(this.isInvalidAllowed()).copyValues(this).build();\n\t}", "@NonNull\n @Override\n public Dialog onCreateDialog(Bundle savedInstanceState)\n {\n AnalyticsHelper.reportScreen(getActivity(), AnalyticsManager.SCREEN_NODE_CREATE_NAME);\n\n MaterialDialog dialog = new MaterialDialog.Builder(getActivity()).iconRes(R.drawable.ic_application_logo)\n .title(R.string.folder_create).customView(createView(LayoutInflater.from(getActivity()), null), true)\n .positiveText(R.string.create).negativeText(R.string.cancel)\n .callback(new MaterialDialog.ButtonCallback()\n {\n @Override\n public void onPositive(MaterialDialog dialog)\n {\n UIUtils.hideKeyboard(getActivity(), tv);\n\n String operationId = Operator.with(getActivity(), SessionUtils.getAccount(getActivity()))\n .load(new CreateFolderRequest.Builder((Folder) getArguments().get(ARGUMENT_FOLDER),\n tv.getText().toString().trim()));\n\n OperationWaitingDialogFragment\n .newInstance(CreateFolderRequest.TYPE_ID, R.drawable.ic_add_folder,\n getString(R.string.folder_create), null,\n (Folder) getArguments().get(ARGUMENT_FOLDER), 0, operationId)\n .show(getActivity().getSupportFragmentManager(), OperationWaitingDialogFragment.TAG);\n\n dialog.dismiss();\n }\n\n @Override\n public void onNegative(MaterialDialog dialog)\n {\n dialog.dismiss();\n }\n }).build();\n dialog.getActionButton(DialogAction.POSITIVE).setEnabled(false);\n return dialog;\n }", "public ProductCreate() {\n initComponents();\n }", "public abstract void initDialog();", "public VehicleDlg(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n\n for (Vehicle.VehicleType value : Vehicle.VehicleType.values()) {\n cmbType.addItem(value);\n }\n }", "public DPropertyElement() {\n super(null, null);\n }", "public CrearProductos() {\n initComponents();\n }", "private void crearTree(){\n tree= new Tree(\"PROGRAMAS\");\r\n tree.setImmediate(true);\r\n\r\n // Set tree to show the 'name' property as caption for items\r\n tree.setItemCaptionPropertyId(\"nombre\");\r\n \r\n tree.addValueChangeListener(e -> Notification.show(\"Value changed:\",String.valueOf(e.getProperty().getValue()),Type.TRAY_NOTIFICATION));\r\n\t}", "public void testCtor1() throws Exception {\n assertNotNull(\"Failed to create PropertiesPanel instance.\", new PropertiesPanel(NAMESPACE, manager));\n }", "@NonNull\n @Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n // Use the Builder class for convenient dialog construction\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setTitle(R.string.title_add_to_shopping);\n\n // initialize itemcreation\n m_createItemDlg = new CreateItemDialog(this);\n\n // create item selection\n builder.setView(createItemSelection());\n\n // set buttonss\n builder.setPositiveButton(R.string.button_add, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n if(m_callback != null) {\n m_callback.readAddToShoppingDlgAndUpdate();\n }\n }\n });\n builder.setNegativeButton(R.string.button_cancel, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) { }\n });\n // Create the AlertDialog object and return it\n return builder.create();\n }", "public SelectionDialog(HarmonyModel harmonyModel, Integer mode)\r\n\t{\r\n\t\tsuper((mode==SELECT ? \"Select\" : \"Remove\") + \" Links\");\r\n\t\tthis.harmonyModel = harmonyModel;\r\n\t\tthis.mode = mode;\r\n\t\t\r\n\t\t// Initialize the type filter\r\n\t\ttypeFilter = new OptionPane(\"Type\",new String[]{\"All\",\"User\",\"System\"});\r\n\t\ttypeFilter.setBorder(new EmptyBorder(0,20,0,0));\r\n\t\ttypeFilter.setSelectedButton(\"All\");\r\n\t\t\r\n\t\t// Initialize the focus filter\r\n\t\tfocusFilter = new OptionPane(\"Focus\",new String[]{\"All\",\"Focused\",\"Unfocused\"});\r\n\t\tfocusFilter.setBorder(new EmptyBorder(0,13,0,0));\r\n\t\tfocusFilter.setSelectedButton(mode==SELECT ? \"Focused\" : \"All\");\r\n\t\tfocusFilter.setEnabled(mode==DELETE);\r\n\r\n\t\t// Initialize the visibility filter\r\n\t\tvisibilityFilter = new OptionPane(\"Visibility\",new String[]{\"All\",\"Visible\",\"Hidden\"});\t\t\r\n\t\tvisibilityFilter.setSelectedButton(mode==SELECT ? \"Visible\" : \"All\");\r\n\t\tvisibilityFilter.setEnabled(mode==DELETE);\r\n\t\t\r\n\t\t// Create the info pane\r\n\t\tJPanel infoPane = new JPanel();\r\n\t\tinfoPane.setBorder(new CompoundBorder(new EmptyBorder(5,5,0,5),new CompoundBorder(new LineBorder(Color.gray),new EmptyBorder(5,5,5,5))));\r\n\t\tinfoPane.setLayout(new GridLayout(3,1));\r\n\t\tinfoPane.add(typeFilter);\r\n\t\tinfoPane.add(focusFilter);\r\n\t\tinfoPane.add(visibilityFilter);\r\n\t\t\r\n\t\t// Generate the main dialog pane\r\n\t\tJPanel pane = new JPanel();\r\n\t\tpane.setBorder(BorderFactory.createLineBorder(Color.black));\r\n\t\tpane.setLayout(new BorderLayout());\r\n\t\tpane.add(infoPane,BorderLayout.CENTER);\r\n\t\tpane.add(new ButtonPane(),BorderLayout.SOUTH);\r\n\t\t\r\n\t\t// Initialize the dialog parameters\r\n\t\tsetContentPane(pane);\r\n\t\tsetSize(200,250);\r\n\t\tpack();\r\n\t\tsetVisible(true);\r\n\t}", "protected ProjectCreationDescriptor() {\n\t}", "public CrearPedidos() {\n initComponents();\n }", "private PropertySingleton(){}", "Type() {\n }", "public void newProperty(Property property, PieceType type) {\n\t\t_property = property;\n\t\tswitch (type) {\n\t\tcase SETTLEMENT:\n\t\t\t_piece = new Settlement(_coordinates, _property);\n\t\t\tbreak;\n\t\tcase CITY:\n\t\t\t_piece = new City(_coordinates, _property);\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t}", "private ConfigurationObject createObject(String name, String type) throws Exception {\r\n ConfigurationObject object = new DefaultConfigurationObject(name);\r\n object.setPropertyValue(PROPERTY_TYPE, type);\r\n\r\n return object;\r\n }", "public Dialog(String text) {\n initComponents( text);\n }", "public Property(String name) {\n super(SOME, NONE);\n this.name = name;\n }", "public EditTokenDialog() {\r\n \t\tsuper(\"net/rptools/maptool/client/ui/forms/tokenPropertiesDialog.jfrm\");\r\n \r\n \t\tpanelInit();\r\n \t}", "@Override\n\tprotected Dialog onCreateDialog(int id)\n\t{\n\t\tsuper.onCreateDialog(id);\n\t\treturn visitor.instantiateDialog(id);\n\t}", "protected abstract JDialog createDialog();", "public AgentsPropertyModificationDialog(final Element parentElement)\n {\n super(parentElement);\n }", "public Property() {\n\t\tcity=\"\";\n\t\towner=\"\";\n\t\tpropertyName=\"\";\n\t\trentAmount=0;\n\t\tplot= new Plot(0,0,1,1);\n\t}", "public BaseDialog create()\n {\n LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n // instantiate the dialog with the custom Theme\n final BaseDialog dialog = new BaseDialog(context, R.style.Dialog);\n\n View layout = inflater.inflate(R.layout.view_shared_basedialog, null);\n\n //set the dialog's image\n this.icon = (ImageView) layout.findViewById(R.id.view_shared_basedialog_icon);\n\n if (this.imageResource > 0 || this.imageUrl != null)\n {\n this.icon.setVisibility(View.VISIBLE);\n if (this.imageResource > 0)\n {\n this.icon.setBackgroundResource(this.imageResource);\n }\n else\n {\n// TextureRender.getInstance().setBitmap(this.imageUrl, this.icon, R.drawable.no_data_error_image);\n }\n }\n else\n {\n this.icon.setVisibility(View.GONE);\n }\n\n // set check box's text and default value\n this.checkLayout = layout.findViewById(R.id.view_shared_basedialog_checkbox_layout);\n this.checkBox = (CheckBox) layout.findViewById(R.id.view_shared_basedialog_checkbox);\n this.checkBoxTextView = (TextView) layout.findViewById(R.id.view_shared_basedialog_checkbox_text);\n\n if (!TextUtils.isEmpty(this.checkBoxText))\n {\n this.checkLayout.setVisibility(View.VISIBLE);\n this.checkBoxTextView.setText(this.checkBoxText);\n this.checkBox.setChecked(checkBoxDefaultState);\n }\n else\n {\n this.checkLayout.setVisibility(View.GONE);\n }\n\n // set the dialog main title and sub title\n this.maintitleTextView = (TextView) layout.findViewById(R.id.view_shared_basedialog_maintitle_textview);\n this.subtitleTextView = (TextView) layout.findViewById(R.id.view_shared_basedialog_subtitle_textview);\n this.titleDivideTextView = (TextView) layout.findViewById(R.id.view_shared_basedialog_titledivide_textview);\n if (!TextUtils.isEmpty(title1))\n {\n this.maintitleTextView.setText(title1);\n if (this.title1BoldAndBig)\n {\n this.maintitleTextView.setTypeface(null, Typeface.BOLD);\n this.maintitleTextView.setTextSize(17);\n }\n\n this.maintitleTextView.setVisibility(View.VISIBLE);\n }\n else\n {\n this.maintitleTextView.setVisibility(View.GONE);\n }\n\n if (!TextUtils.isEmpty(title2))\n {\n this.subtitleTextView.setText(title2);\n this.subtitleTextView.setVisibility(View.VISIBLE);\n }\n else\n {\n this.subtitleTextView.setVisibility(View.GONE);\n }\n this.titleDivideTextView.setVisibility(View.GONE);\n\n // set the confirm button\n this.positiveButton = ((Button) layout.findViewById(R.id.view_shared_basedialog_positivebutton));\n if (!TextUtils.isEmpty(positiveButtonText))\n {\n this.positiveButton.setText(positiveButtonText);\n this.positiveButton.setVisibility(View.VISIBLE);\n if (positiveButtonClickListener != null)\n {\n this.positiveButton.setOnClickListener(new View.OnClickListener()\n {\n public void onClick(View v)\n {\n positiveButtonClickListener.onClick(dialog, DialogInterface.BUTTON_POSITIVE);\n if (checkBox.isChecked()&&onCheckBoxListener!=null)\n {\n onCheckBoxListener.checkedOperation();\n }\n }\n });\n }\n }\n else\n {\n // if no confirm button just set the visibility to GONE\n this.positiveButton.setVisibility(View.GONE);\n }\n\n // set the cancel button\n this.negativeButton = ((Button) layout.findViewById(R.id.view_shared_basedialog_negativebutton));\n if (!TextUtils.isEmpty(negativeButtonText))\n {\n this.negativeButton.setText(negativeButtonText);\n this.negativeButton.setVisibility(View.VISIBLE);\n if (negativeButtonClickListener != null)\n {\n this.negativeButton.setOnClickListener(new View.OnClickListener()\n {\n public void onClick(View v)\n {\n negativeButtonClickListener.onClick(dialog, DialogInterface.BUTTON_NEGATIVE);\n }\n });\n }\n }\n else\n {\n // if no confirm button just set the visibility to GONE\n this.negativeButton.setVisibility(View.GONE);\n }\n\n // set button's background\n this.buttonDivideTextView = (TextView) layout.findViewById(R.id.view_shared_basedialog_buttondivide_textview);\n if (!TextUtils.isEmpty(negativeButtonText) && !TextUtils.isEmpty(negativeButtonText))\n {\n this.buttonDivideTextView.setVisibility(View.VISIBLE);\n this.positiveButton.setBackgroundResource(R.drawable.view_shared_corner_round_rightbottom);\n this.negativeButton.setBackgroundResource(R.drawable.view_shared_corner_round_leftbottom);\n }\n else\n {\n this.buttonDivideTextView.setVisibility(View.GONE);\n this.positiveButton.setBackgroundResource(R.drawable.view_shared_corner_round_bottom);\n this.negativeButton.setBackgroundResource(R.drawable.view_shared_corner_round_bottom);\n }\n\n // set the content message\n this.contentLayout = layout.findViewById(R.id.view_shared_basedialog_content_layout);\n if (!TextUtils.isEmpty(message))\n {\n this.contentTextView = ((TextView) layout.findViewById(R.id.view_shared_basedialog_content_textview));\n this.contentTextView.setText(message);\n this.contentTextView.setMovementMethod(ScrollingMovementMethod.getInstance());\n }\n else if (contentView != null)\n {\n // if no message set\n // add the contentView to the dialog body\n ((ViewGroup) this.contentLayout).removeAllViews();\n ((ViewGroup) this.contentLayout).addView(contentView, new ViewGroup.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT));\n }\n else\n {\n this.contentLayout.setVisibility(View.GONE);\n }\n\n int[] params = Utils.getLayoutParamsForHeroImage();\n dialog.setContentView(layout, new ViewGroup.LayoutParams(params[0]*4/5, ViewGroup.LayoutParams.MATCH_PARENT));\n return dialog;\n }", "public CrearQuedadaVista() {\n }", "public SpotPropertyManager() {\r\n\t\tsuper();\r\n\t}", "public newRelationship() {\n initComponents();\n }", "private TerminalProperties() {\n this(new TerminalPropertiesBuilder());\n }", "protected void createDialogSize ()\n {\n }", "@FXML\n\tpublic void buttonCreateProductType(ActionEvent event) {\n\t\tString empty = \"\";\n\t\tString name = txtProductTypeName.getText();\n\t\tif (!name.equals(empty)) {\n\t\t\tProductType obj = new ProductType(txtProductTypeName.getText());\n\t\t\ttry {\n\t\t\t\tboolean found = restaurant.addProductType(obj, empleadoUsername); // Se añade a la lista de tipos de\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// producto DEL RESTAURANTE\n\t\t\t\tif (found == false) {\n\t\t\t\t\ttypeOptions.add(name);// Se añade a la lista de tipos de producto para ser mostrada en los combobox\n\t\t\t\t}\n\t\t\t\ttxtProductTypeName.setText(\"\");\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t} else {\n\t\t\tDialog<String> dialog = createDialog();\n\t\t\tdialog.setContentText(\"El tipo de producto a crear debe tener un nombre \");\n\t\t\tdialog.setTitle(\"Error, Campo sin datos\");\n\t\t\tdialog.show();\n\n\t\t}\n\t}", "public CreateNewRepositoryDialog(java.awt.Frame parent, boolean modal) {\n\t\tsuper(parent, modal);\n\t\tinitComponents();\n\t\tGuiUtils.centerOnScreen(this);\n\t}", "private mxPropertiesManager()\n\t{\n\t}", "public ManagedHsmProperties() {\n }", "public Property(Property prop, int regNum) {\n // this code provided by Dave Houtman [2020] personal communication\n this(prop.getXLength(), prop.getYWidth(), prop.getXLeft(), prop.getYTop(), regNum);\n }", "public Property() {\n this(0, 0, 0, 0);\n }", "public InfoDialog() {\r\n\t\tcreateContents();\r\n\t}", "public ViewProperty() {\n initComponents();\n }", "public EntityPropertyBean() {}", "public TypeManager()\n {\n\tlistModel = new DefaultListModel();\n\tallTypes = new Vector();\n setupPrimitiveTypes();\n }", "public GenerateNodesDialog(GUI p){\n\t\tsuper(p, \"Create new Nodes\", true);\n\t\tGuiHelper.setWindowIcon(this);\n\t\tcancel.addActionListener(this);\n\t\tok.addActionListener(this);\n\t\t\n\t\tFont f = distributionModelComboBox.getFont().deriveFont(Font.PLAIN);\n\t\tdistributionModelComboBox.setFont(f);\n\t\tnodeTypeComboBox.setFont(f);\n\t\tconnectivityModelComboBox.setFont(f);\n\t\tinterferenceModelComboBox.setFont(f);\n\t\tmobilityModelComboBox.setFont(f);\n\t\treliabilityModelComboBox.setFont(f);\n\n\t\t// Detect ESCAPE button\n\t\tKeyboardFocusManager focusManager = KeyboardFocusManager.getCurrentKeyboardFocusManager();\n\t\tfocusManager.addKeyEventPostProcessor(new KeyEventPostProcessor() {\n\t\t\tpublic boolean postProcessKeyEvent(KeyEvent e) {\n\t\t\t\tif(!e.isConsumed() && e.getID() == KeyEvent.KEY_PRESSED && e.getKeyCode() == KeyEvent.VK_ESCAPE) {\n\t\t\t\t\tGenerateNodesDialog.this.setVisible(false);\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t}\n\t\t});\n\t\t\n\t\tthis.setLocationRelativeTo(p);\n\t\tthis.parent = p;\n\t}", "protected TypeConverter createTypeConverter() {\n return new DefaultTypeConverter(getInjector());\n }", "RecordPropertyType createRecordPropertyType();", "public Project_Create() {\n initComponents();\n }", "public PSContentType(int typeId, String name, String label, \n String description, String editorUrl, boolean hideFromMenu, \n int objectType)\n {\n super(createKey(typeId));\n \n if (null == name || name.trim().length() == 0)\n throw new IllegalArgumentException(\"non-empty name must be supplied\");\n if (StringUtils.isBlank(label))\n {\n label = name;\n }\n if (null == editorUrl || editorUrl.trim().length() == 0)\n {\n throw new IllegalArgumentException(\n \"non-empty editorUrl must be supplied\");\n }\n else\n {\n //verify url format matches what we say below\n if (!verifyUrlFormat(editorUrl))\n {\n throw new IllegalArgumentException(\n \"incorrect editorUrl format, expected ../appname/resource, got \"\n + editorUrl);\n }\n }\n\n m_name = name;\n m_label = label;\n m_description = null == description ? \"\" : description;\n m_queryRequest = editorUrl.replace('\\\\', '/');\n m_hideFromMenu = hideFromMenu;\n m_objectType = objectType;\n }", "public PropertiesChooser(List<KeyItem> data) {\n\n DefaultListModel defaultListModel = new DefaultListModel();\n for (KeyItem item : data){\n defaultListModel.addElement(item);\n }\n\n initComponents();\n properties.setModel(defaultListModel);\n cbGetters.getModel().setSelected(paramGetters);\n cbBoolean.getModel().setSelected(paramBoolean);\n cbSetters.getModel().setSelected(paramSetters);\n cbJavaDoc.getModel().setSelected(paramJavaDoc);\n cbDomainClass.getModel().setSelected(paramDomainClass);\n }", "public ACLPropertyList() {\n try {\n jbInit();\n }\n catch (Exception e) {\n e.printStackTrace();\n }\n }" ]
[ "0.62322056", "0.60872847", "0.5933299", "0.5808391", "0.5804592", "0.5745049", "0.56797993", "0.5587673", "0.55667573", "0.55535316", "0.55311626", "0.5501275", "0.5487318", "0.5431848", "0.5357267", "0.5351479", "0.534066", "0.5336432", "0.5326462", "0.5294378", "0.5263538", "0.5240996", "0.52365845", "0.5223063", "0.5215408", "0.5152624", "0.5145362", "0.5137198", "0.5125201", "0.5122618", "0.50928813", "0.50902677", "0.5086311", "0.50739384", "0.5067164", "0.50642735", "0.5063428", "0.5032371", "0.5011712", "0.5008335", "0.50028324", "0.49956515", "0.49918026", "0.49798736", "0.4976012", "0.4973867", "0.49724054", "0.49694887", "0.49557558", "0.49547678", "0.4954613", "0.4950989", "0.49213132", "0.49006176", "0.48783714", "0.48772937", "0.4872804", "0.48704937", "0.4861939", "0.4844022", "0.48428315", "0.48363444", "0.48306865", "0.48236698", "0.4816754", "0.48008826", "0.4794936", "0.47922352", "0.47854203", "0.4774422", "0.4773092", "0.47715682", "0.4768048", "0.47674397", "0.4764916", "0.47645473", "0.47557375", "0.4751308", "0.47511402", "0.47509295", "0.47446442", "0.47362173", "0.47309527", "0.47297677", "0.4728946", "0.4727591", "0.47270495", "0.47235772", "0.4722362", "0.47171682", "0.4714065", "0.47117582", "0.4697528", "0.46922797", "0.46894434", "0.46870303", "0.4679255", "0.4677317", "0.46747106", "0.46740162" ]
0.5852334
3
showDialog shows the dialog and returns if the user pressed th OK button.
public boolean showDialog() { if (this.cmbTypes.getItemCount() > 0) { this.cmbTypes.setSelectedIndex(0); } this.returnValue = false; this.setVisible(true); return this.returnValue; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "DialogResult show();", "void CloseOkDialog();", "private void successDialog() {\n AlertDialog dialog = _dialogFactory.createDialog(this, R.string.completed, R.string.success);\n\n dialog.setButton(DialogInterface.BUTTON_NEUTRAL, getString(R.string.ok), new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n gotoGameEnd(IGameConstants.GAME_SUCCESS);\n }\n });\n\n dialog.setCancelable(false);\n _dialogActive = true;\n dialog.show();\n }", "@FXML\r\n private void handleOk() {\r\n if (isInputValid()) {\r\n actualizarEntidad(this.entidad);\r\n\r\n okClicked = true;\r\n dialogStage.close();\r\n }\r\n }", "@Override\n\tpublic boolean performOk() {\n\t\t// Get the preference store\n\t\tfinal IPreferenceStore preferenceStore = getPreferenceStore();\n\n\t\t// Set the values from the fields\n\t\tpreferenceStore.setValue(DEFAULT_PASSWORD_LENGTH, spiLength.getSelection());\n\t\tpreferenceStore.setValue(USE_LOWERCASE_LETTERS, btnUseLowercase.getSelection());\n\t\tpreferenceStore.setValue(USE_UPPERCASE_LETTERS, btnUserUppercase.getSelection());\n\t\tpreferenceStore.setValue(USE_DIGITS, btnUseDigits.getSelection());\n\t\tpreferenceStore.setValue(USE_SYMBOLS, btnUseSymbols.getSelection());\n\t\tpreferenceStore.setValue(USE_EASY_TO_READ, btnUseEaseToRead.getSelection());\n\t\tpreferenceStore.setValue(USE_HEX_ONLY, btnUseHexOnly.getSelection());\n\n\t\t// Return true to allow dialog to close\n\t\treturn true;\n\t}", "protected void closeDialogOk() {\n dispose();\n }", "private void onOkButtonPressed() {\n\t\tconfirm = true;\n\t\tif (template.getAskDimension()) {\n\t\t\ttry {\n\t\t\t\twidth = Integer.parseInt(widthInputField.getFieldString());\n\t\t\t\twidthInputField.setFieldColor(GameFrame.getStandardFieldColor());\n\t\t\t} catch (Exception except) {\n\t\t\t\twidthInputField.setFieldColor(GameFrame.getWrongFieldColor());\n\t\t\t\tconfirm = false;\n\t\t\t}\n\t\t\ttry {\n\t\t\t\theight = Integer.parseInt(heightInputField.getFieldString());\n\t\t\t\theightInputField.setFieldColor(GameFrame.getStandardFieldColor());\n\t\t\t} catch (Exception except) {\n\t\t\t\theightInputField.setFieldColor(GameFrame.getWrongFieldColor());\n\t\t\t\tconfirm = false;\n\t\t\t}\n\t\t\tif(!confirm)\n\t\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (template.getAskLoading()) {\n\t\t\tint result = savefileChooser.showOpenDialog(this);\n\t\t\tif (result != JFileChooser.APPROVE_OPTION) {\n\t\t\t\tconfirm = false;\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t\n\t\tdispatchEvent(new WindowEvent(this, WindowEvent.WINDOW_CLOSING));\n\t}", "private void dialogExit() {\n\t\tint result = showConfirmDialog(frmRentCalc, \"Вы действительно ходите выйти?\", \"Окно подтверждения\", YES_NO_OPTION, QUESTION_MESSAGE);\r\n\t\tif (result == YES_OPTION) {\r\n\t\t\tSystem.exit(0);\r\n\t\t} else {\r\n\t\t\tif (result == NO_OPTION) {\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void onClick(DialogInterface dialog, int which) {\n Toast.makeText(getApplicationContext(), \"Pressed OK\",\n Toast.LENGTH_SHORT).show();\n }", "private void showReturnDialog(){\n final Dialog verificationDialog = new Dialog(this, R.style.DialogTheme);\n verificationDialog.setContentView(R.layout.dialog_verification);\n TextView verificationText = (TextView) verificationDialog.findViewById(R.id.verification_text);\n Button cancelButton = (Button) verificationDialog.findViewById(R.id.cancel_button);\n Button acceptButton = (Button) verificationDialog.findViewById(R.id.accept_button);\n verificationDialog.show();\n\n verificationText.setText(R.string.verification_return);\n\n // Setting up a listener for the Cancel Button:\n cancelButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n // Play a proper sound:\n if(mSoundStatus.equals(Constants.ON)) mPutPieceSound.start();\n\n // Dismiss dialog:\n verificationDialog.dismiss();\n\n }\n });\n\n // Setting up a listener for the Done Button:\n acceptButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n // Play a proper sound:\n if(mSoundStatus.equals(Constants.ON)) mPutPieceSound.start();\n\n // Dismiss dialog:\n verificationDialog.dismiss();\n\n // Go back to main menu:\n\n // Creating an intent:\n Intent mainIntent = new Intent(OfflineGameActivity.this , MainActivity.class);\n // Starting the Main Activity:\n startActivity(mainIntent);\n\n }\n });\n\n }", "public void showSucceedDeleteDialog() {\n\t\tString msg = getApplicationContext().getResources().getString(\n\t\t\t\tR.string.MSG_DLG_LABEL_DELETE_ITEM_SUCCESS);\n\t\tfinal AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(\n\t\t\t\tthis);\n\t\talertDialogBuilder\n\t\t\t\t.setMessage(msg)\n\t\t\t\t.setCancelable(false)\n\t\t\t\t.setPositiveButton(\n\t\t\t\t\t\tgetApplicationContext().getResources().getString(\n\t\t\t\t\t\t\t\tR.string.MSG_DLG_LABEL_OK),\n\t\t\t\t\t\tnew DialogInterface.OnClickListener() {\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int id) {\n\t\t\t\t\t\t\t\tfinish();\n\t\t\t\t\t\t\t\tstartActivity(getIntent());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\tAlertDialog alertDialog = alertDialogBuilder.create();\n\t\talertDialog.show();\n\n\t}", "@FXML\n\tprivate void handleOk() {\n\n\t\tokClicked = true;\n\t\tdialogStage.close();\n\n\t}", "void okButtonClicked();", "private void showDialog() {\n if (!pDialog.isShowing())\n pDialog.show();\n }", "@Override\n public void handle(ActionEvent event) {\n alert = new Alert(AlertType.CONFIRMATION);\n //Optional title. If not used the standard title \"Confiramation\" will be displayed\n //To remove the title use alert.setTitle(null);\n alert.setTitle(\"Confirmation Dialog\");\n //Optional header.If not used the standard header \"Confiramation\" will be displayed\n //To remove the title use alert.setHeaderText(null); \n alert.setHeaderText(\"Please answer the question!\");\n alert.setContentText(initText);\n //Display the dialog and get the result from the user action\n Optional<ButtonType> result = alert.showAndWait();\n if (result.get() == ButtonType.OK){\n // the user clicked OK\n alert = new Alert(AlertType.INFORMATION);\n alert.setTitle(\"Information Dialog\");\n alert.setHeaderText(\"Important message for you!\");\n alert.setContentText(\"Happiness is ephemeral!\");\n alert.showAndWait(); \n //the user clocked Cancel\n } else {\n // ... user chose CANCEL or closed the dialog\n //Warning Dialog\n alert = new Alert(AlertType.WARNING);\n alert.setTitle(\"Warning Dialog\");\n alert.setHeaderText(\"Read the Warning!\");\n alert.setContentText(\"You must like Java - Shall make you Happy!\");\n alert.showAndWait(); \n }\n }", "@FXML public void handleOk() {\n\t\tSystem.out.println(\"OK clicked!\");\n\t\t\n\t\tif (checkParameters().equals(ErrorCode.BatchSize)) {\n\t\t\tAlertBox.display(\"Error\", \"Please make sure to set valid values for the parameters [Batch Size]\", \"OK\");\n\t\t} else if (checkParameters().equals(ErrorCode.ConfidenceFactor)) {\n\t\t\tAlertBox.display(\"Error\", \"Please make sure to set valid values for the parameters [Confidence Factor]\", \"OK\");\n\t\t} else if (checkParameters().equals(ErrorCode.MinNumObj)) {\n\t\t\tAlertBox.display(\"Error\", \"Please make sure to set valid values for the parameters [Min Num Obj]\", \"OK\");\n\t\t} else if (checkParameters().equals(ErrorCode.NumDecimalPlaces)) {\n\t\t\tAlertBox.display(\"Error\", \"Please make sure to set valid values for the parameters [Num Decimal Places]\", \"OK\");\n\t\t} else if (checkParameters().equals(ErrorCode.NumFolds)) {\n\t\t\tAlertBox.display(\"Error\", \"Please make sure to set valid values for the parameters [Num Folds]\", \"OK\");\n\t\t} else if (checkParameters().equals(ErrorCode.Seed)) {\n\t\t\tAlertBox.display(\"Error\", \"Please make sure to set valid values for the parameters [Seed]\", \"OK\");\n\t\t} else if (checkParameters().equals(ErrorCode.Fine)) {\n\t\t\tsaveParameters();\n\t\t\tClassifiersWindowsManager.stage.close();\n\t\t}\n\t}", "private void quitDialog() {\r\n\t\tdispose();\r\n\t}", "private void okEvent() {\n\t\tYAETMMainView.PRIVILEGE = (String)loginBox.getSelectedItem();\n\t\tshowMain();\n\t\tcloseDialog();\n\t}", "private void mIesireActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mIesireActionPerformed\n int response = JOptionPane.showConfirmDialog(this, \"Doriti sa parasiti aplicatia?\", \"Confirmare\", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE);\n if (response == JOptionPane.YES_OPTION) {\n System.exit(0);\n }\n }", "@FXML\n private void handleOKPressed() {\n\n if (Authenticator.validatePassword(accountId.getText(), password.getText())) {\n application.accountLogging(accountId.getText());\n confirmLogin = true;\n dialogStage.close();\n } else {\n errorMessage.setVisible(true);\n }\n }", "private void okButtonActionPerformed() {\n\n saveConsoleText(consoleTextArea);\n\n setVisible(false);\n\n if (mainFrame == null && !isBasicUI) {\n System.exit(0);\n }\n }", "public boolean onConfirmClicked(DialogActivity dialog)\n {\n return mApplyButton.performClick();\n }", "@Override\n\t\t\t\tpublic void confirm() {\n\t\t\t\t\tdialog.dismiss();\n\t\t\t\t}", "void ShowOkDialog(String title, String message, OnClickListener listener);", "protected abstract boolean onOkClicked();", "private void buildSuccessDialog(){\n\t\tmainDialog = new JDialog(mainWindow,\"Success!\");\n\t\t//mainDialog.getContentPane().removeAll();\n\t\tJPanel p1 = new JPanel (new BorderLayout());\n\t\tp1.setBackground(Color.white);\n\t\t//success text\n\t\tJLabel lab = new JLabel(\"Login Successful!\");\n\t\tlab.setFont( new Font(\"URW Gothic L\",Font.BOLD, 15));\n\t\tlab.setAlignmentX(Component.LEFT_ALIGNMENT);\n\t\tp1.add(lab, BorderLayout.NORTH);\n\t\t\n\t\t//success image\n\t\tImageIcon img = new ImageIcon (\"./client_images/success.png\");\n\t\timg = new ImageIcon ( img.getImage().getScaledInstance(100,100,Image.SCALE_DEFAULT));\n\t\tJLabel imgLabel = new JLabel(img);\n\t\tp1.add(imgLabel,BorderLayout.CENTER);\n\n\t\tJButton ok = new JButton (\"Ok\");\n\t\t//pressing ok closes the application\n\t\t//register action listener (anonymous inner class is sufficient)\n\t\tok.addActionListener (new ActionListener(){\n\n\t\t\t\t\t\tpublic void actionPerformed(ActionEvent e){\n\t\t\t\t\t\t\t//call GUI's close up method to gracefully release all\n\t\t\t\t\t\t\t//resources\n\t\t\t\t\t\t\tClientGui.this.closeUp();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t);\n\n\t\tp1.add(ok,BorderLayout.SOUTH);\n\n\t\t//settings of the dialog box\n\t\tmainDialog.getContentPane().add(p1);\n\t\tmainDialog.setLocationRelativeTo(mainWindow);\n\t\tmainDialog.setDefaultCloseOperation(JDialog.DO_NOTHING_ON_CLOSE);\n\t\tmainDialog.setModal(true);\n\t\tmainDialog.setMinimumSize(new Dimension(300,200));\n\t\tmainDialog.setMaximumSize(new Dimension(300,200));\n\t\tmainDialog.setResizable(false);\n\t\tmainDialog.setVisible(true);\n\t\n\t}", "private void showDialog() {\n try {\n pDialog.setMessage(getString(R.string.please_wait));\n pDialog.setIndeterminate(false);\n pDialog.setCancelable(false);\n pDialog.setCanceledOnTouchOutside(false);\n pDialog.show();\n } catch (Exception e) {\n // TODO: handle exception\n }\n\n }", "protected void okPressed()\n\t{\n\t\t((NewProjectComposite) this.getDialogArea()).updateProject(project);\n\t\tsuper.okPressed();\n\t}", "@FXML\n private void handleOk() {\n if (isInputValid()) {\n gem.setGemName(gemNameField.getText());\n gem.setGemValue(Integer.parseInt(gemValueField.getText()));\n gem.setDescription(gemDescripField.getText());\n\n okClicked = true;\n dialogStage.close();\n }\n }", "@FXML\n\tprivate void handleOk() {\n\t\tif (isValidInput()) {\n\t\t\tsaveCurrentAcknowledgment();\n\t\t\t\n\t\t\tif (isNew) {\n\t\t\t\tmain.getDbHelper().insertAcknowledgment(acknowledgment);\n\t\t\t\tmain.getAcknowledgmentData().clear();\n\t\t\t\tmain.getAcknowledgmentData().addAll(main.getDbHelper().retrieveAcknowledgmentList());\n\t\t\t} else {\n\t\t\t\tmain.getDbHelper().updateAcknowledgment(acknowledgment);\n\t\t\t\tmain.getAcknowledgmentData().clear();\n\t\t\t\tmain.getAcknowledgmentData().addAll(main.getDbHelper().retrieveAcknowledgmentList());\t\n\t\t\t}\n\t\t\t\n\t\t\tokClicked = true;\n\t\t\tdialogStage.close();\n\t\t}\n\t}", "protected void okPressed() {\n\t\tconfig.setExportThreadCount(txtThreadCount.getSelection());\n\t\tconfig.setImportThreadCount(txtMaxImportThreadCountPerTable.getSelection());\n\t\tconfig.setCommitCount(txtCommitCount.getSelection());\n\t\tif (txtPageCount != null) {\n\t\t\tconfig.setPageFetchCount(txtPageCount.getSelection());\n\t\t}\n\t\tif (txtFileMaxSize != null) {\n\t\t\tconfig.setMaxCountPerFile(txtFileMaxSize.getSelection());\n\t\t}\n\t\tconfig.setImplicitEstimate(btnImplicitEstimate.getSelection());\n\t\tsuper.okPressed();\n\t}", "public void submitText() {\r\n \t\tthis.dialog.clickOK();\r\n \t}", "public boolean onOkClicked() {\n try {\n if (form.isValid()) {\n String userName = form.getFieldValue(SysUser.USER_NAME_PROPERTY);\n String userAccount = form.getFieldValue(SysUser.USER_ACCOUNT_PROPERTY);\n String passWord = form.getFieldValue(SysUser.USER_PASSWORD_PROPERTY);\n String cPassWord = form.getFieldValue(\"cPassWord\");\n if (!passWord.equals(cPassWord)) {\n form.getField(SysUser.USER_PASSWORD_PROPERTY).setValue(\"\");\n form.getField(\"cPassWord\").setValue(\"\");\n form.getField(SysUser.USER_PASSWORD_PROPERTY).setFocus(true);\n addModel(\"msg\", \"密码不一致\");\n } else if (SysUserDao.getInstance().canCreate(getSysUser().getObjectContext(), userAccount)) {\n if (SysUserDao.getInstance().createSysUser(getSysUser().getObjectContext(), userName, userAccount, passWord)) {\n setRedirect(UserListPage.class);\n } else {\n addModel(\"msg\", \"失败\");\n }\n } else {\n form.getField(SysUser.USER_ACCOUNT_PROPERTY).setFocus(true);\n addModel(\"msg\", \"账号已存在\");\n }\n }\n } catch (Exception e) {\n logger.error(e.getLocalizedMessage(), e);\n }\n return true;\n }", "@FXML\n\tprivate void handleOk() {\n\t\tif (isInputValid()) {\n\t\t\titem.setDate(DateUtil.parse(dateField.getText()));\n\t\t\titem.setCategory(categoryField.getSelectionModel().getSelectedItem());\n\t\t\titem.setUse(useField.getText());\n\t\t\t\n\t\t\tString textBefore = amountField.getText();\n\t\t\tString textAfter = null;\n\t\t\tif(textBefore.contains(\",\")) {\n\t\t\t\ttextAfter = textBefore.replace(\",\", \".\");\n\t\t\t} else {\n\t\t\t\ttextAfter = textBefore;\n\t\t\t}\n\t\t\titem.setAmount(Double.parseDouble(textAfter));\n\t\t\titem.setDistributionKind(distributionKindField.getText());\n\n\t\t\tokClicked = true;\n\t\t\tdialogStage.close();\n\t\t}\n\t}", "@FXML\r\n\tprivate void handleOk() {\r\n\tif (isDateInputValid()) {\r\n\t\t\tLocalDate date = startdate.getValue();\r\n\t\t\tLocalDate findate = enddate.getValue();\r\n\t\t\tleavedata.setStartdate(date);\r\n\t\t\tleavedata.setEnddate(findate);\r\n\r\n\t\t\tEmployee employee = namefield.getSelectionModel().getSelectedItem();\r\n\t\t\tleavedata.setEmployee(employee);\r\n\t\t\t\r\n\t\t\tokClicked = true;\r\n\t\t\trosterService.addLeaveData(leavedata);\r\n\t\t\tAlert alert = new Alert(AlertType.INFORMATION);\r\n\t\t\talert.setTitle(\"Information Dialog\");\r\n\t\t\talert.setHeaderText(null);\r\n\t\t\talert.setContentText(\"Update Succesfull\");\r\n\t\t\talert.showAndWait();\r\n\t\t\tdialogStage.close();\r\n\t\t}\r\n\t}", "public void actionPerformed (ActionEvent e)\n\t\t\t\t{\n\t\t\t\talertOK();\n\t\t\t\t}", "public int showOkCancelMessage(String title, String msg) {\r\n return JOptionPane.showConfirmDialog(this,\r\n\t\t\t\t\t msg, title, JOptionPane.OK_CANCEL_OPTION);\r\n }", "private void closeDialog(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_closeDialog\n doClose(RET_OK);\n }", "public void working() {\n\t\t Dialog d = new Dialog(this);\r\n\t\t d.setTitle(\"hech yea!\");\r\n\t\t TextView tv = new TextView(this);\r\n\t\t tv.setText(\"Success\");\r\n\t\t d.setContentView(tv);\r\n\t\t d.show();\t\r\n\t}", "void CloseWaitDialog();", "private void onOK() {\n isOkClicked = true;\n dispose();\n }", "public void setOKDialog(String title, String message){\n\t\tJOptionPane.showOptionDialog(null, message, title,\n\t\t\t\tJOptionPane.PLAIN_MESSAGE, JOptionPane.INFORMATION_MESSAGE,\n\t\t\t\tnull, new Object[]{\"OK\"}, \"OK\");\n\t}", "public void okPressed() {\r\n\t\t\r\n\t\tif (albumname.getText().trim().toString().equals(\"\")) {\r\n\t\t\t\r\n\t\t\tAlert alert = new Alert(AlertType.WARNING);\r\n\t\t\talert.setTitle(\"ALERT\");\r\n\t\t\talert.setHeaderText(\"Error\");\r\n\t\t\talert.setContentText(\"Must enter an album name.\");\r\n\t\t\talert.showAndWait();\r\n\t\t\treturn;\r\n\t\t}\r\n\t\r\n\t\tString albumName = albumname.getText().trim().toString();\r\n\t\t\r\n\t\tif (checkForDuplicateAlbumNames(albumName)==true) {\r\n\t\t\tAlert alert = new Alert(AlertType.WARNING);\r\n\t\t\talert.setTitle(\"ALERT\");\r\n\t\t\talert.setHeaderText(\"Duplicate Names\");\r\n\t\t\talert.setContentText(\"An album already has that name. \\n Enter a new name.\");\r\n\t\t\talert.showAndWait();\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\r\n\t\tAlbum newalbum = new Album(albumName);\r\n\t\tAlbumsController.getCurrentUser().addAlbumToUser(newalbum);\r\n\t\tLoginController.saveData(LoginController.users);\r\n\t\t\r\n\t\t\r\n\t\t//go to albums controller and load corresponding fxml\r\n\t\t\t\tFXMLLoader loader = new FXMLLoader(getClass().getResource(\"Albums.fxml\"));\r\n\t\t\t\ttry{\r\n\t\t\t\t\tParent parent = (Parent) loader.load();\r\n\t\t\t\t\tAlbumsController controller = loader.<AlbumsController>getController();\r\n\t\t\t\t\tScene scene = new Scene(parent);\r\n\t\t\t\t\t\r\n\t\t\t\t\t// ok is the button pressed action event\r\n\t\t\t\t\tStage stage = (Stage) ((Node) ok).getScene().getWindow();\r\n\t\t\t\t\tcontroller.start(stage,AlbumsController.getCurrentUser());\r\n\t\t\t\t\tstage.setScene(scene);\r\n\t\t\t\t\tstage.centerOnScreen();\r\n\t\t\t\t\tstage.show();\r\n\t\t\t\t}\r\n\t\t\t\tcatch (Exception exception) {\r\n\t\t\t\t\texception.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}", "@FXML\n\tprivate void handleOk() {\n\t\ttry {\n\t\t\ttypeDAO.supprimerType(new Type(listIdType.get(comboboxtype.getSelectionModel().getSelectedIndex()),\"\",\"\"));\n\t\t\tnew Popup(\"Type \"+comboboxtype.getValue()+\" supprimer !\");\n\t\t} catch (ConnexionBDException e) {\n\t\t\tnew Popup(e.getMessage());\n\t\t}\n\t\tokClicked = true;\n\t\tdialogStage.close();\n\t}", "private void openCreateAccountDialog()\n {\n testDialog();\n\n }", "private void showSuccessDialog(){\n\n String successMsg = getString(R.string.msgDeviceRegistered);\n AlertDialog dialog = new AlertDialog.Builder(ValidationActivity.this).create();\n dialog.setMessage(successMsg);\n dialog.setCancelable(false);\n dialog.setButton(DialogInterface.BUTTON_POSITIVE, \"Fertig\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n\n publishCommand(\"AUTH_END\");\n\n // disconnect mqtt-client and go to main-activity\n try {\n IMqttToken disconToken = mqttClient.disconnect();\n disconToken.setActionCallback(new IMqttActionListener() {\n @Override\n public void onSuccess(IMqttToken asyncActionToken) {\n\n // Go to main-activity\n Intent intent = new Intent(ValidationActivity.this, MainActivity.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK); // clear activity back-stack\n startActivity(intent);\n }\n\n @Override\n public void onFailure(IMqttToken asyncActionToken,\n Throwable exception) {\n // something went wrong, but probably we are disconnected anyway\n }\n });\n } catch (MqttException e) {\n e.printStackTrace();\n }\n\n }\n });\n\n dialog.show();\n dialog.getButton(DialogInterface.BUTTON_POSITIVE).setTextColor(getResources().getColor(R.color.colorPrimary));\n }", "public static boolean showConfirmDialog(String action) {\n\tint reply = JOptionPane.showConfirmDialog(null, \"Are you sure you wish to \" + action + \"?\", \"Confirmation\",\n\t\tJOptionPane.YES_NO_OPTION);\n\t\n\treturn reply == JOptionPane.YES_OPTION;\n }", "void ShowWaitDialog(String title, String message);", "public void cmdOk() {\n\n\t\tif (!m_actionscombo.isValueInModel()) {\n\t\t\tString msg = I18N.getLocalizedMessage(\"Invalid Action Name\");\n\t\t\tString title = I18N.getLocalizedMessage(\"Error\");\n\t\t\tJOptionPane.showMessageDialog(null, msg, title, JOptionPane.ERROR_MESSAGE);\n\t\t} else\n\t\t\tsuper.cmdOk();\n\t}", "private void showpDialog() {\n if (!pDialog.isShowing())\n pDialog.show();\n }", "private int askUserForSaveFile()\n {\n final JOptionPane optionPane = new JOptionPane(this.dialogExitMessage,\n JOptionPane.CLOSED_OPTION, JOptionPane.YES_NO_CANCEL_OPTION, this.dialogExitIcon);\n dialogFactory.showDialog(optionPane, this.dialogExitTitle, true);\n final int decision = getOptionFromPane(optionPane);\n return decision;\n }", "public static void showDialog() {\n\t\tdialog.setLocationRelativeTo(Cytoscape.getDesktop());\n\t\tdialog.setVisible(true);\n\t}", "public void OnOkClick()\r\n {\r\n\r\n }", "public static OkDialog waitForInfoDialog() {\n\t\treturn waitForDialogComponent(OkDialog.class);\n\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tint dialogButton = JOptionPane.YES_NO_OPTION;\n\t\t\t\tint dialogResult = JOptionPane.showConfirmDialog (null, new String(ApplicationSession.instance().getString(\"quit?\")),\"Warning\",dialogButton);\n\t\t\t\tif(dialogResult == JOptionPane.YES_OPTION){\n\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t}", "@Override\n\tpublic void okPressed() {\n\t\t_text = _noteTextField.getText();\n\t\tsetReturnCode(OK);\n\t\tclose();\n\t}", "void okButton_actionPerformed(ActionEvent e)\n\t{\n\t\tpropertiesEditPanel.saveChanges();\n\t\tcloseDlg();\n\t\tokPressed = true;\n }", "private void showDialog(String msg) {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(msg)\n .setCancelable(false)\n .setPositiveButton(R.string.yes, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n }\n });\n AlertDialog alert = builder.create();\n alert.show();\n }", "@FXML\r\n private void handleOk() {\r\n if (isInputValid()) {\r\n video.setName(nameField.getText());\r\n video.setUrl(urlField.getText());\r\n\r\n okClicked = true;\r\n dialogStage.close();\r\n }\r\n }", "void onOkButtonPressed();", "@Override\n public void onDialogPositiveClick(DialogFragment dialog) {\n // User touched the dialog's positive button\n Toast.makeText(this, \"OK\", Toast.LENGTH_LONG).show();\n\n }", "public void testShowModalDialog() {\n System.out.println(\"showModalDialog\");\n Wizard instance = new Wizard();\n int expResult = 0;\n int result = instance.showModalDialog();\n assertEquals(expResult, result);\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n Toast.makeText(getActivity(), \"clicked okay\", Toast.LENGTH_SHORT).show();\n }", "@FXML\r\n private void handleOk() {\r\n if (isInputValid()) {\r\n \temployee.setId(Integer.parseInt(idLabel.getText()));\r\n \temployee.setFirstName(firstNameField.getText());\r\n \temployee.setLastName(lastNameField.getText());\r\n \temployee.setIndustry(industryField.getText());\r\n \temployee.setWorkType(workTypeField.getText());\r\n \temployee.setAddress(addressField.getText());\r\n \t\r\n\r\n okClicked = true;\r\n dialogStage.close();\r\n }\r\n }", "private void showDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"User created successfully\");\n builder.setIcon(R.drawable.ic_shield);\n builder.setCancelable(true);\n builder.setPositiveButton(\n \"Continue\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n finish();\n }\n });\n AlertDialog alert11 = builder.create();\n alert11.show();\n Window window = alert11.getWindow();\n assert window != null;\n WindowManager.LayoutParams wlp = window.getAttributes();\n wlp.gravity = Gravity.CENTER;\n wlp.y = 270;\n wlp.flags &= ~WindowManager.LayoutParams.FLAG_DIM_BEHIND;\n window.setAttributes(wlp);\n }", "public void Continue(String downloadPath, boolean showDialog);", "private void buttonOkJDialogActionPerformed(ActionEvent e) {\n IdFail.dispose();\n }", "private void okPressed() {\n String destPath = pathField.getText();\n \n // Resolves destination folder\n // TODO: move those I/O bound calls to job as they can lock the main thread\n Object ret[] = FileToolkit.resolvePath(destPath, mainFrame.getActiveTable().getCurrentFolder());\n // The path entered doesn't correspond to any existing folder\n if (ret==null || (files.size()>1 && ret[1]!=null)) {\n showErrorDialog(Translator.get(\"this_folder_does_not_exist\", destPath));\n return;\n }\n \n AbstractFile destFolder = (AbstractFile)ret[0];\n String newName = (String)ret[1];\n \t\t\n // Retrieve default action when a file exists in destination, default choice\n // (if not specified by the user) is 'Ask'\n int defaultFileExistsAction = fileExistsActionComboBox.getSelectedIndex();\n if(defaultFileExistsAction==0)\n defaultFileExistsAction = FileCollisionDialog.ASK_ACTION;\n else\n defaultFileExistsAction = DEFAULT_ACTIONS[defaultFileExistsAction-1];\n // We don't remember default action on purpose: we want the user to specify it each time,\n // it would be too dangerous otherwise.\n \t\t\n startJob(destFolder, newName, defaultFileExistsAction);\n }", "@Override\r\n\tprotected void onOkSelection(SelectionEvent e) {\n\t\tSystem.out.println(\"Ok button implementation\");\r\n\t}", "@Override\n public void onClick(DialogInterface dialog, int id) {\n mListener.onDialogPositiveClick(YesNoDialog.this, callback_id);\n }", "public void cancelDialog() {dispose();}", "@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tsetResult(0x26, null);\n\t\t\t\t\t\tfinish();\n\t\t\t\t\t}", "private void showDialog() {\n if (!progressDialog.isShowing())\n progressDialog.show();\n }", "public void handleExit(){\n if(JOptionPane.showConfirmDialog(null,\"Do you really wanna exit\",\"Confirm\",JOptionPane.WARNING_MESSAGE,\n JOptionPane.YES_OPTION)==JOptionPane.YES_OPTION){System.exit(0);}\n else{\n return;\n }\n\n\n\n }", "private void showInputDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"App info\");\n builder.setMessage(message);\n builder.setPositiveButton(\" Done \", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n dialog.dismiss();\n }\n });\n builder.show();\n }", "protected void dialog() {\n TextInputDialog textInput = new TextInputDialog(\"\");\n textInput.setTitle(\"Text Input Dialog\");\n textInput.getDialogPane().setContentText(\"Nyt bord nr: \");\n textInput.showAndWait()\n .ifPresent(response -> {\n if (!response.isEmpty()) {\n newOrderbutton(response.toUpperCase());\n }\n });\n }", "private void showCheckDialog() {\n AlertDialog.Builder showAuditAlert = new AlertDialog.Builder(this); // Create Alert dialog\n showAuditAlert.setTitle(\"Total prize\"); // Set title\n showAuditAlert.setMessage(\"= \"+mydb.getResultDayAudit(year,month,day).intValue()+\"\"); // Set message\n\n showAuditAlert.setPositiveButton(\"Done\",\n new DialogInterface.OnClickListener()\n { // Can hear \"CLICK\"\n @Override\n public void onClick(DialogInterface dialog,int which)\n {\n \tdialog.dismiss(); // CLICK then disappear\n }\n }\n );\n showAuditAlert.show(); // Show dialog that created upper this line\n }", "public void onClick(DialogInterface dialog, int which) {\n alertDialog.dismiss();\n Intent i = new Intent();\n i.putExtra(\"accept\", \"true\");\n setResult(Activity.RESULT_OK, i);\n DriverOrderDetailActivity.this.finish();\n\n }", "public void handleActionOk() {\n\t\tsuper.handleActionOk();\n\t\tnewModeOkApply();\n\t\tthis.getDocumentView().close();\n\t}", "public void confirmExit() {\n boolean confirmOnExit = getIntent().getExtras().getBoolean(MapsActivity.PARAMETERS.CONFIRM_ON_EXIT, true);\n if (confirmOnExit) {\n new AlertDialog.Builder(this).setTitle(R.string.button_confirm_exit_title)\n .setMessage(R.string.button_confirm_exit)\n .setPositiveButton(android.R.string.yes, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n finish();\n return;\n }\n }).setNegativeButton(android.R.string.no, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n // do nothing\n }\n }).show();\n } else {\n finish();\n }\n }", "private void okAction()\r\n\t{\r\n\t\tString navn = txfInput[0].getText().trim();\r\n\r\n\t\tint telefonNr = -1;\r\n\t\ttry\r\n\t\t{\r\n\t\t\ttelefonNr = Integer.parseInt(txfInput[1].getText().trim());\r\n\t\t} catch (NumberFormatException ex)\r\n\t\t{\r\n\t\t\t// do nothing\r\n\t\t}\r\n\r\n\t\tString vej = txfInput[2].getText().trim();\r\n\r\n\t\tint nr = -1;\r\n\t\ttry\r\n\t\t{\r\n\t\t\tnr = Integer.parseInt(txfInput[3].getText().trim());\r\n\t\t} catch (NumberFormatException ex)\r\n\t\t{\r\n\t\t\t// do nothing\r\n\t\t}\r\n\r\n\t\tString etage = txfInput[4].getText().trim();\r\n\r\n\t\tint postNr = -1;\r\n\t\ttry\r\n\t\t{\r\n\t\t\tpostNr = Integer.parseInt(txfInput[5].getText().trim());\r\n\t\t} catch (NumberFormatException ex)\r\n\t\t{\r\n\t\t\t// do nothing\r\n\t\t}\r\n\r\n\t\tString by = txfInput[6].getText().trim();\r\n\t\tString land = txfInput[7].getText().trim();\r\n\r\n\t\tif (navn.length() == 0)\r\n\t\t{\r\n\t\t\tlblError.setText(\"Navn er tom\");\r\n\t\t\treturn;\r\n\t\t} else if (telefonNr <= 0)\r\n\t\t{\r\n\t\t\tlblError.setText(\"Telefon nr er ugyldigt\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\telse if (vej.length() == 0)\r\n\t\t{\r\n\t\t\tlblError.setText(\"Vej er tom\");\r\n\t\t\treturn;\r\n\t\t} else if (nr <= 0)\r\n\t\t{\r\n\t\t\tlblError.setText(\"Nr er ugyldigt\");\r\n\t\t\treturn;\r\n\t\t} else if (postNr <= 0)\r\n\t\t{\r\n\t\t\tlblError.setText(\"Post Nr er ugyldigt\");\r\n\t\t\treturn;\r\n\t\t} else if (by.length() == 0)\r\n\t\t{\r\n\t\t\tlblError.setText(\"By er ugyldigt\");\r\n\t\t\treturn;\r\n\t\t} else if (land.length() == 0)\r\n\t\t{\r\n\t\t\tlblError.setText(\"Land er tom\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tFirma firma = null;\r\n\t\ttry\r\n\t\t{\r\n\t\t\tfirma = lvwFirmaer.getSelectionModel().getSelectedItem();\r\n\t\t} catch (NullPointerException ex)\r\n\t\t{\r\n\t\t\t// do nothing\r\n\t\t}\r\n\r\n\r\n\t\tLedsager ledsager = null;\r\n\t\ttry\r\n\t\t{\r\n\t\t\tledsager = lvwLedsagere.getSelectionModel().getSelectedItem();\r\n\t\t} catch (NullPointerException ex)\r\n\t\t{\r\n\t\t\t// do nothing\r\n\t\t}\r\n\t\t\r\n\r\n\t\tif (deltager != null)\r\n\t\t{\r\n\t\t\tService.updateDeltager(deltager, firma, ledsager, navn, telefonNr, null, vej, nr, etage, postNr, by, land);\r\n\t\t} else\r\n\t\t{\r\n\t\t\tService.createDeltager(navn, telefonNr, null, vej, nr, etage, postNr, by, land);\r\n\t\t}\r\n\r\n\t\tthis.hide();\r\n\t}", "private boolean confirmAlert(String title, String message) {\n\t\tStage window = new Stage();\n\t\twindow.initModality(Modality.APPLICATION_MODAL);\n\t\twindow.setTitle(title);\n\t\twindow.setHeight(100);\n\n\t\tLabel errorMessage = new Label(message);\n\t\terrorMessage.setPrefWidth(150 + message.length() * 5);\n\t\terrorMessage.setAlignment(Pos.CENTER);\n\t\twindow.setWidth(errorMessage.getPrefWidth());\n\n\t\tButton yes = new Button(\"yes\");\n\t\tButton no = new Button(\"no\");\n\n\t\tyes.setOnAction(event -> {\n\t\t\twindow.close();\n\t\t\tanswer = true;\n\t\t});\n\t\tno.setOnAction(event -> {\n\t\t\twindow.close();\n\t\t\tanswer = false;\n\t\t});\n\n\n\t\tHBox answers = new HBox(yes, no);\n\t\tanswers.setSpacing(15);\n\t\tanswers.setAlignment(Pos.CENTER);\n\t\tVBox layout = new VBox();\n\t\tlayout.getChildren().addAll(errorMessage, answers);\n\t\tlayout.setAlignment(Pos.CENTER);\n\t\tlayout.setSpacing(15);\n\n\t\tScene scene = new Scene(layout);\n\t\twindow.setScene(scene);\n\t\twindow.showAndWait();\n\n\t\treturn answer;\n\t}", "public void clickedOk(View view) {\n \t\n \t// validate the data set\n \tif (!getData()) return;\n \t\n \t// confirm values that are in range, but possibly wrong\n \tif (!confirmData(0)) return;\n \t\n \t// success\n \t\treturnResult(Activity.RESULT_OK);\n }", "private void dialog() {\n\t\tGenericDialog gd = new GenericDialog(\"Bildart\");\n\t\t\n\t\tgd.addChoice(\"Bildtyp\", choices, choices[0]);\n\t\t\n\t\t\n\t\tgd.showDialog();\t// generiere Eingabefenster\n\t\t\n\t\tchoice = gd.getNextChoice(); // Auswahl uebernehmen\n\t\t\n\t\tif (gd.wasCanceled())\n\t\t\tSystem.exit(0);\n\t}", "protected abstract void pressedOKButton( );", "int confirmar(String s) {\n\t\treturn JOptionPane.showConfirmDialog(this, s, \"Alerta\", 0, 1, null);\n\t}", "public void showDialog(Context context) {\n \n }", "public void toExit() {\n int sure=JOptionPane.showConfirmDialog(rootPane,\"Are you sure to Exit?\");\n if(sure==JOptionPane.YES_OPTION)\n { \n System.exit(0);\n } \n }", "@Action\n public void acOk() {\n if (checkFormattedTextFieldNullNoSupposed(jftfCoord1, -1e5, 1e5)) {\n return;\n }\n if (checkFormattedTextFieldNullNoSupposed(jftfCoord2, -1e5, 1e5)) {\n return;\n }\n if (checkTextField(jtfName)) {\n return;\n }\n getTempObj().setType(jcbType.getSelectedIndex());\n getTempObj().setCoord1(getDoubleFromFormattedTextField(jftfCoord1));\n getTempObj().setCoord2(getDoubleFromFormattedTextField(jftfCoord2));\n getTempObj().setName(jtfName.getText());\n setChangeObj(true);\n }", "@Override\n\tpublic void actionPerformed (ActionEvent e)\n\t{\n\t\n\t\tif (mActionToPerform == \"showDialog\")\n\t\t{\n\t\t\tmDialog = new CartogramWizardOptionsWindow();\n\t\t\tmDialog.setVisible(true);\n\t\t}\n\t\t\n\t\telse if (mActionToPerform == \"closeDialogWithoutSaving\")\n\t\t{\n\t\t\tmDialog.setVisible(false);\n\t\t\tmDialog.dispose();\n\t\t}\n\t\t\n\t\telse if (mActionToPerform == \"closeDialogWithSaving\")\n\t\t{\n\t\t\tmDialog.saveChanges();\n\t\t\tmDialog.setVisible(false);\n\t\t\tmDialog.dispose();\n\t\t}\n\t\t\n\t\n\t}", "protected void buttonPressed(\r\n\t\tint buttonId)\r\n\t{\r\n\t\tvalue = text.getText();\r\n\t\tif ( value != null && value.length() > 10 ) {\r\n\t\t\tint ret = FAILED;\r\n\t\t\tif ( buttonId == IDialogConstants.OK_ID ) {\r\n\t\t\t\tret = PASSED;\r\n\t\t\t} else if ( buttonId == IDialogConstants.CLOSE_ID ) {\r\n\t\t\t\tret = BLOCKED;\r\n\t\t\t}\r\n\t\t\tsetReturnCode(ret);\r\n\t\t\tclose();\r\n\t\t}\r\n\t}", "public void onClick(DialogInterface dialog, int id) {\n \t finish();\n }", "private void showFormatConfirmDialog() {\n\t\t// TODO Auto-generated method stub\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(context);\n\t\tbuilder.setMessage(R.string.setting_format_desc);\n\t\tbuilder.setNegativeButton(R.string.setting_no,\n\t\t\t\tnew DialogInterface.OnClickListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t}\n\t\t\t\t});\n\t\tbuilder.setPositiveButton(R.string.setting_yes,\n\t\t\t\tnew DialogInterface.OnClickListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t// handler.obtainMessage(REQUEST_FORMAT_SD_CARD).sendToTarget();\n\t\t\t\t\t\tFormatSDCard formatSDCard = new FormatSDCard(handler);\n\t\t\t\t\t\tformatSDCard.start();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\tdialog = builder.create();\n\t\tdialog.show();\n\t}", "@Override\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\n\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\tfinish();\n\t\t\t\t\t\t\t}", "public void returnHall() {\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\n alert.setTitle(\"Confirm Exit\");\n alert.setHeaderText(\"Confirmation\");\n alert.setContentText(\"Are you sure you want to exit this game ?\");\n Optional result = alert.showAndWait();\n if (result.get() == ButtonType.OK) {\n HallController.getStage().close();\n Game.getPrimaryStage().show();\n Game.returnToHall();\n }\n }", "private void jMenuItemSalirActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemSalirActionPerformed\n LOG.trace(evt.paramString());\n\n int opc = JOptionPane.showConfirmDialog(this, \"Seguro que desea salir\",\n this.getTitle(), JOptionPane.YES_NO_OPTION);\n if (opc == 0) {\n System.exit(0);\n }\n}", "@FXML\n private void handleOk() {\n System.out.println(\"handleOk AdresEditController\");\n if (isInputValid()) {\n //aby udalo sie select\n adres.setPrev_adres_id(adres.getAdres_id());\n\n adres.setAdres_id(Integer.parseInt(adres_id_textField.getText()));\n adres.setWojewodztwo(wojewodztwo_textField.getText());\n adres.setMiejscowosc(miejscowosc_textField.getText());\n adres.setUlica(ulica_textField.getText());\n adres.setKraj(kraj_textField.getText());\n adres.setKod_pocztowy(kod_pocztowy_textField.getText());\n\n adres.update();\n\n okClicked = true;\n dialogStage.close();\n }\n }", "public void showDialogWindow(Stage primaryStage, VBox vbox, String title, Button done) {\n // Create layout\n BorderPane layout = new BorderPane();\n layout.setCenter(vbox);\n\n // Show Modal Dialog Window\n Scene inputScene = new Scene(layout, 350, 250);\n final Stage userInputs = new Stage();\n userInputs.initModality(Modality.APPLICATION_MODAL);\n userInputs.initOwner(primaryStage);\n userInputs.setScene(inputScene);\n userInputs.setTitle(title);\n userInputs.show();\n\n // Add functionality to upload button\n done.setOnAction(e -> userInputs.close());\n }", "@Override\r\n public void confirmDialogPositive(int callbackFunctionID) {\n \r\n }", "@Override\n public void onShow(DialogInterface arg0) {\n\n }" ]
[ "0.7868039", "0.74118847", "0.70307595", "0.69127727", "0.6883812", "0.6781406", "0.6732029", "0.67236227", "0.67143774", "0.6705786", "0.6642731", "0.66255975", "0.659162", "0.6578588", "0.6537205", "0.65311795", "0.6517849", "0.6468094", "0.6465662", "0.64629734", "0.64619887", "0.6446569", "0.64400244", "0.6418463", "0.6368686", "0.63531786", "0.6310918", "0.62971246", "0.629691", "0.62887436", "0.62716407", "0.62527514", "0.62512815", "0.6243586", "0.62383497", "0.6218154", "0.6216847", "0.6216585", "0.6211584", "0.61673635", "0.615822", "0.61580247", "0.61420995", "0.6136953", "0.61313725", "0.61288744", "0.6117043", "0.61166745", "0.61020267", "0.60973126", "0.6094622", "0.60839087", "0.6082948", "0.60744303", "0.60741407", "0.6064986", "0.6060504", "0.6056108", "0.60489744", "0.6043957", "0.60384697", "0.6032304", "0.6003946", "0.5995932", "0.5991012", "0.5976328", "0.597435", "0.59734476", "0.5973105", "0.5971106", "0.5970252", "0.59697646", "0.59680814", "0.5967441", "0.5963665", "0.59602296", "0.59341675", "0.5925144", "0.59182346", "0.59179884", "0.5916769", "0.5915809", "0.59088624", "0.59082276", "0.59016424", "0.58980256", "0.58940804", "0.58793694", "0.5878548", "0.5878378", "0.5872783", "0.586403", "0.5855052", "0.584165", "0.58412856", "0.58406574", "0.5839983", "0.5830608", "0.5826691", "0.5823133" ]
0.65921587
12
createNameForProperty creates a goodlooking name for the selected type of AnimationProperties.
private static String createNameForProperty(String prop) { if (prop == null) return "property"; String theProp = prop; // remove last "AnimationProperties" if (theProp.length() > 10 && theProp.substring(theProp.length() - 10).equalsIgnoreCase( "properties")) theProp = theProp.substring(0, theProp.length() - 10); // first char is lowercase if (theProp.length() > 0) theProp = theProp.toLowerCase().charAt(0) + theProp.substring(1); return theProp; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "PropertyName getName();", "String getPropertyName();", "public String getPropertyName();", "Property createProperty();", "static String getAntPropertyName( final String property ) {\n if ( property != null &&\n property.startsWith( \"${\" ) && // NOI18N\n property.endsWith( \"}\" ) ) { // NOI18N\n return property.substring( 2, property.length() - 1 );\n } \n return property;\n }", "public String getPropertyTypeName(Property property) {\r\n String propSimpleName = property.getClass().getSimpleName();\r\n return propSimpleName.substring(0, propSimpleName.length() - 8);\r\n }", "public void setPropName(String name) {\n m_propName = name;\n }", "protected abstract Property createProperty(String key, Object value);", "public String getStringProperty(String propertyName) ;", "public String getPropertyName()\n {\n return propertyName;\n }", "public String getPropertyNameMapped(String aName) { return aName; }", "@Override\n\tpublic void addProperty(String name) {\n\t}", "protected String getPropertyName(){\n return propertyName;\n }", "PropertyType createPropertyType();", "protected void addPropNames()\n{\n addPropNames(\"Visible\", \"X\", \"Y\", \"Width\", \"Height\", \"Roll\", \"ScaleX\", \"ScaleY\",\n \"Font\", \"TextColor\", \"FillColor\", \"StrokeColor\", \"URL\");\n}", "public <T extends Animation> String buildUniqueName(ObservableMap<String, T> anis) {\n\t\treturn buildUniqueNameWithPrefix(anis,\"Scene\", anis.size());\n\t}", "public static String getSetterName(String propertyName){\r\n\t\treturn \"set\" + propertyName.substring(0, 1).toUpperCase() + \r\n\t\t\tpropertyName.substring(1);\r\n\t}", "private String toPropertyName(String element) {\n String refPropertyName = handleRefProperty(element);\n if (refPropertyName != null) {\n return refPropertyName;\n }\n\n StringBuilder sb = new StringBuilder();\n char[] chars = element.toCharArray();\n boolean upper = true;\n for (char c : chars) {\n if (c == '_' || c == '-' || c == '.') {\n upper = true;\n } else if (upper) {\n sb.append(Character.toUpperCase(c));\n upper = false;\n } else {\n sb.append(c);\n }\n }\n return sb.toString();\n }", "public String prop(String name);", "Builder addProperty(String name, String value);", "private String propertyToMethodName(final String property, final String modifier) {\n \n String charToUpper = property.substring(0,1);\n String methodName = property.replaceFirst(charToUpper, charToUpper.toUpperCase());\n methodName = modifier + methodName;\n return methodName;\n }", "@Override\r\n public boolean isNameProperty() throws Exception\r\n {\n return false;\r\n }", "protected void sequence_PropertyName(ISerializationContext context, PropertyName semanticObject) {\n\t\tgenericSequencer.createSequence(context, semanticObject);\n\t}", "private String formatPropertyName(String property) {\r\n property = property.replace( '/', '.' );\r\n property = property.replace( '@', '.' );\r\n return StringExtend.validateString( property, \".\" );\r\n }", "DavPropertyName getName();", "public Property createProperty() {\n Property p = new Property();\n p.setProject(getProject());\n p.setTaskName(\"property\");\n properties.addElement(p);\n return p;\n }", "public Property createProperty() {\n if (newProject == null) {\n reinit();\n }\n Property p = new Property(true, getProject());\n p.setProject(newProject);\n p.setTaskName(\"property\");\n properties.addElement(p);\n return p;\n }", "public void setProperties(String primitive, AnimationProperties properties){\r\n\t\tpropMap.put(primitive, properties);\r\n\t}", "default void declare(T property) {\n declare(property.getSimpleName(), () -> property);\n }", "java.lang.String getProperty();", "public Property(String name) {\n super(SOME, NONE);\n this.name = name;\n }", "public String getPropName() {\n return m_propName;\n }", "private Element addProperty(String name, Property swagger_property) throws ParserConfigurationException {\n\t\tElement element = document.createElement(ParserConstants.element_prefix.value());\n\t\telement.setAttribute(ParserConstants.name.toString(), name);\n\n\t\tElement simple = element;\n\n\t\tif (swagger_property.getRequired()) {\n\t\t\telement.setAttribute(ParserConstants.minOccurs.toString(), ParserConstants.minOccurs.value());\n\t\t}\n\n\t\tif (swagger_property instanceof IntegerProperty) {\n\t\t\tIntegerProperty integerProperty = (IntegerProperty) swagger_property;\n\t\t\telement.setAttribute(ParserConstants.type.toString(), ParserConstants.integer_prefix.value());\n\t\t\tif (integerProperty.getEnum() != null) {\n\t\t\t\tsimple = addEnum(integerProperty.getEnum());\n\t\t\t\telement.appendChild(simple);\n\t\t\t}\n\t\t} else if (swagger_property instanceof LongProperty) {\n\t\t\telement.setAttribute(ParserConstants.type.toString(), ParserConstants.long_prefix.value());\n\t\t} else if (swagger_property instanceof StringProperty) {\n\t\t\tStringProperty stringProperty = (StringProperty) swagger_property;\n\t\t\telement.setAttribute(ParserConstants.type.toString(), ParserConstants.string_prefix.value());\n\t\t\tif (stringProperty.getEnum() != null) {\n\t\t\t\tsimple = addEnum(stringProperty.getEnum());\n\t\t\t\telement.appendChild(simple);\n\t\t\t}\n\t\t} else if (swagger_property instanceof DateTimeProperty) {\n\t\t\tDateTimeProperty dateTimeProperty = (DateTimeProperty) swagger_property;\n\t\t\telement.setAttribute(ParserConstants.type.toString(), ParserConstants.date_time_prefix.value());\n\t\t\tif (dateTimeProperty.getEnum() != null) {\n\t\t\t\tsimple = addEnum(dateTimeProperty.getEnum());\n\t\t\t\telement.appendChild(simple);\n\t\t\t}\n\t\t} else if (swagger_property instanceof BooleanProperty) {\n\t\t\tBooleanProperty booleanProperty = (BooleanProperty) swagger_property;\n\t\t\telement.setAttribute(ParserConstants.type.toString(), ParserConstants.boolean_prefix.value());\n\t\t} else if (swagger_property instanceof RefProperty) {\n\t\t\tRefProperty refProperty = (RefProperty) swagger_property;\n\t\t\telement.setAttribute(ParserConstants.type.toString(), refProperty.getSimpleRef());\n\t\t} else if (swagger_property instanceof ObjectProperty) {\n\t\t\tObjectProperty objectProperty = (ObjectProperty) swagger_property;\n\t\t\telement.appendChild(js2wadl(name, objectProperty.getProperties()));\n\t\t} else if (swagger_property instanceof ArrayProperty) {\n\t\t\tArrayProperty arrayProperty = (ArrayProperty) swagger_property;\n\t\t\telement.appendChild(addProperty(name, arrayProperty.getItems()));\n\t\t} else {\n\t\t\telement.setAttribute(ParserConstants.type.toString(), swagger_property.getFormat());\n\t\t}\n\n\t\tif (swagger_property.getDescription() != null) {\n\t\t\tElement ann = document.createElement(ParserConstants.annotation_prefix.value());\n\t\t\tElement desc = document.createElement(ParserConstants.documentation_prefix.value());\n\t\t\tdesc.setTextContent(swagger_property.getDescription());\n\t\t\tann.appendChild(desc);\n\t\t\tsimple.appendChild(ann);\n\t\t}\n\n\t\treturn element;\n\t}", "public PropertySpecBuilder<T> name(String name)\n {\n Preconditions.checkArgument(this.name == null, \"property name already set\");\n this.shortName = name;\n this.name = prefix + name;\n\n return this;\n }", "private String getProperty(\n String name\n ) {\n return properties.getProperty(\n String.format(\"%s%s\", propertiesPrefix, name)\n );\n }", "@Serialize//(getName = \"property\")\r\n\tpublic String getName()\r\n\t{\r\n\t\treturn _name; \r\n\t}", "<T> PropertyType<T> getPropertyTypeByName(String propertyTypeName);", "@Override\n public InstanceProperties getNameInstanceProperties(String methodName) {\n InstanceProperties properties = super.getNameInstanceProperties(methodName);\n\n if (name != null) {\n String literalName = repositoryHelper.getExactMatchRegex(name);\n\n properties = repositoryHelper.addStringPropertyToInstance(serviceName, properties,\n OpenMetadataAPIMapper.NAME_PROPERTY_NAME, literalName, methodName);\n }\n\n return properties;\n }", "public static String getPropertyName(String propertyPath) {\n\t\tint separatorIndex = propertyPath.indexOf(PropertyAccessor.PROPERTY_KEY_PREFIX_CHAR);\n\t\treturn (separatorIndex != -1 ? propertyPath.substring(0, separatorIndex) : propertyPath);\n\t}", "protected abstract String getFactPropertyType(Object property);", "@Override\n\t\tprotected String convertProperty(String propertyName, String propertyValue) {\n\t\t\tSystem.out.println(\"propertyName1 = \" + propertyName + \" propertyValue1 = \" + propertyValue);\n\t\t\tpropertyName = propertyName + \"_new\";\n\t\t\tpropertyValue = \"_new\";\n\t\t\t\n\t\t\treturn super.convertProperty(propertyName, propertyValue);\n\t\t}", "QName getStyleAttributeName(String propertyName);", "abstract protected String getResourceBundlePropName();", "public String getPropertyName(){\n return SimpleTableField.mapPropName(this.columnName);\n }", "String getProperty(String name);", "PropertyType(String propertyType) {\n this.propertyType = propertyType;\n }", "private void setCustomName(EliteMobProperties eliteMobProperties) {\n this.name = ChatColorConverter.convert(\n eliteMobProperties.getName().replace(\n \"$level\", eliteMobLevel + \"\"));\n eliteMob.setCustomName(this.name);\n if (ConfigValues.defaultConfig.getBoolean(DefaultConfig.ALWAYS_SHOW_NAMETAGS))\n eliteMob.setCustomNameVisible(true);\n }", "@Override\n public String propertyToColumnName(String propertyName) {\n if (Pattern.compile(\"[A-Z]+\").matcher(propertyName).find()) {\n return \"\\\"\" + propertyName + \"\\\"\";\n } else {\n return super.propertyToColumnName(propertyName);\n }\n }", "public String get(String propertyName);", "private static String getCamelCasedPropertyName(String propertyName) {\n return propertyName.substring(0, 1).toUpperCase() +\n propertyName.substring(1);\n }", "@JSProperty\n String getName();", "@Override\n public String foreignKeyColumnName(\n String propertyName,\n String propertyEntityName,\n String propertyTableName,\n String referencedColumnName\n ) {\n\n String header = propertyName != null ? StringHelper.unqualify(\n propertyName) : propertyTableName;\n if (header == null)\n throw new AssertionFailure(\"NamingStrategy not properly filled\");\n\n String col = \"\\\"\" + columnName(header + StringUtils.capitalize(\n referencedColumnName)) + \"\\\"\";\n // System.out.println(\"++++referencedColumnNameMod \" +\n // col);\n return col;\n // return super.foreignKeyColumnName(\n // propertyName,\n // propertyEntityName,\n // propertyTableName,\n // referencedColumnName\n // );\n }", "public String getPropertyName() {\n return this.propertyName;\n }", "String getProperty(String property);", "@Override\n public String name(String name, Meter.Type type, @Nullable String baseUnit) {\n String conventionName = NamingConvention.snakeCase.name(name, type, baseUnit);\n\n switch (type) {\n case COUNTER:\n case DISTRIBUTION_SUMMARY:\n case GAUGE:\n if (baseUnit != null && !conventionName.endsWith(\"_\" + baseUnit))\n conventionName += \"_\" + baseUnit;\n break;\n }\n\n switch (type) {\n case COUNTER:\n if (!conventionName.endsWith(\"_total\"))\n conventionName += \"_total\";\n break;\n case TIMER:\n case LONG_TASK_TIMER:\n if (conventionName.endsWith(timerSuffix)) {\n conventionName += \"_seconds\";\n }\n else if (!conventionName.endsWith(\"_seconds\"))\n conventionName += timerSuffix + \"_seconds\";\n break;\n }\n\n String sanitized = nameChars.matcher(conventionName).replaceAll(SEPARATOR);\n if (!Character.isLetter(sanitized.charAt(0))) {\n sanitized = \"m_\" + sanitized;\n }\n return sanitized;\n }", "public String getName() {\n return getProperty(Property.NAME);\n }", "String getDefaultPropertyName(ICompilerProject project);", "private static String toPropertyName(String str) {\n return str.toLowerCase().trim().replaceAll(\" +\", \"_\");\n }", "void declare(String name, Supplier<T> propertySupplier);", "AbstractVariationPointName createAbstractVariationPointName();", "protected ObjectName createObjectName(String mBeanName) throws Exception \n {\n ObjectName objectName = new ObjectName(mBeanName);\n return objectName;\n }", "void put(String kind, String name, String property, String value);", "public boolean isAnimProperty(String aPropertyName)\n{\n // Declare anim properties\n String animProps[] = { \"X\", \"Y\", \"Width\", \"Height\", \"Roll\", \"ScaleX\", \"ScaleY\", \"SkewX\", \"SkewY\", \"Opacity\",\n \"Radius\", // Bogus - for RMRectangle\n \"StartAngle\", \"SweepAngle\", // Bogus - for RMOval\n \"Depth\", \"Yaw\", \"Pitch\", \"Roll3D\", \"FocalLenth\", \"OffsetZ\", // for RMScene3D\n \"Playing\", // Bogus - for RMSound\n \"Morphing\", // Bogus - for RMMorphShape\n \"Distance\", \"PreservesOrientation\" // Bogus - for RMAnimPath\n };\n \n // Return true if is anim property\n return RMArrayUtils.contains(animProps, aPropertyName);\n}", "public final void setNameProperty(String nameProperty) {\n\t\tif(nameProperty == null) throw new IllegalArgumentException(\"A field name must be specified\");\n\t\tthis.nameProperty = nameProperty;\n\t}", "VariationPointName createVariationPointName();", "private String _getPropFileName(String baseName) throws Exception\n {\n \t\n \tString hostName = getHostName();\n \n if (baseName == null || baseName.length() == 0)\n baseName = \"WsAggregatore\";\n else\n baseName = baseName.toLowerCase();\n\n String fileName = (baseName + (hostName.length() != 0 ? \"_\" + hostName.trim() : \"\") + \".properties\").toLowerCase();\n\n System.out.println(\"Initialization file: \" + fileName);\n\n return fileName;\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getName();", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getName();", "public static String getPropertyAccessMethodName(String property) {\r\n if (\"this\".equals(property))\r\n return \"this\";\r\n return \"get\" + property.substring(0, 1).toUpperCase(Locale.ENGLISH) + property.substring(1);\r\n }", "public RecordingProperties.Builder name(String name) {\n\t\t\tthis.name = name;\n\t\t\treturn this;\n\t\t}", "@Override\n\tpublic void setToolName(String typeName) throws PropertyVetoException {\n\t\tname = typeName;\n\t}", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getName() {\n return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(NAME_PROP.get());\n }", "public void setPropertyName (String propertyName) {\n\t\tthis.propertyName=propertyName;\n\t}", "public static MemberExpression property(Expression expression, Class type, String name) { throw Extensions.todo(); }", "public void addProperty(String name, String property)\n {\n if (name != null && name.trim().length() > 0)\n {\n _propertyEntries.put(name, property);\n }\n }", "private String formatTimeProperty(LocalDateTime date, String name) {\n String property;\n String time = formatTimeToICS(date);\n property = name + \";\" + mTZID + \":\" + time;\n return property;\n }", "public String getProperty(String name);", "private String name() {\r\n return cls.getSimpleName() + '.' + mth;\r\n }", "String get(String kind, String name, String property);", "public Object prop(String name, String type);", "@Override\r\n\t\t\tpublic IHierarchicalKey caseProperty(Property object) {\r\n\t\t\t\treturn new PropertyKey(object);\r\n\t\t\t}", "@Override\n public Object getProperty(String name) {\n name = name.toLowerCase();\n return this.properties.get(name);\n }", "static final String[] makePropertyNames(Object names[]) {\n String[] sn = new String[ names.length ];\n for (int i = 0; i < sn.length; i++) {\n sn[i] = (names[i] instanceof Named) ? \n ((Named) names[i]).getName() : (String) names[i];\n }\n return sn;\n }", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();" ]
[ "0.6496032", "0.62504804", "0.59731114", "0.59346503", "0.58357996", "0.5729693", "0.5671695", "0.5629144", "0.55307245", "0.5522008", "0.5503882", "0.55011", "0.54378986", "0.5409916", "0.53945833", "0.53613245", "0.5333156", "0.5280767", "0.5277132", "0.52659243", "0.5246522", "0.5243428", "0.5238", "0.52185047", "0.5211247", "0.51920223", "0.5172299", "0.51454246", "0.5134337", "0.513288", "0.5131997", "0.5109765", "0.5107761", "0.50935054", "0.5074313", "0.50649935", "0.506482", "0.5055633", "0.5046495", "0.5044134", "0.50308913", "0.5014046", "0.5009827", "0.49991277", "0.4991959", "0.4991939", "0.49912623", "0.4985342", "0.496309", "0.49527878", "0.49487612", "0.49324688", "0.49323246", "0.49322468", "0.4931428", "0.49267432", "0.4926721", "0.49231634", "0.4919213", "0.49183047", "0.4916072", "0.49118736", "0.49024203", "0.49017876", "0.4897978", "0.489762", "0.48937583", "0.48937583", "0.4892248", "0.48881254", "0.4873125", "0.4867144", "0.48562968", "0.48545617", "0.4843181", "0.4842233", "0.4827817", "0.48277935", "0.48275852", "0.48206472", "0.48188025", "0.48122436", "0.4808923", "0.48075613", "0.48075613", "0.48075613", "0.48075613", "0.48075613", "0.48075613", "0.48075613", "0.48075613", "0.48075613", "0.48075613", "0.48075613", "0.48075613", "0.48075613", "0.48075613", "0.48075613", "0.48075613", "0.48075613" ]
0.8256261
0
getName returns the selected name for the new AnimationProperties.
public String getName() { return this.name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "PropertyName getName();", "public String getName() {\n\t\treturn getNonVisualProperties().getName();\n\t}", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getName();", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getName();", "public java.lang.String getName();", "public String getName() {\n\t\treturn this.recordingProperties.name();\n\t}", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "@Override\n\t\t\tpublic String getName() {\n\t\t\t\treturn name;\n\t\t\t}", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getName() {\n return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(NAME_PROP.get());\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getName() {\n return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(NAME_PROP.get());\n }", "String getPropertyName();", "public String getName() {\n return getProperty(Property.NAME);\n }", "@Override\n\tpublic String getName() {\n\n\t\treturn name;\n\t}", "private static String createNameForProperty(String prop) {\r\n if (prop == null)\r\n return \"property\";\r\n String theProp = prop;\r\n\r\n // remove last \"AnimationProperties\"\r\n if (theProp.length() > 10\r\n && theProp.substring(theProp.length() - 10).equalsIgnoreCase(\r\n \"properties\"))\r\n theProp = theProp.substring(0, theProp.length() - 10);\r\n // first char is lowercase\r\n if (theProp.length() > 0)\r\n theProp = theProp.toLowerCase().charAt(0) + theProp.substring(1);\r\n return theProp;\r\n }", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();" ]
[ "0.7225956", "0.6946785", "0.6845975", "0.6845975", "0.6735944", "0.66886556", "0.6686759", "0.6686759", "0.6686759", "0.6686759", "0.6686759", "0.6686759", "0.6686759", "0.6686759", "0.6686759", "0.6686759", "0.6686759", "0.6686759", "0.6686759", "0.6686759", "0.6686759", "0.6686759", "0.6686759", "0.6686759", "0.6686759", "0.6686759", "0.6686759", "0.6686759", "0.6686759", "0.6686759", "0.6686759", "0.6686759", "0.6686759", "0.6686759", "0.6686759", "0.6686759", "0.6686759", "0.6686759", "0.6686759", "0.6686759", "0.6686759", "0.6686759", "0.6686759", "0.6686759", "0.6686759", "0.6686759", "0.6686759", "0.6686759", "0.6686759", "0.6686759", "0.6686759", "0.6686759", "0.6686759", "0.6686759", "0.6686759", "0.6686759", "0.6686759", "0.6686759", "0.6677143", "0.6659751", "0.66248363", "0.66034067", "0.65925956", "0.6538335", "0.65303856", "0.65291965", "0.65291965", "0.65291965", "0.65291965", "0.65291965", "0.65291965", "0.65291965", "0.65291965", "0.65291965", "0.65291965", "0.65291965", "0.65291965", "0.65291965", "0.65291965", "0.65291965", "0.65291965", "0.65291965", "0.65291965", "0.65291965", "0.65291965", "0.65291965", "0.65291965", "0.65291965", "0.65291965", "0.65291965", "0.65291965", "0.65291965", "0.65291965", "0.65291965", "0.65291965", "0.65291965", "0.65291965", "0.65291965", "0.65291965", "0.65291965", "0.65291965" ]
0.0
-1
getType returns the selected type for the new AnimationProperties.
public String getAnimationType() { return this.type; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getType() {\n\t\treturn ANIMATED;\n\t}", "public TLPropertyType getType() {\n return type;\n }", "public FractalType getType(){\r\n\t\treturn type;\r\n\t}", "public ObjectProperty<ShapeType> typeProperty() {\n\t\t\treturn type;\n\t\t}", "public static String getType() {\n type = getProperty(\"type\");\n if (type == null) type = \"png\";\n return type;\n }", "public Object getType()\r\n {\r\n\treturn type;\r\n }", "public Material getType() {\n return type;\n }", "public ShapeType getType() {\n\t\t\treturn type.get();\n\t\t}", "public Type getType () {\n\t\treturn type;\n\t}", "public Type getType() {\n return type;\n }", "public Type getType() {\n return type;\n }", "public Type getType() {\n return type;\n }", "public Type getType() {\n return type;\n }", "public Type getType() {\n return type;\n }", "public Type getType() {\n return type;\n }", "public Type getType() {\n return type;\n }", "public Type getType() {\n return type;\n }", "public Type getType() {\n return type;\n }", "public Type getType() {\n return type;\n }", "public Type getType() {\n return type;\n }", "public Type getType() {\n return type;\n }", "@Override\n public Type getType() {\n return type;\n }", "@Override\n public Type getType() {\n return type;\n }", "public Type getType()\n {\n return type;\n }", "public Type getType() {\n return _type;\n }", "public Type getType() {\n\t\treturn type;\n\t}", "public Type getType() {\n\t\treturn type;\n\t}", "Type getType();", "Type getType();", "Type getType();", "Type getType();", "Type getType();", "Type getType();", "Type getType();", "Type getType();", "Type getType();", "Type getType();", "Type getType();", "public final Type getType(){\r\n return type;\r\n }", "public AngelType getType() {\n return type;\n }", "public Material type()\n\t{\n\t\treturn type;\n\t}", "public Type getType() {\r\n return this.type;\r\n }", "public Type getType(){\n\t\treturn this.type;\n\t}", "public Type getType() {\n return this.type;\n }", "public TYPE getType(){\n return this.type;\n }", "public String getType() {\n return type;\n }", "public int getType () {\n return type;\n }", "public int getType () {\n return type;\n }", "public int getType () {\r\n return type;\r\n }", "public String getType() {\r\n return type;\r\n }", "public String getType() { return type; }", "public int getType(){\n return type;\n }", "public String getType() {\n\t return mType;\n\t}", "public String getType() {\n\treturn type;\n }", "public String getType(){\n\t\treturn type;\n\t}", "public String getType(){\n\t\treturn type;\n\t}", "public String getType () {\n return type;\n }", "public String getType () {\n return type;\n }", "public String getType () {\n return type;\n }", "public String getType(){\r\n return type;\r\n }", "public int getType() {\n return type;\n }", "public String getType() {\n return type; \n }", "type getType();", "public String getType() {\n return m_type;\n }", "public String getType() {\r\n\t\treturn type;\r\n\t}", "public String getType() {\r\n\t\treturn type;\r\n\t}", "public String getType() {\r\n\t\treturn type;\r\n\t}", "public String getType() {\r\n return type;\r\n }", "public String getType() {\r\r\n\t\treturn type;\r\r\n\t}", "public int getType(){\r\n\t\treturn type;\r\n\t}", "public String getType()\n {\n\treturn type;\n }", "public String getType() {\r\n return type;\r\n }", "public String getType() {\r\n return type;\r\n }", "public String getType() {\r\n return type;\r\n }", "public String getType() {\r\n return type;\r\n }", "public String getType() {\r\n return type;\r\n }", "public int getType() { \n return type; \n }", "public int getType() {\n return m_type;\n }", "public Type getType() {\n\t\treturn mType;\n\t}", "public int getType(){\n\t\treturn type;\n\t}", "public String getType()\r\n\t{\r\n\t\treturn type;\r\n\t}", "public Type getType() {\n\t\treturn this.type;\n\t}", "public int getType() {\n\t return type;\n\t }", "public String getType() {\n\t\treturn type;\n\t}", "public String getType() {\n\t\treturn type;\n\t}", "public String getType() {\n\t\treturn type;\n\t}", "public String getType() {\n\t\treturn type;\n\t}", "public String getType() {\n\t\treturn type;\n\t}", "public String getType() {\n\t\treturn type;\n\t}", "public String getType() {\n\t\treturn type;\n\t}", "public String getType() {\n\t\treturn type;\n\t}", "public String getType() {\n\t\treturn type;\n\t}", "public String getType() {\n\t\treturn type;\n\t}", "public String getType() {\n\t\treturn type;\n\t}", "public String getType() {\n\t\treturn type;\n\t}", "public int getType() { return type; }", "public int getType() { return type; }", "public String getType() \n {\n return type;\n }", "public String getType(){\n\treturn type;\n }", "public int getType() {\r\n\t\treturn (type);\r\n\t}" ]
[ "0.67508346", "0.66620785", "0.64666516", "0.6445889", "0.632918", "0.62764865", "0.6247826", "0.62367356", "0.61879545", "0.61830735", "0.61768705", "0.61587125", "0.61587125", "0.61587125", "0.61587125", "0.61587125", "0.61587125", "0.61587125", "0.61587125", "0.61587125", "0.61587125", "0.6154349", "0.6154349", "0.6146658", "0.613965", "0.61395997", "0.61395997", "0.61230004", "0.61230004", "0.61230004", "0.61230004", "0.61230004", "0.61230004", "0.61230004", "0.61230004", "0.61230004", "0.61230004", "0.61230004", "0.6103214", "0.6102132", "0.6097915", "0.60963845", "0.6088838", "0.60672545", "0.6066163", "0.60255945", "0.60246366", "0.60246366", "0.602338", "0.6022926", "0.6020246", "0.6016428", "0.6015945", "0.60159296", "0.6008848", "0.6008848", "0.6007548", "0.6007548", "0.6007548", "0.60056007", "0.60040325", "0.6003007", "0.6002148", "0.60003066", "0.59978443", "0.59978443", "0.59978443", "0.5997098", "0.5994837", "0.5990169", "0.59897274", "0.5988991", "0.5988991", "0.5988991", "0.5988991", "0.5988991", "0.5981862", "0.59776396", "0.5977499", "0.59769654", "0.5974496", "0.5973139", "0.5971424", "0.596934", "0.596934", "0.596934", "0.596934", "0.596934", "0.596934", "0.596934", "0.596934", "0.596934", "0.596934", "0.596934", "0.596934", "0.5969018", "0.5969018", "0.596829", "0.5965205", "0.59606314" ]
0.7371512
0
/ A[i,j] : LCS for text1[0..i] and text2[0..1] A[i,j] = A[i1, j1] + 1 if( text1[i] == text2[j] ) MAX( A[i1,j], A[i, j1] ) if( text1[i] != text2[j])
public int longestCommonSubsequence(String text1, String text2) { int m = text1.length(); int n = text2.length(); int[][] dp = new int[ m + 1][]; for( int i = 0; i < dp.length; i++ ) { dp[i] = new int[ n + 1]; } for( int i = 1; i <= m; i++ ) { char c1 = text1.charAt(i - 1); for( int j = 1; j <= n; j++ ) { char c2 = text2.charAt(j - 1); if( c1 == c2 ) { dp[i][j] = dp[i-1][j-1] + 1; } else { dp[i][j] = Math.max( dp[i-1][j], dp[i][j-1]); } } } return dp[m][n]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int longestCommonSubsequence(String text1, String text2) {\n\t\tint m=text1.length();\n\t\tint n=text2.length();\n\t\tint lcs[][]=new int[m+1][n+1];\n\t\t\n\t\tfor(int i=1; i<=m; i++) {\n\t\t\tfor(int j=1; j<=n; ++j){\n\t\t\t\tif(text1.charAt(i-1)==text2.charAt(j-1))\n\t\t\t\t\tlcs[i][j]=1+lcs[i-1][j-1];\n\t\t\t\telse\n\t\t\t\t\tlcs[i][j]=Math.max(\n\t\t\t\t\t\t\tlcs[i][j-1], lcs[i-1][j]);\n\t\t\t}\n\t\t}\n return lcs[m][n];\n }", "private int lcs(String word1, String word2) {\n int m = word1.length();\n int n = word2.length();\n int[][] dp = new int[m + 1][n + 1];\n //mem[i][j] means the LCS length formed by A[:i] and B[:j]\n for (int i = 0; i < m; i++) {\n for (int j = 0; j < n; j++) {\n if (word1.charAt(i) == word2.charAt(j)) {\n dp[i + 1][j + 1] = dp[i][j] + 1;\n } else {\n dp[i + 1][j + 1] = Math.max(dp[i + 1][j], dp[i][j + 1]);\n }\n }\n }\n return dp[m][n];\n }", "public static int longestCommonSubsequence(String text1, String text2) {\n Map<Character, List<Integer>> characterListMap = new HashMap<>();\n char[] cA = text1.toCharArray();\n for (int i = 0; i < cA.length; i++) {\n if (characterListMap.get(cA[i]) == null) {\n List<Integer> list = new ArrayList<>();\n list.add(i);\n characterListMap.put(cA[i], list);\n } else {\n characterListMap.get(cA[i]).add(i);\n }\n }\n char[] cA2 = text2.toCharArray();\n int i = 0;\n int prevBiggest = 0;\n int previndex = 0;\n int currBiggest = 0;\n while (i < cA2.length && characterListMap.get(cA2[i]) == null) {\n i++;\n }\n if (i < cA2.length && characterListMap.get(cA2[i]) != null) {\n previndex = characterListMap.get(cA2[i]).get(characterListMap.get(cA2[i]).size() - 1);\n i++;\n currBiggest++;\n }\n\n\n for (; i < cA2.length; i++) {\n if (characterListMap.containsKey(cA2[i])) {\n if (characterListMap.get(cA2[i]).get(characterListMap.get(cA2[i]).size() - 1) > previndex) {\n previndex = characterListMap.get(cA2[i]).get(characterListMap.get(cA2[i]).size() - 1);\n currBiggest++;\n } else {\n previndex = characterListMap.get(cA2[i]).get(characterListMap.get(cA2[i]).size() - 1);\n if (currBiggest > prevBiggest) {\n prevBiggest = currBiggest;\n }\n currBiggest = 1;\n }\n }\n }\n\n return prevBiggest > currBiggest ? prevBiggest : currBiggest;\n }", "public int longestCommonSubsequence0(String text1, String text2) {\n final int L1 = text1.length();\n final int L2 = text2.length();\n\n int[][] counts = new int[L1][L2];\n\n // BASE\n counts[0][0] = text1.charAt(0) == text2.charAt(0) ? 1 : 0;\n\n for (int idx = 1; idx < L1; ++idx) {\n counts[idx][0] = text1.charAt(idx) == text2.charAt(0) ? 1 : counts[idx - 1][0];\n }\n\n for (int idx = 1; idx < L2; ++idx) {\n counts[0][idx] = text1.charAt(0) == text2.charAt(idx) ? 1 : counts[0][idx - 1];\n }\n\n // TRANSFORM\n for (int i = 1; i < L1; ++i) {\n for (int j = 1; j < L2; ++j) {\n\n if (text1.charAt(i) == text2.charAt(j)) {\n counts[i][j] = counts[i - 1][j - 1] + 1;\n } else {\n counts[i][j] = Math.max(counts[i - 1][j], counts[i][j - 1]);\n }\n }\n }\n\n return counts[L1 - 1][L2 - 1];\n }", "public static int longestCommonSubsequence1(String text1, String text2) {\n int L1 = s1.length();\n int L2 = s2.length();\n\n int[][] counts = new int[L1][L2];\n\n for (int idx1 = 0; idx1 < L1; ++idx1) {\n for (int idx2 = 0; idx2 < L2; ++idx2) {\n\n if (s1.charAt(idx1) == s2.charAt(idx2)) {\n if (idx1 >= 1 && idx2 >= 1) {\n counts[idx1][idx2] = 1 + counts[idx1 - 1][idx2 - 1];\n } else {\n counts[idx1][idx2] = 1;\n }\n } else {\n int count1 = idx1 >= 1 ? counts[idx1 - 1][idx2] : 0;\n int count2 = idx2 >= 1 ? counts[idx1][idx2 - 1] : 0;\n counts[idx1][idx2] = Math.max(count1, count2);\n }\n }\n }\n\n return counts[L1 - 1][L2 - 1];\n }", "public int longestCommonSubsequence(String text1, String text2) {\n int[] f = new int[text2.length()+1];\n int temp = 0;\n for (int i = 1; i <= text1.length(); ++i) {\n int last = 0;\n for (int j = 1; j <= text2.length(); ++j) {\n temp = f[j];\n if (text1.charAt(i-1) == text2.charAt(j-1)) f[j] = last + 1;\n else f[j] = Math.max(f[j], f[j-1]);\n last = temp;\n }\n }\n return f[text2.length()];\n }", "public int longestCommonSubsequence(String text1, String text2) {\n int[][] dp = new int[text1.length()][text2.length()];\n\n // init the first column\n for (int i = 0; i < text1.length(); i++) {\n // if they match characters\n if (text1.charAt(i) == text2.charAt(0)) {\n dp[i][0] = 1;\n }\n // check if the the subseq length is larger from the substring at 0...i-1\n if (i > 0 && dp[i - 1][0] > dp[i][0]) {\n dp[i][0] = dp[i - 1][0];\n }\n }\n // init the first row\n for (int i = 0; i < text2.length(); i++) {\n // if they match characters\n if (text1.charAt(0) == text2.charAt(i)) {\n dp[0][i] = 1;\n }\n // check if the the subseq length is larger from the substring at 0...i-1\n if (i > 0 && dp[0][i - 1] > dp[0][i]) {\n dp[0][i] = dp[0][i - 1];\n }\n }\n\n // use the results from the previous DP indexes for the text 1 and 2 subsequences\n // to compare which subsequence we should use\n for (int i = 1; i < dp.length; i++) {\n for (int j = 1; j < dp[i].length; j++) {\n // check if we found a character match\n if (text1.charAt(i) == text2.charAt(j)) {\n // if so, use the LCS from the i-1,j-1 index to hold the new length\n dp[i][j] = dp[i - 1][j - 1] + 1;\n } else if (dp[i - 1][j] > dp[i][j - 1]) {\n // if there was no character match, use the\n // LCS length from the column before or row above\n dp[i][j] = dp[i - 1][j];\n } else {\n dp[i][j] = dp[i][j - 1];\n }\n }\n }\n // return the result from dp[text1.length()-1][text2.length()-1]\n // as it holds the longest subseqence\n return dp[text1.length()-1][text2.length()-1];\n }", "public static void lcsDynamic(String a, String b) {\n\t\tchar[] A = a.toCharArray();\n\t\tchar[] B = b.toCharArray();\n\t\tint[][] l = new int[A.length+1][B.length+1];\n\t\tfor(int i=0; i<=A.length;i++) {\n\t\t\tfor(int j = 0; j<=B.length; j++) {\n\t\t\t\tif(i==0 || j==0) l[i][j] = 0;\n\t\t\t\telse if(A[i-1] == B[j-1]) {\n\t\t\t\t\tl[i][j] = 1+l[i-1][j-1];\n\t\t\t\t} else {\n\t\t\t\t\tl[i][j] = Math.max(l[i][j-1], l[i-1][j]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"MAX LCS \"+l[A.length][B.length]);\n\t}", "private static String lcs(String a, String b) {\n\n int rows = a.length();\n int cols = b.length();\n\n // Use two arrays to save space for a full metrics\n int[] previousRow = new int[cols];\n int[] currentRow = new int[cols];\n\n String longest = \"\"; // Longest so far\n\n for (int i=0; i<rows; ++i) {\n char r = a.charAt(i);\n for (int j=0; j<cols; ++j) {\n if (r == b.charAt(j)) {\n // Match!\n int matchLength = 1;\n if (j != 0) {\n matchLength += previousRow[j-1];\n }\n currentRow[j] = matchLength; \n if (matchLength > longest.length()) {\n // Fond a new candidate\n longest = a.substring(i - matchLength + 1, i + 1);\n }\n }\n // Clear out previous array so that it can be used for next round\n if (j != 0) {\n previousRow[j-1] = 0;\n }\n }\n\n // Reuse previous row, make it current.\n // It is already zero-ed out upto the last item, which won't be read\n int[] tmpRow = previousRow;\n previousRow = currentRow;\n currentRow = tmpRow;\n }\n\n return longest;\n }", "public int longestCommonSubsequence(String text1, String text2) {\n int[][] dp = new int[text1.length()][text2.length()];\n\n // init the first column\n for (int i = 0; i < text1.length(); i++) {\n // if they match characters\n if (text1.charAt(i) == text2.charAt(0)) {\n dp[i][0] = 1;\n }\n // check if the the subseq length is larger from the substring at 0...i-1\n if (i > 0 && dp[i - 1][0] > dp[i][0]) {\n dp[i][0] = dp[i - 1][0];\n }\n }\n // init the first row\n for (int i = 0; i < text2.length(); i++) {\n // if they match characters\n if (text1.charAt(0) == text2.charAt(i)) {\n dp[0][i] = 1;\n }\n // check if the the subseq length is larger from the substring at 0...i-1\n if (i > 0 && dp[0][i - 1] > dp[0][i]) {\n dp[0][i] = dp[0][i - 1];\n }\n }\n\n // use the results from the previous DP indexes for the text 1 and 2 subsequences\n // to compare which subsequence we should use\n for (int i = 1; i < dp.length; i++) {\n boolean characterMatch = false;\n for (int j = 1; j < dp[i].length; j++) {\n // leverage the previous result to determine what the\n // starting number will be, since we are using that\n // to enable comparing the characters at i and j and\n // appending that to what the previous longest subsequence\n // was.\n\n if (dp[i - 1][j] > dp[i][j - 1]) {\n dp[i][j] = dp[i - 1][j];\n } else {\n dp[i][j] = dp[i][j - 1];\n // ONLY update the length IF the choice was if the subseq length came from\n // the same index for i, because it \n if (!characterMatch && text1.charAt(i) == text2.charAt(j)) {\n dp[i][j]++;\n characterMatch = true;\n }\n }\n }\n }\n // return the result from dp[text1.length()-1][text2.length()-1]\n // as it holds the longest subseqence\n return dp[text1.length()-1][text2.length()-1];\n }", "int lcs(int x, int y, string s1, string s2,int[][] str){\n \n if(text1.length()==0||text2.length()==0) {\n return 0;\n }\n \n if(str[x][y]!=0) {\n return str[x][y];\n }\n \n int ans =0;\n \n if(text1.charAt(0)== text2.charAt(0)) {\n \n \n \n ans = 1 + longestCommonSubsequence(x+1,y+1,ros1, ros2,str);\n \n \n }\n else {\n \n int first = longestCommonSubsequence(x,y+1,ros1, text2,str);\n int second = longestCommonSubsequence(x+1,y,text1, ros2,str);\n \n ans = Math.max(first,second);\n \n \n \n }\n \n str[x][y] = ans;\n return ans;\n \n \n \n \n \n}", "public static int longestCommonSubsequence2(String text1, String text2) {\n int[] length = new int[text2.length() + 1];\n\n for (int i = 1; i <= text1.length(); ++i) {\n int previous = length[0];\n\n for (int j = 1; j <= text2.length(); ++j) {\n int temp = length[j];\n\n if (text1.charAt(i - 1) == text2.charAt(j - 1)) {\n length[j] = 1 + previous;\n } else {\n length[j] = Math.max(length[j], length[j - 1]);\n }\n\n previous = temp;\n }\n }\n\n return length[text2.length()];\n }", "public static int lcs(String s1, String s2, int i, int j) {\n\n if (i < 0 || j < 0)\n return 0;\n if (s1.charAt(i) == s2.charAt(j)) {\n // System.out.println(s1.charAt(i) + \" \" + v++);\n return (1 + lcs(s1, s2, i - 1, j - 1));\n } else {\n // System.out.println(v++);\n return (Math.max(lcs(s1, s2, i, j - 1), lcs(s1, s2, i - 1, j)));\n }\n\n }", "static int lcs(int p, int q, String s1, String s2){\n int [][]t=new int[p+1][q+1];\n for(int i=0;i<p+1;i++){\n for(int j=0;j<q+1;j++){\n if(i==0||j==0){\n t[i][j]=0;\n }\n }\n }\n for(int i=1;i<p+1;i++){\n for(int j=1;j<q+1;j++){\n if(s1.charAt(i-1)==s2.charAt(j-1)){\n t[i][j]=1+t[i-1][j-1];\n }\n else{\n t[i][j]=Math.max(t[i-1][j],t[i][j-1]);\n }\n }\n }\n return t[p][q];\n }", "public static int[][] buildLCS(String str1, String str2) {\r\n\t\t\r\n\t\tint[][] lcs=new int[str1.length()+1][str2.length()+1];\r\n\t\tfor (int i = 0; i < lcs.length; i++) {\r\n\t\t\tfor (int j = 0; j < lcs[0].length; j++) {\r\n\r\n\t\t\t\tif(i==0 ||j==0)\r\n\t\t\t\t\tlcs[i][j]=0;\r\n\t\t\t\telse if(str1.charAt(i-1)==str2.charAt(j-1))\r\n\t\t\t\t{\r\n\t\t\t\t\tlcs[i][j]=lcs[i-1][j-1]+1;\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tlcs[i][j]=Math.max(lcs[i-1][j], lcs[i][j-1]);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn lcs;\r\n\t}", "private void longestCommonSubsequence(String str1, String str2) {\n\tdp\t= new int[str1.length()+1][str2.length()+1];\t\r\n\tString lcs = \"\";\r\n\tint i=0,j=0;\r\n\tfor(i=0;i<str1.length();i++){\r\n\t\tfor(j=0;j<str2.length();j++){\r\n\t\t\r\n\t\t\tif(str1.charAt(i)==str2.charAt(j)){\r\n\t\t\t\tdp[i+1][j+1] = dp[i][j] + 1; \r\n\t\t\t\t\r\n\t\t\t}else{\r\n\t\t\t\tdp[i+1][j+1] =\r\n Math.max(dp[i+1][j], dp[i][j+1]);\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}\r\n\t\tSystem.out.println(dp[dp.length-1][dp[0].length-1]);\r\n\t\t\r\n\t}", "int lcsDP(char[] str1, char[] str2, int m, int n) {\r\n\r\n int max = 0;\r\n int array[][] = new int[m + 1][n + 1];\r\n\r\n for (int i = 1; i <= m; i++) {\r\n\r\n for (int j = 1; j <= n; j++) {\r\n\r\n if (str1[i - 1] == str2[j - 1]) {\r\n array[i][j] = 1 + array[i - 1][j - 1];\r\n } else {\r\n array[i][j] = Math.max(array[i - 1][j], array[i][j - 1]);\r\n }\r\n\r\n if (max < array[i][j]) max = array[i][j];\r\n }\r\n }\r\n\r\n return max;\r\n }", "static int lcs(int x, int y, String s1, String s2)\n {\n // your code here\n \n int len1 = x;\n \n int len2 = y;\n \n int dp[][] = new int[len1+1][len2+1];\n \n for(int i=0;i<=len1;i++){\n dp[i][0] = 0;\n }\n \n for(int i=0;i<=len2;i++){\n dp[0][i] = 0;\n }\n \n for(int i=1;i<=len1;i++){\n for(int j=1;j<=len2;j++){\n \n if(s1.charAt(i-1)==s2.charAt(j-1)){\n dp[i][j]=1+dp[i-1][j-1];\n }\n else {\n dp[i][j] = Math.max(dp[i-1][j],dp[i][j-1]);\n }\n \n }\n }\n \n return dp[len1][len2];\n }", "private int commonLength( int i0, int i1 )\n {\n \tint n = 0;\n \twhile( (text[i0] == text[i1]) && (text[i0] != STOP) ){\n \t i0++;\n \t i1++;\n \t n++;\n \t}\n \treturn n;\n }", "public static void solveLCSBU(char[] first, char[] second){\n int[][] table = new int[first.length+1][second.length+1];\n int[][] direction = new int[first.length+1][second.length+1];\n\n //fill up table\n for(int i = 0; i <= first.length; i++) {\n for (int j = 0; j <= second.length; j++){\n if(i == 0 || j == 0){\n //base case for empty string comparison\n table[i][j] = 0;\n\n }else if(first[i-1] == second[j-1]){\n //case where characters are equal so take previous equal\n table[i][j] = table[i-1][j-1] + 1;\n direction[i][j] = 1;\n\n }else if(table[i-1][j] > table[i][j-1]){\n //take the winner sub problem\n table[i][j] = table[i-1][j];\n direction[i][j] = 2;\n\n } else{\n table[i][j] = table[i][j-1];\n direction[i][j] = 3;\n }\n }\n }\n\n System.out.println(\"Botoom up -> LCS is \" + getLCSString(direction,first,first.length,second.length) + \" of length \"+table[first.length][second.length]);\n }", "public int longestCommonSubstring(String A, String B) {\n int max = 0;\n for (int i = 0; i < A.length(); i++) {\n for (int j = 0; j < B.length(); j++) {\n int count = 0;\n while (i + count < A.length() && j + count < B.length() && A.charAt(i + count) == B.charAt(j + count)){\n count ++;\n }\n max = Math.max(max, count);\n }\n\n }\n return max;\n }", "public static int longestCommonActions(List<String> A, List<String> B) {\n if (A == null || B == null) return 0;\n\n // state[x][y] means how long the lcs is when it is A[x-1] b [y-1].\n // initial state will be 0 for each cell.\n int[][] state = new int[A.size()+1][B.size()+1];\n int begin = 0 ;\n int end = 0;\n\n int max = 0;\n\n for (int i = 1 ; i < A.size() + 1 ; i++){\n for (int j = 1 ; j < B.size() +1 ; j++){\n // State transfer.\n if (A.get(i-1) != B.get(j-1)){\n state[i][j] = 0;\n }else{\n state[i][j] = state[i-1][j-1] + 1;\n }\n if (max < state[i][j]){\n max = state[i][j];\n end = i;\n }\n }\n }\n\n System.out.println(\"last position\" + end);\n for (int i = end - max ; i < end ; i++){\n System.out.println(A.get(i));\n }\n return max;\n }", "public static String getLCS(String str1,String str2,int[][] lcs) {\r\n\t\tString LCS=new String();\r\n\t\tint i=lcs.length-1,j=lcs[0].length-1;\r\n\t\twhile(i>0 && j>0)\r\n\t\t{\r\n\t\t\tif (str1.charAt(i-1) == str2.charAt(j-1))\r\n\t\t\t{\r\n\t\t\t\tLCS= LCS + str1.charAt(i-1);\r\n\t\t\t\ti--; j--;\r\n\t\t\t}\r\n\t\t\telse if (lcs[i-1][j] < lcs[i][j-1])\r\n\t\t\t\tj--;\r\n\t\t\telse\r\n\t\t\t\ti--;\r\n\t\t}\r\n\t\treturn LCS;\r\n\t}", "static void computeLCS(String x, String y,int m, int n,int[][] c,char[][] b) {\n \r\n\t\tfor (int i = 0; i <= m; i++) {\r\n\t\t\tfor (int j = 0; j <= n; j++) {\r\n\t\t\t\tc[i][j]=0;\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor (int i = 1; i <= m; i++) {\r\n\t\t\tfor (int j = 1; j <= n; j++) {\r\n\t\t\t\tif(x.charAt(i-1) == y.charAt(j-1)) {\r\n\t\t\t\t\tc[i][j]=c[i-1][j-1]+1;\r\n\t\t\t\t\tb[i][j]='/';\r\n\t\t\t\t}\r\n\t\t\t\telse if(c[i-1][j] >= c[i][j-1]) {\r\n\t\t\t\t\tc[i][j]=c[i-1][j];\r\n\t\t\t\t\tb[i][j]='|';\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tc[i][j]=c[i][j-1];\r\n\t\t\t\t\tb[i][j]='-';\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n//\t\tfor (int i = 0; i <= m; i++) {\r\n//\t\t\tfor (int j = 0; j <= n; j++) {\r\n//\t\t\t\tSystem.out.print(c[i][j]);\r\n//\t\t\t}\r\n//\t\t\tSystem.out.println();\r\n//\t\t}\r\n \r\n\t}", "public int minDistance_LCS(String word1, String word2) {\n int N=word1.length(), M=word2.length();\n int[][] dp = new int[N+1][M+1];\n for (int i=1; i<=N; i++) {\n for (int j=1; j<=M; j++) {\n if (word1.charAt(i-1)==word2.charAt(j-1)) {\n dp[i][j]=dp[i-1][j-1]+1;\n } else {\n dp[i][j]=Math.max(dp[i-1][j], dp[i][j-1]);\n }\n }\n }\n return N+M-2*dp[N][M];\n }", "public static List<Integer> lcs(List<Integer> arr1, List<Integer> arr2) {\r\n ArrayList empty = new ArrayList();\r\n /* BEFORE WE ALLOCATE ANY DATA STORAGE, VALIDATE ARGS */\r\n if (null == arr1 || 0 == arr1.size())\r\n return empty;\r\n if (null == arr2 || 0 == arr2.size())\r\n return empty;\r\n\r\n if (equalLists(arr1, arr2)) {\r\n return arr1;\r\n }\r\n\r\n /* ALLOCATE VARIABLES WE'LL NEED FOR THE ROUTINE */\r\n ArrayList<Integer> bestMatch = new ArrayList<Integer>();\r\n ArrayList<Integer> currentMatch = new ArrayList<Integer>();\r\n ArrayList<List<Integer>> dataSuffixList = new ArrayList<List<Integer>>();\r\n ArrayList<List<Integer>> lineSuffixList = new ArrayList<List<Integer>>();\r\n\r\n /* FIRST, COMPUTE SUFFIX ARRAYS */\r\n for (int i = 0; i < arr1.size(); i++) {\r\n dataSuffixList.add(arr1.subList(i, arr1.size()));\r\n }\r\n for (int i = 0; i < arr2.size(); i++) {\r\n lineSuffixList.add(arr2.subList(i, arr2.size()));\r\n }\r\n\r\n /* STANDARD SORT SUFFIX ARRAYS */\r\n IntegerListComparator comp = new IntegerListComparator();\r\n Collections.sort(dataSuffixList, comp);\r\n Collections.sort(lineSuffixList, comp);\r\n\r\n /* NOW COMPARE ARRAYS MEMBER BY MEMBER */\r\n List<?> d = null;\r\n List<?> l = null;\r\n List<?> shorterTemp = null;\r\n int stopLength = 0;\r\n int k = 0;\r\n boolean match = false;\r\n\r\n bestMatch.retainAll(empty);\r\n bestMatch.addAll(currentMatch);\r\n for (int i = 0; i < dataSuffixList.size(); i++) {\r\n d = (List) dataSuffixList.get(i);\r\n for (int j = 0; j < lineSuffixList.size(); j++) {\r\n l = (List) lineSuffixList.get(j);\r\n if (d.size() < l.size()) {\r\n shorterTemp = d;\r\n } else {\r\n shorterTemp = l;\r\n }\r\n\r\n currentMatch.retainAll(empty);\r\n k = 0;\r\n stopLength = shorterTemp.size();\r\n match = (l.get(k).equals(d.get(k)));\r\n while (k < stopLength && match) {\r\n if (l.get(k).equals(d.get(k))) {\r\n currentMatch.add((Integer) shorterTemp.get(k));\r\n k++;\r\n } else {\r\n match = false;\r\n }\r\n }\r\n if (currentMatch.size() > bestMatch.size()) {\r\n bestMatch.retainAll(empty);\r\n bestMatch.addAll(currentMatch);\r\n }\r\n }\r\n }\r\n return bestMatch;\r\n }", "static int lcs(String s, String t)\n{\n\tint n = s.length(), m = t.length();\n\tint[][] dp = new int[n+1][m+1];\n\tfor(int i = 1; i<=n; i++)\n\t\tfor(int j = 1; j<=m; j++)\n\t\t{\n\t\t\tdp[i][j] = Math.max(dp[i-1][j], dp[i][j-1]);\n\t\t\tint cur = (s.charAt(i-1) == t.charAt(j-1)) ? 1 : 0;\n\t\t\tdp[i][j] = Math.max(dp[i][j], cur + dp[i-1][j-1]);\n\t\t}\n\treturn dp[n][m];\n}", "public int LCS_length(String X, String Y) {\r\n int n = X.length()+1;\r\n int m = Y.length()+1;\r\n mat = new int[n][m];\r\n for (int i = 1; i < n; i++) {\r\n for (int j = 1; j < m; j++) {\r\n if(X.charAt(i-1) == Y.charAt(j-1)) {\r\n mat[i][j] = mat[i-1][j-1] + 1;\r\n }\r\n else {\r\n mat[i][j] = Math.max(mat[i-1][j], mat[i][j-1]);\r\n }\r\n }\r\n }\r\n return mat[n-1][m-1];\r\n }", "public static int[] longestCommonSubstring(int[] A, int[] B) {\n int[][] best = new int[A.length + 1][B.length + 1];\n\n for (int i = 1; i <= A.length; ++i) {\n for (int j = 1; j <= B.length; ++j) {\n if (A[i - 1] == B[j - 1]) {\n best[i][j] = best[i - 1][j - 1] + 1;\n } else {\n best[i][j] = Math.max(best[i - 1][j], best[i][j - 1]);\n }\n }\n }\n\n int size = best[A.length][B.length];\n int[] result = new int[size];\n\n // Build the result by walking the best array backwards\n int i = A.length, j = B.length;\n while (i != 0 && j != 0) {\n if (A[i - 1] == B[j - 1]) {\n result[--size] = A[i - 1];\n --i;\n --j;\n } else if (best[i - 1][j] > best[i][j - 1]) {\n --i;\n } else {\n --j;\n }\n }\n\n return result;\n }", "public static int LCSTab(String a,String b,int al,int bl){\n int[][] t= new int[al+1][bl+1];\n for(int i=0;i<al+1;i++){\n for(int j=0;j<bl+1;j++){\n if(i==0||j==0)\n t[i][j]=0;\n }\n }\n\n for(int i=1;i<al+1;i++){\n for(int j=1;j<bl+1;j++){\n if(a.charAt(i-1)==b.charAt(j-1)){\n t[i][j]=1+t[i-1][j-1];\n }else{\n t[i][j]=Math.max(t[i][j-1],\n t[i-1][j]);\n }\n }\n }\n\n return t[al][bl];\n }", "private int calculateLevenshtein(String lhs, String rhs) {\n\t\tint len0 = lhs.length() + 1; \n\t int len1 = rhs.length() + 1; \n\t \n\t // the array of distances \n\t int[] cost = new int[len0]; \n\t int[] newcost = new int[len0]; \n\t \n\t // initial cost of skipping prefix in String s0 \n\t for (int i = 0; i < len0; i++) cost[i] = i; \n\t \n\t // dynamically computing the array of distances \n\t \n\t // transformation cost for each letter in s1 \n\t for (int j = 1; j < len1; j++) { \n\t // initial cost of skipping prefix in String s1 \n\t newcost[0] = j; \n\t \n\t // transformation cost for each letter in s0 \n\t for(int i = 1; i < len0; i++) { \n\t // matching current letters in both strings \n\t int match = (lhs.charAt(i - 1) == rhs.charAt(j - 1)) ? 0 : 1; \n\t \n\t // computing cost for each transformation \n\t int cost_replace = cost[i - 1] + match; \n\t int cost_insert = cost[i] + 1; \n\t int cost_delete = newcost[i - 1] + 1; \n\t \n\t // keep minimum cost \n\t newcost[i] = Math.min(Math.min(cost_insert, cost_delete), cost_replace);\n\t } \n\t \n\t // swap cost/newcost arrays \n\t int[] swap = cost; cost = newcost; newcost = swap; \n\t } \n\t \n\t // the distance is the cost for transforming all letters in both strings \n\t return cost[len0 - 1]; \n }", "int LCSubStr(char X[], char Y[], int m, int n) \n {\n int LCStuff[][] = new int[m + 1][n + 1]; \n int result = 0; // To store length of the longest common substring \n \n // Following steps build LCSuff[m+1][n+1] in bottom up fashion \n for (int i = 0; i <= m; i++) \n { \n for (int j = 0; j <= n; j++) \n { \n if (i == 0 || j == 0) \n LCStuff[i][j] = 0; \n else if (X[i - 1] == Y[j - 1]) \n { \n LCStuff[i][j] = LCStuff[i - 1][j - 1] + 1; \n result = Integer.max(result, LCStuff[i][j]); \n } \n else\n LCStuff[i][j] = 0; \n } \n } \n return result; \n }", "static int lps(char seq[], int i, int j) {\n // Base Case 1: If there is only 1 character\n if (i == j) {\n return 1;\n }\n\n // Base Case 2: If there are only 2 characters and both are same\n if (seq[i] == seq[j] && i + 1 == j) {\n return 2;\n }\n\n // If the first and last characters match\n if (seq[i] == seq[j]) {\n return lps(seq, i + 1, j - 1) + 2;\n }\n\n // If the first and last characters do not match\n return max(lps(seq, i, j - 1), lps(seq, i + 1, j));\n }", "@NonNull\n public static String getDiff(@NonNull String[] before, @NonNull String[] after) {\n StringBuilder sb = new StringBuilder();\n\n int n = before.length;\n int m = after.length;\n\n // Compute longest common subsequence of x[i..m] and y[j..n] bottom up\n int[][] lcs = new int[n + 1][m + 1];\n for (int i = n - 1; i >= 0; i--) {\n for (int j = m - 1; j >= 0; j--) {\n if (before[i].equals(after[j])) {\n lcs[i][j] = lcs[i + 1][j + 1] + 1;\n } else {\n lcs[i][j] = Math.max(lcs[i + 1][j], lcs[i][j + 1]);\n }\n }\n }\n\n int i = 0;\n int j = 0;\n while ((i < n) && (j < m)) {\n if (before[i].equals(after[j])) {\n i++;\n j++;\n } else {\n sb.append(\"@@ -\");\n sb.append(Integer.toString(i + 1));\n sb.append(\" +\");\n sb.append(Integer.toString(j + 1));\n sb.append('\\n');\n while (i < n && j < m && !before[i].equals(after[j])) {\n if (lcs[i + 1][j] >= lcs[i][j + 1]) {\n sb.append('-');\n if (!before[i].trim().isEmpty()) {\n sb.append(' ');\n }\n sb.append(before[i]);\n sb.append('\\n');\n i++;\n } else {\n sb.append('+');\n if (!after[j].trim().isEmpty()) {\n sb.append(' ');\n }\n sb.append(after[j]);\n sb.append('\\n');\n j++;\n }\n }\n }\n }\n\n if (i < n || j < m) {\n assert i == n || j == m;\n sb.append(\"@@ -\");\n sb.append(Integer.toString(i + 1));\n sb.append(\" +\");\n sb.append(Integer.toString(j + 1));\n sb.append('\\n');\n for (; i < n; i++) {\n sb.append('-');\n if (!before[i].trim().isEmpty()) {\n sb.append(' ');\n }\n sb.append(before[i]);\n sb.append('\\n');\n }\n for (; j < m; j++) {\n sb.append('+');\n if (!after[j].trim().isEmpty()) {\n sb.append(' ');\n }\n sb.append(after[j]);\n sb.append('\\n');\n }\n }\n\n return sb.toString();\n }", "static int[] longestCommonSubsequence(int[] arrA, int[] arrB) {\n int[][] dp = new int[arrA.length + 1][arrB.length + 1];\n\n for(int r = 1; r <= arrA.length; r++){\n for(int c = 1; c <= arrB.length; c++){\n if(arrA[r - 1] == arrB[c - 1]){\n // if same, put the updated val from the prev diag\n dp[r][c] = dp[r - 1][c - 1] + 1;\n }else{\n // if not same, take the greater between prev two vals\n dp[r][c] = Math.max(dp[r - 1][c], dp[r][c - 1]);\n }\n }\n }\n\n //find the max length and its sequence\n int maxLength = dp[arrA.length][arrB.length];\n //System.out.println(maxLength);\n int[] solutionArr = new int[maxLength];\n\n int r = arrA.length, c = arrB.length;\n int solutionArrIndex = solutionArr.length - 1;\n\n while(maxLength > 0){\n //same found?\n // a. put it into the arr\n // b. move diagonal\n if(arrA[r - 1] == arrB[c - 1]){\n solutionArr[solutionArrIndex--] = arrA[r - 1];\n r--; c--;\n maxLength--;\n }else{\n // same not found\n // find the bigger of the two adjacent val\n // move to the position\n if(dp[r][c - 1] > dp[r - 1][c]){\n // left if bigger and up\n c--;\n }else{\n // up is bigger than left\n r--;\n }\n }\n }\n return solutionArr;\n }", "public static int computeLevenshteinDistance(CharSequence str1, CharSequence str2) {\n int[][] distance = new int[str1.length() + 1][str2.length() + 1];\n\n for (int i = 0; i <= str1.length(); i++)\n distance[i][0] = i;\n for (int j = 0; j <= str2.length(); j++)\n distance[0][j] = j;\n\n for (int i = 1; i <= str1.length(); i++)\n for (int j = 1; j <= str2.length(); j++)\n distance[i][j] = minimum(\n distance[i - 1][j] + 1,\n distance[i][j - 1] + 1,\n distance[i - 1][j - 1]\n + ((str1.charAt(i - 1) == str2.charAt(j - 1)) ? 0\n : 1));\n\n return distance[str1.length()][str2.length()];\n }", "public String LCS_string(String X, String Y) {\r\n int len = LCS_length(X,Y);\r\n int i = X.length();\r\n int j = Y.length();\r\n String ans = \"\";\r\n while(len > 0) {\r\n if(X.charAt(i-1) == Y.charAt(j-1)) {\r\n ans = X.charAt(i-1) + ans;\r\n i--;\r\n j--;\r\n len--;\r\n }\r\n else {\r\n if(mat[i-1][j] > mat[i][j-1]) {\r\n i--;\r\n }\r\n else {\r\n j--;\r\n }\r\n }\r\n }\r\n return ans;\r\n }", "public static String longestCommonSubstring(String A, String B) {\n int[][] best = new int[A.length() + 1][B.length() + 1];\n\n for (int i = 1; i <= A.length(); ++i) {\n for (int j = 1; j <= B.length(); ++j) {\n if (A.charAt(i - 1) == B.charAt(j - 1)) {\n best[i][j] = best[i - 1][j - 1] + 1;\n } else {\n best[i][j] = Math.max(best[i - 1][j], best[i][j - 1]);\n }\n }\n }\n\n int size = best[A.length()][B.length()];\n char[] result = new char[size];\n\n // Build the result by walking the best array backwards\n int i = A.length(), j = B.length();\n while (i != 0 && j != 0) {\n if (A.charAt(i - 1) == B.charAt(j - 1)) {\n result[--size] = A.charAt(i - 1);\n --i;\n --j;\n } else if (best[i - 1][j] > best[i][j - 1]) {\n --i;\n } else {\n --j;\n }\n }\n\n return new String(result);\n }", "private static int countCommon(String[] a1, String[] a2) {\n\t\tHashSet<String> hs = new HashSet<String>();\r\n\t\tfor(int i=0 ; i < a1.length ; i++) {\r\n\t\t\ths.add(a1[i]);\r\n\t\t}\r\n\t\tString s1[] = new String[hs.size()];\r\n\t\ths.toArray(s1);\r\n\t\tHashSet<String> hs2 = new HashSet<String>();\r\n\t\tfor( int j=0 ;j < a2.length ;j++) {\r\n\t\t\ths2.add(a2[j]);\r\n\t\t}\r\n\t\tString s2[] = new String[hs2.size()];\r\n\t\ths2.toArray(s2);\r\n\t\tint count=0;\r\n\t\tfor(int i=0;i<s1.length;i++)\r\n\t\t{\t\r\n\t\t\tfor(int j=0;j<s2.length;j++)\r\n\t\t\t{\r\n\t\t\t\tif(s1[i].equals(s2[j]))\r\n\t\t\t\t\tcount++;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn count;\t\t\r\n\t}", "public int minInsertions(String s) {\n int n = s.length();\n //Initialising dp array. It will represent the longest common subsequence between first i characters of first string and first j characters of second string\n int[][] dp = new int[n+1][n+1];\n \n //Looping through start and end of the string. Thus dp will consider the string from start and string from end and then store the ans\n for (int i = 0; i < n; ++i){\n for (int j = 0; j < n; ++j){\n \n //If both the characters are equal, then we increment the previous dp value otherwise we take max of the next character considered for both strings\n dp[i + 1][j + 1] = s.charAt(i) == s.charAt(n - 1 - j) ? dp[i][j] + 1 : Math.max(dp[i][j + 1], dp[i + 1][j]);\n } \n }\n //Returning ans\n return n - dp[n][n];\n }", "private static int alphaNumericCompare( String s1, String s2 )\n\t{\n\t\tString[] words1 = splitIntoAlphasAndNums( s1 );\n\t\tString[] words2 = splitIntoAlphasAndNums( s2 );\n\t\tfor ( int j = 0; j < Math.min( words1.length, words2.length ); j++ )\n\t\t{\n\t\t\tint c;\n\t\t\tfinal String sp1 = words1[ j ];\n\t\t\tfinal String sp2 = words2[ j ];\n\n\t\t\t// First look for special alpha sequences (e.g., \"alpha\" or \"beta\" or \"rc\"):\n\t\t\tint subScore1 = calculateScore( sp1 );\n\t\t\tint subScore2 = calculateScore( sp2 );\n\t\t\tc = subScore1 - subScore2;\n\t\t\tif ( c != 0 )\n\t\t\t{\n\t\t\t\treturn c;\n\t\t\t}\n\n\t\t\t// Since splitIntoAlphasAndNums() was called, that means that if 1st char is a digit, then\n\t\t\t// all characters are digits:\n\t\t\tif ( startsWithDigit( sp1 ) || startsWithDigit( sp2 ) )\n\t\t\t{\n\t\t\t\tComparable<Long> v1 = toLong( sp1 );\n\t\t\t\tLong v2 = toLong( sp2 );\n\t\t\t\tif ( v1 != null && v2 != null )\n\t\t\t\t{\n\t\t\t\t\tc = v1.compareTo( v2 );\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t// null == null, and null is smaller than non-null\n\t\t\t\t\tc = v1 == v2 ? 0 : v1 == null ? -1 : 1;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t// Both are pure non-numerics, so use regular lexicographic compare:\n\t\t\t\tc = sp1.compareTo( sp2 );\n\t\t\t}\n\n\t\t\tif ( c != 0 )\n\t\t\t{\n\t\t\t\treturn c;\n\t\t\t}\n\t\t}\n\n\t\t// Last resort comparision: sub-splitting array length.\n\t\treturn words1.length - words2.length;\n\t}", "private static int scs(String a, String b){\n int la=a.length();\n int lb=b.length();\n int [][]matrix=new int[la+1][lb+1];\n \n for(int i=1;i<=la;i++)\n matrix[i][0]=i;\n for(int i=1;i<=lb;i++)\n matrix[0][i]=i;\n \n for(int i=1;i<=la;i++){\n for(int j=1;j<=lb;j++){\n if(a.charAt(i-1)==b.charAt(j-1))\n matrix[i][j]=matrix[i-1][j-1]+1;\n else\n matrix[i][j]=Math.min(matrix[i-1][j], matrix[i][j-1])+1;\n }\n }\n\n //Printing the SCS matrix\n for(int i=0;i<=la;i++){\n for(int j=0;j<=lb;j++){\n System.out.print(matrix[i][j]+\" \");\n }\n System.out.println(\" \");\n }\n \n return matrix[la][lb];\n }", "private static int commonChild(String s1, String s2) {\n //reduce of iterations\n //make strings shorter\n //TreeMap to keep order\n Map<Integer, Character> map1 = new TreeMap<>();\n Map<Integer, Character> map2 = new TreeMap<>();\n StringBuilder stringBuilder = new StringBuilder();\n for (int i = 0; i < s1.length(); i++) {\n for (int j = 0; j < s2.length(); j++) {\n char charOfS1 = s1.charAt(i);\n char charOfS2 = s2.charAt(j);\n if (charOfS1 == charOfS2) {\n map1.put(i, charOfS1);\n map2.put(j, charOfS2);\n }\n }\n }\n for (Map.Entry<Integer, Character> entry : map1.entrySet()) {\n stringBuilder.append(entry.getValue());\n }\n s1 = stringBuilder.toString();\n stringBuilder = new StringBuilder();\n for (Map.Entry<Integer, Character> entry : map2.entrySet()) {\n stringBuilder.append(entry.getValue());\n }\n s2 = stringBuilder.toString();\n /*\n ------------------------------------------------\n */\n int lengthS1 = s1.length();\n int lengthS2 = s2.length();\n int[][] arr = new int[lengthS1+1][lengthS2+1];\n for (int i = 1; i <= lengthS1; i++) {\n for (int j = 1; j <= lengthS2; j++) {\n char charI = s1.charAt(i - 1); //from 0\n char charJ = s2.charAt(j - 1); //from 0\n arr[i][j] = (charI==charJ) ?\n arr[i-1][j-1] + 1 :\n Math.max(arr[i-1][j],arr[i][j-1]);\n }\n }\n\n return arr[lengthS1][lengthS2];\n }", "public int findLongestCommonIncreasingSubsequence(int [] arr, int [] arr2) {\n\n // length of lcs ending at arr2[i] \n int [] dp = new int[arr2.length];\n\n for (int i = 0; i < arr.length; i++) {\n int current = 0;\n for (int j = 0; j < arr2.length; j++) {\n\n if (arr[i] == arr2[j]) {\n if (current + 1 > dp[j]) {\n dp[j] = current + 1;\n }\n }\n\n if (arr[i] > arr[j]) {\n if (table[j] > current) {\n current = table[j];\n }\n }\n }\n }\n\n for (int i = 0; i < arr2.length; i++) {\n res = Math.max(res, dp[i]);\n }\n\n return res;\n }", "static int compare(String a, String b) {\n if (a == null) a = \"\";\n if (b == null) b = \"\";\n\n int i = 0;\n while (i < a.length() && i < b.length()) {\n char x = a.charAt(i), y = b.charAt(i);\n if (x != y) return x - y;\n i++;\n }\n return a.length() - b.length();\n }", "static int longestSubsequence(String x, String y) {\n char[] strX = x.toCharArray();\n char[] strY = y.toCharArray();\n\n Map<Character, Integer> xMap = new HashMap<>();\n Map<Character, Integer> yMap = new HashMap<>();\n\n for (int i = 0; i < strX.length; i++) {\n char c = strX[i];\n if (xMap.containsKey(c)) {\n xMap.put(c, xMap.get(c) + 1);\n } else {\n xMap.put(c, 1);\n }\n }\n\n for (int i = 0; i < strY.length; i++) {\n char c = strY[i];\n if (yMap.containsKey(c)) {\n yMap.put(c, yMap.get(c) + 1);\n } else {\n yMap.put(c, 1);\n }\n }\n\n System.out.println(xMap);\n System.out.println(yMap);\n\n ArrayList<Character> subsequence = new ArrayList<>();\n\n // first find match subsequence\n for (Character c : yMap.keySet()) {\n if (!xMap.containsKey(c)) {\n continue;\n }\n\n int xCount = xMap.get(c);\n int yCount = yMap.get(c);\n int charCount = xCount < yCount ? xCount : yCount;\n\n for (int i = 0; i < charCount; i++) {\n subsequence.add(c);\n }\n }\n\n System.out.println(\"may be seq\" + subsequence);\n\n int max = 0;\n for (int i = 0; i < subsequence.size(); i++) {\n char c = subsequence.get(i);\n ArrayList<Character> remains = new ArrayList<>(subsequence);\n remains.remove(i);\n StringBuilder curr = new StringBuilder();\n curr.append(c);\n// System.out.println(\"max\" + max);\n int result = findPermutation(y, curr, remains, max);\n if (result > max) {\n max = result;\n }\n }\n\n // find matching permutation\n\n System.out.println(\"result\" + max);\n // then find sub string\n return max;\n }", "public static int longestCommonSubsequenceLength(String s1, String s2)\n {\n return longestCommonSubsequenceLength(s1.toCharArray(), s2.toCharArray(), s1.length(), s2.length());\n }", "public static int commonCharacterCount(String s1, String s2) {\n\t int count = 0;\n\t int auxArray[] = new int[s2.length()];\n\t for (int i = 0; i < auxArray.length; i++){\n\t\tauxArray[i] = 0;\n\t }\n\t \n\t for(int i = 0; i < s1.length(); i++){\n\t\tfor(int j = 0; j < s2.length(); j++){\n\t\t if( auxArray[j] == 1){\n\t\t continue;\n\t\t }\n\t\t else{\n\t\t if(s1.charAt(i) == s2.charAt(j)){\n\t\t auxArray[j] = 1;\n\t\t count += 1;\n\t\t break;\n\t\t }\n\t\t }\n\t\t}\n\t }\n\t return count;\n\t}", "int findLCA(int a, int b) {\n int n1 = (depth[a] > depth[b]) ? a : b;\n int n2 = (depth[a] > depth[b]) ? b : a;\n\n int toMove = depth[n1] - depth[n2];\n for (int i = 17; i >= 0; i--) {\n if (lcaSteps[i] <= toMove) {\n n1 = lcaArr[i][n1];\n toMove -= lcaSteps[i];\n }\n }\n\n // Find LCA\n if (n1 == n2) return n1;\n else {\n for (int i = 17; i >= 0; i--) {\n if (lcaArr[i][n1] != lcaArr[i][n2]) {\n n1 = lcaArr[i][n1];\n n2 = lcaArr[i][n2];\n }\n }\n }\n\n return lcaArr[0][n1];\n }", "static int memoizedLCS(char[] X, char[] Y, int n, int m, int[][] cache) {\r\n\t\tif(n==0 || m==0) \r\n\t\t\treturn 0;\r\n\t\t\r\n\t\tif(cache[n][m] != -1)\r\n\t\t\treturn cache[n][m];\r\n\t\t\r\n\t\tif (X[n - 1] == Y[m - 1]) // Check if chars in X and Y at those indexes are same\r\n\t\t\tcache[n][m] = 1 + memoizedLCS(X, Y, n-1, m-1, cache);\r\n\t\telse\r\n\t\t\tcache[n][m] = Math.max(memoizedLCS(X, Y, n-1, m, cache), \r\n\t\t\t\t\t\t\t\tmemoizedLCS(X, Y, n, m-1, cache));\r\n\t\treturn cache[n][m];\r\n\t}", "public static int getCommonStrLength(String str1, String str2) {\n\t\t\n\t\tint len1 = str1.length();\n\t\tint len2 = str2.length();\n\t\t\n\t\tif (len1<=0 || len2<=0) {\n\t\t\treturn 0;\n\t\t}\n\t\t\n\t\tchar[] s1 = str1.toLowerCase().toCharArray();\n\t\tchar[] s2 = str2.toLowerCase().toCharArray();\n\t\tint[][] dp = new int[len1][len2];\n\t\tint result = 0;\n\t\t\n\t\tfor (int i=0; i<len1; i++) {\n\t\t\tfor (int j=0; j<len2; j++) {\n\t\t\t\tif (s1[i] == s2[j]) {\n\t\t\t\t\tif (i==0 || j==0) {\n\t\t\t\t\t\tdp[i][j] = 1;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tdp[i][j] = dp[i-1][j-1] + 1;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tdp[i][j] = 0;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (dp[i][j] > result) {\n\t\t\t\t\tresult = dp[i][j];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn result;\n\t\t\t\n\t}", "public static double ContentOverlap(String content_a , String content_b){\n\t\tdouble hits = 0;\n\t\tif(content_a == null || content_b == null){\n\t\t\treturn -1;\n\t\t}\n\t\tMap<String,Boolean> check =new HashMap<String,Boolean>();\n\t\tMap<String,Boolean> check_b =new HashMap<String,Boolean>();\n\t\tList<Word> words = ChineseSplit.SplitStrWithPos(content_a);\n\t\tList<Word> words_b = ChineseSplit.SplitStrWithPos(content_b);\n\t\t\n\t\tfor(Word wd : words){\n\t\t\tcheck.put(wd.getName(),true);\n\t\t}\n\t\tfor(Word wd : words_b){\n\t\t\tcheck_b.put(wd.getName(),true);\n\t\t}\n\t\tif(check.size() == 0 || check_b.size() == 0){\n\t\t\treturn 0;\n\t\t}\n\t\t///for content_a small than content_b\n\t\tif(words.size() < words_b.size() * 1.2){\n\t\t\tfor(Word wd : words){\n\t\t\t\tif(check_b.containsKey(wd.getName())){\n\t\t\t\t\tif(check_b.get(wd.getName())){\n\t\t\t\t\t\thits++;\n\t\t\t\t\t\tcheck_b.put(wd.getName(), false);\n\t\t\t\t\t}\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn 1 + hits/check.size();\n\t\t}else{\n\t\t\tfor(Word wd : words_b){\n\t\t\t\tif(check.containsKey(wd.getName())){\n\t\t\t\t\tif(check.get(wd.getName())){\n\t\t\t\t\t\thits++;\n\t\t\t\t\t\tcheck.put(wd.getName(), false);\n\t\t\t\t\t}\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn hits/check_b.size();\n\t\t}\t\n\t}", "static int[][] iterativeLCS(char[] X, char[] Y, int n, int m) {\r\n\t\tint L[][] = new int[n + 1][m + 1];\r\n\r\n\t\t/*\r\n\t\t * Following steps build L[m+1][n+1] in bottom up fashion. Note that\r\n\t\t * L[i][j] contains length of LCS of X[0..i-1] and Y[0..j-1]\r\n\t\t */\r\n\t\tfor (int i = 0; i < n + 1; i++) {\r\n\t\t\tL[i][0] = 0;\r\n\t\t}\r\n\r\n\t\tfor (int j = 0; j < m + 1; j++) {\r\n\t\t\tL[0][j] = 0;\r\n\t\t}\r\n\r\n\t\tfor (int i = 1; i < n + 1; i++) {\r\n\t\t\tfor (int j = 1; j < m + 1; j++) {\r\n\t\t\t\tif (X[i - 1] == Y[j - 1]) // Check if chars in X and Y at those indexes are same\r\n\t\t\t\t\tL[i][j] = L[i - 1][j - 1] + 1;\r\n\t\t\t\telse\r\n\t\t\t\t\tL[i][j] = Math.max(L[i - 1][j], \r\n\t\t\t\t\t\t\t\t\t\tL[i][j - 1]);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn L;\r\n\t}", "public int largestOverlap(int[][] A, int[][] B) {\n List<int[]> aList = new ArrayList<>();\n List<int[]> bList = new ArrayList<>();\n for (int i = 0; i < A.length; i++) {\n \tfor (int j = 0; j < A[0].length; j++) {\n \t\tif (A[i][j] == 1) aList.add(new int[] {i, j});\n \t\tif (B[i][j] == 1) bList.add(new int[] {i, j});\n \t}\n }\n int result = 0;\n Map<String, Integer> overlaps = new HashMap<>();\n for (int[] a : aList) {\n \tfor (int[] b : bList) {\n \t\tString offset = (a[0] - b[0]) + \",\" + (a[1] - b[1]);\n \t\toverlaps.put(offset, overlaps.getOrDefault(offset, 0) + 1);\n \t\tresult = Math.max(result, overlaps.get(offset));\n \t}\n }\n return result;\n }", "private static int editDis(String str1, String str2, int l1, int l2) {\n\t\tint[][] dp = new int[l1+1][l2+1];\n\t\tfor(int i=0;i<l2+1;i++) {\n\t\t\tdp[0][i]=i;\n\t\t}\n\t\tfor(int i=0;i<l1+1;i++) {\n\t\t\tdp[i][0]=i;\n\t\t}\n\t\t\n\t\tfor(int i=1;i<l1+1;i++) {\n\t\t\tfor(int j=1;j<l2+1;j++) {\n\t\t\t\tif(str1.charAt(i-1)==str2.charAt(j-1))\n\t\t\t\t\tdp[i][j]=dp[i-1][j-1];\n\t\t\t\telse {\n\t\t\t\t\tdp[i][j]=Math.min(dp[i][j], Math.min(dp[i][j-1], dp[i-1][j]))+1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn dp[l1][l2];\n\t\t\n\t}", "public static int levenshtein(String a, String b) {\n a = a.toLowerCase();\n b = b.toLowerCase();\n\n if (a.equals(b)) {\n return 0;\n }\n\n return lev(a, b, a.length(), b.length());\n }", "static int countCollinearFast(int[] a1, int[] a2, int[] a3)\n {\n //TODO: implement this method\n \tsort(a3);\n \tint count = 0;\n \tint search;\n \t\n \tfor (int i=0; i<a1.length; i++)\n \t\tfor (int j=0; j<a2.length; j++)\n \t\t{\n \t\t\tsearch = 2*a2[j] - a1[i];\n \t\t\tif (binarySearch(a3, search))\n \t\t\t\tcount++;\n \t\t}\n \t\n \treturn count;\n }", "private static int longestPalindromicSubsequence(String str1) {\n\t\tStringBuilder str2 = new StringBuilder(str1);\n\t\tstr2.reverse().toString();\n\t\tString strtemp = str2.toString(); \n\t\treturn LCSDP(str1,strtemp,str1.length(),str1.length());\n\t}", "private static String[] findContiguousHistory(String[] input1, String[] input2) {\n List<String> result = new ArrayList<>();\n for (int i = 0; i < input1.length; i++) {\n String currentWord = input1[i];\n int temp = i;\n List<String> currResult = new ArrayList<>(); // a\n for (int j = 0; j < input2.length; j++) {\n if (input2[j].equals(currentWord)) {\n currResult.add(input2[j]);\n i++;\n if (i == input1.length) i = 0;\n currentWord = input1[i];\n }\n }\n i = temp;\n if (currResult.size() > result.size()) result = new ArrayList<>(currResult);\n }\n return result.toArray(new String[] {});\n }", "public int compare(PartialAlignment x, PartialAlignment y) {\n\t\t\tint matchDiff = (y.matches1 + y.matches2)\n\t\t\t\t\t- (x.matches1 + x.matches2);\n\t\t\tif (matchDiff > 0) {\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t\tif (matchDiff < 0) {\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t\t// 3 - Total words covered (more)\n\t\t\tint allMatchDiff = (y.allMatches1 + y.allMatches2)\n\t\t\t\t\t- (x.allMatches1 + x.allMatches2);\n\t\t\tif (allMatchDiff > 0) {\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t\tif (allMatchDiff < 0) {\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t\t// 4 - Number of chunks (less)\n\t\t\tint chunkDiff = x.chunks - y.chunks;\n\t\t\tif (chunkDiff != 0)\n\t\t\t\treturn chunkDiff;\n\t\t\t// 5 - Absolute match distance (less)\n\t\t\treturn x.distance - y.distance;\n\t\t}", "private static int LevenshteinDistance(String src, String dest){\n int[][] d = new int[src.length() + 1][dest.length() + 1];\n int i, j, cost;\n char[] str1 = src.toCharArray();\n char[] str2 = dest.toCharArray();\n \n for (i = 0; i <= str1.length; i++){d[i][0] = i;}\n for (j = 0; j <= str2.length; j++){d[0][j] = j;}\n for (i = 1; i <= str1.length; i++){\n for (j = 1; j <= str2.length; j++){\n if (str1[i - 1] == str2[j - 1])\n cost = 0;\n else\n cost = 1;\n d[i][j] =\n Math.min(\n d[i - 1][j] + 1, // Deletion\n Math.min(\n d[i][j - 1] + 1, // Insertion\n d[i - 1][j - 1] + cost)); // Substitution\n\n if ((i > 1) && (j > 1) && (str1[i - 1] == str2[j - 2]) && (str1[i - 2] == str2[j - 1]))\n {\n d[i][j] = Math.min(d[i][j], d[i - 2][j - 2] + cost);\n } \n }\n }\n return d[str1.length][str2.length];\n }", "public static String longestSubstringLength(String X, String Y){\n int[][] L = new int[X.length()][Y.length()];\n // stores the length of the longest substring\n int max = 0;\n // stores the last index of the longest common substring\n int lastIndex = 0;\n // outer loop checks for every character of first string\n for(int i = 0; i < X.length(); i++){\n // inner loop checks for every character of second string\n for(int j =0; j < Y.length(); j++){\n // when character matches\n if(X.charAt(i) == Y.charAt(j)){\n // check if it is the first row or column\n if(i == 0 || j == 0){\n L[i][j] = 1;\n }else{\n // use earlier calculated longest length and add one\n L[i][j] = L[i - 1][j - 1] + 1;\n // check which is greater\n if(L[i][j] > max){\n // store length of the longest substring\n max = L[i][j];\n // index of the last character of the common substring\n lastIndex = i;\n }\n }\n }\n // when characters do not match\n else{\n // assign length as 0\n L[i][j] = 0;\n }\n }\n }\n // extract substring which will be the longest\n String longSubstring = X.substring(lastIndex - max + 1, lastIndex + 1);\n return longSubstring;\n }", "private static int textCompare(final Resource r1, final Resource r2) throws IOException {\n try (BufferedReader in1 =\n new BufferedReader(new InputStreamReader(r1.getInputStream()));\n BufferedReader in2 = new BufferedReader(\n new InputStreamReader(r2.getInputStream()))) {\n\n String expected = in1.readLine();\n while (expected != null) {\n final String actual = in2.readLine();\n if (!expected.equals(actual)) {\n if (actual == null) {\n return 1;\n }\n return expected.compareTo(actual);\n }\n expected = in1.readLine();\n }\n return in2.readLine() == null ? 0 : -1; //NOSONAR\n }\n }", "@SuppressWarnings(\"rawtypes\")\r\n\t@Override\r\n\tpublic int compare(WritableComparable a, WritableComparable b)\r\n\t{\n\t\tText left = (Text)a;\r\n\t\tText right = (Text)b;\r\n\t\t\r\n\t\tText realLeft = new Text(left.toString().split(\"-,-\")[1]);\r\n\t\tText realRight = new Text(right.toString().split(\"-,-\")[1]);\r\n\t\t\t\t\r\n\t\tint result = tc.compare(realLeft, realRight);\r\n\t\t\t\t\r\n\t\treturn result;\r\n\t}", "public int minCharacters(String a, String b) {\n int[] c1 = new int[26];\n int[] c2 = new int[26];\n for (char c: a.toCharArray()) {\n c1[c-'a']++;\n }\n for (char c: b.toCharArray()) {\n c2[c-'a']++;\n }\n\n // initialize res\n int m = a.length();\n int n = b.length();\n int res = m + n;\n\n // 1. make string a and b only consist of distinct character\n for (int i = 0; i < 26; ++i) {\n // means operations to change all characters(m+n) to character i (c1[i] and c2[i])\n res = Math.min(res, m + n - c1[i] - c2[i]);\n }\n\n // cal prefix sum\n // this prefix sum represents the frequency of all characters less than i;\n for (int i = 1; i < 26; ++i) {\n c1[i] += c1[i - 1];\n c2[i] += c2[i - 1];\n }\n\n // 2,3 a less than b or b less than a\n // why the up-limit is 25? cos, the character 'z' can not be the base character. there is no one\n for (int i = 0; i < 25; ++i) {\n // c1[i] for freq of characters less than or equal to i in a\n // c2[i] for freq of characters less than or equal to i in b\n\n // 2. make a < b\n // replace all characters less or equal to i in `b` to larger ones and all characters grater than i in `a` to less ones\n res = Math.min(res, c2[i] + m - c1[i]);\n // 3. make a > b\n // replace all characters less or equal to i in `a` to larger ones and all characters grater than i in `b` to less ones\n res = Math.min(res, c1[i] + n - c2[i]);\n }\n return res;\n }", "int stringsConstruction(String a, String b){\n a=\" \"+a+\" \";\n b=\" \"+b+\" \";\n int output = b.split(\"\"+a.charAt(1)).length - 1;\n for(char i = 'a'; i <= 'z'; i++) {\n if (a.split(\"\"+i).length > 1) {\n int tempOut = (b.split(\"\"+i).length - 1) / (a.split(\"\"+i).length - 1);\n if (output > tempOut) {\n output = tempOut;\n }//if (output > tempOut) {\n }//if (a.split(\"\"+i).length > 1) {\n }//for(char i = 'a'; i <= 'z'; i++) {\n return output;\n }", "public static int score(String first, String second) {\n Set<String> s1 = splitIntoBigrams(first);\n Set<String> s2 = splitIntoBigrams(second);\n\n // Get the number of elements in each set.\n int n1 = s1.size();\n int n2 = s2.size();\n\n // Find the intersection, and get the number of elements in that set.\n s1.retainAll(s2);\n int nt = s1.size();\n\n\n // The coefficient is:\n //\n // 2 ∙ | s1 ⋂ s2 |\n // D = ----------------------\n // | s1 | + | s2 |\n //\n double out = (2.0 * (double)nt) / ((double)(n1 + n2));\n out = (out + scoreReverse(first, second)) / 2;\n return (int)(Math.abs(out - 1) * 10);\n\n }", "public static void main(String[] args) {\n\t\t\n\t\tString str = \"aaabbbbbbddcmmm\";\n\t\tString[] arr1 = str.split(\"\");\n\t\t\n\t\tString last=\"\";\n\t\tint count = 1;\n\t\tfor (int i = 0; i < arr1.length; i++) {\n\t\t\tcount = 1;\n\t\t\t\n\t\t\tfor (int j = i+1; j < arr1.length; j++) {\n\t\t\t\tif(arr1[i].equals(arr1[j])) {\n\t\t\t\t\tcount++;\n\t\t\t\t\ti=j;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tlast += count + arr1[i];\n\t\t}\n\t\t\n\t\n\t\t//return last;\n\t\t\n\t\tSystem.out.println(last);\n\t}", "public int minDistance(String word1, String word2) {\n char[] cs1 = word1.toCharArray();\n char[] cs2 = word2.toCharArray();\n int len1 = cs1.length;\n int len2 = cs2.length;\n // if (len1 * len2 == 0) {\n // return Math.max(len1, len2);\n // }\n int[][] min = new int[len1][len2];\n int m = Integer.MAX_VALUE;\n for (int i = 0; i < len1; i++) {\n for (int j = 0; j < len2; j++) {\n m = Integer.MAX_VALUE;\n m = Math.min(getMinDis(min, i, j - 1) + 1, m);\n m = Math.min(getMinDis(min, i - 1, j) + 1, m);\n m = Math.min(getMinDis(min, i - 1, j - 1)\n + (cs1[i] == cs2[j] ? 0 : 1), m);\n min[i][j] = m;\n }\n }\n return getMinDis(min, len1 - 1, len2 - 1);\n }", "public static void main(String[] args) {\n String a = \"agbcba\";\n StringBuilder rev = new StringBuilder(a);\n System.out.println(a.length() - findLCS(a, rev.reverse().toString(), a.length(), a.length()));\n }", "int LCA(int level[], int parent[], int x, int y) {\n while (rootOfSubtree[x] != rootOfSubtree[y]) {\n if (level[x] > level[y]) {\n x = rootOfSubtree[x];\n } else {\n y = rootOfSubtree[y];\n }\n }\n //now they are in the same section, so we trivially compute the LCA\n while (x != y) {\n if (level[x] > level[y]) {\n x = parent[x];\n } else {\n y = parent[y];\n }\n }\n return x;\n }", "private static int almostEqual(GroundTerm a, GroundTerm b) {\r\n\t\treturn StringUtils.getLevenshteinDistance(a.toString(), b.toString());\r\n\t}", "static int makeAnagram1(String a, String b) {\n int count = 0;\n Map<Character, Integer> mapA = initMap(a);\n Map<Character, Integer> mapB = initMap(b);\n\n Iterator<Character> it = mapA.keySet().iterator();\n while (it.hasNext()) {\n char c = it.next();\n int frequencyA = mapA.get(c);\n if (mapB.containsKey(c)) {\n int frequencyB = mapB.get(c);\n count += Math.abs(frequencyA - frequencyB);\n int min = Math.min(frequencyA, frequencyB);\n mapA.put(c, min);\n mapB.put(c, min);\n } else {\n count += frequencyA;\n }\n }\n\n it = mapB.keySet().iterator();\n while (it.hasNext()) {\n char c = it.next();\n int frequencyB = mapB.get(c);\n if (mapA.containsKey(c)) {\n int frequencyA = mapA.get(c);\n count += Math.abs(frequencyA - frequencyB);\n int min = Math.min(frequencyA, frequencyB);\n mapA.put(c, min);\n mapB.put(c, min);\n } else {\n count += frequencyB;\n }\n }\n return count;\n }", "public int repeatedStringMatch(String a, String b) {\n \n int count = 0;\n StringBuilder sb = new StringBuilder();\n \n while(sb.length() < b.length()){\n sb.append(a); //O(roundUp(M/N) * N) < O(M*N)\n count++;\n }\n \n if(sb.indexOf(b) != -1) return count; //check at max O(M*N) characters\n \n //handles rotated array case\n if(sb.append(a).indexOf(b) != -1) return count + 1; //append takes O(N), indexOf takes in the worst case (missing match) ~O(M*N)\n \n return -1;\n }", "public static int shared(String s1, String s2) {\n\t\tMap<Character, Integer> c1 = counts(s1);\n\t\tMap<Character, Integer> c2 = counts(s2);\n\t\tint result = 0;\n\t\tfor (Character key : c1.keySet()) {\n\t\t\tInteger val1 = c1.get(key);\n\t\t\tInteger val2 = c2.get(key);\n\t\t\tif (val2 == null) continue;\n\t\t\tresult += Math.min(val1, val2);\n\t\t}\n\t\treturn result;\n\t}", "private int compareInternal(String shorter, String longer) {\n int lengthDiff = longer.length() - shorter.length();\n\n for (int compareStartIndexInsideLonger = 0; compareStartIndexInsideLonger <= lengthDiff; compareStartIndexInsideLonger++) {\n String compariosonPartFromLonger = longer.substring(compareStartIndexInsideLonger, compareStartIndexInsideLonger + shorter.length());\n //we have found an answer if they are not equal\n int result = shorter.compareTo(compariosonPartFromLonger);\n if (result != 0) {\n return result;\n }\n }\n\n //the are equal\n return 0;\n }", "int partDist(String w1, String w2, int w1len, int w2len) {\n // To remember previous state\n int [][] matrix = new int [w1len + 1][w2len +1];\n for(int i = 0; i <= w1len; i++){\n for(int j = 0; j <= w2len; j++){\n // If word 1 is empty\n if(i == 0)\n matrix[i][j] = j;\n // If word 2 is empty\n else if(j == 0)\n matrix[i][j] = i;\n\n // if the previous letter are the same\n else if(w1.charAt(i-1) == w2.charAt(j-1))\n matrix[i][j] = matrix[i-1][j-1];\n /*\n remove one letter matrix[i][j-1]\n add one letter matrix[i-1][j]\n change letter matrix[i-1][j-1]\n */\n else\n matrix[i][j] = 1 + min(matrix[i][j-1], matrix[i-1][j], matrix[i-1][j-1]);\n }\n }\n\n return matrix[w1len][w2len];\n }", "public int compareStringObjectsForLexRange(Object obj1, Object obj2) {\n\t\t /* This makes sure that we handle inf,inf and\n -inf,-inf ASAP. One special case less. */\n\t\tif (obj1 == obj2) {\n\t\t\treturn 0;\n\t\t}\n\t\t//if (obj1 == shared.minstring || obj2 == shared.maxstring) return -1;\n\t\t//if (obj1 == shared.maxstring || obj2 == shared.minstring) return 1;\n\t\treturn compareStringObjects(obj1, obj2);\n\t}", "public static int compare(byte[] s1, byte[] s2) {\n int i;\n int len1 = s1.length;\n int len2 = s2.length;\n if (len1 > len2) {\n return 1;\n }\n if (len2 > len1) {\n return -1;\n }\n int acc = 0;\n for (i = 0; i < len1; i++) {\n acc += s1[i];\n acc -= s2[i];\n if (acc != 0) {\n return acc;\n }\n }\n return 0;\n }", "public static int editDistance(String s1, String s2) {\n int[] costs = new int[s2.length() + 1];\n for (int i = 0; i <= s1.length(); i++) {\n int lastValue = i;\n for (int j = 0; j <= s2.length(); j++) {\n if (i == 0)\n costs[j] = j;\n else {\n if (j > 0) {\n int newValue = costs[j - 1];\n if (s1.charAt(i - 1) != s2.charAt(j - 1))\n newValue = Math.min(Math.min(newValue, lastValue),\n costs[j]) + 1;\n costs[j - 1] = lastValue;\n lastValue = newValue;\n }\n }\n }\n if (i > 0)\n costs[s2.length()] = lastValue;\n }\n return costs[s2.length()];\n }", "public int minDistance(String word1, String word2) {\n if(word1==null||word1.length()==0){\n return word2==null?0:word2.length();\n }else if(word2==null||word2.length()==0){\n return word1.length();\n }else if(word1.equals(word2)){\n return 0;\n }\n char[] str1 = word1.toCharArray();\n char[] str2 = word2.toCharArray();\n int[] oldl = new int[str2.length+1];\n int[] newl = new int[str2.length+1];\n for(int i=0;i<=str2.length;i++){\n oldl[i]=i;\n }\n for(int i=1;i<=str1.length;i++){\n newl[0]=i;\n for(int j=1;j<=str2.length;j++){\n newl[j]=Math.min(oldl[j]+1,newl[j-1]+1);\n if(str1[i-1]!=str2[j-1]){\n newl[j]=Math.min(oldl[j-1]+1,newl[j]);\n }else{\n newl[j]=Math.min(oldl[j-1],newl[j]);\n }\n }\n for(int k=0;k<=str2.length;k++){\n oldl[k]=newl[k];\n }\n }\n return newl[str2.length];\n }", "private static int solution2(String s) {\r\n int n = s.length();\r\n int ans = 0;\r\n for (int i = 0; i < n; i++)\r\n for (int j = i + 1; j <= n; j++)\r\n if (allUnique(s, i, j)) ans = Math.max(ans, j - i);\r\n return ans;\r\n }", "public String longestCommonPrefixApproach2(String[] strs) {\n\t\tif (strs == null || strs.length == 0) return \"\";\n\t\tfor (int i = 0; i < strs[0].length() ; i++){\n\t\t\tchar c = strs[0].charAt(i);\n\t\t\tfor (int j = 1; j < strs.length; j ++) {\n\t\t\t\tif (i == strs[j].length() || strs[j].charAt(i) != c)\n\t\t\t\t\treturn strs[0].substring(0, i); \n\t\t\t}\n\t\t}\n\t\treturn strs[0];\n\t}", "static int levenshteinDistance(String x, String y) {\r\n\t\tint[][] dp = new int[x.length() + 1][y.length() + 1];\r\n\r\n\t\tfor (int i = 0; i <= x.length(); i++) {\r\n\t\t\tfor (int j = 0; j <= y.length(); j++) {\r\n\t\t\t\tif (i == 0) {\r\n\t\t\t\t\tdp[i][j] = j;\r\n\t\t\t\t}\r\n\t\t\t\telse if (j == 0) {\r\n\t\t\t\t\tdp[i][j] = i;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tdp[i][j] = min(dp[i - 1][j - 1] \r\n\t\t\t\t\t\t\t+ costOfSubstitution(x.charAt(i - 1), y.charAt(j - 1)), \r\n\t\t\t\t\t\t\tdp[i - 1][j] + 1, \r\n\t\t\t\t\t\t\tdp[i][j - 1] + 1);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn dp[x.length()][y.length()];\r\n\t}", "public static int[] lcp(int[] sa, CharSequence s) {\n int n = sa.length;\n int[] rank = new int[n];\n for (int i = 0; i < n; i++)\n rank[sa[i]] = i;\n int[] lcp = new int[n - 1];\n for (int i = 0, h = 0; i < n; i++) {\n if (rank[i] < n - 1) {\n for (int j = sa[rank[i] + 1]; Math.max(i, j) + h < s.length()\n && s.charAt(i + h) == s.charAt(j + h); ++h)\n ;\n lcp[rank[i]] = h;\n if (h > 0)\n --h;\n }\n }\n return lcp;\n }", "private static int cmp( String str1, String str2 )\n \t\t{\n \t\t\tif ( str1==null && str2==null )\n \t\t\t\treturn 0;\n \t\t\tif ( str1==null )\n \t\t\t\treturn -1;\n \t\t\tif ( str2==null )\n \t\t\t\treturn 1;\n \t\t\t\n \t\t\tint p1 = 0;\n \t\t\tint p2 = 0;\n \t\t\tfor ( ;; ) {\n \t\t\t\tif ( p1>=str1.length() ) {\n \t\t\t\t\tif ( p2>=str2.length() )\n \t\t\t\t\t\treturn 0;\n \t\t\t\t\treturn 1;\n \t\t\t\t}\n \t\t\t\tif ( p2>=str2.length() )\n \t\t\t\t\treturn -1;\n \t\t\t\tchar ch1 = str1.charAt(p1);\n \t\t\t\tchar ch2 = str2.charAt(p2);\n \t\t\t\tif ( ch1>='0' && ch1<='9' && ch2>='0' && ch2<='9' ) {\n \t\t\t\t\tint n1 = 0;\n \t\t\t\t\tint n2 = 0;\n \t\t\t\t\twhile ( ch1>='0' && ch1<='9' ) {\n \t\t\t\t\t\tp1++;\n \t\t\t\t\t\tn1 = n1 * 10 + (ch1-'0');\n \t\t\t\t\t\tif ( p1>=str1.length() )\n \t\t\t\t\t\t\tbreak;\n \t\t\t\t\t\tch1 = str1.charAt(p1);\n \t\t\t\t\t}\n \t\t\t\t\twhile ( ch2>='0' && ch2<='9' ) {\n \t\t\t\t\t\tp2++;\n \t\t\t\t\t\tn2 = n2 * 10 + (ch2-'0');\n \t\t\t\t\t\tif ( p2>=str2.length() )\n \t\t\t\t\t\t\tbreak;\n \t\t\t\t\t\tch2 = str2.charAt(p2);\n \t\t\t\t\t}\n \t\t\t\t\tint c = cmp(n1, n2);\n \t\t\t\t\tif ( c!=0 )\n \t\t\t\t\t\treturn c;\n \t\t\t\t} else {\n \t\t\t\t\tif ( ch1<ch2 )\n \t\t\t\t\t\treturn -1;\n \t\t\t\t\tif ( ch1>ch2 )\n \t\t\t\t\t\treturn 1;\n \t\t\t\t\tp1++;\n \t\t\t\t\tp2++;\n \t\t\t\t}\n \t\t\t}\n \t\t}", "public static int editDistance(String str1, String str2)\r\n\t{\r\n\t\tint length1 = str1.length();\r\n\t\tint length2 = str2.length();\r\n\r\n\t\tint[][] arr = new int[length1 + 1][length2 + 1];\r\n\r\n\t\tfor (int i = 0; i <= length1; i++)\r\n\t\t{\r\n\t\t\tarr[i][0] = i;\r\n\t\t}\r\n\t\tfor (int j = 0; j <= length2; j++)\r\n\t\t{\r\n\t\t\tarr[0][j] = j;\r\n\t\t}\r\n\r\n\t\t// iterate though, and check last char\r\n\t\tfor (int i = 0; i < length1; i++)\r\n\t\t{\r\n\t\t\tchar c1 = str1.charAt(i);\r\n\t\t\tfor (int j = 0; j < length2; j++)\r\n\t\t\t{\r\n\t\t\t\tchar c2 = str2.charAt(j);\r\n\r\n\t\t\t\tif (c1 == c2)\r\n\t\t\t\t{\r\n\t\t\t\t\tarr[i + 1][j + 1] = arr[i][j];\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tint replace = arr[i][j] + 1;\r\n\t\t\t\t\tint insert = arr[i][j + 1] + 1;\r\n\t\t\t\t\tint delete = arr[i + 1][j] + 1;\r\n\r\n\t\t\t\t\tint min = replace > insert ? insert : replace;\r\n\t\t\t\t\tmin = delete > min ? min : delete;\r\n\t\t\t\t\tarr[i + 1][j + 1] = min;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn arr[length1][length2];\r\n\t}", "private static int solution4(String s) {\r\n int n = s.length(), ans = 0;\r\n Map<Character, Integer> map = new HashMap<>();\r\n for (int j = 0, i = 0; j < n; j++) {\r\n if (map.containsKey(s.charAt(j)))\r\n i = Math.max(map.get(s.charAt(j)), i);\r\n ans = Math.max(ans, j - i + 1);\r\n map.put(s.charAt(j), j + 1);\r\n }\r\n return ans;\r\n }", "private static final int weightedLevenshteinDistance(String str1,\n \t\t\tString str2) {\n \t\tint[][] distances = new int[str1.length() + 1][str2.length() + 1];\n \n \t\tfor (int i = 0; i < str1.length() + 1; i++) {\n \t\t\tdistances[i][0] = i;\n \t\t}\n \n \t\tfor (int j = 1; j < str2.length() + 1; j++) {\n \t\t\tdistances[0][j] = j;\n \t\t}\n \n \t\tfor (int i = 1; i < str1.length() + 1; i++) {\n \t\t\tfor (int j = 1; j < str2.length() + 1; j++) {\n \t\t\t\tdistances[i][j] = getKeyDistance(str1.charAt(0), str2.charAt(0))\n \t\t\t\t\t\t+ Math.min(\n \t\t\t\t\t\t\t\tdistances[i - 1][j - 1]\n \t\t\t\t\t\t\t\t\t\t+ (str1.charAt(i - 1) == str2\n \t\t\t\t\t\t\t\t\t\t\t\t.charAt(j - 1) ? 0 : 1), Math\n \t\t\t\t\t\t\t\t\t\t.min(distances[i - 1][j] + 1,\n \t\t\t\t\t\t\t\t\t\t\t\tdistances[i][j - 1] + 1));\n \t\t\t}\n \t\t}\n \n \t\treturn distances[str1.length()][str2.length()];\n \t}", "public String longestCommonPrefix_solution2(String[] strs) {\n if (strs == null || strs.length == 0) return \"\";\n for (int i = 0; i < strs[0].length() ; i++){\n char c = strs[0].charAt(i);\n for (int j = 1; j < strs.length; j ++) {\n if (i == strs[j].length() || strs[j].charAt(i) != c)\n return strs[0].substring(0, i);\n }\n }\n return strs[0];\n }", "public static String MaxSequence(String X, String Y) \r\n\t{\r\n\t\tint mat[][] = BuildMatrix(X,Y);\r\n\t\tint row = mat.length;\r\n\t\tint col = mat[0].length;\r\n\t\tint seqLength = mat[row-1][col-1];\r\n\t\tString result = \"\";\r\n\t\tint i =row-1;\r\n\t\tint j = col-1;\r\n\t\tint count = seqLength-1;\r\n\t\t\r\n\t\twhile(count >= 0) \r\n\t\t{\r\n\t\t\tif(X.charAt(i-1) == Y.charAt(j-1)) \r\n\t\t\t{\r\n\t\t\t\tresult = X.charAt(i-1) + result;\r\n\t\t\t\ti--;\r\n\t\t\t\tj--;\r\n\t\t\t\tcount--;\r\n\t\t\t}\r\n\t\t\telse if(mat[i][j] == mat[i][j-1])\r\n\t\t\t\tj--;\r\n\t\t\telse\r\n\t\t\t\ti--;\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "public int DeleteOperationforTwoStrings(String word1, String word2)\n\t{\n\t\tint n1 = word1.length();\n int n2 = word2.length();\n int[][] dp = new int[n1 + 1][n2 + 1];\n for(int i = 1; i <= n1; i ++)\n {\n for(int j = 1; j <= n2; j ++)\n {\n dp[i][j] = word1.charAt(i - 1) == word2.charAt(j - 1) ? \n dp[i - 1][j - 1] + 1 : Math.max(dp[i - 1][j], dp[i][j - 1]);\n }\n }\n return n1 + n2 - 2 * dp[n1][n2];\n\t}", "private String longestCommonPrefixVS(String[] strs){\n\t\tif (strs == null || strs.length == 0) return \"\";\n\t\t for (int i = 0; i < strs[0].length() ; i++){\n\t\t char c = strs[0].charAt(i);\n\t\t for (int j = 1; j < strs.length; j ++) {\n\t\t if (i == strs[j].length() || strs[j].charAt(i) != c)\n\t\t return strs[0].substring(0, i);\n\t\t }\n\t\t }\n\t\t return strs[0];\n\t}", "static String morganAndString(String a, String b) {\n\n\t\tString result = \"\";\n\n\t\tint pointerA = 0, pointerB = 0;\n\n\t\touter:\n\t\t\twhile ( pointerA < a.length() || pointerB < b.length()){\n\t\t\t\tif ( pointerA == a.length()) {\n\t\t\t\t\tresult = result + b.charAt(pointerB++);\n\t\t\t\t}\n\t\t\t\telse if ( pointerB == b.length()) {\n\t\t\t\t\tresult = result + a.charAt(pointerA++);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tchar ca = a.charAt ( pointerA );\n\t\t\t\t\tchar cb = b.charAt ( pointerB );\n\n\t\t\t\t\tif ( ca < cb ) {\n\t\t\t\t\t\tresult = result + ca;\n\t\t\t\t\t\tpointerA++;\n\t\t\t\t\t}\n\t\t\t\t\telse if ( cb < ca ){\n\t\t\t\t\t\tresult = result + cb;\n\t\t\t\t\t\tpointerB++;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\t// Find the smallest successor.\n\t\t\t\t\t\tint extraPointer = 1;\n\t\t\t\t\t\twhile ( pointerA + extraPointer < a.length() && pointerB + extraPointer < b.length()){\n\t\t\t\t\t\t\tchar cEa = a.charAt ( pointerA + extraPointer);\n\t\t\t\t\t\t\tchar cEb = b.charAt ( pointerB + extraPointer);\n\n\t\t\t\t\t\t\tif ( cEa < cEb ){\n\t\t\t\t\t\t\t\tresult = result + cEa;\n\t\t\t\t\t\t\t\tpointerA++;\n\t\t\t\t\t\t\t\tcontinue outer;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if ( cEb < cEa ){\n\t\t\t\t\t\t\t\tresult = result + cEb;\n\n\n\t\t\t\t\t\t\t\tpointerB++;\n\t\t\t\t\t\t\t\tcontinue outer;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\textraPointer++;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// We got to the point in which both are the same.\n\t\t\t\t\t\tif ( pointerA + extraPointer == a.length() && pointerB + extraPointer == b.length()){\n\t\t\t\t\t\t\t// Both are equal. It doesn't matter which one I take it from.\n\t\t\t\t\t\t\tresult = result + ca;\n\t\t\t\t\t\t\tpointerA++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tif ( pointerA + extraPointer == a.length() ){\n\t\t\t\t\t\t\t\t// Compare the current one of B with the next letter.\n\t\t\t\t\t\t\t\t// If next letter is smaller than current one, cut from here.\n\t\t\t\t\t\t\t\t// else, cut from A.\n\t\t\t\t\t\t\t\tif ( b.charAt ( pointerB + extraPointer ) > b.charAt ( pointerB + extraPointer + 1)){\n\t\t\t\t\t\t\t\t\tresult = result + cb;\n\t\t\t\t\t\t\t\t\tpointerB++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\tresult = result + ca;\n\t\t\t\t\t\t\t\t\tpointerA++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t// The opposite.\n\t\t\t\t\t\t\t\t// Compare the current one of B with the next letter.\n\t\t\t\t\t\t\t\t// If next letter is smaller than current one, cut from here.\n\t\t\t\t\t\t\t\t// else, cut from A.\n\t\t\t\t\t\t\t\tif ( a.charAt ( pointerA + extraPointer ) > a.charAt ( pointerA + extraPointer + 1)){\n\t\t\t\t\t\t\t\t\tresult = result + ca;\n\t\t\t\t\t\t\t\t\tpointerA++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\tresult = result + cb;\n\t\t\t\t\t\t\t\t\tpointerB++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\treturn result;\n\n\n\t}", "static int makeAnagram(String a, String b) {\n \n \tchar arr[] = a.toCharArray();\n char brr[] = b.toCharArray();\n Arrays.sort(arr);\n Arrays.sort(brr);\n Map<Character, Integer> aMap = new HashMap<>();\n Map<Character, Integer> bMap = new HashMap<>();\n for(int i =0 ;i <arr.length;i++){\n \tif(!aMap.containsKey(arr[i])){\n \t\taMap.put(arr[i], 1);\n \t}else{\n \t\taMap.put(arr[i], aMap.get(arr[i])+1);\n \t}\n }\n for(int i =0 ;i <brr.length;i++){\n \tif(!bMap.containsKey(brr[i])){\n \t\tbMap.put(brr[i], 1);\n \t}else{\n \t\tbMap.put(brr[i], bMap.get(brr[i])+1);\n \t}\n }\n int removeCharCount = 0;\n \n for(char ch = 'a'; ch<='z';ch++){\n \tif(aMap.containsKey(ch) && bMap.containsKey(ch)){\n \t\tif(aMap.get(ch) > bMap.get(ch)){\n \t\t\tint count = aMap.get(ch) - bMap.get(ch);\n \t\t\tremoveCharCount+=count;\n \t\t\taMap.put(ch, aMap.get(ch) - count);\n \t\t}else if(aMap.get(ch) < bMap.get(ch)){\n \t\t\tint count = bMap.get(ch) - aMap.get(ch);\n \t\t\tremoveCharCount+=count;\n \t\t\taMap.put(ch, bMap.get(ch) - count);\n \t\t}\n \t}else if(aMap.containsKey(ch) && !bMap.containsKey(ch)){\n \t\tint count = aMap.get(ch);\n \t\tremoveCharCount+=count;\n \t\taMap.remove(ch);\n \t}else if(!aMap.containsKey(ch) && bMap.containsKey(ch)){\n \t\tint count = bMap.get(ch);\n \t\tremoveCharCount+=count;\n \t\tbMap.remove(ch);\n \t}\n }\n /* if(removeCharCount == Math.min(arr.length, brr.length)){\n \treturn 0;\n }*/\n return removeCharCount;\n }", "static int alternate(String s) {\n HashMap<Character,Integer>mapCharacter = new HashMap<>();\n LinkedList<String>twoChar=new LinkedList<>();\n LinkedList<Character>arr=new LinkedList<>();\n Stack<String>stack=new Stack<>();\n int largest=0;\n int counter=0;\n if (s.length()==1){\n return 0;\n }\n\n for (int i =0; i<s.length();i++){\n if (mapCharacter.get(s.charAt(i))==null)\n {\n mapCharacter.put(s.charAt(i),1);\n }\n }\n\n Iterator iterator=mapCharacter.entrySet().iterator();\n while (iterator.hasNext()){\n counter++;\n Map.Entry entry=(Map.Entry)iterator.next();\n arr.addFirst((Character) entry.getKey());\n }\n\n for (int i=0;i<arr.size();i++){\n for (int j=i;j<arr.size();j++){\n StringBuilder sb =new StringBuilder();\n for (int k=0;k<s.length();k++){\n if (s.charAt(k)==arr.get(i)||s.charAt(k)==arr.get(j)){\n sb.append(s.charAt(k));\n }\n }\n twoChar.addFirst(sb.toString());\n }\n }\n\n\n for (int b=0;b<twoChar.size();b++){\n String elementIn=twoChar.get(b);\n stack.push(elementIn);\n\n for (int i=0;i<elementIn.length()-1;i++){\n\n if (elementIn.charAt(i)==elementIn.charAt(i+1)){\n stack.pop();\n break;\n }\n }\n }\n\n int stackSize=stack.size();\n\n for (int j=0;j<stackSize;j++){\n String s1=stack.pop();\n int length=s1.length();\n if (length>largest){\n largest=length;\n\n }\n }\n return largest;\n\n\n\n\n }", "public int minDistance(String word1, String word2) {\n if (word1==null && word2==null)\n return 0;\n if (word1==null)\n return word2.length();\n if (word2==null)\n return word1.length();\n\n int len1 = word1.length()+1;\n int len2 = word2.length()+1;\n int[][] dp = new int[len1][len2];\n for (int i=0; i<len1; i++) {\n dp[i][0] = i;\n }\n for (int j=1; j<len2; j++) {\n dp[0][j] = j;\n }\n for (int i=1; i<len1; i++) {\n char ch1 = word1.charAt(i-1);\n for (int j=1; j<len2; j++) {\n char ch2 = word2.charAt(j-1);\n if (ch1 == ch2) {\n dp[i][j] = dp[i-1][j-1];\n } else {\n int change = dp[i-1][j-1]+1;\n int delete = dp[i-1][j]+1;\n int add = dp[i][j-1]+1;\n int best = change > delete ? delete : change;\n best = best > add ? add : best;\n dp[i][j] = best;\n }\n }\n }\n return dp[len1-1][len2-1];\n }", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\r\n\t\tString[] arr1 = sc.nextLine().split(\" \");\r\n\t\tString[] arr2 = sc.nextLine().split(\" \");\r\n\t\tArrayList<Integer> arr1_ = new ArrayList<Integer>();\r\n\t\tArrayList<Integer> arr2_ = new ArrayList<Integer>();\r\n\t\tfor(int i = 0; i<arr1.length;i++)\r\n\t\t\tarr1_.add(Integer.parseInt(arr1[i]));\r\n\t\tfor(int i = 0; i<arr2.length;i++)\r\n\t\t\tarr2_.add(Integer.parseInt(arr2[i]));\r\n\t\t\r\n\t\tInteger[] final_arr1 = arr1_.toArray(new Integer[arr1_.size()]);\r\n\t\tInteger[] final_arr2 = arr2_.toArray(new Integer[arr2_.size()]);\r\n\t\t\r\n\t\tArrays.sort(final_arr2);\r\n\t\tif(final_arr1[0] <= final_arr1[1]) {\r\n\t\t\tSystem.out.println(final_arr2[final_arr2.length - 3]);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tint cri = 0;\r\n\t\t\tint max_length = -99999;\r\n\t\t\tfor(int i = 1; i < final_arr2[final_arr2.length - 1]; i++) {\r\n\t\t\t\tint count = 0;\r\n\t\t\t\tfor(int j = final_arr2.length - final_arr1[1] ; j < final_arr2.length; j++) {\r\n\t\t\t\t\tif(final_arr2[j] >= i) {count++;}\r\n\t\t\t\t\tif(final_arr2[j] - i >= i) {count++;}\r\n\t\t\t\t}\r\n\t\t\t\tif(count >= final_arr1[0]) {\r\n\t\t\t\t\tif(max_length < i) {max_length = i; cri = 1;}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(cri == 0) {System.out.println(\"-1\");}\r\n\t\t\telse {System.out.println(max_length);}\r\n\t\t}\r\n\t}", "public static int compareCharSequences(CharSequence a, CharSequence b, boolean ignoreCase) {\n if (a == b) {\n return 0;\n }\n if (a instanceof String && b instanceof String) {\n return ((String) a).compareTo((String) b);\n }\n int aLength = a.length();\n int bLength = b.length();\n if (aLength == 0 && bLength == 0) {\n return 0;\n }\n int max = Math.min(aLength, bLength);\n for (int i = 0; i < max; i++) {\n char ac = ignoreCase ? Character.toLowerCase(a.charAt(i)) : a.charAt(i);\n char bc = ignoreCase ? Character.toLowerCase(b.charAt(i)) : b.charAt(i);\n int result = Character.compare(ac, bc);\n if (result != 0) {\n return result;\n }\n }\n if (aLength == bLength) {\n return 0;\n } else if (aLength > bLength) {\n return 1;\n } else {\n return -1;\n }\n }", "public static int lca(Node node, int d1, int d2){\r\n ArrayList<Integer> path1 = nodeToRootPath(node, d1);\r\n ArrayList<Integer> path2 = nodeToRootPath(node, d2);\r\n \r\n //Traverse from behind to avoid time complexity\r\n int i = path1.size() - 1;\r\n int j = path2.size() - 1;\r\n \r\n //Check for valid iterations and till the time data is common, first occurence of diff data in arraylist is the time to stop\r\n while(i>=0 && j>=0 && path1.get(i) == path2.get(j)){\r\n i--; j--;\r\n }\r\n \r\n //Return the last common element from behind in ArrayList\r\n return path1.get(i+1);\r\n }" ]
[ "0.7401043", "0.7298912", "0.72505623", "0.7219182", "0.72102153", "0.7165611", "0.71025157", "0.6994632", "0.6967167", "0.69420654", "0.69352436", "0.68087965", "0.66334105", "0.6590795", "0.64913833", "0.64832795", "0.64240885", "0.63425225", "0.6338758", "0.6269692", "0.62138355", "0.6179826", "0.6082899", "0.6061611", "0.5992656", "0.5968325", "0.5871571", "0.5824212", "0.58120644", "0.5807613", "0.57837653", "0.5769382", "0.57389706", "0.5705945", "0.5685266", "0.5684372", "0.56706184", "0.5649478", "0.5618035", "0.5612477", "0.55995613", "0.5584244", "0.5572186", "0.5525195", "0.55200255", "0.54998493", "0.5496549", "0.54581696", "0.54557705", "0.54139656", "0.5405302", "0.54000443", "0.5398723", "0.53949475", "0.53875935", "0.5366045", "0.5355432", "0.535191", "0.53240424", "0.53160274", "0.53156877", "0.5312152", "0.5297971", "0.52696466", "0.52694875", "0.52553475", "0.52523935", "0.52395236", "0.5228329", "0.5218792", "0.5207794", "0.52054954", "0.5190022", "0.51883084", "0.51853025", "0.51796097", "0.5171653", "0.51697147", "0.5169086", "0.5168558", "0.5167625", "0.51621395", "0.5156976", "0.5150716", "0.51470983", "0.5147085", "0.5141542", "0.5125513", "0.51243234", "0.51097715", "0.51089865", "0.5107121", "0.51012427", "0.509856", "0.5085574", "0.5084572", "0.5083545", "0.5082082", "0.5080816", "0.50683725" ]
0.71941453
5
Creates a new blank action
protected CBlank(){ init( new CommonDockAction(){ public void bind( Dockable dockable ) { // ignore } public <V> V createView( ViewTarget<V> target, ActionViewConverter converter, Dockable dockable ) { return null; } public boolean trigger( Dockable dockable ) { return false; } public void unbind( Dockable dockable ) { // ignore } public CAction getAction(){ return CBlank.this; } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Action createAction();", "Action createAction();", "Action createAction();", "NoAction createNoAction();", "public void createAction() {\n }", "public EmptyAction() {\n\t\tsetActionName(\"Empty Action\");\n\t}", "@Override\n protected Action[] createActions() {\n return new Action[0];\n }", "@Override\n\tpublic void createAction(Model m) {\n\t\t\n\t}", "public ExecuteAction()\n {\n this(null);\n }", "public UpcomingContestsManagerAction() {\r\n }", "public static EventHandler<ActionEvent> createEmptyAction()\n\t{\n\t\treturn new EventHandler<ActionEvent>()\n\t\t{\n\t\t\tpublic void handle(ActionEvent event)\n\t\t\t{\t\t\t\t\n\t\t\t\tevent.consume();\n\t\t\t}\n\t\t};\n\t}", "ActionDefinition createActionDefinition();", "public EmptyRuleActionImpl() {}", "public CreateIndividualPreAction() {\n }", "public Action newAction(Object data) throws Exception;", "ActionType createActionType();", "public String actionCreateNew() {\r\n \t\tsetBook(new Book());\r\n \t\treturn \"new\";\r\n \t}", "public MemberAction() {\n\t\tsuper();\n\t}", "public NewAction() {\n\t\tsuper(\"New...\", null);\n\t\tputValue(ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_N, MAIN_MENU_MASK));\n\t}", "public ScheduledActionAction() {\n\n }", "public NamedAction createNamedAction(String name) {\n NamedActionImpl action = new NamedActionImpl();\n action.setName(name);\n return action;\n }", "public Action(String name) {\n this.name = name;\n }", "CaseAction createCaseAction();", "protected PMBaseAction() {\r\n super();\r\n }", "SendAction createSendAction();", "ActionNew()\n {\n super(\"New\");\n this.setShortcut(UtilGUI.createKeyStroke('N', true));\n }", "protected IAction createAction(IEvent event, String label, String assign)\n\t\t\tthrows RodinDBException {\n\t\tIAction action = event.createChild(IAction.ELEMENT_TYPE, null, null);\n\t\taction.setLabel(label, null);\n\t\taction.setAssignmentString(assign, null);\n\t\treturn action;\n\t}", "public VisitAction() {\n }", "public Action(String id) {\n\t\tthis.id = id;\n\t}", "public Action(long id) {\n this(id, \"\");\n }", "@Override\n\tpublic void newAction() {\n\t\t\n\t}", "public ActionManager() {\n\t\tsuper();\n\t}", "Action(String desc){\n this.desc = desc;\n this.append = \"\";\n }", "ActionBlock createActionBlock();", "public abstract void addAction(Context context, NAAction action);", "public AddApplicationReleaseAction() {\r\n }", "@Override\n public String getAction() {\n return null;\n }", "public DocumentoVinculadoAction() {\n }", "TurnAction createTurnAction();", "public SearchContestsManagerAction() {\r\n }", "public SaveConstitutionInformationAction() {\n }", "public void a_Action(){}", "LogAction createLogAction();", "public NewFSAAction() {\r\n super(Hub.string(\"TD_comAssignNewFSA\"), icon);\r\n icon.setImage(Toolkit.getDefaultToolkit()\r\n .createImage(Hub.getLocalResource(AssignFSADialog.class, \"images/icons/new_automaton.gif\")));\r\n putValue(SHORT_DESCRIPTION, Hub.string(\"TD_comHintAssignNewFSA\"));\r\n }", "public HSRCreateDraftRequestProcessorAction() {\n\t\tlogger.warn(\"***** This constructor is for Test Cases only *****\");\n\t\t\n\t}", "public ConfigAction()\n {\n this(null, null, true);\n }", "static public BasicAction createActionFor(Object o, String methodName)\n {\n BasicAction ba = null;\n try {\n ba = ByteCodeBuilder.generateBasicAction(o, methodName);\n } catch (GeneratorException ex) {\n SimUtilities.showError(\"Error creating action: \" + methodName +\n \" on \" + o.getClass().getName(), ex);\n System.exit(0);\n }\n\n return ba;\n }", "public RepeaterActionDefinition() {\n }", "public void addActionCreate(ActionListener create) {\n btnCreateGame.addActionListener(create);\n }", "public abstract Action getAction();", "public ActionMenuItem() {\n this(\"\");\n }", "public InsertDataAction() {\n\t\tsuper();\n\t}", "public BattleWeaponsSegmentAction() {\n }", "public ActionState createActionState();", "public void create(Object target, NodeDescriptor node, AssertionDescriptor assertion) {\r\n ActionTypeDescriptor actionType = getActionType(Actions.create.toString());\r\n if (actionType != null) {\r\n evaluateAction(Actions.create.toString(), target, null, node, assertion);\r\n }\r\n }", "public Action newAction(Object key) {\n\t\tif (key == null)\n\t\t\tthrow new IllegalArgumentException(\"No legal key passed!\");\n\t\tif (super.containsKey(key))\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"Allready kontains a mapping for that key!\");\n\t\tAction action = new ActionForward();\n\t\tsuper.put(key, action);\n\t\tactionList.add(action);\n\t\treturn action;\n\t}", "public QuizMeAction() {\n\t\tsuper(\"Quiz Me...\", null); \n\t}", "public void initiateAction() {\r\n\t\t// TODO Auto-generated method stub\t\r\n\t}", "private void checkAction() {\n if (action == Consts.CREATE_ACTION) {\n createAction();\n } else {\n updateAction(getArguments().getString(\"taskId\"));\n }\n }", "private ActionPackage() {}", "private Action initializeAction(final String classname) {\n\t\tAction action = null;\n\t\tif (classname != null && !\"\".equals(classname)) {\n\t\t\tClass<?> clazz = null;\n\t\t\ttry {\n\t\t\t\tclazz = Class.forName(classname);\n\t\t\t\taction = (Action) clazz.newInstance();\n\t\t\t} catch (InstantiationException e) {\n\t\t\t\tlog.error(\"Cannot instantiate action class: \" + classname);\n\t\t\t} catch (IllegalAccessException e) {\n\t\t\t\tlog.error(\"Not privileged to access action instance: \"\n\t\t\t\t\t\t+ classname);\n\t\t\t} catch (Throwable e) {\n\t\t\t\tlog.error(\"Cannot load action class: \" + classname);\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\tif (action == null) {\n\t\t\t// Instantiate a mock action such that menu item can\n\t\t\t// be displayed.\n\t\t\taction = new DummyAction();\n\t\t\tlog.warn(\"Instantiated mock action class.\");\n\t\t}\n\t\treturn action;\n\t}", "public JRibbonAction()\n\t{\n\t\tsuper();\n\t}", "public Builder clearAction() {\n bitField0_ = (bitField0_ & ~0x00000001);\n action_ = 0;\n onChanged();\n return this;\n }", "public Builder clearAction() {\n bitField0_ = (bitField0_ & ~0x00000002);\n action_ = 0;\n onChanged();\n return this;\n }", "IWDAction wdCreateAction(WDActionEventHandler eventHandler, String text);", "public FinalJeopardyAction(String name) \n\t\t{\n\t\t\tsuper(name);\n\t\t \n\t\t}", "public UploadProjectAction() {\n\t\tsuper();\n\t}", "public Builder withAction(final String action) {\n this.action = action;\n return this;\n }", "public Builder clearAction() {\n \n action_ = getDefaultInstance().getAction();\n onChanged();\n return this;\n }", "public XpeDccWfActionROVORowImpl() {\n }", "public void setAction(String action) { this.action = action; }", "public void addAction(Action action) {\n\t\t\n\t}", "ActionEvent createActionEvent();", "@Override\r\n\tprotected ActionListener insertBtnAction() {\n\t\treturn null;\r\n\t}", "IWDAction wdCreateNamedAction(WDActionEventHandler eventHandler, String name, String text);", "DomainAction createDomainAction();", "public Action newAction(String command) {\n\t\tif (command == null)\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"No legal command string passed!\");\n\t\tif (super.containsKey(command))\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"Allready kontains a mapping for that key!\");\n\t\tAction action = new ActionForward();\n\t\taction.putValue(Action.ACTION_COMMAND_KEY, command);\n\t\tsuper.put(command, action);\n\t\tactionList.add(action);\n\t\treturn action;\n\t}", "public Builder clearActionCommand() {\n bitField0_ = (bitField0_ & ~0x00000010);\n actionCommand_ = 0;\n onChanged();\n return this;\n }", "private void initActions() \n {\n // Quits the application\n this.quitAction = new AbstractAction (\"Quit\") \n {\n public static final long serialVersionUID = 2L;\n\n @Override\n public void actionPerformed (ActionEvent arg0) \n { \n System.exit(0);\n }\n };\n\n // Creates a new model\n this.newGameAction = new AbstractAction (\"New Game\") \n {\n public static final long serialVersionUID = 3L;\n\n @Override\n public void actionPerformed(ActionEvent arg0) \n {\n AsteroidsFrame.this.newGame ();\n }\n };\n }", "public SilentAction createSilentAction(NamedAction hiddenAction) {\n \tSilentActionImpl silentAction = new SilentActionImpl();\n \tsilentAction.setHiddenAction(hiddenAction);\n return silentAction;\n }", "private Action(){\r\n\t\tthis(-1);\r\n\t}", "public DumpObjectAction()\n\t{\n\n\t\tsuper();\n\t}", "CustomAction(String actionType, String message) {\n action.put(\"Object\", actionType);\n JSONObject attributes = new JSONObject();\n attributes.put(\"message\", message);\n action.put(\"Action\", attributes);\n }", "public interface Action {\n\t\n\t/**\n\t * @return The action's printable value\n\t */\n\tpublic String toString();\n\n\tpublic Action actionClone();\n \t\n}", "public SetStartPageAction() {\n this(TYPE_NONE, null); // Fake action -> The context aware is real one, drawback of the NB design?\n }", "@Override\r\n\tpublic void initActions() {\n\t\t\r\n\t}", "public ActionFile() {\n }", "protected void init_actions()\r\n {\r\n action_obj = new CUP$parser$actions(this);\r\n }", "private PageAction getNewPaymentAction() {\n return new PageAction() {\n @Override\n public void run() { \n Parameters params = new Parameters();\n BasicMember member = data.getTransfer().getBasicMember();\n // Set if there is a member payment or system payment\n if(member != null) { \n params.set(ParameterKey.ID, member.getId()); \n } else {\n params.set(ParameterKey.IS_SYSTEM_ACCOUNT, true);\n }\n Navigation.get().go(PageAnchor.MAKE_PAYMENT, params);\n }\n @Override\n public String getLabel() { \n return messages.newPayment();\n } \n };\n }", "public static Action buildShip(int id, char type) {\n\t\treturn new Action(id, type);\n\t}", "public void setAction (String action) {\n this.action = action;\n }", "public static Action push() {\n return new Action() {\n @Override\n protected void perform(ActiveActor a) {\n if(a.getGrid().isValid(a.getLocation().getAdjacentLocation(a.getDirection()))) {\n Actor b = a.getGrid().get(a.getLocation().getAdjacentLocation(a.getDirection()));\n if(b instanceof Movable && b instanceof DestructibleActor) {\n DestructibleActor c = (DestructibleActor) b;\n c.setDirection(a.getDirection());\n if(c.canMove()) {\n c.move();\n a.move();\n a.energy = a.energy - getCost();\n }\n\n }\n }\n }\n\n @Override\n public int getCost() {\n return 10;\n }\n\n @Override\n public boolean isExclusive() {\n return true;\n }\n\n @Override\n public Object getData() {\n return null;\n }\n\n @Override\n public String toString() {\n return \"Push()\";\n }\n };\n }", "protected void init_actions()\n {\n action_obj = new CUP$Grm$actions();\n }", "public NormalRoom(String description, Action... action) {\n\t\tsuper(description, action);\n\t}", "public Builder clearPlainAction() {\n if (plainActionBuilder_ == null) {\n if (actionCase_ == 1) {\n actionCase_ = 0;\n action_ = null;\n onChanged();\n }\n } else {\n if (actionCase_ == 1) {\n actionCase_ = 0;\n action_ = null;\n }\n plainActionBuilder_.clear();\n }\n return this;\n }", "ForwardAction createForwardAction();", "public void resetAction()\r\n {\r\n this.action = null;\r\n }", "@Override\r\n\tpublic boolean doCreate(Action vo) throws SQLException {\n\t\treturn false;\r\n\t}", "protected void init_actions()\n {\n action_obj = new CUP$parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$parser$actions(this);\n }" ]
[ "0.7987927", "0.7987927", "0.7987927", "0.79772985", "0.7764561", "0.74324316", "0.71786255", "0.68927306", "0.683328", "0.67724305", "0.6764623", "0.6752997", "0.6740542", "0.67012656", "0.669966", "0.6640323", "0.6632843", "0.6615011", "0.6599826", "0.6546665", "0.65453047", "0.651915", "0.64942944", "0.64782923", "0.64155227", "0.63927996", "0.6381527", "0.6353778", "0.6349167", "0.6335899", "0.63069355", "0.62894225", "0.6281608", "0.62726426", "0.6242301", "0.622176", "0.6199796", "0.61929286", "0.61891645", "0.61725146", "0.61602914", "0.6146215", "0.61270297", "0.6105004", "0.6100025", "0.6075783", "0.6069193", "0.6065592", "0.60396945", "0.603725", "0.603428", "0.60301256", "0.6024458", "0.601919", "0.6010491", "0.60099345", "0.6005907", "0.6002655", "0.59805816", "0.59774745", "0.59659106", "0.59378153", "0.5930005", "0.5926436", "0.59241045", "0.59208053", "0.59166944", "0.59104997", "0.5908025", "0.59068334", "0.5894554", "0.5889867", "0.5889518", "0.5882838", "0.58614385", "0.5855908", "0.5854958", "0.5821522", "0.5812861", "0.57907575", "0.5786085", "0.57853556", "0.5778751", "0.5775638", "0.5759301", "0.57544446", "0.5753972", "0.57482785", "0.5743235", "0.5740224", "0.57391125", "0.57326853", "0.5727335", "0.57166463", "0.5712391", "0.5710328", "0.5707519", "0.5707484", "0.56921196", "0.56921196" ]
0.60424197
48
Calcula el perimetro de un triangulo
public static double trianglePerimeter(Point2D point1, Point2D point2, Point2D point3) { double distance12 = point1.distance(point2); double distance23 = point2.distance(point3); double distance31 = point3.distance(point1); return distance12 + distance23 + distance31; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic double calculaTributos() {\n\t\treturn numeroDePacientes * 10;\n\t}", "double getPerimetro();", "private double calculaPerimetro(){\r\n double perimetro;\r\n perimetro=(float) ((2*(cir.getY()-cir.getX()))*Math.PI);\r\n return perimetro;\r\n }", "@Override\n public int calculerPerimetre() {\n return (int)(rayon * 2 * Math.PI);\n }", "public abstract float perimetro();", "public double calcularPerimetro() {\n\t\treturn 2 * (base + altura);\n\t}", "public float perimetro(){\r\n return 2*(float)Math.PI*radio;\r\n }", "public float calcularPerimetro(){\n return baseMayor+baseMenor+(medidaLado*2);\n }", "public float perimetro() {\n return (lado * 2 + base);\r\n }", "public double CalcoloPerimetro () {\r\n \treturn 4*(base);\r\n }", "public double perimetre()\n\t{\n\t\treturn 2*Math.PI*rayon;\n\t}", "@Override\n public double calculaTributos() {\n // TODO Auto-generated method stub\n return 10;\n }", "@Override\n public double perimetro() {\n return 4 * this.lado;\n }", "double getPerimetro(){\n return 2 * 3.14 * raggio;\n }", "@Override\n\tpublic double perimetro() {\n\t\treturn 0;\n\t}", "public void hallarPerimetroEscaleno() {\r\n this.perimetro = this.ladoA+this.ladoB+this.ladoC;\r\n }", "@Override\r\n public void hallarPerimetro() {\r\n this.perimetro = this.ladoA*3;\r\n }", "public void sumaPuntos() {\r\n int rojo = 0;\r\n int azul = 0;\r\n for (int i = 1; i < 10; i++) {\r\n\r\n if (tablero[1][i].getTipo().equals(\"Rojo\")) {\r\n rojo += tablero[1][i].getValor();\r\n }\r\n\r\n if (tablero[8][i].getTipo().equals(\"Azul\")) {\r\n azul += tablero[8][i].getValor();\r\n }\r\n\r\n }\r\n if (rojo > azul) {\r\n this.setResultado(\"Rojo\");\r\n this.agregarVictoria(jugadorRojo);\r\n }\r\n if (azul > rojo) {\r\n this.setResultado(\"Azul\");\r\n this.agregarVictoria(jugadorAzul);\r\n }\r\n \r\n this.setReplay(true);\r\n }", "public void hallarPerimetroIsosceles() {\r\n this.perimetro = 2*(this.ladoA+this.ladoB);\r\n }", "@Override\n\tpublic double perimetro() {\n\t\treturn getBase()*4;\n\t}", "public double calcularPortes() {\n\t\tif (this.pulgadas <= 40) {\n\t\t\tif (this.getPrecioBase() > 500)\n\t\t\t\treturn 0;\n\t\t\telse\n\t\t\t\treturn 35;\n\t\t} else\n\t\t\treturn 35 + (this.pulgadas - 40);\n\t}", "public double calcularTarifa(){\n\t\treturn TARIFA_BASE * 1.2;\n\t}", "public int precioFinal(){\r\n int monto=super.PrecioFinal();\r\n\t \t \r\n\t if (pulgadas>40){\r\n\t monto+=precioBase*0.3;\r\n\t }\r\n\t if (sintonizador){\r\n\t monto+=50;\r\n\t }\r\n\t \r\n\t return monto;\r\n\t }", "private int calcTotalTime() {\n\t\tint time = 0;\n\t\tfor (Taxi taxi : taxis) {\n\t\t\ttime += taxi.calcTotalTime();\n\t\t}\n\t\treturn time;\n\t}", "public double getTempoManipulator(int time) {\n if (time < duration * ((double) pStart / 100)) // BEFORE INCREASE\n return roundWithPrecision(pOffset, 3);\n else if (time > duration * (((double) pStart + (double) pDuration) / 100)) // AFTER INCREASE\n return roundWithPrecision(pOffset * pManipulation, 3);\n else // DURING INCREASE\n {\n double startOfIncrease = (((double) pStart) / 100 * duration);\n double lengthOfIncrease = (((double) pDuration) / 100 * duration);\n\n double at = time - startOfIncrease;\n double atModifier = at / lengthOfIncrease;\n return roundWithPrecision(((1 + ((pManipulation - 1) * atModifier)) * pOffset), 3);\n }\n }", "public double p(double t) {\r\n\r\n double Util = Umin + (1 - f(t)) * (Umax - Umin) ;\r\n // too soon to receive such low utility\r\n if(negotiationSession.getTime() < 0.7 && Util < 0.75){\r\n Util = 0.75 ;\r\n }\r\n return Util;\r\n }", "public void carroPulando() {\n\t\tpulos++;\n\t\tpulo = (int) (PULO_MAXIMO/10);\n\t\tdistanciaCorrida += pulo;\n\t\tif (distanciaCorrida > distanciaTotalCorrida) {\n\t\t\tdistanciaCorrida = distanciaTotalCorrida;\n\t\t}\n\t}", "void total() {\r\n t=m1+m2+m3;\r\n per=t/3;\r\n System.out.println(\"total :\"+t);\r\n System.out.println(\"persentage:\"+per);\r\n \r\n \r\n }", "public float calculateTpi(float i, float j) {\n return (float) (1f / Math.pow(Math.abs(i - j) + 1, 2));\n }", "@Override\n public void cantidad_Punteria(){\n punteria=69.5+05*nivel+aumentoP;\n }", "private void actualizaPuntuacion() {\n if(cambiosFondo <= 10){\n puntos+= 1*0.03f;\n }\n if(cambiosFondo > 10 && cambiosFondo <= 20){\n puntos+= 1*0.04f;\n }\n if(cambiosFondo > 20 && cambiosFondo <= 30){\n puntos+= 1*0.05f;\n }\n if(cambiosFondo > 30 && cambiosFondo <= 40){\n puntos+= 1*0.07f;\n }\n if(cambiosFondo > 40 && cambiosFondo <= 50){\n puntos+= 1*0.1f;\n }\n if(cambiosFondo > 50) {\n puntos += 1 * 0.25f;\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 double getPER() {\n\t\tint nq = q0.length;\n double sum = 0.0;\n for (int i=0; i<nq; i++) sum += q0[i];\n\t\treturn Math.min(1.0, 0.5*(1.0-(sum/(double)nq))/initPER); // 0.5 * proba erreur\t\t\n\t}", "public String dimeTuTiempo()\n {\n String cadResultado=\"\";\n if (horas<10)\n {\n cadResultado=cadResultado+\"0\";\n }\n cadResultado=cadResultado+horas;\n cadResultado=cadResultado+\":\";\n if(minutos<10)\n {\n cadResultado=cadResultado+\"0\";\n }\n cadResultado=cadResultado+minutos;\n \n return cadResultado;\n }", "public double calculoCuotaEspecialOrdinario() {\n\tdouble resultado =0;\n\tresultado = (getMontoCredito()+(getMontoCredito()*getInteres()/100))/getPlazo(); \n\treturn resultado;\n}", "@Override\n public float calculaPreu(PreuTipusHabitacio p) {\n return p.getPreu() * this.perc;\n }", "public double getTime(int timePt);", "public double calcular(Tributavel tributavel) {\n\t\treturn tributavel.valor() * 0.5;\n\t}", "public int promedio() {\r\n // calculo y redondeo del promedio\r\n promedio = Math.round(nota1B+nota2B);\r\n // paso de Double a Int\r\n return (int) promedio;\r\n }", "@Override\n public double calculaSalario() \n {\n double resultado = valor_base - ((acumulado * 0.05) * valor_base);\n resultado += auxilioProcriacao();\n //vale-coxinha\n resultado += 42;\n return resultado;\n }", "public void calcularQuinA(){\n sueldoQuinAd = sueldoMensual /2;\n\n }", "@Override\n\tpublic int horas_trabajo() {\n\t\treturn 1000;\n\t}", "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 void toiGianPhanSo(){\n int x = timUSCLN(tuSo,mauSo);\n\n tuSo/=x;\n mauSo/=x;\n }", "int getPaceSeconds() {\r\n\t\tint m = getContents(minutes);\r\n\t\tint s = getContents(seconds);\r\n\t\treturn 60*m +s;\r\n\t}", "private void incrementarPuntaje(int puntos) {\n // TODO implement here\n }", "public static void main(String[] args) {\n\t\t\n double p = 3048;\n int i;\n\t\t\n\t\t\n\t\tfor (i=1; i <=40; i++) {\n\t\t\t\n\t\t p = p * 2 / 3;\n\t\t \n\t\t}\n\t\t\n\t\tSystem.out.println(\"La distancia que habra recorrido la bola al momento de realizar su rebote numero 40 es de : \"+ p+ \" mts\");\n\n\t}", "public int getTempoPatrulha() {\n return tempoPatrulha;\n }", "public double periculosidade(double salario) {\n\t\t\tsalario = salario * 0.3;\r\n\t\t\t// atribui o valor de 30% ao salario e somando eles.\r\n\t\t\t// salarioTotal = salario + salarioTotal;\r\n\r\n\t\t\treturn salario; // So atribuir esse valor no salario\r\n\t\t\r\n\t}", "public int tiempoTotal() {\r\n\r\n\t\tint duracionTotal = 0;\r\n\t\tfor (int i = 0; i < misCanciones.size(); i++) {\r\n\t\t\tduracionTotal = duracionTotal + misCanciones.get(i).getDuracionS();\r\n\t\t}\r\n\t\t\r\n\t\treturn duracionTotal;\r\n\r\n\t}", "public int puntosRestantes() {\n // TODO implement here\n return 0;\n }", "public void drive(double percorso) {\n\n\t\tdouble resaReale = 0;\n\n\t\tfor (int i = 0; i < percorso; i++) {\n\t\t\t\n\t\t\tif (serbatoio > 0) {\n\t\t\t\t\n\n\t\t\tresaReale = (ruote.getPressioneRuote() * resa) / MAX_PRESSIONE;\n\t\t\tserbatoio = serbatoio - (1 / resaReale);\n\t\t\truote.setStatoRuote(1);\n\t\t\truote.setPressioneRuote(1);\n\t\t\t\n\t\t\t}\n\t\t\tif (serbatoio < 0) serbatoio = 0;\n\t\t}\n\t}", "long buscarPrimeiro();", "public double calcTuition(){\r\n return getNumCredits() * COST_PER_CREDIT_HOUR;\r\n }", "public static void promedio(int [] Grado1, int NNEstudent){\nint aux=0;\nfor(int i=0;i<NNEstudent;i++){\naux=Grado1[i]+aux;}\nint promedio;\npromedio=aux/NNEstudent;\nSystem.out.println(aux);\nSystem.out.println(\"el promedio de las edades es:\");\nSystem.out.println(promedio);\n}", "public static void principal(String[] args) \n {\n Exercicio01 e = new Exercicio01();\n // declaração de variaveis que armazenam o valor dos lados\n float a,b,c;\n // instancia de objeto da classe Scanner para ler teclado\n Scanner teclado = new Scanner(System.in);\n // inserção dos valores dos lados\n System.out.println(\"Digite o valor do lado A\");\n a = teclado.nextFloat();\n System.out.println(\"Digite o valor do lado B\");\n b = teclado.nextFloat();\n System.out.println(\"Digite o valor do lado C\");\n c = teclado.nextFloat();\n // estrutura para verificar tipo do triangulo\n if((a != b)&& (a != c)&& (b!=c))\n {\n System.out.println(\"O triangulo é ESCALENO\");\n }\n else if((a == b) && (a == c)&& (c == b))\n {\n System.out.println(\"O triangulo é EQUILATERO\");\n }\n else\n {\n System.out.println(\"O triangulo é ISOCELES\");\n }\n System.out.println(\"=======================================\");\n System.out.print(\"O perimetro do triangulo é : \");\n System.out.println(e.calcPerimetro(a, b, c));\n System.out.print(\"A área do triangulo é : \");\n System.out.println(e.calcArea(a, b, c));\n System.out.println(\"\");\n }", "private int calcularPrecio(Repuesto repuesto, boolean formateo, boolean limpieza) {\n int precio = 0;\n if (repuesto != null) {\n precio += repuesto.getPrecio();\n }\n \n if (formateo) {\n precio += 10000;\n }\n \n if (limpieza) {\n precio += 7500;\n }\n return precio;\n }", "public static void Promedio(){\n int ISumaNotas=0;\n int IFila=0,ICol=0;\n int INota;\n float FltPromedio;\n for(IFila=0;IFila<10;IFila++)\n {\n ISumaNotas+=Integer.parseInt(StrNotas[IFila][1]);\n }\n FltPromedio=ISumaNotas/10;\n System.out.println(\"El promedio de la clase es:\"+FltPromedio);\n }", "@Override\r\n public double calculatePiValue() {\r\n double variable = 0;\r\n double value = 0;\r\n for (int step =1;step<=steps; step++) {\r\n variable = step*2+1;\r\n if(step % 2 == 0) {\r\n value = value + ( (double)1 / variable);\r\n } else {\r\n value = value - ( (double)1 / variable);\r\n }\r\n }\r\n value = (1 + value)* 4;\r\n return value;\r\n }", "public Double calcularPrecio() {\n double adicion = 0.0;\n\n switch (tipoAlimento) {\n case 'N':\n // Producto Natural\n adicion += 40;\n break;\n\n case 'C':\n // Producto con Conservantes\n adicion += 20;\n break;\n\n default:\n break;\n }\n\n // El peso tambien afecta el precio final del producto\n if (peso >= 0 && peso <= 9) {\n adicion += 6;\n }\n if (peso > 9 && peso <= 16) {\n adicion += 8;\n }\n if (peso > 16) {\n adicion += 20;\n }\n\n return precioBase + adicion;\n }", "public static void main(String [] args){\n // input data\n int secsTrip1=480; //this displays the total seconds it took on the first trip\n int secsTrip2=3220; //this displays the total seconds it took on the second trip\n int countsTrip1=1561; //displays the rotation of trip1\n int countsTrip2=9037; //displays the rotation of trip2\n \n //These are constant variables (also for storing purposes)\n double wheelDiameter=27.0, //the wheel diameter has to be accounted for in the countsTrips\n PI=3.14159, //\n feetPerMile=5280, //recongize how many feet are in 1 mile\n inchesPerFoot=12, //recongize how many inches in 1 foot\n secondsPerMinute=60; //recognize how many sec in 1 min\n double distanceTrip1, distanceTrip2,totalDistance; \n // above recognize that the values of each will have multiple digits\n \n System.out.println(\"Trip 1 took \"+\n (secsTrip1/secondsPerMinute)+\" minutes and had \"+\n countsTrip1+\" counts.\");\n System.out.println(\"Trip 2 took \"+\n (secsTrip2/secondsPerMinute)+\" minutes and had \"+\n countsTrip2+\" counts.\");\n \n //Running the calculations and storing the values\n // I will be calculating the distance of trip 1 & 2 and the total distance\n distanceTrip1=countsTrip1*wheelDiameter*PI;\n // Above gives distance in inches\n //(for each count, a rotation of the wheel travels\n //the diameter in inches times PI)\n distanceTrip1/=inchesPerFoot*feetPerMile; // Converts to distance in miles\n distanceTrip2=countsTrip2*wheelDiameter*PI/inchesPerFoot/feetPerMile;\n totalDistance=distanceTrip1+distanceTrip2;\n System.out.println(\"Trip 1 was \"+distanceTrip1+\" miles\");\n System.out.println(\"Trip 2 was \"+distanceTrip2+\" miles\");\n System.out.println(\"The total distance was \"+totalDistance+\" miles\");\n \n \n }", "double tirer();", "public void hora()\n {\n horaTotal = HoraSalida - HoraLlegada;\n\n }", "public static void sueldoTotal(int hora, int sueldo){\n int resultado = 0;\r\n if(hora<=40){\r\n resultado = hora*sueldo;\r\n }\r\n if(hora>40 || hora<48){\r\n resultado = (40*sueldo)+(hora-40)*(sueldo*2);\r\n }\r\n if (hora>=48){\r\n resultado =(40*sueldo)+8*(sueldo*2)+(hora-48)*(sueldo*3);\r\n }\r\n System.out.println(\"El sueldo es de \"+ resultado);//Se muestra el sueldo total\r\n \r\n \r\n \r\n }", "public static void main(String[] args) {\n\n double valorTotal = 36000;\n\n for (int parcela = (int) valorTotal; parcela >= 1; parcela--) {\n double valorParcela = valorTotal / parcela;\n if (valorParcela >= 1000) {\n System.out.println(parcela + \" parcelas de \" + valorParcela + \"R$\");\n }\n }\n }", "public int getPuntos() {\n return puntos;\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 }", "private int toTime(int i) {\n int count = 0;\n\n //hours units\n count += toLeds((i / 6000) % 10);\n //hours tens\n count += toLeds(((i / 6000) % 100) / 10);\n\n //minutes units\n count += toLeds((i / 60) % 10);\n //minutes tens\n count += toLeds(((i / 60) % 100) / 10);\n\n //seconds units\n count += toLeds((i % 60) % 10);\n //seconds tens\n count += toLeds(((i % 60) % 100) / 10);\n\n return count;\n }", "public int getTilaa() {\r\n return maara - matkustajia;\r\n }", "public Double calculatePTT(Double poPeakTime, Double poRRTime)\n {\n for (Double hmPeakTime : hmPeakTimes) {\n Double tempPTT = poPeakTime - hmPeakTime; //Calculate the possible PTT value\n Log.d(\"PTT calculation\", poPeakTime + \" - \" + hmPeakTime + \" = \" + tempPTT);\n if ((tempPTT > 100) && (tempPTT < 1500)) //If the value is within the limits\n {\n //Remove the R wave occurrence from the list\n hmPeakTimes.clear();\n currPTT = tempPTT; //Confirm the PTT\n //maf.newNum(currPTT); //add the newest PTT value to the moving average filter\n //Log.d(\"PTT calculation\", \"PTT: \" + currPTT);\n return currPTT; //Return the smoothed moving average value\n } else\n currPTT = 0.;\n\n }\n\n return currPTT; //If none of the possible PTT values fall within limits, return 0\n\n }", "public int getPuntos() {\n return puntos;\n }", "public double dlugoscOkregu() {\n\t\treturn 2 * Math.PI * promien;\n\t}", "int getRaceTime() {\r\n\t\tint pace = getPaceSeconds();\r\n\t\tRace selectedRace = (Race)raceBox.getSelectedItem();\r\n\t\tdouble raceLength = selectedRace.getLength();\r\n\t\t\r\n\t\tint totalTime = (int)(raceLength * pace);\r\n\t\treturn totalTime;\r\n\t}", "int getTau();", "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 }", "public void VaciarPila()\n {\n this.tope = 0;\n }", "@Override\n public void tirar() {\n if ( this.probabilidad == null ) {\n super.tirar();\n this.valorTrucado = super.getValor();\n return;\n }\n \n // Necesitamos conocer la probabilidad de cada número, trucados o no, para ello tengo que saber\n // primero cuantos números hay trucados y la suma de sus probabilidades. \n // Con esto puedo calcular la probabilidad de aparición de los números no trucados.\n \n int numeroTrucados = 0;\n double sumaProbalidadesTrucadas = 0;\n double probabilidadNoTrucados = 0;\n \n for ( double p: this.probabilidad ) { // cálculo de la suma números y probabilidades trucadas\n if ( p >= 0 ) {\n numeroTrucados++;\n sumaProbalidadesTrucadas += p;\n }\n }\n \n if ( numeroTrucados < 6 ) { // por si estuvieran todos trucados\n probabilidadNoTrucados = (1-sumaProbalidadesTrucadas) / (6-numeroTrucados);\n }\n\n double aleatorio = Math.random(); // me servirá para escoger el valor del dado\n \n // Me quedo con la cara del dado cuya probabilidad de aparición, sumada a las anteriores, \n // supere el valor aleatorio\n double sumaProbabilidades = 0;\n this.valorTrucado = 0;\n do {\n ++this.valorTrucado;\n if (this.probabilidad[this.valorTrucado-1] < 0) { // no es una cara del dado trucada\n sumaProbabilidades += probabilidadNoTrucados;\n } else {\n sumaProbabilidades += this.probabilidad[this.valorTrucado-1];\n }\n \n } while (sumaProbabilidades < aleatorio && valorTrucado < 6);\n \n \n }", "@Override\n\tdouble dienTich() {\n\t\tdouble p = chuVi() / 2;\n\t\treturn Math.sqrt(p*(p-canhA)*(p-canhB)*(p-canhC));\n\t}", "public double precioFinal() {\r\n double aumento = 0;\r\n switch (consumoEnergetico) {\r\n case 'A':\r\n aumento = 100;\r\n break;\r\n case 'B':\r\n aumento = 80;\r\n break;\r\n case 'C':\r\n aumento = 60;\r\n break;\r\n case 'D':\r\n aumento = 50;\r\n break;\r\n case 'E':\r\n aumento = 30;\r\n break;\r\n case 'F':\r\n aumento = 10; \r\n break;\r\n }\r\n if (peso >= 0 && peso <= 19) {\r\n aumento += 10;\r\n }else if ( peso >= 20 && peso <= 49) {\r\n aumento += 50;\r\n }else if ( peso >= 50 && peso <=79 ) {\r\n aumento += 80;\r\n }else if ( peso >= 80 ){\r\n aumento += 100;\r\n }\r\n \r\n double precioFinal = aumento + this.precioBase;\r\n return precioFinal;\r\n }", "public void perimeter()\n {\n int perimeterOfTraiangle = a+b+c;\n System.out.println(\"Periemter of traiangle : \" + perimeterOfTraiangle);\n }", "public double Baricentro() {\n if (puntos.size() <= 2) {\n return 0;\n } else {\n // Inicializacion de las areas\n double areaPonderada = 0;\n double areaTotal = 0;\n double areaLocal;\n // Recorrer la lista conservando 2 puntos\n Punto2D antiguoPt = null;\n for (Punto2D pt : puntos) {\n if (antiguoPt != null) {\n // Cálculo deñ baricentro local\n if (antiguoPt.y == pt.y) {\n // Es un rectángulo, el baricentro esta en\n // centro\n areaLocal = pt.y * (pt.x - antiguoPt.x);\n areaTotal += areaLocal;\n areaPonderada += areaLocal * ((pt.x - antiguoPt.x) / 2.0 + antiguoPt.x);\n } else {\n // Es un trapecio, que podemos descomponer en\n // un reactangulo con un triangulo\n // rectangulo adicional\n // Separamos ambas formas\n // Primer tiempo: rectangulo\n areaLocal = Math.min(pt.y, antiguoPt.y) + (pt.x - antiguoPt.x);\n areaTotal += areaLocal;\n areaPonderada += areaLocal * ((pt.x - antiguoPt.x) / 2.0 + antiguoPt.x);\n //Segundo tiempo: triangulo rectangulo\n areaLocal = (pt.x - antiguoPt.x) * Math.abs(pt.y - antiguoPt.y) / 2.0;\n areaTotal += areaLocal;\n if (pt.y > antiguoPt.y) {\n // Baricentro a 1/3 del lado pt\n areaPonderada += areaLocal * (2.0 / 3.0 * (pt.x - antiguoPt.x) + antiguoPt.x);\n } else {\n // Baricentro a 1/3 dek lado antiguoPt\n areaPonderada += areaLocal * (1.0 / 3.0 * (pt.x - antiguoPt.x) + antiguoPt.x);\n }\n }\n }\n antiguoPt = pt;\n }\n // Devolvemos las coordenadas del baricentro\n return areaPonderada / areaTotal;\n }\n }", "int calculaX(){\n int n;\n if(pratonl[0][0]==pquesol[0][0]){//evalua si esta en la misma fila\n n=0;\n }else{\n n=pquesol[0][0]-pratonl[0][0]; \n }\n return n;\n }", "public int getTriage (){\r\n return triage;\r\n }", "public double portataMassicaFumi( ){\r\n\t\treturn portatamassica;\r\n\t}", "int getPulsePercentage();", "public void TicTac()\n {\n if(minutos<=59)\n {\n minutos=minutos+1;\n \n }\n else\n {\n minutos=00;\n horas+=1;\n \n }\n if(horas>23)\n {\n horas=00;\n \n }\n else\n {\n minutos+=1;\n }\n }", "public static double ParaTimer(){\n return (System.nanoTime() - timer)/(1000000000.);\n }", "public void calcularSalario(){\n // 1% do lucro mensal\n double percentagemLucro = 0.01 * lucroMensal;\n // valor fixo igual ao dobro do dos empregados sem especialização, acrescido\n //de um prémio que corresponde a 1% do lucro mensal nas lojas da região.\n setSalario(1600 + percentagemLucro);\n\n }", "public double getPreco();", "public double getPreco();", "private long getPTSUs() {\n long result = System.nanoTime() / 1000L;\n if (result < prevOutputPTSUs)\n result = (prevOutputPTSUs - result) + result;\n return result;\n }", "public void temporizadorTiempo() {\n Timer timer = new Timer();\n tareaRestar = new TimerTask() {\n @Override\n public void run() {\n tiempoRonda--;\n }\n };\n timer.schedule(tareaRestar, 1,1000);\n }", "public int Atirou() {\r\n return Main.player1.Tempo();\r\n }", "public double peso() {\n double peso = 0.0;\n for (Arista a : aristas())\n peso += a.peso();\n return peso;\n }", "double getTempo();", "private int pasarMilisegundoASegundo( long milisegundos )\n {\n return (int)(milisegundos/MILISEGUNDOS_EN_SEGUNDO);\n }", "private Long calcTiempoCompensado(Long tiempoReal, Barco barco, Manga manga) {\n //Tiempo compensado = Tiempo Real + GPH * Nº de millas manga.\n Float res = tiempoReal + barco.getGph() * manga.getMillas();\n return (long) Math.round(res);\n }", "public float calculaPremioConsoanteResultado (Aposta aposta, Evento.Resultado res){\n switch (res) {\n case VITORIA:\n return aposta.calculaPremio(\"1\");\n case EMPATE:\n return aposta.calculaPremio(\"x\");\n case DERROTA:\n return aposta.calculaPremio(\"2\");\n }\n return 0;\n \n }", "public void ajaTesti() {\n \n long summa1 = 0;\n long summa2 = 0;\n int laskuri1=0; //test\n int laskuri2=0;\n \n Taytto tulosN = null;\n TayttoDP tulosDP = null;\n \n //rotatoidaan testien suoritusjärjestystä kerran\n int rot = 2;\n for (int i=0;i<rot;i++) {\n //random järjestys\n //Tavara[] ar = shuffleTavarat();\n\n Tavara[] ar = this.tavarat;\n Taytto tayttoN = new Taytto(ar, sakki);\n TayttoDP tayttoDP = new TayttoDP(ar, sakki);\n\n long aikaAlussa = 0;\n long aikaLopussa = 0;\n long aika = 0;\n\n int sisatoisto=this.toistokoe;\n //rotatoidaan testien ajojärjestys\n long sum1=0; \n long sum2=0; \n\n //ignoorataan 10 ensimmäistä tuloksista, lisätään siksi 10 ylimääräistä toistokierrosta\n for (int j=0;j<sisatoisto;j++) {\n\n if (i%2==0) {\n laskuri1++;\n\n // Mittaus naivi-algoritmi\n aikaAlussa = System.nanoTime();\n tayttoN.etsiMaksimiArvoJaJono(); \n aikaLopussa = System.nanoTime(); \n\n aika=aikaLopussa-aikaAlussa;\n //ignoorataan 10 ensimmäistä tuloksista\n if(j>=0) sum1+=aika;\n\n // Mittaus DP -algoritmi\n aikaAlussa = System.nanoTime();\n tayttoDP.etsiMaksimiArvoJaJono(); \n aikaLopussa = System.nanoTime(); \n\n aika=aikaLopussa-aikaAlussa;\n if(j>=0) sum2+=aika;\n }\n else {\n laskuri2++; //test\n\n // Mittaus DP -algoritmi\n aikaAlussa = System.nanoTime();\n tayttoDP.etsiMaksimiArvoJaJono(); \n aikaLopussa = System.nanoTime(); \n\n aika=aikaLopussa-aikaAlussa;\n if(j>=0) sum2+=aika;\n \n // Mittaus naivi-algoritmi\n aikaAlussa = System.nanoTime();\n tayttoN.etsiMaksimiArvoJaJono(); \n aikaLopussa = System.nanoTime(); \n\n aika=aikaLopussa-aikaAlussa;\n if (j>=0) sum1+=aika;\n }\n\n //Tarkistus, että tulos sama kummallakin algoritmilla\n if (tayttoN.annaMaxArvo()!=tayttoDP.annaMaxArvo()) {\n System.out.println(\"Taytto1: Arvo: \" + tayttoN.annaMaxArvo() + \" , jono :\" + tayttoN.annaMaxJono());\n System.out.println(\"Taytto2: Arvo: \" + tayttoDP.annaMaxArvo() + \" , jono :\" + tayttoDP.annaMaxJono()); \n break;\n }\n \n \n }\n summa1+=sum1/(sisatoisto);\n summa2+=sum2/(sisatoisto);\n \n tulosN=tayttoN;\n tulosDP=tayttoDP;\n \n }\n// System.out.println(laskuri1);\n// System.out.println(laskuri2);\n\n \n long keskiarvo1 = summa1/rot;\n long keskiarvo2 = summa2/rot;\n\n String[] kootN = tulosN.annaMaxJono().split(\" \");\n int kokoN = 0;\n for (int i = 0; i < kootN.length; i++) {\n try {\n kokoN += this.tavarat[Integer.parseInt(kootN[i])-1].annaKoko();\n } catch (NumberFormatException nfe) {};\n } \n \n String[] kootDP = tulosDP.annaMaxJono().split(\" \");\n int kokoDP = 0;\n for (int i = 0; i < kootDP.length; i++) {\n try {\n kokoDP += this.tavarat[Integer.parseInt(kootDP[i])-1].annaKoko();\n } catch (NumberFormatException nfe) {};\n } \n\n System.out.println(this.nimi);\n System.out.println(\"Tavarat: \" + annaTavaroidenKokoJaArvo());\n System.out.println(\"Sakki \" + this.sakki.annaKoko() + \", lkm \" + this.koko + \", toistot \" + toistokoe);\n System.out.println(\"Keskiarvo (ms) Naiivi: \" + keskiarvo1/1000 + \", DP: \" + keskiarvo2/1000);\n System.out.println(\"Tulos Naiivi: maksimiarvo: \" + tulosN.annaMaxArvo() + \" koko: \" + kokoN + \" maksimiarvon toteuttavien travaroiden järjestysnumerot: \"); \n System.out.println(tulosN.annaMaxJono());\n System.out.println(\"Tulos DP: maksimiarvo: \" + tulosDP.annaMaxArvo() + \" koko: \" + kokoDP + \" maksimiarvon toteuttavien travaroiden järjestysnumerot: \");\n System.out.println(tulosDP.annaMaxJono());\n \n }", "public int getMinuteFraction()\n {\n return (((int)(hours*100.0)%100)*60)/100;\n }", "long getTotalDoExamTime();" ]
[ "0.7127863", "0.71234256", "0.69741315", "0.6943886", "0.68966883", "0.6723023", "0.6582635", "0.65787816", "0.6516537", "0.64783853", "0.6475432", "0.63648605", "0.63431454", "0.6271209", "0.6123744", "0.60787594", "0.60205126", "0.5983932", "0.5880048", "0.5845804", "0.5844762", "0.5843039", "0.5815897", "0.5789731", "0.57877475", "0.5773661", "0.5772679", "0.5766449", "0.5765489", "0.57651335", "0.5764708", "0.5752072", "0.5746315", "0.56981725", "0.5694885", "0.5675732", "0.56720203", "0.56595385", "0.56404203", "0.5623563", "0.56169266", "0.55938536", "0.5591584", "0.5568139", "0.55584365", "0.553288", "0.55218625", "0.55108976", "0.55018115", "0.54947954", "0.54871273", "0.54778206", "0.5467704", "0.5464386", "0.5459502", "0.54561245", "0.54546183", "0.5441558", "0.5430798", "0.5417438", "0.5411719", "0.5411066", "0.5410759", "0.54052716", "0.540354", "0.5399382", "0.5396419", "0.53937334", "0.53912634", "0.5378466", "0.5378335", "0.5371232", "0.5367802", "0.5365741", "0.5362606", "0.53608215", "0.5359583", "0.535437", "0.53512955", "0.53411895", "0.53403753", "0.5333505", "0.5313207", "0.5311558", "0.5308731", "0.53032124", "0.5288012", "0.52825606", "0.5279295", "0.5279295", "0.5276043", "0.5274728", "0.52682436", "0.525324", "0.5247376", "0.52447814", "0.52423745", "0.5238485", "0.5238389", "0.52322507", "0.5225026" ]
0.0
-1
Getter und Settermethoden, "public"
public int getId() { return id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract Set method_1559();", "String setValue();", "public void setdat()\n {\n }", "public String setter() {\n\t\treturn prefix(\"set\");\n\t}", "public void get() {\n }", "@Test\r\n\tpublic void testGettersSetters()\r\n\t{\r\n\t\tPerson p = new Person(42);\r\n\t\tp.setDisplayName(\"Fred\");\r\n\t\tassertEquals(\"Fred\", p.getFullname());\r\n\t\tp.setPassword(\"hunter2\");\r\n\t\tassertEquals(\"hunter2\", p.getPassword());\r\n\t\tassertEquals(42, p.getID());\r\n\t}", "@Override\n public void get() {}", "public void setValor(String valor)\n/* 22: */ {\n/* 23:34 */ this.valor = valor;\n/* 24: */ }", "public void setAge(int age) { this.age = age; }", "@Override\r\n\tpublic void get() {\n\t\t\r\n\t}", "@Test\n public void testSongGettersSetters() {\n Integer id = 4;\n String title=\"title\",uri = \"uri\";\n\n Song song = new Song();\n song.setId(id);\n song.setTitle(title);\n song.setUri(uri);\n\n assertEquals(\"Problem with id\",id, song.getId());\n assertEquals(\"Problem with title\",title, song.getTitle());\n assertEquals(\"Problem with uri\",uri, song.getUri());\n }", "public void setPrice(double price){this.price=price;}", "V setValue(final V value) {\n\t setMethod.accept(value);\n\n\t return value;\n\t}", "public void setAge(int age);", "public abstract void set(M newValue);", "@Test\n public void testSetNombre() {\n System.out.println(\"setNombre\");\n Receta instance = new Receta();\n instance.setNombre(\"nom1\");\n String expResult = \"nom1\";\n String result = instance.getNombre();\n assertEquals(expResult, result);\n }", "@Test\r\n public void testSetValor() {\r\n \r\n }", "public void setPublic()\n {\n ensureLoaded();\n m_flags.setPublic();\n setModified(true);\n }", "@Test\n\tpublic void testSet() {\n\t}", "public void setDataGetter(Object instance, Method method) {\n this.instance = instance;\n this.method = method;\n }", "void setAge(int age);", "public String getSetter() {\n return \"set\" + getCapName();\n }", "private SetProperty(Builder builder) {\n super(builder);\n }", "@Override\n\tpublic void set() {\n\t\tSystem.out.println(\"A==========set\");\n\t}", "public void setEmpresa(Empresa empresa)\r\n/* 89: */ {\r\n/* 90:141 */ this.empresa = empresa;\r\n/* 91: */ }", "@Test\r\n public void testSetMicentro() {\r\n System.out.println(\"setMicentro\");\r\n CentroEcu_Observado micentro = new CentroEcu_Observado();\r\n micentro.setCiudad(\"Loja\");\r\n Servicio_CentroEcu instance = new Servicio_CentroEcu();\r\n instance.setMicentro(micentro);\r\n assertEquals(instance.getMicentro().ciudad, \"Loja\");\r\n }", "public void setNombre(String nombre) {this.nombre = nombre;}", "public Value makeSetter() {\n Value r = new Value(this);\n r.setters = object_labels;\n r.object_labels = null;\n return canonicalize(r);\n }", "private void setData() {\n\n }", "private Get() {}", "private Get() {}", "public int getAge() {return age;}", "private PropertyAccess() {\n\t\tsuper();\n\t}", "public T set(T obj);", "public int getArmadura(){return armadura;}", "public void setModified();", "@Test\r\n\tpublic void gettersSettersTest() {\r\n\t\tItem item = new Item();\r\n\t\titem.setCount(NUMBER);\r\n\t\tassertEquals(item.getCount(), NUMBER);\r\n\t\titem.setDescription(\"word\");\r\n\t\tassertEquals(item.getDescription(), \"word\");\r\n\t\titem.setId(NUMBER);\r\n\t\tassertEquals(item.getId(), NUMBER);\r\n\t\titem.setName(\"word\");\r\n\t\tassertEquals(item.getName(), \"word\");\r\n\t\titem.setPicture(\"picture\");\r\n\t\tassertEquals(item.getPicture(), \"picture\");\r\n\t\titem.setPrice(FLOATNUMBER);\r\n\t\tassertEquals(item.getPrice(), FLOATNUMBER, 0);\r\n\t\titem.setType(\"word\");\r\n\t\tassertEquals(item.getType(), \"word\");\r\n\t\titem.setSellerId(NUMBER);\r\n\t\tassertEquals(item.getSellerId(), NUMBER);\r\n\t\titem.setDeleted(false);\r\n\t\tassertEquals(item.isDeleted(), false);\r\n\t\titem.setDeleted(true);\r\n\t\tassertEquals(item.isDeleted(), true);\t\t\r\n\t}", "public void setNombre(String nombre) {\r\n\tthis.nombre = nombre;\r\n}", "public int geti(){\r\n return i;\r\n}", "private ReadProperty()\r\n {\r\n\r\n }", "public void setNombre(String nombre){\n this.nombre =nombre;\n }", "@Test\n public void testSetNombre() {\n System.out.println(\"setNombre\");\n String nombre = \"T-3\";\n DboEdificio instance = new DboEdificio(1, \"T-3\");\n instance.setNombre(nombre);\n \n }", "@Test\r\n\tpublic void test_setter_and_getter_title(){\r\n\t\ttestClassDefinition();\r\n\t\tBook c = new BookMock(\"Old Title\", 1);\r\n\t\tc.setTitle(\"New Title\");\r\n\t\tassertEquals(\"Changed title\", \"New Title\", c.getTitle());\r\n\t}", "public String getValor()\n/* 17: */ {\n/* 18:27 */ return this.valor;\n/* 19: */ }", "private void setUserData(){\n }", "public void setX(int x) { this.x=x; }", "public void setU(String f){\n u = f;\n}", "@Override\n\t\tpublic void set(E arg0) {\n\t\t\t\n\t\t}", "@Test\r\n public void testSetMiservicio() {\r\n System.out.println(\"setMiservicio\");\r\n Servicio miservicio = new Servicio();\r\n miservicio.descripcion=\"gestion de vigilancia\";\r\n Servicio_CentroEcu instance = new Servicio_CentroEcu();\r\n instance.setMiservicio(miservicio);\r\n assertEquals(instance.getMiservicio().descripcion, \"gestion de vigilancia\");\r\n }", "@Deprecated\n final Method setter() {\n return this.setter;\n }", "public int getAge(){\n return age;\n }", "public int getlife(){\r\n return life;\r\n}", "public abstract void setNombre(java.lang.String newNombre);", "public GetterSetterInliner(CodeAttrInfoEditor codeAttrInfoEditor,\n boolean allowAccessModification)\n {\n this.codeAttrInfoEditor = codeAttrInfoEditor;\n this.allowAccessModification = allowAccessModification;\n }", "public void setCodigo(java.lang.String param){\n \n this.localCodigo=param;\n \n\n }", "void setMyProperty1(Integer a) {}", "public Object getNewValue()\n {\n return newValue;\n }", "private void set(int x, int i) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Override\n\tpublic void get() {\n\t\tSystem.out.println(\"this is get\");\n\t}", "public void asetaTeksti(){\n }", "public void setNombre(String nombre)\r\n/* 65: */ {\r\n/* 66: 76 */ this.nombre = nombre;\r\n/* 67: */ }", "public int setValue (int val);", "public String get();", "public Empleado getEmpleado()\r\n/* 183: */ {\r\n/* 184:337 */ return this.empleado;\r\n/* 185: */ }", "public void set(boolean bol);", "@Test\n public void testSetLugarNac() {\n System.out.println(\"setLugarNac\");\n String lugarNac = \"\";\n Paciente instance = new Paciente();\n instance.setLugarNac(lugarNac);\n \n }", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "public void setName (String newName)\n {\n this.name = newName; \n }", "private void assignment() {\n\n\t\t\t}", "public int getx(){\r\n return z;\r\n}", "@Override\n\tpublic void setValue(Object object) {\n\t\t\n\t}", "@Override // Métodos que fazem a anulação\n\tpublic void getBonificação() {\n\t\t\n\t}", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "public abstract String get();", "private String getSetMethodName() {\n assert name != null;\n return \"set\" + upperFirstChar(name);\n }", "@Override\n\tpublic void setValue(Object object) {\n\n\t}", "public Empresa getEmpresa()\r\n/* 84: */ {\r\n/* 85:131 */ return this.empresa;\r\n/* 86: */ }", "double sety(double y) {\nreturn this.y;\n }", "@Test\n\tpublic void testSettersAddress() {\n\t\tassertTrue(beanTester.testSetters());\n\t}", "@Override\n String get();", "@Override\n\tpublic void setValue(Object value) {\n\t\t\n\t}", "@Test\n public void testSetEditable() {\n writeBanner(getMethodName());\n }", "@Override\n\tpublic void setValue(String arg0, String arg1) {\n\t\t\n\t}", "@Test\r\n public void testSetUserOccupation()\r\n {\r\n System.out.println(\"setUserOccupation\");\r\n String userOccupation = \"Nurse\";\r\n String occupation = \"Doctor\";\r\n String[] hobbies = {\"Reading\", \"Cooking\"};\r\n int id = 5;\r\n LifeStyleBean instance = new LifeStyleBean(occupation, hobbies, id);\r\n instance.setUserOccupation(userOccupation);\r\n assertEquals(userOccupation, instance.getUserOccupation());\r\n }", "@Test\n public void testSetAge() {\n System.out.println(\"Animal.setAge\");\n animal1.setAge(20);\n animal2.setAge(5);\n assertEquals(20, animal1.getAge());\n assertEquals(5, animal2.getAge());\n }", "@Test\r\n public void testSetOrigen() {\r\n String expResult = \"pruebaorigen\";\r\n articuloPrueba.setOrigen(expResult);\r\n assertEquals(expResult, articuloPrueba.getOrigen());\r\n }", "public int getf(){\r\n return f;\r\n}", "@Test\r\n public void testSetNombre() {\r\n String nombre = \"Prueba\";\r\n articuloPrueba.setNombre(nombre);\r\n assertEquals(nombre, articuloPrueba.getNombre());\r\n }", "public void set(String s);", "@Override\n public void setX(int x) {\n this.x=x;\n }", "public void setObservacion(java.lang.String param){\n \n this.localObservacion=param;\n \n\n }", "public void setEnqueteur(Enqueteur enqueteur)\r\n/* */ {\r\n/* 65 */ this.enqueteur = enqueteur;\r\n/* */ }", "public T get() {\n return value;\n }", "@Test\r\n public void testSetUserId() {\r\n System.out.println(\"setUserId\");\r\n int userId = 0;\r\n \r\n instance.setUserId(userId);\r\n assertEquals(userId , instance.getUserId());\r\n \r\n }", "public int getSet() {\n return set;\n }", "@Override\r\n\t\tpublic void set(E arg0) {\n\r\n\t\t}", "public void setOrigen(java.lang.String param){\n \n this.localOrigen=param;\n \n\n }", "public void setNew();", "public void setX(int x);", "public int getAge()\r\n {\r\n return age;\r\n }", "public void setName(String name){this.name=name;}" ]
[ "0.67608213", "0.65341485", "0.65253466", "0.63860065", "0.6384444", "0.63668513", "0.6287218", "0.6254165", "0.6244253", "0.6207351", "0.60769993", "0.6076035", "0.6057022", "0.6036808", "0.6027929", "0.5989521", "0.5985791", "0.5979545", "0.5975629", "0.59580743", "0.5949236", "0.59480625", "0.59468746", "0.5945482", "0.59406036", "0.5939648", "0.59385073", "0.5936921", "0.5889243", "0.5875886", "0.5875886", "0.5875054", "0.5869216", "0.5852501", "0.58520436", "0.58492684", "0.58436906", "0.58436364", "0.58316326", "0.58280385", "0.5825319", "0.58045155", "0.5803159", "0.58013386", "0.57892346", "0.578838", "0.57830864", "0.5774816", "0.57709795", "0.57702214", "0.5762121", "0.5761368", "0.5760473", "0.5756263", "0.5755166", "0.57453686", "0.57392883", "0.5737574", "0.57356566", "0.5727536", "0.57120776", "0.57104963", "0.57059205", "0.5705451", "0.5700209", "0.56989247", "0.56979275", "0.5684561", "0.56838274", "0.5680537", "0.5678781", "0.5675474", "0.5660373", "0.5660091", "0.5656451", "0.5655689", "0.5649115", "0.56449556", "0.56448025", "0.5644001", "0.56398225", "0.56396204", "0.563793", "0.5635422", "0.5634419", "0.562992", "0.5629174", "0.5622877", "0.56228703", "0.5621565", "0.56151795", "0.56122106", "0.5610361", "0.56087", "0.5606161", "0.5604896", "0.5604803", "0.56030935", "0.5602178", "0.5598271", "0.55889094" ]
0.0
-1
action for this permission
public GrouperActivemqPermissionAction getAction() { return this.action; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void permissionGranted(int requestCode);", "abstract public void getPermission();", "@Override\n public void onAction(List<String> permissions) {\n Log.e(TAG, \"permission success\");\n callback.onSuccess(permissions);\n\n }", "public int getActionType();", "@Override\n\tpublic String getAction() {\n\t\treturn action;\n\t}", "@Override\n public void onPermissionGranted() {\n }", "public void goToPermissions(String action) {\n boolean allowed = false;\n if (selectedSubject instanceof Subject) {\n allowed = isAuthorized((Subject) selectedSubject, \"grant\".equals(action) ? Action.GRANT : Action.REVOKE);\n } else {\n allowed = isAuthorized((Role) selectedSubject, \"grant\".equals(action) ? Action.GRANT : Action.REVOKE);\n }\n if (!allowed) {\n return;\n }\n if (selectedSubject != null\n && (!selectedActions.isEmpty() || (!selectedCollectionActions.isEmpty() && isSelectedFields(selectedCarrierModel.getCollectionFields().values())))) {\n\n if (getTabEntity() instanceof Carrier) {\n goToObjectResourceManagement(action, (IdHolder<?>) selectedSubject, selectedActions, selectedCollectionActions, selectedCarrierModel, carriers);\n } else {\n if (getTabEntity() instanceof Party) {\n if (partyModel.getEntity().getId() != null) {\n List<RowModel> ret = new ArrayList<RowModel>();\n ret.add(new RowModel(partyModel.getEntity(), partyModel.isSelected(), \"Party-\" + ((Party) partyModel.getEntity()).getPartyField1() + \", \"\n + ((Party) partyModel.getEntity()).getPartyField2()));\n if (isSelected(ret)) {\n goToObjectResourceManagement(action, (IdHolder<?>) selectedSubject, selectedActions, selectedCollectionActions, partyModel, ret);\n } else {\n System.err.println(\"Select party\");\n }\n }\n } else {\n if (getTabEntity() instanceof Contact) {\n if (isSelected(contacts)) {\n goToObjectResourceManagement(action, (IdHolder<?>) selectedSubject, selectedActions, selectedCollectionActions, selectedContactModel, contacts);\n } else {\n System.err.println(\"Select contact\");\n }\n }\n }\n }\n }\n\n }", "String getPermission();", "@Override\n public void onPermissionGranted() {\n }", "@Override\n public void checkPermission(Permission perm, Object context) {\n }", "public String getAction () {\n return action;\n }", "private void removePendingAction(PermissionsResultAction paramPermissionsResultAction) {\n }", "@Override\n public void onClick(View v) {\n requestPermissions((SireController) view.getContext(),false);\n }", "@Override\n public void onClick(View v) {\n if (Build.VERSION.SDK_INT >= 23)\n {\n if (permissionUtils.checkPermissions())\n {\n Log.e(TAG, \"Permission Is Not Granted. Request For Permission\");\n permissionUtils.askPermission();\n }\n else\n {\n Log.e(TAG, \"Permission Already Granted\");\n Intent intent = new Intent(RuntimePermissionActivity.this, PermissionGrantedActivity.class);\n startActivity(intent);\n finish();\n }\n }\n else\n {\n /*\n * Pre-Marshmallow\n * If build version is less than or 23, then all permission is\n * granted at install time in google play store.\n */\n Intent intent = new Intent(RuntimePermissionActivity.this, PermissionGrantedActivity.class);\n startActivity(intent);\n finish();\n }\n }", "public int getAction()\n {\n return m_action;\n }", "@Override\n public void onClick(View view) {\n String platform = checkPlatform();\n if (platform.equals(\"Marshmallow\")) {\n Log.d(TAG, \"Runtime permission required\");\n //Step 2. check the permission\n boolean permissionStatus = checkPermission();\n if (permissionStatus) {\n //Permission already granted\n Log.d(TAG, \"Permission already granted\");\n } else {\n //Permission not granted\n //Step 3. Explain permission i.e show an explanation\n Log.d(TAG, \"Explain permission\");\n explainPermission();\n //Step 4. Request Permissions\n Log.d(TAG, \"Request Permission\");\n requestPermission();\n }\n\n } else {\n Log.d(TAG, \"onClick: Runtime permission not required\");\n }\n\n\n }", "public int getAction() {\n\t\treturn action;\n\t}", "public int getAction() {\n return action;\n }", "@Override\n public void action() {\n }", "@Override\n public void action() {\n }", "@Override\n public void action() {\n }", "public String getAction() {\n return this.action;\n }", "public void onPermissionGranted() {\n\n }", "public String getAction() {\r\n\t\treturn action;\r\n\t}", "public String getAction() {\n return action;\n }", "public String getPermission()\r\n {\r\n return permission;\r\n }", "public void setAction(String action) { this.action = action; }", "@PermissionSuccess(requestCode = 100)\n public void onPermissionSuccess(){\n }", "public int getAction() {\n return action_;\n }", "public String getAction() {\n return action;\n }", "public String getAction() {\n return action;\n }", "public String getAction() {\n return action;\n }", "public String getAction() {\n\t\treturn action;\n\t}", "public String getAction() {\n\t\treturn action;\n\t}", "public String getAction() {\n\t\treturn action;\n\t}", "public String getAction() {\n\t\treturn action;\n\t}", "public void setAction(GrouperActivemqPermissionAction action1) {\r\n this.action = action1;\r\n }", "public int getAction() {\n return action_;\n }", "@Override\n public void checkPermission(Permission perm) {\n }", "private void addPendingAction(Set<String> paramSet, PermissionsResultAction paramPermissionsResultAction) {\n }", "@Override\n public void onRequestAllow(String permissionName) {\n }", "@Override\n public void onPermissionsGranted(int requestCode, List<String> perms) {\n }", "@Override\n public void onPermissionsGranted(int requestCode, List<String> perms) {\n }", "void checkPermission(T request) throws AuthorizationException;", "public int getUserAction()\n {\n return userAction;\n }", "public TSetAclAction getAction() {\n return this.action;\n }", "public String getPermission() {\n return this.permission;\n }", "@Override\r\n\tpublic void action() {\n\t\t\r\n\t}", "@Override\n public void onPermissionGranted(PermissionGrantedResponse permissionGrantedResponse) {\n\n }", "AllowAction(ModeUsage modeUsage) {\n super(modeUsage);\n }", "@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n ActivityCompat.requestPermissions(a,\n new String[]{permission},\n b);\n }", "public ActionUtilisateur choisirUneAction() ;", "void askForPermissions();", "public A getAction() {\r\n\t\treturn action;\r\n\t}", "public void setAction (String action) {\n this.action = action;\n }", "public void setAction(String action);", "public void setPermission(String permission)\r\n {\r\n this.permission = permission;\r\n }", "@Override\n public void onDenied(String permission) {\n }", "public abstract Action getAction();", "@Override\n public void onDenied(String permission) {\n }", "public GetMarkerSetMembershipAction() {\n }", "public void executeAction( String actionInfo );", "public String getAction() {\n\t\treturn action.get();\n\t}", "@Override\n\tpublic void action() {\n\n\t}", "public void onPermissionError(CommandEvent e);", "@Override\n\tpublic void authorize(String resourceName, String action, String rpcName)\n\t\t\tthrows Exception {\n\t}", "@Override\n public void onRequestRefuse(String permissionName) {\n }", "@Override\n\tpublic void apply( final ApplyFn fn ) throws AccessDeniedException;", "@Override\r\n\tpublic boolean process() {\r\n\t\t// TODO: check all permissions here\r\n\t\tif (_actionKey.equalsIgnoreCase(READ)) {\r\n\t\t\treturn read();\r\n\t\t} else if (_actionKey.equalsIgnoreCase(CREATE)) {\r\n\t\t\treturn create();\r\n\t\t} else if (_actionKey.equalsIgnoreCase(DELETE)) {\r\n\t\t\treturn delete();\r\n\t\t} else if (_actionKey.equalsIgnoreCase(UPDATE)) {\r\n\t\t\treturn update();\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "@Override\r\n\tpublic String permission() {\n\t\treturn Permissions.DEFAULT;\r\n\t}", "public boolean isPermissionGranted(String permission){\n return true;\n// else\n// return false;\n }", "@Override\n public void onClick(View view) {\n CheckUserPermsions();\n }", "public String getActionType() {\n return actionType;\n }", "@Override\n protected String requiredPostPermission() {\n return \"admin\";\n }", "public String getUserAction() {\n return userAction;\n }", "public Permission getPermission() {\n return permission;\n }", "@Override\r\n\t\tpublic void action()\r\n\t\t{\r\n// throw new UnsupportedOperationException(\"Not supported yet.\");\r\n\t\t}", "public RateLimiterAction getAction() {\n return action;\n }", "public void selectAction(){\r\n\t\t\r\n\t\t//Switch on the action to be taken i.e referral made by health care professional\r\n\t\tswitch(this.referredTo){\r\n\t\tcase DECEASED:\r\n\t\t\tisDeceased();\r\n\t\t\tbreak;\r\n\t\tcase GP:\r\n\t\t\treferToGP();\r\n\t\t\tbreak;\r\n\t\tcase OUTPATIENT:\r\n\t\t\tsendToOutpatients();\r\n\t\t\tbreak;\r\n\t\tcase SOCIALSERVICES:\r\n\t\t\treferToSocialServices();\r\n\t\t\tbreak;\r\n\t\tcase SPECIALIST:\r\n\t\t\treferToSpecialist();\r\n\t\t\tbreak;\r\n\t\tcase WARD:\r\n\t\t\tsendToWard();\r\n\t\t\tbreak;\r\n\t\tcase DISCHARGED:\r\n\t\t\tdischarge();\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t\r\n\t\t}//end switch\r\n\t}", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == REQUEST_PERMISSION_SETTING) {\n checkPermission();\n }\n }", "@Override\r\n public void onClick(View view) {\n permission();\r\n pickImage();\r\n\r\n }", "@Override\n public void doAction(User user) {\n }", "public void action() {\n action.action();\n }", "public void setAction(String action) {\n this.action = action;\n }", "public void setAction(String action) {\n this.action = action;\n }", "public void grantPermissionPending(String objectId, String objectType, User user, List<String> actions) throws UserManagementException;", "public String getActionId() {\n return actionId;\n }", "public String getFloodPerm() throws PermissionDeniedException;", "@Override\n\tpublic ResponseEntity<?> update(Permission e) {\n\t\treturn null;\n\t}", "public abstract String getIntentActionString();", "public void setActionInfo(String actionInfo);", "int getPermissionWrite();", "private PermissionHelper() {}", "public FacebookPermissionsE permission(){\n\t\treturn this.permission;\n\t}", "public Integer getPermission() {\n\t\treturn permission;\n\t}", "@Override\n\tpublic int getActionId() {\n\t\treturn actionId;\n\t}", "ActionType getType();", "public void grantPermission(String objectId, String objectType, User user, List<String> actions) throws UserManagementException;", "@Override\n public void onGranted() {\n }", "void requestNeededPermissions(int requestCode);" ]
[ "0.68559307", "0.6592582", "0.6577491", "0.64692485", "0.63587993", "0.6241883", "0.6237451", "0.6231458", "0.6226177", "0.6219266", "0.6184181", "0.6159403", "0.6153083", "0.6123346", "0.6118703", "0.6110639", "0.6101675", "0.60957325", "0.6091926", "0.6091926", "0.6091926", "0.6086442", "0.6070011", "0.60597986", "0.6056694", "0.6055016", "0.6047385", "0.6041646", "0.60284024", "0.6019999", "0.6019999", "0.6019999", "0.60065705", "0.60065705", "0.60065705", "0.60065705", "0.6005544", "0.59881645", "0.5982881", "0.5974656", "0.59732074", "0.59703183", "0.59703183", "0.59565884", "0.5952887", "0.5944511", "0.59283584", "0.5914741", "0.59100276", "0.5896818", "0.58927846", "0.58906704", "0.5880268", "0.5873838", "0.58603525", "0.58523726", "0.5837152", "0.58367074", "0.58289456", "0.5819773", "0.58092415", "0.5808003", "0.580552", "0.5802463", "0.57937366", "0.5777049", "0.5765059", "0.5762035", "0.574522", "0.5743168", "0.574221", "0.57350767", "0.57065725", "0.57037264", "0.5697341", "0.5696834", "0.5684365", "0.56647956", "0.5663937", "0.56589913", "0.56585884", "0.5657402", "0.56511337", "0.564695", "0.564695", "0.5639682", "0.56333786", "0.56274605", "0.5621022", "0.5613592", "0.56037325", "0.5596764", "0.5596713", "0.5590252", "0.55892825", "0.5588384", "0.5585825", "0.55845016", "0.5583478", "0.55782884" ]
0.647182
3
action for this permission
public void setAction(GrouperActivemqPermissionAction action1) { this.action = action1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void permissionGranted(int requestCode);", "abstract public void getPermission();", "@Override\n public void onAction(List<String> permissions) {\n Log.e(TAG, \"permission success\");\n callback.onSuccess(permissions);\n\n }", "public GrouperActivemqPermissionAction getAction() {\r\n return this.action;\r\n }", "public int getActionType();", "@Override\n\tpublic String getAction() {\n\t\treturn action;\n\t}", "@Override\n public void onPermissionGranted() {\n }", "public void goToPermissions(String action) {\n boolean allowed = false;\n if (selectedSubject instanceof Subject) {\n allowed = isAuthorized((Subject) selectedSubject, \"grant\".equals(action) ? Action.GRANT : Action.REVOKE);\n } else {\n allowed = isAuthorized((Role) selectedSubject, \"grant\".equals(action) ? Action.GRANT : Action.REVOKE);\n }\n if (!allowed) {\n return;\n }\n if (selectedSubject != null\n && (!selectedActions.isEmpty() || (!selectedCollectionActions.isEmpty() && isSelectedFields(selectedCarrierModel.getCollectionFields().values())))) {\n\n if (getTabEntity() instanceof Carrier) {\n goToObjectResourceManagement(action, (IdHolder<?>) selectedSubject, selectedActions, selectedCollectionActions, selectedCarrierModel, carriers);\n } else {\n if (getTabEntity() instanceof Party) {\n if (partyModel.getEntity().getId() != null) {\n List<RowModel> ret = new ArrayList<RowModel>();\n ret.add(new RowModel(partyModel.getEntity(), partyModel.isSelected(), \"Party-\" + ((Party) partyModel.getEntity()).getPartyField1() + \", \"\n + ((Party) partyModel.getEntity()).getPartyField2()));\n if (isSelected(ret)) {\n goToObjectResourceManagement(action, (IdHolder<?>) selectedSubject, selectedActions, selectedCollectionActions, partyModel, ret);\n } else {\n System.err.println(\"Select party\");\n }\n }\n } else {\n if (getTabEntity() instanceof Contact) {\n if (isSelected(contacts)) {\n goToObjectResourceManagement(action, (IdHolder<?>) selectedSubject, selectedActions, selectedCollectionActions, selectedContactModel, contacts);\n } else {\n System.err.println(\"Select contact\");\n }\n }\n }\n }\n }\n\n }", "String getPermission();", "@Override\n public void onPermissionGranted() {\n }", "@Override\n public void checkPermission(Permission perm, Object context) {\n }", "public String getAction () {\n return action;\n }", "private void removePendingAction(PermissionsResultAction paramPermissionsResultAction) {\n }", "@Override\n public void onClick(View v) {\n requestPermissions((SireController) view.getContext(),false);\n }", "@Override\n public void onClick(View v) {\n if (Build.VERSION.SDK_INT >= 23)\n {\n if (permissionUtils.checkPermissions())\n {\n Log.e(TAG, \"Permission Is Not Granted. Request For Permission\");\n permissionUtils.askPermission();\n }\n else\n {\n Log.e(TAG, \"Permission Already Granted\");\n Intent intent = new Intent(RuntimePermissionActivity.this, PermissionGrantedActivity.class);\n startActivity(intent);\n finish();\n }\n }\n else\n {\n /*\n * Pre-Marshmallow\n * If build version is less than or 23, then all permission is\n * granted at install time in google play store.\n */\n Intent intent = new Intent(RuntimePermissionActivity.this, PermissionGrantedActivity.class);\n startActivity(intent);\n finish();\n }\n }", "public int getAction()\n {\n return m_action;\n }", "@Override\n public void onClick(View view) {\n String platform = checkPlatform();\n if (platform.equals(\"Marshmallow\")) {\n Log.d(TAG, \"Runtime permission required\");\n //Step 2. check the permission\n boolean permissionStatus = checkPermission();\n if (permissionStatus) {\n //Permission already granted\n Log.d(TAG, \"Permission already granted\");\n } else {\n //Permission not granted\n //Step 3. Explain permission i.e show an explanation\n Log.d(TAG, \"Explain permission\");\n explainPermission();\n //Step 4. Request Permissions\n Log.d(TAG, \"Request Permission\");\n requestPermission();\n }\n\n } else {\n Log.d(TAG, \"onClick: Runtime permission not required\");\n }\n\n\n }", "public int getAction() {\n\t\treturn action;\n\t}", "public int getAction() {\n return action;\n }", "@Override\n public void action() {\n }", "@Override\n public void action() {\n }", "@Override\n public void action() {\n }", "public String getAction() {\n return this.action;\n }", "public void onPermissionGranted() {\n\n }", "public String getAction() {\r\n\t\treturn action;\r\n\t}", "public String getAction() {\n return action;\n }", "public String getPermission()\r\n {\r\n return permission;\r\n }", "public void setAction(String action) { this.action = action; }", "@PermissionSuccess(requestCode = 100)\n public void onPermissionSuccess(){\n }", "public int getAction() {\n return action_;\n }", "public String getAction() {\n return action;\n }", "public String getAction() {\n return action;\n }", "public String getAction() {\n return action;\n }", "public String getAction() {\n\t\treturn action;\n\t}", "public String getAction() {\n\t\treturn action;\n\t}", "public String getAction() {\n\t\treturn action;\n\t}", "public String getAction() {\n\t\treturn action;\n\t}", "public int getAction() {\n return action_;\n }", "@Override\n public void checkPermission(Permission perm) {\n }", "private void addPendingAction(Set<String> paramSet, PermissionsResultAction paramPermissionsResultAction) {\n }", "@Override\n public void onRequestAllow(String permissionName) {\n }", "@Override\n public void onPermissionsGranted(int requestCode, List<String> perms) {\n }", "@Override\n public void onPermissionsGranted(int requestCode, List<String> perms) {\n }", "void checkPermission(T request) throws AuthorizationException;", "public int getUserAction()\n {\n return userAction;\n }", "public TSetAclAction getAction() {\n return this.action;\n }", "public String getPermission() {\n return this.permission;\n }", "@Override\r\n\tpublic void action() {\n\t\t\r\n\t}", "@Override\n public void onPermissionGranted(PermissionGrantedResponse permissionGrantedResponse) {\n\n }", "AllowAction(ModeUsage modeUsage) {\n super(modeUsage);\n }", "@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n ActivityCompat.requestPermissions(a,\n new String[]{permission},\n b);\n }", "public ActionUtilisateur choisirUneAction() ;", "void askForPermissions();", "public A getAction() {\r\n\t\treturn action;\r\n\t}", "public void setAction (String action) {\n this.action = action;\n }", "public void setAction(String action);", "public void setPermission(String permission)\r\n {\r\n this.permission = permission;\r\n }", "@Override\n public void onDenied(String permission) {\n }", "public abstract Action getAction();", "@Override\n public void onDenied(String permission) {\n }", "public GetMarkerSetMembershipAction() {\n }", "public void executeAction( String actionInfo );", "public String getAction() {\n\t\treturn action.get();\n\t}", "@Override\n\tpublic void action() {\n\n\t}", "public void onPermissionError(CommandEvent e);", "@Override\n\tpublic void authorize(String resourceName, String action, String rpcName)\n\t\t\tthrows Exception {\n\t}", "@Override\n public void onRequestRefuse(String permissionName) {\n }", "@Override\n\tpublic void apply( final ApplyFn fn ) throws AccessDeniedException;", "@Override\r\n\tpublic boolean process() {\r\n\t\t// TODO: check all permissions here\r\n\t\tif (_actionKey.equalsIgnoreCase(READ)) {\r\n\t\t\treturn read();\r\n\t\t} else if (_actionKey.equalsIgnoreCase(CREATE)) {\r\n\t\t\treturn create();\r\n\t\t} else if (_actionKey.equalsIgnoreCase(DELETE)) {\r\n\t\t\treturn delete();\r\n\t\t} else if (_actionKey.equalsIgnoreCase(UPDATE)) {\r\n\t\t\treturn update();\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "@Override\r\n\tpublic String permission() {\n\t\treturn Permissions.DEFAULT;\r\n\t}", "public boolean isPermissionGranted(String permission){\n return true;\n// else\n// return false;\n }", "@Override\n public void onClick(View view) {\n CheckUserPermsions();\n }", "public String getActionType() {\n return actionType;\n }", "@Override\n protected String requiredPostPermission() {\n return \"admin\";\n }", "public String getUserAction() {\n return userAction;\n }", "public Permission getPermission() {\n return permission;\n }", "@Override\r\n\t\tpublic void action()\r\n\t\t{\r\n// throw new UnsupportedOperationException(\"Not supported yet.\");\r\n\t\t}", "public RateLimiterAction getAction() {\n return action;\n }", "public void selectAction(){\r\n\t\t\r\n\t\t//Switch on the action to be taken i.e referral made by health care professional\r\n\t\tswitch(this.referredTo){\r\n\t\tcase DECEASED:\r\n\t\t\tisDeceased();\r\n\t\t\tbreak;\r\n\t\tcase GP:\r\n\t\t\treferToGP();\r\n\t\t\tbreak;\r\n\t\tcase OUTPATIENT:\r\n\t\t\tsendToOutpatients();\r\n\t\t\tbreak;\r\n\t\tcase SOCIALSERVICES:\r\n\t\t\treferToSocialServices();\r\n\t\t\tbreak;\r\n\t\tcase SPECIALIST:\r\n\t\t\treferToSpecialist();\r\n\t\t\tbreak;\r\n\t\tcase WARD:\r\n\t\t\tsendToWard();\r\n\t\t\tbreak;\r\n\t\tcase DISCHARGED:\r\n\t\t\tdischarge();\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t\r\n\t\t}//end switch\r\n\t}", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == REQUEST_PERMISSION_SETTING) {\n checkPermission();\n }\n }", "@Override\r\n public void onClick(View view) {\n permission();\r\n pickImage();\r\n\r\n }", "@Override\n public void doAction(User user) {\n }", "public void action() {\n action.action();\n }", "public void setAction(String action) {\n this.action = action;\n }", "public void setAction(String action) {\n this.action = action;\n }", "public void grantPermissionPending(String objectId, String objectType, User user, List<String> actions) throws UserManagementException;", "public String getActionId() {\n return actionId;\n }", "public String getFloodPerm() throws PermissionDeniedException;", "@Override\n\tpublic ResponseEntity<?> update(Permission e) {\n\t\treturn null;\n\t}", "public abstract String getIntentActionString();", "public void setActionInfo(String actionInfo);", "int getPermissionWrite();", "private PermissionHelper() {}", "public FacebookPermissionsE permission(){\n\t\treturn this.permission;\n\t}", "public Integer getPermission() {\n\t\treturn permission;\n\t}", "@Override\n\tpublic int getActionId() {\n\t\treturn actionId;\n\t}", "ActionType getType();", "public void grantPermission(String objectId, String objectType, User user, List<String> actions) throws UserManagementException;", "@Override\n public void onGranted() {\n }", "void requestNeededPermissions(int requestCode);" ]
[ "0.68559307", "0.6592582", "0.6577491", "0.647182", "0.64692485", "0.63587993", "0.6241883", "0.6237451", "0.6231458", "0.6226177", "0.6219266", "0.6184181", "0.6159403", "0.6153083", "0.6123346", "0.6118703", "0.6110639", "0.6101675", "0.60957325", "0.6091926", "0.6091926", "0.6091926", "0.6086442", "0.6070011", "0.60597986", "0.6056694", "0.6055016", "0.6047385", "0.6041646", "0.60284024", "0.6019999", "0.6019999", "0.6019999", "0.60065705", "0.60065705", "0.60065705", "0.60065705", "0.59881645", "0.5982881", "0.5974656", "0.59732074", "0.59703183", "0.59703183", "0.59565884", "0.5952887", "0.5944511", "0.59283584", "0.5914741", "0.59100276", "0.5896818", "0.58927846", "0.58906704", "0.5880268", "0.5873838", "0.58603525", "0.58523726", "0.5837152", "0.58367074", "0.58289456", "0.5819773", "0.58092415", "0.5808003", "0.580552", "0.5802463", "0.57937366", "0.5777049", "0.5765059", "0.5762035", "0.574522", "0.5743168", "0.574221", "0.57350767", "0.57065725", "0.57037264", "0.5697341", "0.5696834", "0.5684365", "0.56647956", "0.5663937", "0.56589913", "0.56585884", "0.5657402", "0.56511337", "0.564695", "0.564695", "0.5639682", "0.56333786", "0.56274605", "0.5621022", "0.5613592", "0.56037325", "0.5596764", "0.5596713", "0.5590252", "0.55892825", "0.5588384", "0.5585825", "0.55845016", "0.5583478", "0.55782884" ]
0.6005544
37
fully qualified grouper destination for this permission: could end in __queue or __topic to be specific. could have a starting prefix to keep the destinations in a certain folder
public String getDestination() { return this.destination; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getDestinationName();", "public String getDestinationFolder()\n\t{\n\t\treturn destinationFolder;\n\t}", "String getRouteDest();", "public String getDestination() {\r\n return destination;\r\n }", "public java.lang.String getDestination(){return this.destination;}", "public String getDestination() {\n return destination;\n }", "public String getDestination() {\n return this.destination;\n }", "public java.lang.String getDestination()\n {\n return this._destination;\n }", "public String getDestination() {\r\n\t\treturn destination;\r\n\t}", "public void setDestination(String destination1) {\r\n this.destination = destination1;\r\n }", "public String getDestination() {\r\n\t\treturn this.destination;\r\n\t}", "Destination getDestination();", "public String getDestination() {\n\t\treturn destination;\n\t}", "protected String getDestinationString() {\n return getClass().getName() + \".\" + getName(true);\n }", "public void setDestination(String destination) {\r\n this.destination = destination;\r\n }", "public java.lang.String getDestination() {\n return destination;\n }", "public String getDestinationName() {\n return destinationName;\n }", "@Override\n public String getDestination() {\n return this.dest;\n }", "public String getDestination()\n\t{\n\t\treturn notification.getString(Attribute.Request.DESTINATION);\n\t}", "public String getDestinationOrderAlias();", "public void setDestination(String dest)\n\t{\n\t\tnotification.put(Attribute.Request.DESTINATION, dest);\n\t}", "String getDestination() {\n if (isSeparateFolder()) {\n return destination.getText();\n } else {\n return null;\n }\n }", "public XMLFilePersistenceHandler(final String prefix, final String... destinationFolderHierachrchy) {\n\n\t\tfinal StringBuilder builder = new StringBuilder();\n\n\t\tif (destinationFolderHierachrchy != null) {\n\t\t\tfor (final String element : destinationFolderHierachrchy) {\n\t\t\t\tbuilder.append(element);\n\t\t\t\tbuilder.append(FILE_SEPARATOR);\n\t\t\t}\n\t\t}\n\n\t\tthis.destinationFolder = builder.toString();\n\t\tthis.prefix = prefix == null ? \"\" : prefix;\n\t}", "public String getRFCDestinationNameFromGroupName(final String groupName)\r\n\t{\r\n\t\tfinal String[] groupNameSplitted = groupName.split(\"\\\\|\");\r\n\t\treturn groupNameSplitted[0].replace(SapcorejcoConstants.RFCDESTINATION_NAME_PREFIX, \"\");\r\n\t}", "public void setDestination(java.lang.String destination) {\n this.destination = destination;\n }", "public String getDestination(AndesSubscription subscription) {\n if (DestinationType.DURABLE_TOPIC == subscription.getDestinationType()) {\n return subscription.getTargetQueue();\n } else {\n return subscription.getSubscribedDestination();\n }\n }", "public String destination() {\n return this.destination;\n }", "public String getFeedPathPrefix();", "long getDestinationId();", "public Sommet destination() {\n return destination;\n }", "public Builder setDestination(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n destination_ = value;\n onChanged();\n return this;\n }", "public String getDestination(){\r\n\t\treturn route.getDestination();\r\n\t}", "public static String convertSubscribeDestToSendDest(String endpoint) {\n return StringUtils.startsWith(endpoint, \"/user\") ? endpoint.substring(5) : endpoint;\n }", "public String getArchiveDDFolderName();", "public FolderId getDestinationFolderId() {\n\t\treturn this.destinationFolderId;\n\t}", "String getDest();", "public java.lang.String getDestination() {\n java.lang.Object ref = destination_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n destination_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public void findDestination() {\n\t\t\n\t}", "public java.lang.String getDestination() {\n java.lang.Object ref = destination_;\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 destination_ = s;\n return s;\n }\n }", "public com.google.protobuf.ByteString\n getDestinationBytes() {\n java.lang.Object ref = destination_;\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 destination_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@Override\n public String toString() {\n return \"The name of the destination is \" + this.name + \".\";\n }", "io.opencannabis.schema.commerce.OrderDelivery.DeliveryDestination getDestination();", "int getDestination();", "public long getDestinationId() {\n return destinationId_;\n }", "private static String getPrefixString( Gfa smear ) {\n\t\t \n\t\tString prefix = \"\";\n\t\tif ( !smear.isSnapshot() ) {\n\t\t if ( smear.isOutlook() ) {\n\t\t \tprefix = Gfa.BOUNDED_BY;\n\t\t }\n\t\t else {\n\t\t \tprefix = Gfa.FROM;\n\t\t }\t\t \n\t\t}\n\t\t\n\t return prefix;\n\t\t\n\t}", "public String getDestinationId()\n {\n return destinationId; // Field is final; no need to sync.\n }", "public long getDestinationId() {\n return destinationId_;\n }", "String getDest_id();", "public int getDestination() {\r\n\t\treturn destination;\r\n\t}", "EventChannelDestination destination();", "public Location getDestination() {\r\n return destination;\r\n }", "private NetworkProfile getFinalDestination(NetworkProfile dst) {\n NetworkProfile fdst = null;\n// if (dst.isNameProfile()) {\n// //라우팅 스토어에서 검색\n// fdst = dst;\n// } else {\n fdst = dst;\n// }\n return fdst;\n }", "@Override\n\tpublic String getDest() {\n\t\treturn dest;\n\t}", "public com.google.protobuf.ByteString\n getDestinationBytes() {\n java.lang.Object ref = destination_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n destination_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "private boolean originates(PolicyGroup group) {\n\t switch(this.getType()) {\n case BGP:\n // Check if prefix is within origination space\n if (bgpConfig.getOriginationSpace() != null) {\n for (PrefixRange prefixRange : \n bgpConfig.getOriginationSpace().getPrefixRanges()) {\n if (group.within(prefixRange.getPrefix())) {\n return true;\n }\n }\n }\n \n // Check if a generated route is exported\n //System.out.print(this.toString() + \" originates \" + group + \"? \");\n RoutingPolicy exportPolicy = this.getExportPolicy();\n if (null == exportPolicy) {\n return false;\n }\n ConnectedRoute route = new ConnectedRoute(group.getPrefix(), null);\n /*Environment env = new Environment(this.device.getConfiguration(),\n this.getVrf().getName(), route, null,\n new BgpRoute.Builder(), null, Direction.OUT);*/\n Environment env = new Environment(false, false, false, \n this.device.getConfiguration(), false, null, Direction.OUT,\n false, new BgpRoute.Builder(), false, route, null, \n new BgpRoute.Builder(), null, null, false, false, \n this.getVrf(), false);\n // For loop is for debugging purposes only\n /*for (Statement stmt: exportPolicy.getStatements()) {\n System.out.println(\" Smt: \" + stmt);\n if (stmt instanceof If) {\n If ifStmt = (If)stmt;\n BooleanExpr guard = ifStmt.getGuard();\n this.findMatchPrefix(guard, null, \" \",env);\n }\n }*/\n Result result = exportPolicy.call(env);\n //System.out.println(result.getBooleanValue());\n if (result.getBooleanValue()) {\n return true;\n }\n \n // Are there other ways to originate routes?\n return false;\n case OSPF:\n // Check if prefix matches interfaces on which OSPF operates\n for (Interface iface : this.interfaces) {\n if (group.within(iface.getPrefix())) {\n return true;\n }\n }\n return false;\n case STATIC:\n return group.within(this.staticConfig.getNetwork());\n default:\n return false;\n }\n\t}", "public void setDestination(int destination) {\r\n\t\tthis.destination = destination;\r\n\t}", "@JsonProperty(\"destination_name\")\n public String getDestinationName() {\n return destinationName;\n }", "public String getDestinationResource() {\r\n\t\treturn destinationSource;\r\n\t}", "public Location getDestination(){\n\t\treturn destination;\n\t}", "public int getDestination() {\n\t\treturn finalDestination;\n\t}", "public Builder setRouteDest(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000100;\n routeDest_ = value;\n onChanged();\n return this;\n }", "public final void ruleQualifiedNameWithWildcard() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:2250:2: ( ( ( rule__QualifiedNameWithWildcard__Group__0 ) ) )\r\n // InternalDroneScript.g:2251:2: ( ( rule__QualifiedNameWithWildcard__Group__0 ) )\r\n {\r\n // InternalDroneScript.g:2251:2: ( ( rule__QualifiedNameWithWildcard__Group__0 ) )\r\n // InternalDroneScript.g:2252:3: ( rule__QualifiedNameWithWildcard__Group__0 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getQualifiedNameWithWildcardAccess().getGroup()); \r\n }\r\n // InternalDroneScript.g:2253:3: ( rule__QualifiedNameWithWildcard__Group__0 )\r\n // InternalDroneScript.g:2253:4: rule__QualifiedNameWithWildcard__Group__0\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__QualifiedNameWithWildcard__Group__0();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getQualifiedNameWithWildcardAccess().getGroup()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "@Override\r\n\tpublic String toShortString() {\r\n\t\treturn \"->F: \" + destination;\r\n\t}", "public String getFolderName() {\n return owner.getName();\n }", "public Actor getDestination()\r\n\t{\r\n\t\treturn destinationActor;\t\r\n\t}", "@Override\n public String getPath() {\n return \"data/userGroup\";\n }", "public GroupMessageReceiverImpl() {\n super(MessageSender.DestinationType.Queue);\n }", "public final void ruleQualifiedNameWithWildcard() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalCsv.g:567:2: ( ( ( rule__QualifiedNameWithWildcard__Group__0 ) ) )\n // InternalCsv.g:568:2: ( ( rule__QualifiedNameWithWildcard__Group__0 ) )\n {\n // InternalCsv.g:568:2: ( ( rule__QualifiedNameWithWildcard__Group__0 ) )\n // InternalCsv.g:569:3: ( rule__QualifiedNameWithWildcard__Group__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getQualifiedNameWithWildcardAccess().getGroup()); \n }\n // InternalCsv.g:570:3: ( rule__QualifiedNameWithWildcard__Group__0 )\n // InternalCsv.g:570:4: rule__QualifiedNameWithWildcard__Group__0\n {\n pushFollow(FOLLOW_2);\n rule__QualifiedNameWithWildcard__Group__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getQualifiedNameWithWildcardAccess().getGroup()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__QualifiedNameWithWildcard__Group__0__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:16669:1: ( ( ruleQualifiedName ) )\r\n // InternalDroneScript.g:16670:1: ( ruleQualifiedName )\r\n {\r\n // InternalDroneScript.g:16670:1: ( ruleQualifiedName )\r\n // InternalDroneScript.g:16671:2: ruleQualifiedName\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getQualifiedNameWithWildcardAccess().getQualifiedNameParserRuleCall_0()); \r\n }\r\n pushFollow(FOLLOW_2);\r\n ruleQualifiedName();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getQualifiedNameWithWildcardAccess().getQualifiedNameParserRuleCall_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "@Override\n public javax.jms.Destination resolveDestination(Destination d) {\n // we resolve any destination\n //\n\n String name = d.getName();\n\n javax.jms.Destination jmsDestination;\n\n if (d.isQueue()) {\n\n jmsDestination = queues.get(d.getName());\n\n if (jmsDestination == null) {\n\n jmsDestination = new EmbeddedQueue(name);\n queues.put(name, (EmbeddedQueue)jmsDestination);\n }\n }\n else {\n\n jmsDestination = topics.get(d.getName());\n\n if (jmsDestination == null) {\n\n jmsDestination = new EmbeddedTopic(name);\n topics.put(name, (EmbeddedTopic)jmsDestination);\n }\n }\n\n return jmsDestination;\n }", "public Location getDestination()\r\n\t{ return this.destination; }", "public final void rule__QualifiedNameWithWildcard__Group__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:16684:1: ( rule__QualifiedNameWithWildcard__Group__1__Impl rule__QualifiedNameWithWildcard__Group__2 )\r\n // InternalDroneScript.g:16685:2: rule__QualifiedNameWithWildcard__Group__1__Impl rule__QualifiedNameWithWildcard__Group__2\r\n {\r\n pushFollow(FOLLOW_112);\r\n rule__QualifiedNameWithWildcard__Group__1__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_2);\r\n rule__QualifiedNameWithWildcard__Group__2();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "@Override\n\tpublic String getMessageDestination() {\n\t\treturn channelName;\n\t}", "public final void rule__QualifiedNameWithWildcard__Group__0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:16657:1: ( rule__QualifiedNameWithWildcard__Group__0__Impl rule__QualifiedNameWithWildcard__Group__1 )\r\n // InternalDroneScript.g:16658:2: rule__QualifiedNameWithWildcard__Group__0__Impl rule__QualifiedNameWithWildcard__Group__1\r\n {\r\n pushFollow(FOLLOW_28);\r\n rule__QualifiedNameWithWildcard__Group__0__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_2);\r\n rule__QualifiedNameWithWildcard__Group__1();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "@Override\n public void onArriveDestination() {\n\n }", "java.lang.String getFolderId();", "public String toFQN() {\n return MessageFormat.format(\"{0}/{1}:{2}\", this.getUser(), this.getRepository(), this.getReference());\n }", "protected String getGroupId() {\n return getActorPath().name();\n }", "java.lang.String getRoutingKey();", "protected String getDestination(Exchange exchange, Endpoint endpoint) {\n switch (component) {\n case \"cometds\":\n case \"cometd\":\n return URI.create(endpoint.getEndpointUri()).getPath().substring(1);\n case \"rabbitmq\":\n return (String) exchange.getIn().getHeader(\"rabbitmq.EXCHANGE_NAME\");\n case \"stomp\":\n String destination = stripSchemeAndOptions(endpoint);\n if (destination.startsWith(\"queue:\")) {\n destination = destination.substring(\"queue:\".length());\n }\n return destination;\n case \"mqtt\":\n Map<String, String> queryParameters = toQueryParameters(endpoint.getEndpointUri());\n return (queryParameters.containsKey(\"subscribeTopicNames\")\n ? queryParameters.get(\"subscribeTopicNames\")\n : queryParameters.get(\"publishTopicName\"));\n default:\n return stripSchemeAndOptions(endpoint);\n }\n }", "public boolean get_destination() {\r\n return (final_destination);\r\n }", "private boolean finalDestination(OverlayNodeSendsData event) {\n\t\tif (event.getDestID() == myAssignedID)\n\t\t\treturn true;\n\t\treturn false;\n\n\t}", "protected String toNameSpacedStanza(String stanza)\n\t{\n\t\tString trimmedStanza = stanza.trim();\n\t\t\n\t\tif (!(trimmedStanza.contains(CLIENT_NAMESPACE) || trimmedStanza.contains(SERVER_NAMESPACE)))\n\t\t{\n\t\t\tfinal String start = trimmedStanza.substring(0, trimmedStanza.indexOf(' '));\n\t\t\tfinal String end = trimmedStanza.substring(trimmedStanza.indexOf(' '));\n\t\t\t\n\t\t\treturn new StringBuilder(start).append(' ').append(CLIENT_NAMESPACE_INSERT).append(' ').append(end).toString(); \n\t\t}\n\t\telse\n\t\t\treturn trimmedStanza;\n\t}", "public void makeDestinationRequest() {\n this._hasDestinationRequests = true;\n }", "public Object getDestination() { return this.d; }", "public int getSqAnDestination() {\n if (packetHeader == null)\n return PacketHeader.BROADCAST_ADDRESS;\n return packetHeader.getDestination();\n }", "DestinationNameParameter destinationType(DestinationType destinationType);", "DeleteDestinationResult deleteDestination(DeleteDestinationRequest deleteDestinationRequest);", "public final void rule__QualifiedNameWithWildcard__Group__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalCsv.g:3340:1: ( ( ruleQualifiedName ) )\n // InternalCsv.g:3341:1: ( ruleQualifiedName )\n {\n // InternalCsv.g:3341:1: ( ruleQualifiedName )\n // InternalCsv.g:3342:2: ruleQualifiedName\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getQualifiedNameWithWildcardAccess().getQualifiedNameParserRuleCall_0()); \n }\n pushFollow(FOLLOW_2);\n ruleQualifiedName();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getQualifiedNameWithWildcardAccess().getQualifiedNameParserRuleCall_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public String queueName();", "boolean hasRouteDest();", "@Override\n\tpublic void onArriveDestination() {\n\n\t}", "GetDestinationResult getDestination(GetDestinationRequest getDestinationRequest);", "public final void rule__QualifiedNameWithWildcard__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalCsv.g:3355:1: ( rule__QualifiedNameWithWildcard__Group__1__Impl rule__QualifiedNameWithWildcard__Group__2 )\n // InternalCsv.g:3356:2: rule__QualifiedNameWithWildcard__Group__1__Impl rule__QualifiedNameWithWildcard__Group__2\n {\n pushFollow(FOLLOW_39);\n rule__QualifiedNameWithWildcard__Group__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_2);\n rule__QualifiedNameWithWildcard__Group__2();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__QualifiedNameWithWildcard__Group__2__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:16722:1: ( ( '*' ) )\r\n // InternalDroneScript.g:16723:1: ( '*' )\r\n {\r\n // InternalDroneScript.g:16723:1: ( '*' )\r\n // InternalDroneScript.g:16724:2: '*'\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getQualifiedNameWithWildcardAccess().getAsteriskKeyword_2()); \r\n }\r\n match(input,36,FOLLOW_2); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getQualifiedNameWithWildcardAccess().getAsteriskKeyword_2()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public java.lang.String getMWNDest() {\n return MWNDest;\n }", "public void setDestinationName(String destinationName) {\n this.destinationName = destinationName;\n }", "public LocalSubscription createQueueToListentoTopic(){\n\t\treturn new AMQPLocalSubscription(amqQueue, \n \t\tamqpSubscription, subscriptionID, targetQueue, false, isExclusive, true, MessagingEngine.getMyNodeQueueName(),amqQueue.getName(),\n amqQueue.getOwner().toString(), AMQPUtils.DIRECT_EXCHANGE_NAME, DirectExchange.TYPE.toString(), Short.parseShort(\"0\"),true);\n\t}", "public String getAccessPattern(String dc){\n\t\t//String AccessPattern=null;\n\t\t\n\t\t//...\n\t\treturn this.ap+\"@@\"+this.ref;\n\t}", "boolean hasDestinationId();" ]
[ "0.5829827", "0.55613154", "0.5560609", "0.5489396", "0.5485565", "0.54513633", "0.5434647", "0.54322016", "0.5423128", "0.541352", "0.5397152", "0.53888327", "0.5361187", "0.5354436", "0.53302234", "0.5313154", "0.53102505", "0.5306525", "0.52806944", "0.5277022", "0.5257938", "0.52417153", "0.5226375", "0.5218829", "0.51057875", "0.5103394", "0.50776863", "0.50441045", "0.50410104", "0.49973595", "0.49861696", "0.49847373", "0.49771062", "0.4966273", "0.49566707", "0.49423194", "0.49159577", "0.4911994", "0.49009538", "0.49007937", "0.48774308", "0.48476064", "0.48426342", "0.48352545", "0.48163602", "0.4816196", "0.47936517", "0.47924417", "0.4786868", "0.47850868", "0.47846365", "0.47831902", "0.47828758", "0.4729807", "0.47250614", "0.47246546", "0.47207928", "0.470266", "0.47011697", "0.47008565", "0.4660674", "0.46394446", "0.46382767", "0.46294948", "0.46174192", "0.46168265", "0.46115324", "0.45996404", "0.4599274", "0.4598249", "0.45950708", "0.45901808", "0.4587878", "0.45780122", "0.4573436", "0.45718053", "0.45695195", "0.4569006", "0.45688602", "0.4563851", "0.45511696", "0.4547793", "0.45265463", "0.45212084", "0.4514396", "0.45118245", "0.45112532", "0.4510375", "0.45025575", "0.44939968", "0.44922066", "0.4491638", "0.44910377", "0.44895822", "0.44844043", "0.44759414", "0.44732714", "0.44724968", "0.44717097", "0.44611934" ]
0.5535471
3
fully qualified grouper destination for this permission: could end in __queue or __topic to be specific. could have a starting prefix to keep the destinations in a certain folder
public void setDestination(String destination1) { this.destination = destination1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getDestinationName();", "String getRouteDest();", "public String getDestinationFolder()\n\t{\n\t\treturn destinationFolder;\n\t}", "public String getDestination() {\r\n return this.destination;\r\n }", "public String getDestination() {\r\n return destination;\r\n }", "public java.lang.String getDestination(){return this.destination;}", "public String getDestination() {\n return destination;\n }", "public String getDestination() {\n return this.destination;\n }", "public java.lang.String getDestination()\n {\n return this._destination;\n }", "public String getDestination() {\r\n\t\treturn destination;\r\n\t}", "public String getDestination() {\r\n\t\treturn this.destination;\r\n\t}", "Destination getDestination();", "public String getDestination() {\n\t\treturn destination;\n\t}", "protected String getDestinationString() {\n return getClass().getName() + \".\" + getName(true);\n }", "public void setDestination(String destination) {\r\n this.destination = destination;\r\n }", "public java.lang.String getDestination() {\n return destination;\n }", "public String getDestinationName() {\n return destinationName;\n }", "@Override\n public String getDestination() {\n return this.dest;\n }", "public String getDestination()\n\t{\n\t\treturn notification.getString(Attribute.Request.DESTINATION);\n\t}", "public String getDestinationOrderAlias();", "public void setDestination(String dest)\n\t{\n\t\tnotification.put(Attribute.Request.DESTINATION, dest);\n\t}", "String getDestination() {\n if (isSeparateFolder()) {\n return destination.getText();\n } else {\n return null;\n }\n }", "public XMLFilePersistenceHandler(final String prefix, final String... destinationFolderHierachrchy) {\n\n\t\tfinal StringBuilder builder = new StringBuilder();\n\n\t\tif (destinationFolderHierachrchy != null) {\n\t\t\tfor (final String element : destinationFolderHierachrchy) {\n\t\t\t\tbuilder.append(element);\n\t\t\t\tbuilder.append(FILE_SEPARATOR);\n\t\t\t}\n\t\t}\n\n\t\tthis.destinationFolder = builder.toString();\n\t\tthis.prefix = prefix == null ? \"\" : prefix;\n\t}", "public String getRFCDestinationNameFromGroupName(final String groupName)\r\n\t{\r\n\t\tfinal String[] groupNameSplitted = groupName.split(\"\\\\|\");\r\n\t\treturn groupNameSplitted[0].replace(SapcorejcoConstants.RFCDESTINATION_NAME_PREFIX, \"\");\r\n\t}", "public void setDestination(java.lang.String destination) {\n this.destination = destination;\n }", "public String getDestination(AndesSubscription subscription) {\n if (DestinationType.DURABLE_TOPIC == subscription.getDestinationType()) {\n return subscription.getTargetQueue();\n } else {\n return subscription.getSubscribedDestination();\n }\n }", "public String destination() {\n return this.destination;\n }", "public String getFeedPathPrefix();", "long getDestinationId();", "public Sommet destination() {\n return destination;\n }", "public Builder setDestination(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n destination_ = value;\n onChanged();\n return this;\n }", "public String getDestination(){\r\n\t\treturn route.getDestination();\r\n\t}", "public static String convertSubscribeDestToSendDest(String endpoint) {\n return StringUtils.startsWith(endpoint, \"/user\") ? endpoint.substring(5) : endpoint;\n }", "public String getArchiveDDFolderName();", "public FolderId getDestinationFolderId() {\n\t\treturn this.destinationFolderId;\n\t}", "String getDest();", "public java.lang.String getDestination() {\n java.lang.Object ref = destination_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n destination_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public void findDestination() {\n\t\t\n\t}", "public com.google.protobuf.ByteString\n getDestinationBytes() {\n java.lang.Object ref = destination_;\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 destination_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public java.lang.String getDestination() {\n java.lang.Object ref = destination_;\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 destination_ = s;\n return s;\n }\n }", "@Override\n public String toString() {\n return \"The name of the destination is \" + this.name + \".\";\n }", "io.opencannabis.schema.commerce.OrderDelivery.DeliveryDestination getDestination();", "int getDestination();", "public long getDestinationId() {\n return destinationId_;\n }", "private static String getPrefixString( Gfa smear ) {\n\t\t \n\t\tString prefix = \"\";\n\t\tif ( !smear.isSnapshot() ) {\n\t\t if ( smear.isOutlook() ) {\n\t\t \tprefix = Gfa.BOUNDED_BY;\n\t\t }\n\t\t else {\n\t\t \tprefix = Gfa.FROM;\n\t\t }\t\t \n\t\t}\n\t\t\n\t return prefix;\n\t\t\n\t}", "public String getDestinationId()\n {\n return destinationId; // Field is final; no need to sync.\n }", "public long getDestinationId() {\n return destinationId_;\n }", "String getDest_id();", "EventChannelDestination destination();", "public int getDestination() {\r\n\t\treturn destination;\r\n\t}", "public Location getDestination() {\r\n return destination;\r\n }", "private NetworkProfile getFinalDestination(NetworkProfile dst) {\n NetworkProfile fdst = null;\n// if (dst.isNameProfile()) {\n// //라우팅 스토어에서 검색\n// fdst = dst;\n// } else {\n fdst = dst;\n// }\n return fdst;\n }", "@Override\n\tpublic String getDest() {\n\t\treturn dest;\n\t}", "public com.google.protobuf.ByteString\n getDestinationBytes() {\n java.lang.Object ref = destination_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n destination_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public void setDestination(int destination) {\r\n\t\tthis.destination = destination;\r\n\t}", "private boolean originates(PolicyGroup group) {\n\t switch(this.getType()) {\n case BGP:\n // Check if prefix is within origination space\n if (bgpConfig.getOriginationSpace() != null) {\n for (PrefixRange prefixRange : \n bgpConfig.getOriginationSpace().getPrefixRanges()) {\n if (group.within(prefixRange.getPrefix())) {\n return true;\n }\n }\n }\n \n // Check if a generated route is exported\n //System.out.print(this.toString() + \" originates \" + group + \"? \");\n RoutingPolicy exportPolicy = this.getExportPolicy();\n if (null == exportPolicy) {\n return false;\n }\n ConnectedRoute route = new ConnectedRoute(group.getPrefix(), null);\n /*Environment env = new Environment(this.device.getConfiguration(),\n this.getVrf().getName(), route, null,\n new BgpRoute.Builder(), null, Direction.OUT);*/\n Environment env = new Environment(false, false, false, \n this.device.getConfiguration(), false, null, Direction.OUT,\n false, new BgpRoute.Builder(), false, route, null, \n new BgpRoute.Builder(), null, null, false, false, \n this.getVrf(), false);\n // For loop is for debugging purposes only\n /*for (Statement stmt: exportPolicy.getStatements()) {\n System.out.println(\" Smt: \" + stmt);\n if (stmt instanceof If) {\n If ifStmt = (If)stmt;\n BooleanExpr guard = ifStmt.getGuard();\n this.findMatchPrefix(guard, null, \" \",env);\n }\n }*/\n Result result = exportPolicy.call(env);\n //System.out.println(result.getBooleanValue());\n if (result.getBooleanValue()) {\n return true;\n }\n \n // Are there other ways to originate routes?\n return false;\n case OSPF:\n // Check if prefix matches interfaces on which OSPF operates\n for (Interface iface : this.interfaces) {\n if (group.within(iface.getPrefix())) {\n return true;\n }\n }\n return false;\n case STATIC:\n return group.within(this.staticConfig.getNetwork());\n default:\n return false;\n }\n\t}", "@JsonProperty(\"destination_name\")\n public String getDestinationName() {\n return destinationName;\n }", "public String getDestinationResource() {\r\n\t\treturn destinationSource;\r\n\t}", "public Location getDestination(){\n\t\treturn destination;\n\t}", "public int getDestination() {\n\t\treturn finalDestination;\n\t}", "public Builder setRouteDest(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000100;\n routeDest_ = value;\n onChanged();\n return this;\n }", "@Override\r\n\tpublic String toShortString() {\r\n\t\treturn \"->F: \" + destination;\r\n\t}", "public final void ruleQualifiedNameWithWildcard() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:2250:2: ( ( ( rule__QualifiedNameWithWildcard__Group__0 ) ) )\r\n // InternalDroneScript.g:2251:2: ( ( rule__QualifiedNameWithWildcard__Group__0 ) )\r\n {\r\n // InternalDroneScript.g:2251:2: ( ( rule__QualifiedNameWithWildcard__Group__0 ) )\r\n // InternalDroneScript.g:2252:3: ( rule__QualifiedNameWithWildcard__Group__0 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getQualifiedNameWithWildcardAccess().getGroup()); \r\n }\r\n // InternalDroneScript.g:2253:3: ( rule__QualifiedNameWithWildcard__Group__0 )\r\n // InternalDroneScript.g:2253:4: rule__QualifiedNameWithWildcard__Group__0\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__QualifiedNameWithWildcard__Group__0();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getQualifiedNameWithWildcardAccess().getGroup()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public String getFolderName() {\n return owner.getName();\n }", "public Actor getDestination()\r\n\t{\r\n\t\treturn destinationActor;\t\r\n\t}", "@Override\n public String getPath() {\n return \"data/userGroup\";\n }", "public GroupMessageReceiverImpl() {\n super(MessageSender.DestinationType.Queue);\n }", "@Override\n public javax.jms.Destination resolveDestination(Destination d) {\n // we resolve any destination\n //\n\n String name = d.getName();\n\n javax.jms.Destination jmsDestination;\n\n if (d.isQueue()) {\n\n jmsDestination = queues.get(d.getName());\n\n if (jmsDestination == null) {\n\n jmsDestination = new EmbeddedQueue(name);\n queues.put(name, (EmbeddedQueue)jmsDestination);\n }\n }\n else {\n\n jmsDestination = topics.get(d.getName());\n\n if (jmsDestination == null) {\n\n jmsDestination = new EmbeddedTopic(name);\n topics.put(name, (EmbeddedTopic)jmsDestination);\n }\n }\n\n return jmsDestination;\n }", "public final void ruleQualifiedNameWithWildcard() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalCsv.g:567:2: ( ( ( rule__QualifiedNameWithWildcard__Group__0 ) ) )\n // InternalCsv.g:568:2: ( ( rule__QualifiedNameWithWildcard__Group__0 ) )\n {\n // InternalCsv.g:568:2: ( ( rule__QualifiedNameWithWildcard__Group__0 ) )\n // InternalCsv.g:569:3: ( rule__QualifiedNameWithWildcard__Group__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getQualifiedNameWithWildcardAccess().getGroup()); \n }\n // InternalCsv.g:570:3: ( rule__QualifiedNameWithWildcard__Group__0 )\n // InternalCsv.g:570:4: rule__QualifiedNameWithWildcard__Group__0\n {\n pushFollow(FOLLOW_2);\n rule__QualifiedNameWithWildcard__Group__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getQualifiedNameWithWildcardAccess().getGroup()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__QualifiedNameWithWildcard__Group__0__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:16669:1: ( ( ruleQualifiedName ) )\r\n // InternalDroneScript.g:16670:1: ( ruleQualifiedName )\r\n {\r\n // InternalDroneScript.g:16670:1: ( ruleQualifiedName )\r\n // InternalDroneScript.g:16671:2: ruleQualifiedName\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getQualifiedNameWithWildcardAccess().getQualifiedNameParserRuleCall_0()); \r\n }\r\n pushFollow(FOLLOW_2);\r\n ruleQualifiedName();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getQualifiedNameWithWildcardAccess().getQualifiedNameParserRuleCall_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public Location getDestination()\r\n\t{ return this.destination; }", "@Override\n\tpublic String getMessageDestination() {\n\t\treturn channelName;\n\t}", "public final void rule__QualifiedNameWithWildcard__Group__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:16684:1: ( rule__QualifiedNameWithWildcard__Group__1__Impl rule__QualifiedNameWithWildcard__Group__2 )\r\n // InternalDroneScript.g:16685:2: rule__QualifiedNameWithWildcard__Group__1__Impl rule__QualifiedNameWithWildcard__Group__2\r\n {\r\n pushFollow(FOLLOW_112);\r\n rule__QualifiedNameWithWildcard__Group__1__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_2);\r\n rule__QualifiedNameWithWildcard__Group__2();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "@Override\n public void onArriveDestination() {\n\n }", "public final void rule__QualifiedNameWithWildcard__Group__0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:16657:1: ( rule__QualifiedNameWithWildcard__Group__0__Impl rule__QualifiedNameWithWildcard__Group__1 )\r\n // InternalDroneScript.g:16658:2: rule__QualifiedNameWithWildcard__Group__0__Impl rule__QualifiedNameWithWildcard__Group__1\r\n {\r\n pushFollow(FOLLOW_28);\r\n rule__QualifiedNameWithWildcard__Group__0__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_2);\r\n rule__QualifiedNameWithWildcard__Group__1();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "java.lang.String getFolderId();", "java.lang.String getRoutingKey();", "public String toFQN() {\n return MessageFormat.format(\"{0}/{1}:{2}\", this.getUser(), this.getRepository(), this.getReference());\n }", "protected String getDestination(Exchange exchange, Endpoint endpoint) {\n switch (component) {\n case \"cometds\":\n case \"cometd\":\n return URI.create(endpoint.getEndpointUri()).getPath().substring(1);\n case \"rabbitmq\":\n return (String) exchange.getIn().getHeader(\"rabbitmq.EXCHANGE_NAME\");\n case \"stomp\":\n String destination = stripSchemeAndOptions(endpoint);\n if (destination.startsWith(\"queue:\")) {\n destination = destination.substring(\"queue:\".length());\n }\n return destination;\n case \"mqtt\":\n Map<String, String> queryParameters = toQueryParameters(endpoint.getEndpointUri());\n return (queryParameters.containsKey(\"subscribeTopicNames\")\n ? queryParameters.get(\"subscribeTopicNames\")\n : queryParameters.get(\"publishTopicName\"));\n default:\n return stripSchemeAndOptions(endpoint);\n }\n }", "protected String getGroupId() {\n return getActorPath().name();\n }", "public boolean get_destination() {\r\n return (final_destination);\r\n }", "private boolean finalDestination(OverlayNodeSendsData event) {\n\t\tif (event.getDestID() == myAssignedID)\n\t\t\treturn true;\n\t\treturn false;\n\n\t}", "protected String toNameSpacedStanza(String stanza)\n\t{\n\t\tString trimmedStanza = stanza.trim();\n\t\t\n\t\tif (!(trimmedStanza.contains(CLIENT_NAMESPACE) || trimmedStanza.contains(SERVER_NAMESPACE)))\n\t\t{\n\t\t\tfinal String start = trimmedStanza.substring(0, trimmedStanza.indexOf(' '));\n\t\t\tfinal String end = trimmedStanza.substring(trimmedStanza.indexOf(' '));\n\t\t\t\n\t\t\treturn new StringBuilder(start).append(' ').append(CLIENT_NAMESPACE_INSERT).append(' ').append(end).toString(); \n\t\t}\n\t\telse\n\t\t\treturn trimmedStanza;\n\t}", "public void makeDestinationRequest() {\n this._hasDestinationRequests = true;\n }", "public Object getDestination() { return this.d; }", "DestinationNameParameter destinationType(DestinationType destinationType);", "public int getSqAnDestination() {\n if (packetHeader == null)\n return PacketHeader.BROADCAST_ADDRESS;\n return packetHeader.getDestination();\n }", "DeleteDestinationResult deleteDestination(DeleteDestinationRequest deleteDestinationRequest);", "public final void rule__QualifiedNameWithWildcard__Group__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalCsv.g:3340:1: ( ( ruleQualifiedName ) )\n // InternalCsv.g:3341:1: ( ruleQualifiedName )\n {\n // InternalCsv.g:3341:1: ( ruleQualifiedName )\n // InternalCsv.g:3342:2: ruleQualifiedName\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getQualifiedNameWithWildcardAccess().getQualifiedNameParserRuleCall_0()); \n }\n pushFollow(FOLLOW_2);\n ruleQualifiedName();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getQualifiedNameWithWildcardAccess().getQualifiedNameParserRuleCall_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public String queueName();", "@Override\n\tpublic void onArriveDestination() {\n\n\t}", "boolean hasRouteDest();", "GetDestinationResult getDestination(GetDestinationRequest getDestinationRequest);", "public final void rule__QualifiedNameWithWildcard__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalCsv.g:3355:1: ( rule__QualifiedNameWithWildcard__Group__1__Impl rule__QualifiedNameWithWildcard__Group__2 )\n // InternalCsv.g:3356:2: rule__QualifiedNameWithWildcard__Group__1__Impl rule__QualifiedNameWithWildcard__Group__2\n {\n pushFollow(FOLLOW_39);\n rule__QualifiedNameWithWildcard__Group__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_2);\n rule__QualifiedNameWithWildcard__Group__2();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__QualifiedNameWithWildcard__Group__2__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:16722:1: ( ( '*' ) )\r\n // InternalDroneScript.g:16723:1: ( '*' )\r\n {\r\n // InternalDroneScript.g:16723:1: ( '*' )\r\n // InternalDroneScript.g:16724:2: '*'\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getQualifiedNameWithWildcardAccess().getAsteriskKeyword_2()); \r\n }\r\n match(input,36,FOLLOW_2); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getQualifiedNameWithWildcardAccess().getAsteriskKeyword_2()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public void setDestinationName(String destinationName) {\n this.destinationName = destinationName;\n }", "public LocalSubscription createQueueToListentoTopic(){\n\t\treturn new AMQPLocalSubscription(amqQueue, \n \t\tamqpSubscription, subscriptionID, targetQueue, false, isExclusive, true, MessagingEngine.getMyNodeQueueName(),amqQueue.getName(),\n amqQueue.getOwner().toString(), AMQPUtils.DIRECT_EXCHANGE_NAME, DirectExchange.TYPE.toString(), Short.parseShort(\"0\"),true);\n\t}", "public java.lang.String getMWNDest() {\n return MWNDest;\n }", "public String getAccessPattern(String dc){\n\t\t//String AccessPattern=null;\n\t\t\n\t\t//...\n\t\treturn this.ap+\"@@\"+this.ref;\n\t}", "boolean hasDestinationId();" ]
[ "0.5831682", "0.5562018", "0.5561292", "0.55371237", "0.5490868", "0.5487483", "0.5452833", "0.5436248", "0.54337984", "0.5424488", "0.53986156", "0.539059", "0.5362516", "0.5356286", "0.53327686", "0.53145266", "0.5311612", "0.5307872", "0.52818686", "0.527846", "0.52593464", "0.5242337", "0.52278656", "0.52186215", "0.5108367", "0.5106729", "0.5079282", "0.50458854", "0.50410306", "0.4998525", "0.49875987", "0.49864978", "0.4980205", "0.49653625", "0.4955673", "0.494356", "0.4917199", "0.49141166", "0.49022922", "0.49022153", "0.48785755", "0.4849255", "0.48436755", "0.48356175", "0.4817379", "0.48161283", "0.4794071", "0.47924423", "0.47879633", "0.47876528", "0.47856525", "0.47837526", "0.47834405", "0.47313014", "0.4726614", "0.4724625", "0.47222888", "0.47038803", "0.4702346", "0.4701476", "0.46612376", "0.46401396", "0.46378368", "0.46272153", "0.46189046", "0.46149236", "0.4610439", "0.45999062", "0.45987442", "0.45978794", "0.45961496", "0.4589077", "0.45877373", "0.45759124", "0.45757398", "0.45696917", "0.45695388", "0.45694444", "0.45668787", "0.4565258", "0.45522285", "0.45485723", "0.45265794", "0.452314", "0.45152465", "0.45133084", "0.4512407", "0.4511009", "0.4501252", "0.4495494", "0.44941625", "0.44937435", "0.4493231", "0.4487816", "0.44828695", "0.44753358", "0.44752255", "0.44748354", "0.44719252", "0.4461789" ]
0.5415419
10
TODO Autogenerated method stub
@Override public void rename(String oldName, String newName) { }
{ "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 hasSubquery() { 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
It is a factory method.
public static MovingAvgType buildMovingAvg(String movingAvgType, int movingAvgTimeSpan) { MovingAvgType movingAvg = null; if (ARITHMETIC_MOVING_AVG.equals(movingAvgType)) { movingAvg = new ArithmeticMovingAvg(movingAvgTimeSpan); } else if (EXPONENTIAL_MOVING_AVG.equals(movingAvgType)) { movingAvg = new ExponentialMovingAvg(movingAvgTimeSpan); } return movingAvg; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Reproducible newInstance();", "@Override\n\tpublic void create () {\n\n\t}", "@Override\n\tpublic void create() {\n\t\t\n\t}", "@Override\n\tpublic void create() {\n\n\t}", "@Override\r\n\tpublic void create() {\n\t\t\r\n\t}", "private StickFactory() {\n\t}", "public Factory() {\n\t\tsuper();\n\t}", "@Override\r\n\tpublic void create() {\n\r\n\t}", "For createFor();", "public void create(){}", "public void create() {\n\t\t\n\t}", "protected abstract void construct();", "public abstract void create();", "private Instantiation(){}", "private PerksFactory() {\n\n\t}", "protected abstract S createDefault();", "private ErrorFactory() {\r\n\t}", "private TMCourse() {\n\t}", "private VegetableFactory() {\n }", "private VerifierFactory() {\n }", "private ResourceFactory() {\r\n\t}", "private DTOFactory() {\r\n \t}", "private ObjectFactory() { }", "protected Doodler() {\n\t}", "public static StaticFactoryInsteadOfConstructors create(){\n return new StaticFactoryInsteadOfConstructors();\n }", "private Infer() {\n\n }", "@Override\n \t\t\t\tpublic void doNew() {\n \n \t\t\t\t}", "public ParameterizedInstantiateFactory() {\r\n super();\r\n }", "private XmlFactory() {\r\n /* no-op */\r\n }", "private Builder() {\n\t\t}", "public CommonsFactoryImpl() {\n\t\tsuper();\n\t}", "public borFactoryImpl() {\n\t\tsuper();\n\t}", "private Builder() {}", "private FactoryCacheValet() {\n\t\tsuper();\n\t}", "private ConcreteFactory() {}", "private LocatorFactory() {\n }", "protected MoneyFactory() {\n\t}", "public BuiltinFactoryImpl() {\n\t\tsuper();\n\t}", "public ResultFactoryImpl() {\n\t\tsuper();\n\t}", "public ObjectFactory() {\n\t}", "private SerializerFactory() {\n // do nothing\n }", "private Rekenhulp()\n\t{\n\t}", "public ObjectFactory() {\r\n\t}", "T create();", "T create();", "Constructor() {\r\n\t\t \r\n\t }", "private WriterFactory() {\n }", "public ParsedmodelFactoryImpl() {\n\t\tsuper();\n\t}", "private Example() {\n\t\tthrow new Error(\"no instantiation is permitted\");\n\t}", "private MApi() {}", "private UnitFactory() {\n\t}", "private stendhal() {\n\t}", "Traditional createTraditional();", "public XCanopusFactoryImpl()\r\n {\r\n super();\r\n }", "public ObjectFactory() {}", "public ObjectFactory() {}", "public ObjectFactory() {}", "Instance createInstance();", "public PiviFactoryImpl() {\r\n\t\tsuper();\r\n\t}", "private EntityFactory() {}", "private PerfectoDriverFactory() {\n\n\t}", "private XmlStreamFactory()\n {\n /*\n * nothing to do\n */\n }", "public FactoryValue( ) \r\n {\r\n }", "private SimpleRepository() {\n \t\t// private ct to disallow external object creation\n \t}", "protected Provider() {}", "@Override\n public void init() {}", "@Override\n void init() {\n }", "public Factory() {\n this(getInternalClient());\n }", "public InternalFloaterFactory() {\n super();\n }", "public interface NewLine extends ClouBausteinElement {\n\n static NewLine create(CodePosition codePosition){\n return new NewLineImpl(codePosition);\n }\n\n}", "protected IPCGCallDetailCreator()\r\n {\r\n // empty\r\n }", "private Builder() {\n }", "private Builder() {\n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "public Constructor(){\n\t\t\n\t}", "H create(Method method);", "private Template() {\r\n\r\n }", "@Override\r\n\tpublic void init() {}", "private HierarchyFactory ()\n {\n }", "Oracion createOracion();", "private UsineJoueur() {}", "private ReportGenerationUtil() {\n\t\t\n\t}", "private BuilderUtils() {}", "public GseqFactoryImpl() {\n\t\tsuper();\n\t}", "private Builder()\n {\n }", "interface Create {}", "Simple createSimple();", "private void __sep__Constructors__() {}", "private CreateDateUtils()\r\n\t{\r\n\t}", "private XSLTTransformerFactory() {\r\n\t}", "private MultibinderFactory() { }", "public interface Factory {\r\n}", "public EsoFactoryImpl()\r\n {\r\n super();\r\n }", "public Clade() {}", "private CloneFactory() {\n }", "public EcoreFactoryImpl() {\r\n\t\tsuper();\r\n\t}", "@Override\n public void init() {\n }", "public GpflFactoryImpl()\n {\n super();\n }", "private TemplateFactory(){\n //AssertionError不是必须的. 但它可以避免不小心在类的内部调用构造器. 保证该类在任何情况下都不会被实例化.\n //see 《Effective Java》 2nd\n throw new AssertionError(\"No \" + getClass().getName() + \" instances for you!\");\n }", "private ServiceFactory() {}", "private ViewFactory() {}" ]
[ "0.737602", "0.70359284", "0.70187074", "0.6965381", "0.6961652", "0.68708634", "0.6860529", "0.6825573", "0.682491", "0.681113", "0.6782974", "0.67610115", "0.67102027", "0.6703762", "0.6685023", "0.6617143", "0.6597072", "0.6571602", "0.6560296", "0.6554464", "0.65470546", "0.6516511", "0.65058964", "0.6502468", "0.6501092", "0.6497151", "0.6484542", "0.6459613", "0.64577067", "0.64512026", "0.6428503", "0.64128286", "0.63999766", "0.6396757", "0.6377877", "0.6371847", "0.6355112", "0.6352906", "0.6348482", "0.63420993", "0.6336885", "0.6329605", "0.63187224", "0.6312375", "0.6312375", "0.63112926", "0.63110554", "0.62971", "0.62917304", "0.6288787", "0.62869567", "0.6285675", "0.6276842", "0.62760955", "0.6273347", "0.6273347", "0.6273347", "0.62696725", "0.6268727", "0.6261269", "0.62429714", "0.62398094", "0.623594", "0.62329906", "0.6231018", "0.62247735", "0.6222536", "0.62224376", "0.6217689", "0.6211075", "0.6206727", "0.6202782", "0.6202782", "0.6200653", "0.61975193", "0.6197224", "0.6192686", "0.6190016", "0.618926", "0.61824024", "0.6179798", "0.61689556", "0.61661214", "0.6159594", "0.61558634", "0.61526513", "0.6146816", "0.6143378", "0.6142508", "0.61381376", "0.6137187", "0.6136998", "0.6136423", "0.61358887", "0.6133098", "0.61308557", "0.61237305", "0.61206526", "0.61195815", "0.61190146", "0.6118893" ]
0.0
-1
This method works up to get duplicate listings.
public List<Listing> _obtainDuplicates(String _strDesCampo) { Form objForm = _obtainSearchForm(AppPreferences.getInstance(activity) ._loadCurrentModuleId()); String strField = "DES_CAMPO" + String.valueOf(objForm.getIntOrder()) + "_LIS"; String[] projection = new String[] { ListingDAO.TB_NAME + Constants.LBL_DOT + ListingDAO.COL_ID, ListingDAO.TB_NAME + Constants.LBL_DOT + ListingDAO.COL_IDE_LISTADO, ListingDAO.TB_NAME + Constants.LBL_DOT + ListingDAO.COL_NUM_DESCARGA, ListingDAO.TB_NAME + Constants.LBL_DOT + ListingDAO.COL_COD_FLUJO, ListingDAO.TB_NAME + Constants.LBL_DOT + ListingDAO.COL_COD_GESTIONCOMERCIAL, ListingDAO.TB_NAME + Constants.LBL_DOT + ListingDAO.COL_FEC_FECHA_INICIO, ListingDAO.TB_NAME + Constants.LBL_DOT + ListingDAO.COL_FEC_FECHA_FIN, ListingDAO.TB_NAME + Constants.LBL_DOT + ListingDAO.COL_IDE_USUARIO, ListingDAO.TB_NAME + Constants.LBL_DOT + ListingDAO.COL_CAN_GPS_CATASTRO_LATITUD, ListingDAO.TB_NAME + Constants.LBL_DOT + ListingDAO.COL_CAN_GPS_CATASTRO_LONGITUD, ListingDAO.TB_NAME + Constants.LBL_DOT + ListingDAO.COL_NUM_ORDEN_LISTADO, ListingDAO.TB_NAME + Constants.LBL_DOT + ListingDAO.COL_NUM_NRO_VISITA, ListingDAO.TB_NAME + Constants.LBL_DOT + ListingDAO.COL_COD_ESTADO, ListingDAO.TB_NAME + Constants.LBL_DOT + ListingDAO.COL_DES_CAMPO01, ListingDAO.TB_NAME + Constants.LBL_DOT + ListingDAO.COL_DES_CAMPO02, ListingDAO.TB_NAME + Constants.LBL_DOT + ListingDAO.COL_DES_CAMPO03, ListingDAO.TB_NAME + Constants.LBL_DOT + ListingDAO.COL_DES_CAMPO04, ListingDAO.TB_NAME + Constants.LBL_DOT + ListingDAO.COL_DES_CAMPO05, ListingDAO.TB_NAME + Constants.LBL_DOT + ListingDAO.COL_DES_CAMPO06, ListingDAO.TB_NAME + Constants.LBL_DOT + ListingDAO.COL_DES_CAMPO07, ListingDAO.TB_NAME + Constants.LBL_DOT + ListingDAO.COL_DES_CAMPO08, ListingDAO.TB_NAME + Constants.LBL_DOT + ListingDAO.COL_DES_CAMPO09, ListingDAO.TB_NAME + Constants.LBL_DOT + ListingDAO.COL_DES_CAMPO10, ListingDAO.TB_NAME + Constants.LBL_DOT + ListingDAO.COL_DES_VALIDACION01, ListingDAO.TB_NAME + Constants.LBL_DOT + ListingDAO.COL_DES_VALIDACION02, ListingDAO.TB_NAME + Constants.LBL_DOT + ListingDAO.COL_DES_VALIDACION03, ListingDAO.TB_NAME + Constants.LBL_DOT + ListingDAO.COL_DES_VALIDACION04, ListingDAO.TB_NAME + Constants.LBL_DOT + ListingDAO.COL_DES_VALIDACION05, ListingDAO.TB_NAME + Constants.LBL_DOT + ListingDAO.COL_DES_VALIDACION06, ListingDAO.TB_NAME + Constants.LBL_DOT + ListingDAO.COL_DES_VALIDACION07, ListingDAO.TB_NAME + Constants.LBL_DOT + ListingDAO.COL_DES_VALIDACION08, ListingDAO.TB_NAME + Constants.LBL_DOT + ListingDAO.COL_DES_VALIDACION09, ListingDAO.TB_NAME + Constants.LBL_DOT + ListingDAO.COL_DES_VALIDACION10, ListingDAO.TB_NAME + Constants.LBL_DOT + ListingDAO.COL_DES_VALIDACION11, ListingDAO.TB_NAME + Constants.LBL_DOT + ListingDAO.COL_DES_VALIDACION12, ListingDAO.TB_NAME + Constants.LBL_DOT + ListingDAO.COL_DES_VALIDACION13, ListingDAO.TB_NAME + Constants.LBL_DOT + ListingDAO.COL_DES_VALIDACION14, ListingDAO.TB_NAME + Constants.LBL_DOT + ListingDAO.COL_DES_VALIDACION15, ListingDAO.TB_NAME + Constants.LBL_DOT + ListingDAO.COL_DES_VALIDACION16, ListingDAO.TB_NAME + Constants.LBL_DOT + ListingDAO.COL_DES_VALIDACION17, ListingDAO.TB_NAME + Constants.LBL_DOT + ListingDAO.COL_DES_VALIDACION18, ListingDAO.TB_NAME + Constants.LBL_DOT + ListingDAO.COL_DES_VALIDACION19, ListingDAO.TB_NAME + Constants.LBL_DOT + ListingDAO.COL_DES_VALIDACION20, ListingDAO.TB_NAME + Constants.LBL_DOT + strField }; String strWhere = strField + " = '" + _strDesCampo +"'"; /** * Cursor android.content.ContentResolver.query(Uri uri, String[] * projection, String selection, String[] selectionArgs, String * sortOrder) */ Cursor cursorPayload = activity.getContentResolver().query( ListingDAO.QUERY_ALL_LIST_URI, projection, strWhere , null, null); List<Listing> lstDuplicateAll = ListingDAO.createObjects(cursorPayload); // Cursor cursor = activity.getContentResolver().query( // ListingDAO.QUERY_ALL_LIST_URI, projection, strWhere , null, null); return lstDuplicateAll; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static void findDuplicate()\n\t{\n\n\t\tList<String> oList = null;\n\t\tSet<String> oSet = null;\n\t\ttry {\n\t\t\toList = new ArrayList<String>();\n\t\t\toList.add(\"Apple\");\n\t\t\toList.add(\"Boy\");\n\t\t\toList.add(\"Frog\");\n\t\t\toList.add(\"Dog\");\n\t\t\toList.add(\"Eagle\");\n\t\t\toList.add(\"Frog\");\n\t\t\toList.add(\"Apple\");\n\t\t\toList.add(\"Boy\");\n\t\t\toList.add(\"Apple\");\n\t\t\toList.add(\"Boy\");\n\t\t\tSystem.out.println(oList);\n\t\t\t\n\t\t\toSet = new TreeSet<>();\n\t\t\t\n\t\t\tString s = \"\";\n\t\t\tfor(int i=0;i<oList.size();i++)\n\t\t\t{\n\t\t\t\tif((oSet.add(oList.get(i))==false) && (!s.contains(oList.get(i))))\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"Duplicate: \"+oList.get(i));\n\t\t\t\t\ts+=oList.get(i);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}catch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfinally {\n\t\t\toList = null;\n\t\t\toSet = null;\n\t\t}\n\t}", "public Collection<BundleEntry> getDuplicates() {\n return duplicates;\n }", "private void removeDuplicates() {\n ListNode current = head;\n while (current != null && current.next != null) {\n if (current.data == current.next.data) {\n current.next = current.next.next;\n } else {\n current = current.next;\n }\n }\n }", "@Override\n public LinkedList removeDuplicates() {\n ArrayList<String> itemList = new ArrayList(Arrays.asList(\"\"));\n LinkedList newLinkedList = new LinkedList();\n Node currNode = this.head;\n while(true){\n if(!itemList.contains(currNode.getItem())){\n itemList.add(currNode.getItem());\n newLinkedList.addNode(currNode.getItem());\n }\n if(currNode.getNextNode() == null){\n break;\n }\n currNode = currNode.getNextNode();\n }\n return newLinkedList;\n }", "@Override\n public boolean hasDuplicates() {\n ArrayList<String> itemList = new ArrayList(Arrays.asList(\"\"));\n Node currNode = this.head;\n while(true){\n if(itemList.contains(currNode.getItem())){ // need to edit\n return true;\n }else{\n itemList.add(currNode.getItem());\n }\n if(currNode.getNextNode() == null){\n break;\n }\n currNode = currNode.getNextNode();\n }\n return false;\n }", "public static void testDedupe(){\n LinkedList<String> list = new LinkedList<String>();\n \n for(int i = 0; i < 10; i++)\n list.add(\"Number \" + i);\n for(int j = 0; j < 5; j++)\n list.add(\"Number \" + j);\n \n //print test list\n for (String num : list)\n System.out.print(num + \" \");\n \n //Call deDupe and reprint list\n LinkedLists.deDupe(list);\n System.out.println(\"List after removing dupes: \" + '\\n');\n for (String num : list)\n System.out.print(num + \" \");\n }", "protected void removeDuplicates() {\n log.trace(\"Removing duplicated\");\n long startTime = System.currentTimeMillis();\n int initial = size();\n E last = null;\n int index = 0;\n while (index < size()) {\n E current = get(index);\n if (last != null && last.equals(current)) {\n if (log.isTraceEnabled()) {\n log.trace(\"Removing duplicate '\" + current + \"'\");\n }\n remove(index);\n } else {\n index++;\n }\n last = current;\n }\n log.debug(String.format(\"Removed %d duplicates from a total of %d values in %dms\",\n initial - size(), initial, System.currentTimeMillis() - startTime));\n }", "public boolean checkDuplicates() {\n List<Booking> dupbookings = new ArrayList<>();\n try {\n dupbookings = bookingHelper.checkDuplicates(b_facility.getId(), b_evdate, b_startTime, b_endTime);\n } catch (Exception e) {\n //facesMessage(\"No other bookings found for the day and time\");\n }\n return dupbookings.size() > 0;\n }", "public void initializeListings() {\n\t listings = new ArrayList<Listing>();\n\t Listings listingsToStore = Listings.getInstance();\n\t Iterator<Saveable> listingIterator = listingsToStore.iterator();\n\t\n\t int counter = 0;\n\t while (listingIterator.hasNext()) {\n\t\t Listing currentListing = listingsToStore.getListing(counter);\n\t\t for (int i = 0; i < listingIds.size(); i++) {\n\t\t\t \n\t\t\t if (currentListing.getInternalId() == listingIds.get(i)) {\n\t\t\t\t \n\t\t\t\t listings.add(currentListing);\n\t\t\t }\n\t\t }\n\t\t counter++;\n\t\t listingIterator.next();\n\t }\n\t \n }", "static SparseArray<TaskDetail> getCurrentMappingsDuplicated() {\n SparseArray<TaskDetail> toReturn = new SparseArray<>();\n for (int i = 0; i < TaskDetail.actionToTask.size(); i++) {\n TaskDetail detail = TaskDetail.actionToTask.valueAt(i);\n toReturn.put(TaskDetail.actionToTask.keyAt(i), detail.duplicate());\n }\n return toReturn;\n }", "private ImmutableSet<ImmutableSetMultimap<BindingWithoutComponent, Binding>> duplicateBindingSets(\n BindingGraph bindingGraph) {\n return groupBindingsByKey(bindingGraph).stream()\n .flatMap(bindings -> mutuallyVisibleSubsets(bindings).stream())\n .map(BindingWithoutComponent::index)\n .filter(duplicates -> duplicates.keySet().size() > 1)\n .collect(toImmutableSet());\n }", "public List<FileDuplicate> getDuplicates() {\n List<FileDuplicate> result = new ArrayList<FileDuplicate>();\n int i = 0;\n FileDuplicate duplicates = new FileDuplicate();\n while (i < files.length) {\n if (duplicates.isEmpty() || duplicates.get(0).equals(files[i])) {\n duplicates.add(files[i]);\n i++;\n } else {\n if (duplicates.size() > 1) {\n result.add(duplicates);\n }\n duplicates = new FileDuplicate();\n }\n }\n return result;\n }", "static void UseArrayList(ArrayList<Integer> myList2){\r\n\t\tLong start = System.currentTimeMillis();\r\n\t\tfor (int n=0; n<myList2.size();n++)\r\n\t\t{\r\n\t\t\tfor (int m=n+1; m<myList2.size();m++){\r\n\t\t\t\tif( myList2.get(n)== myList2.get(m) ) {System.out.println(\"Duplicate found \"+myList2.get(n));}\r\n\t\t\t}\r\n\t\t}\r\n\t\tLong End = System.currentTimeMillis();\r\n\t\tSystem.out.println(\"Total time taken for executing this code is: \" + (End-start));\r\n\t}", "public void removeDuplicates(){ //takes 1st thing, compares to rest, if id match, check date, swap if needed then delete second item\n Map<Long, Long> sensorIdToDateTime = new HashMap<>();\n for (int i = 0; i < sensorList.size(); i++) {\n long sensorId = sensorList.get(i).getSensor_ID();\n long dateTime = sensorList.get(i).getDate_Time();\n if (sensorIdToDateTime.containsKey(sensorId)) {\n if (dateTime > sensorIdToDateTime.get(sensorId)) {\n sensorIdToDateTime.put(sensorId, dateTime);\n }\n }\n else {\n sensorIdToDateTime.put(sensorId, dateTime);\n }\n }\n for (Iterator<SensorResponse> iterator = filteredList.iterator(); iterator.hasNext();) {\n SensorResponse x = iterator.next();\n long sensorId = x.getSensor_ID();\n long dateTime = x.getDate_Time();\n if (sensorIdToDateTime.containsKey(sensorId) && dateTime != sensorIdToDateTime.get(sensorId)) {\n iterator.remove();\n }\n }\n\n notifyDataSetChanged();\n }", "public static void removeDuplicateSample() {\n Node ll1 = new Node(1, new Node(2, new Node(3, new Node(4, new Node(5, null)))));\n Node ll2 = new Node(1, new Node(2, new Node(3, new Node(4, new Node(4, null)))));\n Node ll3 = new Node(1, new Node(1, new Node(3, new Node(4, new Node(5, null)))));\n Node ll4 = new Node(1, new Node(1, new Node(1, new Node(4, new Node(5, null)))));\n\n System.out.println(\"1===\");\n ll1.printList();\n ll1 = ll1.removeDuplicate();\n ll1.printList();\n\n System.out.println(\"2===\");\n ll2.printList();\n ll2 = ll2.removeDuplicate();\n ll2.printList();\n\n System.out.println(\"3===\");\n ll3.printList();\n ll3 = ll3.removeDuplicate();\n ll3.printList();\n\n System.out.println(\"4===\");\n ll4.printList();\n ll4 = ll4.removeDuplicate();\n ll4.printList();\n\n }", "@SuppressWarnings(\"unused\")\n private List<DetailedData> removeDuplicates(List<DetailedData> detailedDatas)\n {\n List<DetailedData> detailedDatasNoDuplicates = new ArrayList<DetailedData>();\n long previousTuId = -1;\n String previousTarget = null;\n for (int i = detailedDatas.size() - 1; i >= 0; i--)\n {\n DetailedData data = detailedDatas.get(i);\n if (data.getTuId() != previousTuId || !data.getTarget().equals(previousTarget)\n || !TuvState.OUT_OF_DATE.getName().equalsIgnoreCase(data.getState()))\n {\n detailedDatasNoDuplicates.add(0, data);\n }\n\n previousTuId = data.getTuId();\n previousTarget = data.getTarget();\n }\n\n return detailedDatasNoDuplicates;\n }", "public void testFindDuplicates() {\r\n System.out.println(\"findDuplicates\");\r\n \r\n List<String> elements = new ArrayList<>();\r\n elements.add(\"foo\");\r\n elements.add(\"bar\");\r\n elements.add(\"abc\");\r\n elements.add(\"foo\");\r\n elements.add(\"cde\");\r\n elements.add(\"cde\");\r\n elements.add(\"efg\");\r\n elements.add(\"cde\");\r\n \r\n Set<String> expResult = new LinkedHashSet<>();\r\n expResult.add(\"foo\");\r\n \r\n LexicalChecker instance = new LexicalChecker();\r\n Set<String> result = instance.findDuplicates(elements);\r\n \r\n assertNotSame(expResult, result);\r\n \r\n expResult.add(\"cde\");\r\n assertEquals(expResult, result);\r\n }", "private static ArrayList<Result> removeDuplicates(ArrayList<Result> toDeDup){\n\t\t// This is a hash map that keeps track of the result term\n\t\t// and the index at which it is found.\n\t\tMap<String, Integer> hashm = new HashMap<String, Integer>();\n\t\tArrayList<Result> noDups = new ArrayList<Result>();\n\t\tfor(int i = 0; i < toDeDup.size(); i++){\n\t\t\t// Random bug where scores > 100 sometimes\n\t\t\tif (toDeDup.get(i).getScore()>100){\n\t\t\t\ttoDeDup.get(i).setScore(100-(toDeDup.get(i).getScore()-100));\n\t\t\t}\n\t\t\t// If the result term isn't already in the hash map add it\n\t\t\tif(!hashm.containsKey(toDeDup.get(i).getName().trim())){\n\t\t\t\thashm.put(toDeDup.get(i).getName().trim(), i);\n\t\t\t}else{\n\t\t\t\t// If the result term is already in the hash map\n\t\t\t\t// Compare the scores between the current term and the\n\t\t\t\t// one already in the hashmap. Add the highest.\n\t\t\t\tif (toDeDup.get(i).getScore() > toDeDup.get(hashm.get(toDeDup.get(i).getName().trim())).getScore())\n\t\t\t\t\thashm.put(toDeDup.get(i).getName().trim(), i);\n\t\t\t}\n\t\t}\n\t\t// Go through the hash map and add all of the index's to the \n\t\t// ArrayList of results to return\n\t\tfor (String key: hashm.keySet()){\n\t\t\tnoDups.add(toDeDup.get(hashm.get(key)));\n\t\t}\n\t\treturn noDups;\n\t}", "public ArrayList<Person> allPairsDeduplication(){\n\tArrayList<Person> unduplicated = new ArrayList<>();\n\tfor (int i=0;i<this.lst.size();i++){\n\t int dup =0;\n\t //compare each element to elements after it in the list\n\t for(int j=i+1; j< this.lst.size();j++){\n\t\tif (lst.get(i).compareTo(lst.get(j)) == 0 ) dup++;\n\t }\n\t if (dup == 0) unduplicated.add(lst.get(i));\n\t}\n\treturn unduplicated;\n }", "private List<CustStmtRecord> validateDuplicate (final List<CustStmtRecord> custStmtRecords) {\n\t\tlog.info(\"Entering {}.{}\", getClass().getName(), \"validateDuplicate()\");\n\t\tfinal List<CustStmtRecord> duplicateReference = custStmtRecords\n\t\t\t\t.parallelStream()\n\t\t\t\t\t.filter(e -> Collections.frequency(custStmtRecords, e) > 1)\n\t\t\t\t\t.collect(Collectors.toList());\n\t\t\t\t\t;\n\t\t\t\n\t\tlog.info(\"duplicateReference {}\", duplicateReference);\n\t\t\t\n\t\tlog.info(\"Exiting {}.{}\", getClass().getName(), \"validateDuplicate()\");\n\t\treturn duplicateReference;\n\t}", "public static void main(String[] args) {\n LinkRemoveDuplicates2 ll=new LinkRemoveDuplicates2();\r\n\r\n ll.insertFirst(40);\r\n\r\n ll.insertFirst(30);\r\n \r\n ll.insertFirst(20);\r\n ll.insertFirst(20);\r\n ll.insertFirst(10);\r\n ll.insertFirst(10);\r\n System.out.println(\"Initial List->\");\r\n ll.printList();\r\n ll.head=ll.remove(ll.head);\r\n System.out.println(\"\\n\\nAfter removing duplicates->\");\r\n ll.printList();\r\n\t}", "@Test\n public void testRemoveDuplicates() {\n System.out.println(\"removeDuplicates\");\n ArrayList<String> array = new ArrayList<>(Arrays.asList(\n \"A.example.COM,1.1.1.1,NO,11,Faulty fans\",\n \"b.example.com,1.1.1.2,no,13,Behind the other routers so no one sees it\",\n \"C.EXAMPLE.COM,1.1.1.3,no,12.1,\",\n \"d.example.com,1.1.1.4,yes,14,\",\n \"c.example.com,1.1.1.5,no,12,Case a bit loose\",\n \"e.example.com,1.1.1.6,no,12.3,\",\n \"f.example.com,1.1.1.7,No,12.200,\",\n \"g.example.com,1.1.1.6,no,15.0,Guarded by sharks with lasers on their heads\"\n ));\n ArrayList<String> expResult = new ArrayList<>(Arrays.asList(\n \"A.example.COM,1.1.1.1,NO,11,Faulty fans\",\n \"b.example.com,1.1.1.2,no,13,Behind the other routers so no one sees it\",\n \"d.example.com,1.1.1.4,yes,14,\",\n \"f.example.com,1.1.1.7,No,12.200,\"\n ));\n ArrayList<String> result = BTRouterPatch.removeDuplicates(array);\n assertEquals(expResult, result);\n }", "public List<TreeNode> findDuplicateSubtrees(TreeNode root) {\n // like i thought, we can take the advantage of the serialization of the tree node\n // that is how we can put them into the map and check if there already exsit the same serials\n List<TreeNode> ans = new ArrayList<>();\n dfspostorder(root,new HashMap<String,Integer>(),ans);\n return new ArrayList<TreeNode>(ans);\n }", "public Multimap<String, Command> checkForDuplicateNames() {\r\n\t\tList<Command> allCommands = new ArrayList<>();\r\n\t\tallCommands.addAll(this.commands);\r\n\t\tallCommands.addAll(learnedCommands.getCommands());\r\n\r\n\t\tMultimap<String, Command> byName = ArrayListMultimap.create();\r\n\t\tfor (Command command : allCommands) {\r\n\t\t\tbyName.put(command.name().toLowerCase(), command);\r\n\t\t\tfor (String alias : command.aliases()) {\r\n\t\t\t\tbyName.put(alias.toLowerCase(), command);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tMultimap<String, Command> duplicates = ArrayListMultimap.create();\r\n\r\n\t\tbyName.asMap().entrySet().stream() //@formatter:off\r\n\t\t\t.filter(entry -> entry.getValue().size() > 1)\r\n\t\t.forEach(entry -> duplicates.putAll(entry.getKey(), entry.getValue())); //@formatter:on\r\n\r\n\t\treturn duplicates;\r\n\t}", "private TileSet rebuildList(Map<Integer, List<Tile>> index) {\n\t\tTileSet tileset = new TileSet();\n\t\tfor (List<Tile> list : index.values()) {\n\t\t\tfor (Tile tile : list) {\n\t\t\t\tboolean isUnique = true;\n\t\t\t\tfor (Tile uTile : tileset) {\n\t\t\t\t\tif (tile == uTile) {\n\t\t\t\t\t\tisUnique = false;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (isUnique) {\n\t\t\t\t\ttileset.add(tile);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn tileset;\n\t}", "public ArrayList<Person> hashLinearDeduplication(){\n\tArrayList<Person> unduplicated = new ArrayList<>();\n\tProbeHashMap<String, Person> map = new ProbeHashMap(SIZE);\n\t//The probe count is adapted to the implementation of the maps\n\t// and use of public instance variable probes() \n\tdouble average=0.0;\n\tint max = 0;\n\tint insertCount =0;\n\tfor(int i=0; i< this.lst.size(); i++){\n\t map.put(lst.get(i).getRef(),lst.get(i));\n\t //count insertions:\n\t insertCount++;\n\t //increment sum of probes:\n\t average += map.probes;\n\t //compute max # of probes:\n\t if ( map.probes >= max) max = map.probes;\n\t}\n\tSystem.out.println (\"Average number of probes: \"+ average/insertCount );\n\tSystem.out.println(\"Max number of probes: \"+ max);\n\tSystem.out.println(\"Load-factor: \"+ (double)map.size()/SIZE );\n\t//initialize iterator to collect singular suspects from the map:\n Iterator<Person> coll = map.values().iterator();\n\twhile(coll.hasNext()){\n\t Person suspect = coll.next();\n\t unduplicated.add(suspect);\n\t}\n\treturn unduplicated;\n }", "public static void main(String[] args){\n \t\t\r\n \r\n \t\tArrayList<Phonebook> list = new ArrayList<Phonebook>();\r\n \t\t\r\n \t\tSystem.out.println(\"Original List\");\r\n \t\tlist.add(new Phonebook(1234567, \"[email protected]\", 1987654, \"123 qwerty lane\"));\r\n \t\tlist.add(new Phonebook(1987654, \"[email protected]\", 1994560, \"098 qwerty lane\"));\r\n \t\t\r\n \t\tfor (int i = 0; i < list.size(); i++) {\r\n\t\t\tSystem.out.println(list.get(i).getNumber() + \", \" + list.get(i).getEmail() + \", \" + list.get(i).getCell() + \", \" + list.get(i).getAddress());\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"\\nNew List\");\r\n\t\tlist.add(new Phonebook(2341234, \"[email protected]\", 3241563, \"122 qwerty lane\"));\r\n\t\tfor (int i = 0; i < list.size(); i++) {\r\n\t\t\tSystem.out.println(list.get(i).getNumber() + \", \" + list.get(i).getEmail() + \", \" + list.get(i).getCell() + \", \" + list.get(i).getAddress());\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"\\nNewer List \");\r\n\t\tlist.remove(1);\r\n\t\tfor (int i = 0; i < list.size(); i++) {\r\n\t\t\tSystem.out.println(list.get(i).getNumber() + \", \" + list.get(i).getEmail() + \", \" + list.get(i).getCell() + \", \" + list.get(i).getAddress());\r\n\t\t}\r\n\t\t\r\n\t\t\r\n \t}", "public Object[] getDuplicates (int awardID)\n \t{\n \t\tInteger hashCode = (Integer)awardIdReference.get(new Integer(awardID));\n \t\tif (hashCode == null)\n \t\t{\n \t\t\treturn null;\n \t\t}\n \n \t\tObject[] retVal = theLoanList.getDupls(hashCode.intValue());\n \n \t\treturn retVal;\n \t}", "private static List<PwPair> removeDuplicateGroupIds(List<PwPair> allPairs,\n Map<String, UrlGroup> outGroupMap) {\n List<PwPair> filteredPairs = new ArrayList<>();\n Map<String, UrlGroup> groupMap = outGroupMap;\n if (groupMap == null) {\n groupMap = new HashMap<>();\n } else {\n groupMap.clear();\n }\n\n for (PwPair pwPair : allPairs) {\n PwsResult pwsResult = pwPair.getPwsResult();\n String groupId = pwsResult.getGroupId();\n if (groupId == null || groupId.equals(\"\")) {\n // Pairs without a group are always included\n filteredPairs.add(pwPair);\n } else {\n // Create the group if it doesn't exist\n UrlGroup urlGroup = groupMap.get(groupId);\n if (urlGroup == null) {\n urlGroup = new UrlGroup(groupId);\n groupMap.put(groupId, urlGroup);\n }\n urlGroup.addPair(pwPair);\n }\n }\n\n for (UrlGroup urlGroup : groupMap.values()) {\n filteredPairs.add(urlGroup.getTopPair());\n }\n\n return filteredPairs;\n }", "public List removeDuplicate() throws ComputationException {\n log.debug(\"Removing duplicate using List......\");\n List<Integer> uniqueList = new ArrayList();\n int[] intArray = getRandomArray();\n log.debug(\"Actual size of int array:\" + intArray.length);\n log.debug(Arrays.toString(intArray));\n for (int i = 0; i < intArray.length; i++) {\n if (!isAdded(uniqueList, intArray[i])) {\n uniqueList.add(intArray[i]);\n }\n\n }\n log.debug(\"refined size of int array: \" + uniqueList.size());\n log.debug(uniqueList.toString());\n return uniqueList;\n\n }", "private static List<PwPair> removeDuplicateSiteUrls(List<PwPair> allPwPairs) {\n List<PwPair> filteredPwPairs = new ArrayList<>();\n Set<String> siteUrls = new HashSet<>();\n for (PwPair pwPair : allPwPairs) {\n String siteUrl = pwPair.getPwsResult().getSiteUrl();\n if (!siteUrls.contains(siteUrl)) {\n siteUrls.add(siteUrl);\n filteredPwPairs.add(pwPair);\n }\n }\n return filteredPwPairs;\n }", "public ArrayList<Person> hashDoubleDeduplication(){\n\tArrayList<Person> unduplicated1 = new ArrayList<>();\n\tDoubleHashMap<String, Person> map = new DoubleHashMap(SIZE);\n\t//The probe count is adapted to the implementation of the maps\n\t // and use of public instance variable probes() \n\tdouble average=0.0;\n\tint max = 0;\n\tint insertCount =0;\n\tfor(int i=0; i< this.lst.size(); i++){\n\t map.put(lst.get(i).getRef(),lst.get(i));\n\t //count insertions:\n\t insertCount++;\n\t //increment sum of probes:\n\t average += map.probes;\n\t //compute max # of probes:\n\t if ( map.probes >= max) max = map.probes;\n\t}\n\t//The following lines of codes were commented after usage in the first part of the assignment:\n\t//System.out.println (\"Average number of probes: \"+ average/insertCount );\n\t//System.out.println(\"Max number of probes: \"+ max);\n\t//System.out.println(\"Load-factor: \"+ (double)map.size()/SIZE );\n\t//initialize iterator to collect singular suspects from the map:\n\tIterator<Person> coll = map.values().iterator();\n\twhile(coll.hasNext()){\n\t Person suspect = coll.next();\n\t unduplicated1.add(suspect);\n\t}\n\treturn unduplicated1;\n }", "private List<Contact> getDuplicatesByHashCode(List<Contact> contacts) {\n List<Object> duplicates = getDuplicatesByKey(Contact::hashCode, contacts);\n\n // Only return Contact records that match the duplicated hashCodes\n return contacts.stream()\n .filter(contact -> duplicates.contains(contact.hashCode()))\n .collect(Collectors.toList());\n }", "private ArrayList<String> findadded(Comm splitpoint, Comm comm) {\n ArrayList<String> added = new ArrayList<>();\n HashMap<String, Blob> originallytracked = splitpoint.getContents();\n HashMap<String, Blob> trackednow = comm.getContents();\n for (String s: trackednow.keySet()) {\n if (!originallytracked.containsKey(s)) {\n added.add(s);\n }\n }\n return added;\n\n }", "synchronized public void aggregateLoans ()\n \t{\n \t\tfor (int iter = theLoanList.numberOfDuplicateLists(); iter > 0; iter--)\n \t\t{\n \t\t\tarrangeBestOrder();\n \t\t}\n \t}", "private List<itemInfo> getNewEntries() {\n\n final List<itemInfo> entries = new ArrayList<itemInfo>();\n return entries;\n }", "public boolean findAndRemoveDuplicates() {\n return mFindAndRemoveDuplicates;\n }", "private ArrayList<HashMap<String, String>> joinSearchResults(ArrayList<Message> messages) {\n class MapComparator implements Comparator<HashMap<String, String>>\n {\n private final String key;\n\n public MapComparator(String key)\n {\n this.key = key;\n }\n\n\t\t\t@Override\n\t\t\tpublic int compare(HashMap<String, String> o1, HashMap<String, String> o2) {\n int firstValue = Integer.parseInt(o1.get(key));\n int secondValue = Integer.parseInt(o2.get(key));\n return secondValue - firstValue;\n\t\t\t}\n }\n \n HashMap<String,HashMap<String, String>> results = new HashMap<String,HashMap<String, String>>();\n int size = messages.size();\n for(int i = 0; i< size; i++){\n Message message = messages.get(i);\n ArrayList<HashMap<String, String>> urls = getListUrl(message);\n for( HashMap<String, String> url : urls){\n String urlname = url.get(\"url\");\n String connections = url.get(\"connections\");\n if( results.containsKey(urlname)) {\n String rConnections = results.get(urlname).get(\"connections\");\n if(Integer.parseInt(connections) > Integer.parseInt(rConnections)){\n results.put(urlname,url);\n }\n }\n else{\n results.put(urlname,url);\n }\n }\n }\n Collection<HashMap<String, String>> values = results.values();\n ArrayList<HashMap<String, String>> rlist = new ArrayList<HashMap<String, String>>(values);\n Collections.sort(rlist, new MapComparator(\"connections\")); \n return rlist;\n }", "private ArrayList<Integer> remove_duplicates(ArrayList<Integer> l) {\n ArrayList<Integer> res = new ArrayList<Integer>();\n for (int i=0; i< l.size(); i++) {\n if (!(in(l.get(i), res))) {\n res.add(l.get(i));\n }\n }\n return res;\n }", "static void deleteDup(Linkedlists list){\r\n\tif(list.head==null){\r\n\t\tSystem.out.println(\"enmpty list\");\r\n\t\treturn;\r\n\t}\r\n\telse{\r\n\t\tNode current=list.head;\r\n\t\twhile(current != null){\r\n\t\t\tNode runner=current;\r\n\t\twhile(runner.next != null){\r\n\t\t\tif(runner.next.data==current.data){\r\n\t\t\t\trunner.next=runner.next.next;\r\n\t\t\t\tlist.removeNode(current.data);\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\trunner=runner.next;\r\n\t\t\t}\r\n\t\t}\r\n\t\tcurrent=current.next;\r\n\t\t}\r\n\t}\r\n\r\n\tSystem.out.println(\"list after duplicate removal\");\r\n\tlist.printList();\r\n}", "protected void refreshFromImports() {\r\n\t\t\t\t\r\n\t\tList<?> elements = collectItemsFromImports();\t\t\t\t\r\n\t\t\t\t\r\n\t\tif (fFilteredList != null) {\r\n\t\t\tfFilteredList.setAllowDuplicates(showDuplicates);\r\n\t\t\tfFilteredList.setElements( contentProvider.getElements(elements) );\r\n\t\t\tfFilteredList.setEnabled(true);\t\t\r\n\t\t}\t\t\t\t\r\n\t}", "public static void incrDuplicates() { ++duplicates; }", "public void removeDuplicates(){\n HashSet<Object> elements = new HashSet<>();\n Node n = head;\n int i=0;\n while(n!=null){\n if(elements.contains(n.getData())){\n if (size == 1) {\n this.head.setData(null);\n } else {\n if (n == this.head) {\n this.head = n.next;\n this.head.prev = this.head;\n } else if (n == this.tail) {\n this.tail = n.prev;\n this.tail.next = this.tail;\n } else {\n n.prev.next = n.next;\n n.next.prev = n.prev;\n }\n }\n size--;\n }else{\n elements.add(n.getData());\n }\n n=n.next;\n }\n }", "public void removeDuplicates() {\n if (head == null) {\n return;\n }\n Node currentNode = this.head;\n Node nextNode = this.head.next;\n while (nextNode != null) {\n if (currentNode.data == nextNode.data) {\n currentNode.next = nextNode.next;\n nextNode = nextNode.next;\n } else {\n currentNode = nextNode;\n nextNode = nextNode.next;\n }\n }\n }", "public static ArrayList<Match> getMatchesForSeason(ArrayList<FootballClub> seasonBasedClub){\n\n // these both arrayList will be of the same size\n ArrayList<Match> matchesDisplayed = new ArrayList<>();\n ArrayList<Match> allMatches = new ArrayList<>();\n\n // populating the allMatches list will all the matches from the seasonBasedClub\n // adding all the matches played for that season inside the allMatches list\n for (FootballClub footballClub: seasonBasedClub) {\n allMatches.addAll(footballClub.getMatchesPlayed());\n\n }\n\n // sort the matches in ascending order of the date\n Comparator<Match> sortByDate = (match1, match2) -> {\n\n if(match1.getDate().getYear() == match2.getDate().getYear()){\n if (match1.getDate().getMonth() == match2.getDate().getMonth()) {\n if (match1.getDate().getDay() > match2.getDate().getDay()) {\n return 1;\n }\n } else if (match1.getDate().getMonth() > match2.getDate().getMonth()) {\n return 1;\n }\n }else if (match1.getDate().getYear() > match2.getDate().getYear()) {\n return 1;\n }\n\n return -1;\n };\n allMatches.sort(sortByDate); // sorting the matches according to the date\n\n // MAIN CODE FOR EXTRACTING THE NECESSARY SET OF MATCHES (NO DUPLICATES)\n for (Match match : allMatches) {\n\n boolean matchNotAvailable = true;\n\n // NOTE THAT THIS IS TO PREVENT THE REPEATING OF MATCHES IN ALL CLUBS WHICH IS DUPLICATING\n for (Match value : matchesDisplayed) {\n if (match.getOpponentClubName().equalsIgnoreCase(value.getParticipatedCLubName())) {\n // NOTE: goal scored from the club is equal to goal received from the opponent club\n if (\n (value.getGoalReceived() == match.getGoalScored()) &&\n (value.getGoalScored() == match.getGoalReceived()) &&\n (value.getMatchType().equalsIgnoreCase(match.getMatchType())) &&\n (value.getDate().equals(match.getDate()))\n ) {\n matchNotAvailable = false;\n }\n }\n }\n // WE ADD THE NON DUPLICATED MATCHES INTO THIS LIST AND SEND IT TO THE VIEWS\n if (matchNotAvailable) {\n matchesDisplayed.add(match);\n }\n }\n return matchesDisplayed;\n }", "public static void main(String[] args) {\n\t\tint a[] = {1,2,2,6,7,3,4,4,5,5,6,7};\n\t\t\n\t\t\n\t\tMap<Integer,Integer> map =new HashMap<Integer,Integer>();\n\t\t\n\t\tfor (Integer num :a) {\n\t\t\tInteger Count =map.get(num);\n\t\t\tif(Count==null) {\n\t\t\t\tmap.put(num, 1);\n\t\t\t}else {\n\t\t\t\tmap.put(num, ++Count);\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\tSet<Entry<Integer, Integer>> entryset =map.entrySet();\n\t\tArrayList<Integer> list =new ArrayList<Integer>();\n\t\tfor(Entry<Integer, Integer> entry :entryset) {\n\t\t\tif(entry.getValue()>1) {\n\t\t\t\tlist.add(entry.getKey());\n\t\t\t\t}\n\t\t\t}\n\t\tSystem.out.println(\"Duplicates are \" +list);\n\t\t\n\t\tSet<Entry<Integer, Integer>> entryset1 =map.entrySet();\n\t\tArrayList<Integer> nonduplist =new ArrayList<Integer>();\n\t\tfor(Entry<Integer, Integer> entry1 :entryset1) {\n\t\t\tif(entry1.getValue()==1) {\n\t\t\t\tnonduplist.add(entry1.getKey());\n\t\t\t\t}\n\t\t\t}\n\t\tSystem.out.println(\"Non Duplicates are \" +nonduplist);\n\t\t\n \n}", "public boolean checkDuplicates(String value) {\n for (Entry i : listentries) {\n if (i.getName().equals(value))\n return true;\n }\n return false;\n }", "private void calculateDuplicate(ArrayList<String> pathList) {\n\n HashMap<String, byte[]> pathMdHashMap = new HashMap<>();\n\n for (int i = 0; i < pathList.size(); i++) {\n\n LinkedHashMap<File, String> uniquePathAndFileHash = new LinkedHashMap<>();\n\n if (pathList.get(i) == null || !(new File(pathList.get(i)).isFile()) || !(new File(pathList.get(i)).exists()))\n continue;\n\n byte[] fileHash1 = Constant.fileHash(new File(pathList.get(i)));\n\n if (fileHash1 == null)\n continue;\n\n for (int j = i + 1; j < pathList.size(); j++) {\n\n String path = pathList.get(j);\n\n if (path == null || !(new File(path).isFile()) || !(new File(path).exists()))\n continue;\n\n byte[] fileHash2;\n\n if (pathMdHashMap.containsKey(path)) {\n fileHash2 = pathMdHashMap.get(path);\n } else {\n fileHash2 = Constant.fileHash(new File(pathList.get(j)));\n pathMdHashMap.put(path, fileHash2);\n }\n\n boolean flag = MessageDigest.isEqual(fileHash1, fileHash2);\n\n if (flag) {\n\n if (!uniquePathAndFileHashCopy.containsValue(pathList.get(i))) {\n uniquePathAndFileHash.put(new File(pathList.get(i)), pathList.get(i));\n }\n\n if (!uniquePathAndFileHashCopy.containsValue(path)) {\n uniquePathAndFileHash.put(new File(path), path);\n }\n }\n }\n\n if (uniquePathAndFileHash.size() > 1) {\n\n index++;\n\n\n LinkedHashMap<Integer, LinkedHashMap<File, String>> similarVideo = new LinkedHashMap<>();\n\n similarVideo.put(index, uniquePathAndFileHash);\n\n similarVideoCopy.put(index, uniquePathAndFileHash);\n\n uniquePathAndFileHashCopy.putAll(uniquePathAndFileHash);\n\n\n new Handler(Looper.getMainLooper()).post(() ->\n responseLiveData.setValue(FileRemoverResponse.success(similarVideo)));\n\n }\n }\n\n }", "protected <ELEMENT> List<ELEMENT> newReferrerList() { // overriding to import\n return new ArrayList<ELEMENT>();\n }", "public void containsNoDuplicates() {\n List<Entry<T>> duplicates = Lists.newArrayList();\n for (Multiset.Entry<T> entry : LinkedHashMultiset.create(getSubject()).entrySet()) {\n if (entry.getCount() > 1) {\n duplicates.add(entry);\n }\n }\n if (!duplicates.isEmpty()) {\n failWithRawMessage(\"%s has the following duplicates: <%s>\", getDisplaySubject(), duplicates);\n }\n }", "@Override\n public int hashCode() {\n return Objects.hash(this.name, this.collectionOfCurrentListings, this.commissionRate, this.totalEarnings);\n }", "void populatePidToHolderMap() {\n\t\tSet<Integer> visited = new HashSet<Integer>();\n\t\tQueue<Integer> visitQueue = new LinkedList<Integer>();\n\t\tvisitQueue.add(pid);\n\t\tvisited.add(pid);\n\t\twhile(!visitQueue.isEmpty()) {\n\t\t\tint nodePid = visitQueue.poll();\n\t\t\tList<Integer> neighborList = neighborMap.get(nodePid);\n\t\t\tfor (int neighborPid : neighborList) {\n\t\t\t\tif (!visited.contains(neighborPid)) {\n\t\t\t\t\tpidToHolderMap.put(neighborPid, nodePid);\n\t\t\t\t\tvisitQueue.add(neighborPid);\n\t\t\t\t\tvisited.add(neighborPid);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "protected <ELEMENT> List<ELEMENT> newReferrerList() { // overriding to import\r\n return new ArrayList<ELEMENT>();\r\n }", "public ArrayList<Person> quicksortDeduplication(){\n\t//copy data from list to array arr\n\tPerson[] arr = new Person[this.lst.size()];\n\tfor(int i=0; i< lst.size();i++){\n\t arr[i] = this.lst.get(i);\n\t}\n\t//sort array => see QuickSort class\n\tQuickSort.sort(arr,0,arr.length-1);\n\t//create list to store singular data\n\tArrayList<Person> unduplicated2 = new ArrayList<>();\n\t//compare successive elements of array to find duplicates\n\tint limit =0;\n\tif (arr.length ==0 || arr.length==1) limit =arr.length;\n\tint j=0;\n\t//store only singular data in the beginning of the array\n\tfor (int i = 0; i < arr.length-1; i++) \n if (arr[i].compareTo( arr[i+1]) != 0) \n arr[j++] = arr[i]; \n\t// add last element to array\n arr[j++] = arr[arr.length-1];\n\t//record last index of singular element\n\tlimit =j;\n\t//copy elements up to the singularity index to the list\n\tfor(int k=0; k< limit; k++){\n\t unduplicated2.add(arr[k]);\n\t}\n\treturn unduplicated2;\n }", "private PrefixSharingList (\n\t\tfinal List<E> originalList,\n\t\tfinal int size)\n\t{\n\t\tassert !(originalList instanceof PrefixSharingList<?>);\n\t\tassert size <= originalList.size();\n\t\tthis.size = size;\n\t\tthis.allButLast = null;\n\t\tthis.lastElement = originalList.get(size - 1);\n\t\tthis.cachedFlatListOrMore = originalList;\n\t\tvalidCheck();\n\t}", "public static void main(String[] args) {\n boolean found = false;\r\n \r\n\t\t\r\n\t\tLinkedList<Integer> ll = new LinkedList<>(new ArrayList<Integer>(Arrays.asList(34,90,56,12)));\r\n\t\tLinkedList<Integer> ll2 = new LinkedList<>(new ArrayList<Integer>(Arrays.asList(34,91)));\r\n\t\tfor(int i=0;i<=ll2.size()-1;i++)\r\n\t\t{\r\n\t\t\tfor(int j=0;j<=ll.size()-1;j++)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(ll2.get(i));\r\n\t\t\t\tSystem.out.println(ll.get(j));\r\n\t\t\t\tif(ll2.get(i)==ll.get(j))\r\n\t\t\t\t{\r\n\t\t\t\t\tfound = true;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tfound = false;\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(found)\r\n\t\t\t{\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"here\");\r\n\t\t\t\tfound = false;\r\n\t\t\t\tSystem.out.println(\"Not sublist\");\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t}\r\n\t\tif(found)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"sublist\");\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t}", "PersonGroupListAdapter() {\n personGroupIdList = new ArrayList<>();\n\n Set<String> personGroupIds\n = StorageHelper.getAllPersonGroupIds(MainActivity.this);\n\n for (String personGroupId: personGroupIds) {\n personGroupIdList.add(personGroupId);\n if (mPersonGroupId != null && personGroupId.equals(mPersonGroupId)) {\n personGroupIdList.set(\n personGroupIdList.size() - 1,\n mPersonGroupListAdapter.personGroupIdList.get(0));\n mPersonGroupListAdapter.personGroupIdList.set(0, personGroupId);\n }\n }\n }", "private List<Multiset.Entry<E>> snapshot() {\n\t\t\tList<Multiset.Entry<E>> list = Lists\n\t\t\t\t\t.newArrayListWithExpectedSize(size());\n\t\t\tfor (Multiset.Entry<E> entry : this) {\n\t\t\t\tlist.add(entry);\n\t\t\t}\n\t\t\treturn list;\n\t\t}", "private List<Obs> getFinalObsList(Patient patient, List<Obs> patientObsList, Integer pid){\n\t\tList<Concept> conceptListNotToBeExported = getSavedObs(pid);\n\t\tSet<Concept> removedDuplicateConceptList = new HashSet<Concept>(conceptListNotToBeExported);\n\t\tfor(int k=0; k<patientObsList.size();k++){\n\t\t\tConcept c = patientObsList.get(k).getConcept();\n\t\t\tif(removedDuplicateConceptList.contains(c)){\n\t\t\t\tpatientObsList.remove(k);\n\t\t\t}\n\t\t}\n\t\treturn patientObsList;\n\t}", "private List<Person> fetchingUtility() {\n List<Person> fetchedList = new ArrayList<>();\n fetchedList.add(new Person(-26.220616, 28.079329, \"PJ0\", \"https://twitter.com/pjapplez\", false));\n fetchedList.add(new Person(-26.187616, 28.079329, \"PJ1\", \"https://twitter.com/pjapplez\", false));\n fetchedList.add(new Person(-26.207616, 28.079329, \"PJ2\", \"https://twitter.com/pjapplez\", false));\n fetchedList.add(new Person(-26.217616, 28.079329, \"PJ3\", \"https://twitter.com/pjapplez\", false));\n fetchedList.add(new Person(-26.346316, 28.079329, \"PJ4\", \"https://twitter.com/pjapplez\", false));\n fetchedList.add(new Person(-26.215896, 28.079329, \"PJ5\", \"https://twitter.com/pjapplez\", false));\n fetchedList.add(new Person(-26.215436, 28.079129, \"PJ6\", \"https://twitter.com/pjapplez\", false));\n fetchedList.add(new Person(-26.431461, 28.079329, \"PJ7\", \"https://twitter.com/pjapplez\", false));\n fetchedList.add(new Person(-26.168879, 28.079329, \"PJ8\", \"https://twitter.com/pjapplez\", false));\n fetchedList.add(new Person(-26.227616, 28.079329, \"PJ9\", \"https://twitter.com/pjapplez\", false));\n\n return fetchedList;\n }", "private void updateTrackingList(HashMap<String, ArrayList<Passenger>> pasGroupList, ArrayList<Passenger> individualList) {\n Iterator<String> iter = pasGroupList.keySet().iterator();\n while (iter.hasNext()) {\n String gName = iter.next();\n ArrayList<Passenger> group = pasGroupList.get(gName);\n groupReservedList.put(gName, new GroupOfPassenger(group, gName, group.get(1).isEconomy()));\n }\n\n for (Passenger k : individualList) {\n individualReservedList.put(k.getName(), k);\n }\n }", "public void removeDuplicates()\n\t{\n\t\tComparator<Point> comp = new Comparator<Point>() \n\t\t{\n @Override\n public int compare(Point p, Point q) \n {\n \t return p.compareTo(q);\n }\n };\n\t\tquicksorter.quickSort(comp);\n\t\tquicksorter.getSortedPoints(points);\n\t\t\n\t\tArrayList<Point> pts = new ArrayList<Point>();\n\t\tfor(int a = 0; a < points.length; a++) //copy points into temp array\n\t\t{\n\t\t\tif(!pts.contains(points[a]))\n\t\t\t{\n\t\t\t\tpts.add(points[a]);\n\t\t\t}\n\t\t}\n\t\tpointsNoDuplicate = new Point[pts.size()]; //insert into pointsNoDuplicate\n\t\tfor(int i = 0; i < pts.size(); i++)\n\t\t{\n\t\t\tpointsNoDuplicate[i] = pts.get(i);\n\t\t}\n\t}", "public static boolean isDuplicate(List list, int id)\r\n {\r\n for (int i = 0; i < list.size(); i++)\r\n {\r\n int dupID = ((Integer) list.get(i)).intValue();\r\n\r\n if (dupID == id)\r\n {\r\n //slist.remove(list.get(i));\r\n return true;\r\n }\r\n }\r\n\r\n return false;\r\n }", "public static ArrayList<String> saveDuplicates(ArrayList<String> arlList) {\n // this functions save all duplicated in an Array.\n\n Set<String> set = new HashSet<String>();\n List<String> newList = new ArrayList<String>();\n List<String> newListDuplicates = new ArrayList<String>();\n for (Iterator<String> iter = arlList.iterator(); iter.hasNext();) {\n String element = iter.next();\n if (set.add(element))\n newList.add(element);\n else {\n newListDuplicates.add(element);\n }\n }\n arlList.clear();\n arlList.addAll(newListDuplicates);\n return arlList;\n }", "void linkElementsAsPeerDuplicates(String userId,\n String metadataElement1GUID,\n String metadataElement2GUID,\n int statusIdentifier,\n String steward,\n String stewardTypeName,\n String stewardPropertyName,\n String source,\n String notes,\n boolean setKnownDuplicate) throws InvalidParameterException,\n UserNotAuthorizedException,\n PropertyServerException;", "public com.sforce.soap.enterprise.QueryResult getDuplicateRecordItems() {\r\n return duplicateRecordItems;\r\n }", "public static List<Integer> findDuplicates(List<Integer> numbers) {\n Integer[] cloneArray = new Integer[numbers.size()];\n Integer[] repeatNums = new Integer[numbers.size()-1];\n\n\n for (int i = 0; i < numbers.size(); i++){\n cloneArray[i] = numbers.get(i);\n }\n\n //I checked the big notation of this method is O(log(n) )\n // source https://docs.oracle.com/javase/7/docs/api/java/util/Arrays.html#sort(int[])\n Arrays.sort(cloneArray);\n\n for (int i = 0; i < cloneArray.length -1 ; i++) {\n if (cloneArray[i] == cloneArray[i+1]){\n repeatNums[i] = Integer.valueOf(cloneArray[i]);\n }\n }\n\n\n for (int i = 1; i < repeatNums.length; i++){\n if (repeatNums[i-1] == null){\n repeatNums[i-1] = repeatNums[i];\n repeatNums[i] = null;\n }\n }\n\n //Removing any nulls.\n Integer[] outArray = Arrays.stream(repeatNums).filter(Objects::nonNull).toArray(Integer[]::new);\n\n List<Integer> duplicateList = Arrays.asList(outArray);\n\n return duplicateList;\n }", "public static void main(String[] args) {\n ArrayList<Integer> nums = new ArrayList<>();\n nums.addAll( Arrays.asList(100, 2000, 50, 50, 100, 200, 300, 50));\n nums=new ArrayList<>(new TreeSet<>(nums));\n System.out.println(nums);\n\n String str1 = \"babababC\";\n str1 = new TreeSet<>( Arrays.asList(str1.split(\"\")) ).toString();\n System.out.println(str1);\n\n\n System.out.println(\"=========================================================================================\");\n\n /**\n * - 2. Write a program that can REMOVE THE DUPLICATES from an ArrayList. DO NOT change the ORDER\n * -> LinkedHashSet -> Remove Duplicates and Keeps the Insertion Order\n */\n ArrayList<Integer> list = new ArrayList<>(Arrays.asList(6,6,6,6,5,5,5,4,4,4,4));\n list=new ArrayList<>(new LinkedHashSet<>(list));\n System.out.println(list);\n\n\n /**\n * - 1. Write a program that can remove the duplicated characters from String and store them into variable\n */\n String str = \"ABABABCDEF\";\n String[] arr = str.split(\"\");\n str = new LinkedHashSet<>(Arrays.asList(arr)).toString().replace(\", \", \"\");\n System.out.println(str);\n\n\n System.out.println(\"=========================================================================================\");\n\n /**\n * -> Does not accept duplicates, and sort the objects\n * -> HashSet accepts null\n * -> HashSet is faster than TreeSet\n */\n HashSet<Integer> numbers = new HashSet<>(Arrays.asList(10,9,10, 9, 8, 7, 8, 7, 6, 5, 6, 1));\n System.out.println(numbers ); // -> [1, 5, 6, 7, 8, 9, 10]\n\n\n System.out.println(\"=========================================================================================\");\n\n /**\n * - ITERATOR: -> is the only way to remove duplicates from collection\n * - removeIf -> removes numbers because it is uses the iterator interface internally. Iterator implicitly\n *\n * - hasNext() method only can go forward cant go backward. it stars from next index\n * - when we use it our loop hasNext() iterates from the next index\n * - iterator(); - hasNext(); - next(); - remove();\n */\n ArrayList<Integer> list2 = new ArrayList<>(Arrays.asList(1,1,2,2,3,3,4,4,5,5));\n list2.removeIf( p -> p < 4 );\n System.out.println(list2);\n\n\n ArrayList<Integer> list3 = new ArrayList<>(Arrays.asList(1,1,2,2,3,3,4,4,5,5));\n Iterator<Integer> it =list3.iterator(); // - this method will return iterator\n while( it.hasNext() ){ // - iterator explicitly. While loop only accept boolean\n if( it.next() < 4 ){\n it.remove();\n }\n }\n System.out.println(list3);\n\n\n ArrayList<Integer> list4 = new ArrayList<>(Arrays.asList(1,1,2,3,3,4,4,5,5));\n // - hasNext(); will iterate all the indexes. We do not need extra iterator in the loop\n for(Iterator<Integer> I = list4.iterator(); I.hasNext(); ){\n if( I.next() < 4) {\n I.remove();\n }\n }\n System.out.println(list4);\n\n\n\n LinkedHashSet<String> names = new LinkedHashSet<>();\n names.addAll(Arrays.asList( \"Mehmet\",\"Mohammed\",\"Yucel\",\"Sha\",\"Ozgur\", \"Ahmet\",\"Osmanj\",\"Ozgur\",\"Ozgur\",\"Irina\"));\n System.out.println(names);\n Iterator<String> it3 = names.iterator();\n while( it3.hasNext() ){\n String s = it3.next();\n if(s.contains(\"m\") || s.contains(\"M\")){ // - s.toLowerCase.contains(\"m\")\n it3.remove();\n }\n }\n System.out.println(names);\n\n /*\n ===============================================================\n for(Iterator<String> it3 = names.iterator(); it3.hasNext() ; ){\n String s = it3.next();\n if(s.toLowerCase().contains(\"m\")){\n it3.remove();\n }\n }\n ================================================================\n names.removeIf( s -> s.contains(\"m\") || s.contains(\"M\") );\n ================================================================\n names.removeAll( Arrays.asList( \"Mehmet\", \"Ozgur\", \"Mohammed\" ));\n ================================================================\n names.retainAll( Arrays.asList( \"Yucel\", \"Sha\", \"Ahmet\" ) );\n ================================================================\n boolean result = list.containsAll( Arrays.asList(5, 6, 9, 8, 11 ));\n */\n\n\n\n\n\n\n\n System.out.println(\"=========================================================================================\");\n\n\n\n\n\n }", "public void updateTempList() {\n if (disableListUpdate == 0) {\n tempAdParts.clear();\n LatLngBounds bounds = mapboxMap.getProjection().getVisibleRegion().latLngBounds;\n iterator = AdParts.listIterator();\n while (iterator.hasNext()) {\n current = iterator.next();\n if (bounds.contains(current.getLatLng())) {\n tempAdParts.add(current);\n }\n }\n AdAdapter adapter = new AdAdapter(MainActivity.this, tempAdParts);\n listView.setAdapter(adapter);\n }\n }", "private static void fun2(List<String> ac1, List<List<String>> result, int index) {\n\t\tString key = ac1.get(0);\r\n\t\tfor(int i=index;i<result.size();i++){\r\n\t\t\tList<String> res=result.get(i);\r\n\t\t\tif(res.get(0).equals(key)){\r\n\t\t\t\t//check if any one of the value is repeated\r\n\t\t\t\tboolean check=fun3(res,ac1);\r\n\t\t\t\tif(check){\r\n\t\t\t\t\tfor(int j=1;j<ac1.size();j++){\r\n\t\t\t\t\t\tres.add(ac1.get(i));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Test\n public void testHashCode() {\n assertEquals(uniqueParticipantList.hashCode(), uniqueParticipantList.hashCode());\n\n // different lists -> returns different hashcode\n secondUniqueParticipantList.add(BERNICE);\n assertNotEquals(uniqueParticipantList.hashCode(), secondUniqueParticipantList.hashCode());\n }", "public static void collapseDuplicates( ArrayList<Integer> L ) { \n\tfor (int i = 1; i < L.size();) {\n\t if (L.get(i).equals(L.get(i - 1))) {\n\t\tL.remove(i - 1);\n\t } else {\n\t\ti++;\n\t }\n\t}\n }", "public void deleteDuplicates() {\n if (head == null)\n throw new RuntimeException(\"List is empty\");\n Node<Integer> previous = head;\n Node<Integer> current = previous.getNextNode();\n while (current != null) {\n Node<Integer> temp = head;\n while (temp != current) { //skips if its the current and node is same\n if (temp.getData() == current.getData()) {\n previous.setNextNode(current.getNextNode());\n current = current.getNextNode();\n break;\n }\n temp = temp.getNextNode();\n }\n if (temp == current) { // move the node pointer\n previous = current;\n current = current.getNextNode();\n }\n }\n }", "public static PeakList duplicate(PeakList peaklist) {\n\t\tGenericPeakList gpl = null;\n\t\t// if tandem dupe tandem\n\t\tif (peaklist instanceof TandemPeakList){\n\t\t\tgpl = new GenericTandemPeakList();\n\t\t\tTandemPeakList tpl = (TandemPeakList)peaklist;\n\t\t\tGenericTandemPeakList gtpl = (GenericTandemPeakList)gpl;\n\t\t\tgtpl.setParent(tpl.getParent());\n\t\t\tgtpl.setTandemCount(tpl.getTandemCount());\n\t\t}\n\t\t// else use normal\n\t\telse {\n\t\t\tgpl = new GenericPeakList();\n\t\t}\n\t\t// copy the peaks\n\t\tgpl.setPeaks(peaklist.getPeaks());\n\t\treturn gpl;\n\t}", "public static void main(String[] args) {\n\t\tSet<Puppy> set = new LinkedHashSet<Puppy>(10);\n\t\t\n\t\t// this DS which can hold other object\n\t\tPuppy puppy1=new Puppy(\"Tommy\",10 );\n\t\tPuppy puppy2=new Puppy(\"AHH\", 12);\n\t\tPuppy puppy3=new Puppy(\"MYY\", 5);\n\t\tPuppy puppy4=new Puppy(\"NANY\", 3);\n\t\tPuppy puppy5=new Puppy(\"NANY\", 3);\n\t\t\n\t\t//dog4 and dog5 are duplicate elements\n\t\tset.add(puppy1);\n\t\tset.add(puppy2);\n\t\tset.add(puppy3);\n\t\tset.add(puppy4);\n\t\tset.add(puppy5);\n\t\t\n\t\tSystem.out.println(\"puppy4 . hashCode () = \"+puppy4.hashCode());\n\t\tSystem.out.println(\"puppy5 . hashCode () = \"+puppy5.hashCode());\n\t\t\n\t\tIterator<Puppy> iterator=set.iterator();\n\t\t\n\t\tSystem.out.println(\"Accessing data using Iterator interface!\");\n\t\twhile(iterator.hasNext()){\n\t\t\tPuppy puppy=iterator.next();\n\t\t\tSystem.out.println(puppy);\n\t\t}\n\t\t\n\t\t\n\t\tSystem.out.println(\"____________-----\");\n\t\tfor(Puppy puppy:set){\n\t\t\tSystem.out.println(puppy);\n\t\t}\n\t\t\n\t\tPuppy puppy6=new Puppy(\"NANY\", 3);\n\t\t\n\t\tboolean b=set.contains(puppy6);\n\t\tif(b){\n\t\t\tSystem.out.println(\"puppy6 found in set!\"+puppy6);\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Run it\");\n\t\t /* final Entry<K,V> getEntry(Object key) {\n\t\t int hash = (key == null) ? 0 : hash(key.hashCode());\n\t\t for (Entry<K,V> e = table[indexFor(hash, table.length)];\n\t\t e != null;\n\t\t e = e.next) {\n\t\t Object k;\n\t\t if (e.hash == hash &&\n\t\t ((k = e.key) == key || (key != null && key.equals(k))))\n\t\t return e;\n\t\t }\n\t\t return null;\n\t\t } */\n\t\t b=set.contains(puppy1);\n\t\tif(b){\n\t\t\tSystem.out.println(b+\"is found in set!\");\n\t\t}\n\t\t\n\n\t}", "public boolean checkforDuplicates(Tour tocheck) {\r\n\t\t boolean duplicate=false;\r\n\t\tfor(int t=0; t<tours.length-1;t++) {\r\n\t\t\tif(tocheck.checkforOrderDiffrence(tours[t])==false) {\r\n\t\t\t\tduplicate=true;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn duplicate;\r\n\t}", "public void test2_updateSingletonList() {\n ArrayList<Participant> dummyList = new ArrayList<>();\n Participant dummy1 = new Participant(\"UpdateDummy1\");\n Participant dummy2 = new Participant(\"UpdateDummy2\");\n Participant dummy3 = new Participant(\"UpdateDummy3\");\n Participant dummy4 = new Participant(\"UpdateDummy4\");\n\n dummyList.add(dummy1);\n dummyList.add(dummy2);\n dummyList.add(dummy3);\n dummyList.add(dummy4);\n\n // add test users into the server\n apt.execute(dummy1, dummy2, dummy3, dummy4);\n\n // attempt to obtain all of these participants within the singleton list\n ParticipantController.updateSingletonList();\n\n for (Participant found : dummyList) {\n if (instance.getParticipantList().contains(found)) {\n assertTrue(true);\n } else {\n assertTrue(\"Not all found\", false);\n }\n }\n\n\n }", "private Node removeDuplicate() {\n ArrayList<Integer> values = new ArrayList<Integer>();\n int len = this.getlength();\n Node result = this;\n\n if (len == 1) {\n System.out.println(\"only one element can't duplicate\");\n return result;\n } else {\n Node current = result;\n\n for (int i = 0; i < len; i++) {\n if (values.contains(current.value)) {\n result = result.remove(i);\n len = result.getlength();\n i--; // reset the loop back\n current = current.nextNode;\n } else {\n values.add(current.value);\n current = current.nextNode;\n }\n }\n return result;\n }\n }", "public static void main(String[] args) {\n\r\n\t\tDuplicatesWithList dl=new DuplicatesWithList();\r\n\t\tdl.add();\r\n\t}", "public void duplicate() {\n System.out.println(\"Je bent al in bezit van deze vragenlijst!\");\n }", "@Test\n public void testGetAll() throws Exception {\n JumpCloneImplant existing;\n Map<Integer, Map<Integer, JumpCloneImplant>> listCheck = new HashMap<>();\n\n existing = new JumpCloneImplant(jumpCloneID, typeID);\n existing.setup(testAccount, 7777L);\n existing = CachedData.update(existing);\n listCheck.put(jumpCloneID, new HashMap<>());\n listCheck.get(jumpCloneID)\n .put(typeID, existing);\n\n existing = new JumpCloneImplant(jumpCloneID + 10, typeID + 10);\n existing.setup(testAccount, 7777L);\n existing = CachedData.update(existing);\n listCheck.put(jumpCloneID + 10, new HashMap<>());\n listCheck.get(jumpCloneID + 10)\n .put(typeID + 10, existing);\n\n // Associated with different account\n existing = new JumpCloneImplant(jumpCloneID, typeID);\n existing.setup(otherAccount, 7777L);\n CachedData.update(existing);\n\n // Not live at the given time\n existing = new JumpCloneImplant(jumpCloneID + 3, typeID + 3);\n existing.setup(testAccount, 9999L);\n CachedData.update(existing);\n\n // EOL before the given time\n existing = new JumpCloneImplant(jumpCloneID + 4, typeID + 4);\n existing.setup(testAccount, 7777L);\n existing.evolve(null, 7977L);\n CachedData.update(existing);\n\n List<JumpCloneImplant> result = CachedData.retrieveAll(8888L,\n (contid, at) -> JumpCloneImplant.accessQuery(testAccount,\n contid, 1000,\n false, at,\n AttributeSelector.any(),\n AttributeSelector.any()));\n Assert.assertEquals(listCheck.size(), result.size());\n for (JumpCloneImplant next : result) {\n int jumpCloneID = next.getJumpCloneID();\n int typeID = next.getTypeID();\n Assert.assertTrue(listCheck.containsKey(jumpCloneID));\n Assert.assertTrue(listCheck.get(jumpCloneID)\n .containsKey(typeID));\n Assert.assertEquals(listCheck.get(jumpCloneID)\n .get(typeID), next);\n }\n\n }", "private static void removeDuplicates(Node head) {\n if (head == null)\n return;\n\n Node current = head;\n while (current != null) {\n Node runner = current;\n while (runner.next != null) {\n if (runner.next.value == current.value)\n runner.next = runner.next.next;\n else\n runner = runner.next;\n }\n current = current.next;\n }\n }", "public static void removeDuplicate(ArrayList<Integer>list) {\n \n //create a temporary arraylist\n ArrayList<Integer> tempList = new ArrayList<>();\n \n //loop thru the list and check if list contains the same integer/number/value as tempList\n for (int i = 0; i < list.size(); i++) {\n if (!tempList.contains(list.get(i))) {\n tempList.add(list.get(i));\n }\n }\n \n //clear the list\n list.clear();\n \n //add all integers/numbers/value from tempList into list\n list.addAll(tempList);\n \n }", "List<String> getEntityDupListFromXMLDoc(Document xmlDoc, boolean includeDupTaxID);", "private static <T extends AbstractApiIdentifiableDTO> Map<Long, List<T>> generateIdMapList(List<T> idList) {\n Map<Long, List<T>> results = new HashMap<>();\n\n for (T idSingle : idList) {\n Long sourceId = idSingle.getId();\n if (results.containsKey(sourceId)) {\n results.get(sourceId).add(idSingle);\n } else {\n // ID didn't exist so add a new list\n List<T> list = new ArrayList<>(1);\n list.add(idSingle);\n results.put(sourceId, list);\n }\n }\n\n return results;\n }", "public Node removeDups(Node head) {\n if (head != null) {\n Node current = head;\n Set<Integer> set = new HashSet<>();\n set.add(current.data);//IMP step\n\n while (current.next != null) {\n if (set.contains(current.next.data)) {\n //found the dup, leave it out\n current.next = current.next.next;\n } else {\n set.add(current.data);\n current = current.next;\n }\n }\n }\n return head;\n }", "java.util.List<ServerToB.SeenInfo>\n getSeenInfoList();", "protected <ELEMENT> List<ELEMENT> newReferrerList() {\n return new ArrayList<ELEMENT>();\n }", "List<T> getAllDistinct();", "public ArrayList<ArrayList> makeInfinite(String send_ip, int send_port) {\n\t\t\r\n\t\tString nextHop = send_ip+\":\"+send_port;\r\n\t\tIterator<ArrayList> iter_own = this.routingTable.iterator(); // just an iterator\r\n\t\twhile(iter_own.hasNext()){\r\n\t\t\tArrayList tempList = iter_own.next();\r\n\t\t\tif(nextHop.equals(tempList.get(1))){\r\n\t\t\t\ttempList.remove(2);\r\n\t\t\t\ttempList.add(16);\r\n\t\t\t}\r\n\t\t}\r\n\t\tprintTable();\r\n\t\treturn this.routingTable;\r\n\t}", "synchronized void crawledList_add(HashSet _crawledList, String url)\n {\n _crawledList.add(url);\n System.out.println(\"Added\"+\"\\t\"+url);\n }", "protected <ELEMENT> List<ELEMENT> newReferrerList() {\r\n return new ArrayList<ELEMENT>();\r\n }", "public Node removeDuplicates(Node head) \n {\n // Your code here\n HashSet<Integer>hs = new HashSet<>();\n Node curr=head;\n Node prev=null;\n while(curr!=null){\n if(hs.contains(curr.data)){\n prev.next = curr.next;\n }else{\n hs.add(curr.data);\n prev = curr;\n }\n curr = curr.next;\n }\n return head;\n }", "private boolean isSameList(CardList l1, CardList l2){\r\n\t\tif (l1.size()!=l2.size())\r\n\t\t{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tIterator<Card> i1 = l1.iterator();\r\n\t\tIterator<Card> i2 = l2.iterator();\r\n\t\twhile(i1.hasNext()){\r\n\t\t\tif (!i1.next().equals(i2.next()))\r\n\t\t\t{\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\r\n\t\tList<Integer> nums = new ArrayList<>();\r\n\t\t\r\n\t\tnums.add(10);nums.add(10);nums.add(10);nums.add(8);\r\n\t\tnums.add(11);nums.add(10);nums.add(10);nums.add(10);\r\n\r\n\t\tSystem.out.println(nums);\r\n\t\t\r\n\t\tList<Integer> unique1 = new ArrayList<>(); \r\n\t\t\r\n\t\t\r\n\t\t // find unique NON DUPLICATE VALUES\r\n\t\tfor(Integer num: nums) {\r\n\t\t\tif(!unique1.contains(num)) { // if unique1 doesn't contains num add it\r\n\t\t\t\tunique1.add(num); //<<<<<======= adding to unique1 num one by one\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(unique1.toString());\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t \r\n\t\t\r\n\t\tList<Integer> unique2 = new ArrayList<>();\r\n\t\t\r\n\t\tfor(int i =0; i<nums.size(); i++) { // find unique ( appearence once)\r\n\t\t\tint count=0;\r\n\t\t\t\r\n\t\t\tInteger value = nums.get(i);\r\n\t\t\tfor(int k =0; k<nums.size(); k++) {\r\n\t\t\t\tif(nums.get(k)== value && i != k) {\r\n\t\t\t\t\tcount++;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(count == 0) {\r\n\t\t\t\tunique2.add(value);\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(unique2);\r\n\t\t\r\n\t}", "public ListaDuplamenteEncadeada(){\r\n\t\t\r\n\t}", "public static List<String> getRepetitiveElements(String[] array)\n {\n if (array == null) return null;\n\n // variable -> each index maps to a linkedlist containing the values\n List<Integer>[] hashMap = new ArrayList[array.length];\n List<String> duplicateSet = new ArrayList<>();\n int index;\n int n = array.length;\n String curString;\n for (int i = 0; i < array.length; i++) {\n curString = array[i];\n index = curString.hashCode()%n;\n if (hashMap[index] == null) {\n hashMap[index]=new ArrayList<>(); // store the i index\n hashMap[index].add(i); // put in i within the arrayList\n } else { // index is not null\n List<Integer> matchingIndice = hashMap[index];\n boolean hit = false;\n for (Integer mi: matchingIndice) {\n if (array[mi].compareTo(curString)==0) {\n // collision, and the string matches, we are happy\n if (!duplicateSet.contains(curString)) { // this is O(m) where m is # of duplicate strings in the set\n duplicateSet.add(curString);// found duplicate string\n }\n hit = true;\n break; // exit -> found a match\n }\n }\n if (!hit) {\n matchingIndice.add(i); // put i into the linkedlist\n hashMap[index] = matchingIndice;\n }\n }\n }\n\n return duplicateSet;\n }", "private static void test1() {\n HashSet<Contact> contacts = new HashSet<>();\n\n Contact contact1 = new Contact(123, \"Vasiliy\", \"+380681234136\");\n\n contacts.add(contact1);\n\n\n //------------------------------------------\n\n\n Contact contact2 = new Contact(123, \"Vasiliy\", \"+380689876543\");\n\n contacts.remove(contact2);\n contacts.add(contact2);\n\n printCollection(contacts);\n }", "public List<List<Integer>> permute(int[] nums) {\n if (nums.length < 2) {\n LinkedList<List<Integer>> res = new LinkedList<>();\n List<Integer> list = Arrays.stream(nums).boxed().collect(Collectors.toList());\n res.add(list);\n return res;\n }\n\n ArrayList<List<Integer>> result = new ArrayList<>();\n ArrayList<Set<Integer>> setList = new ArrayList<>();\n\n //The base set that all the other sets will be \"cloned\" from\n Set<Integer> numSetBase = Arrays.stream(nums).boxed().collect(Collectors.toSet());\n\n //Initialize the custom map-thingy\n for (int i = 0; i < nums.length; i++) {\n List<Integer> temp = new LinkedList<>();\n temp.add(nums[i]);\n result.add(temp); //Key - the list\n\n Set<Integer> newSet = new HashSet<>(numSetBase);\n newSet.remove(nums[i]);\n\n setList.add(newSet); //Add to the set of stuff left\n }\n\n //Iterate\n for (int i = 1; i < nums.length; i++) {\n //Iterate over the whole list\n int initialSize = result.size();\n for (int j = 0; j < initialSize; j++) {\n boolean isFirstElem = true;\n int firstElem = 0;\n //For each unused int in the set entry\n for (int unused: setList.get(j)) {\n if (isFirstElem) {\n firstElem = unused;\n isFirstElem = false;\n } else {\n //Add new entries for the unused nums\n Set<Integer> newSet = new HashSet<>(setList.get(j));\n List<Integer> newList = new LinkedList<>(result.get(j));\n newList.add(unused);\n newSet.remove(unused);\n //Add the new entry\n result.add(newList);\n setList.add(newSet);\n }\n }\n //Modify the first element\n if (!setList.get(j).isEmpty()) {\n result.get(j).add(firstElem);\n setList.get(j).remove(firstElem);\n }\n }\n }\n return result;\n }", "public List<List<String>> findDuplicate(String[] paths) {\n final Map<String, List<File>> map = new HashMap<>();\n\n for (String path : paths) {\n final List<File> fileList = parse(path);\n for (File file : fileList) {\n if (!map.containsKey(file.content)) map.put(file.content, new LinkedList<>());\n map.get(file.content).add(file); \n }\n }\n\n final List<List<String>> result = new LinkedList<>();\n for (String content : map.keySet()) {\n final List<File> files = map.get(content);\n if (files.size() == 1) continue;\n\n final List<String> fileList = files.stream().map(File::fullPath).collect(Collectors.toList());\n result.add(fileList);\n }\n return result;\n }" ]
[ "0.6279139", "0.61491907", "0.6065411", "0.6006309", "0.58522755", "0.5845532", "0.58196646", "0.5760746", "0.5720407", "0.5718642", "0.5688735", "0.5634997", "0.5628156", "0.5624178", "0.5621759", "0.56083775", "0.56077087", "0.56040114", "0.556024", "0.55230093", "0.55162036", "0.55011106", "0.5487917", "0.5479417", "0.5468639", "0.54631793", "0.54568607", "0.54514235", "0.5430903", "0.54100066", "0.5384711", "0.5346464", "0.53459144", "0.53428906", "0.5335135", "0.5332735", "0.53038985", "0.530146", "0.52951056", "0.52945083", "0.5271778", "0.5268572", "0.52536225", "0.524725", "0.52333397", "0.5219986", "0.52135724", "0.5211519", "0.5207013", "0.52051485", "0.52024966", "0.5199887", "0.5196371", "0.51926017", "0.517975", "0.51742804", "0.51461536", "0.5125542", "0.5117925", "0.51177835", "0.5113457", "0.51117176", "0.50881493", "0.50826895", "0.5082211", "0.50749505", "0.5070739", "0.50691473", "0.5033573", "0.5023411", "0.5013436", "0.50127465", "0.5005194", "0.50000113", "0.49982023", "0.49974403", "0.49965155", "0.4996317", "0.49881968", "0.4986755", "0.49862134", "0.49718294", "0.49717042", "0.49590412", "0.49562144", "0.49530962", "0.49516627", "0.49492845", "0.49487144", "0.49435556", "0.49391532", "0.49338272", "0.4921044", "0.49149305", "0.4914286", "0.49141976", "0.49065545", "0.48965713", "0.48949555", "0.48933804" ]
0.58274364
6
Obtener los medidores entre los que se puede elegir.
public List<UserValidation> _obtainLstUserValidationByIds(int intUserId, int intValidationId) { String[] selectionArgs = new String[] { String.valueOf(intUserId), String.valueOf(intValidationId)}; Cursor cursor = activity.getContentResolver().query(UserValidationDAO.QUERY_BY_IDS_URI, null, null,selectionArgs, null); List<UserValidation> lstResult = UserValidationDAO.createObjects(cursor); cursor.close(); return lstResult; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void getLactanciasMaternas() {\n mLactanciasMaternas = estudioAdapter.getListaLactanciaMaternasSinEnviar();\n //ca.close();\n }", "private void mueveObjetos()\n {\n // Mueve las naves Ufo\n for (Ufo ufo : ufos) {\n ufo.moverUfo();\n }\n \n // Cambia el movimiento de los Ufos\n if (cambiaUfos) {\n for (Ufo ufo : ufos) {\n ufo.cambiaMoverUfo();\n }\n cambiaUfos = false;\n }\n\n // Mueve los disparos y los elimina los disparos de la nave Guardian\n if (disparoGuardian.getVisible()) {\n disparoGuardian.moverArriba();\n if (disparoGuardian.getPosicionY() <= 0) {\n disparoGuardian.setVisible(false);\n }\n }\n\n // Dispara, mueve y elimina los disparos de las naves Ufo\n disparaUfo();\n if (disparoUfo.getVisible()) {\n disparoUfo.moverAbajo();\n if (disparoUfo.getPosicionY() >= altoVentana) {\n disparoUfo.setVisible(false);\n }\n }\n\n // Mueve la nave Guardian hacia la izquierda\n if (moverIzquierda) {\n guardian.moverIzquierda();\n }\n // Mueve la nave Guardian hacia la derecha\n if (moverDerecha) {\n guardian.moverDerecha();\n }\n // Hace que la nave Guardian dispare\n if (disparar) {\n disparaGuardian();\n }\n }", "private void inicializarVariablesControlRonda() {\n\t\ttieneAs = new int[4];\n\t\tfor(int i=0;i<tieneAs.length;i++) {\n\t\t\ttieneAs[i]=0;\n\t\t}\n\t\tidJugadores = new String[3];\n\t\tvalorManos = new int[4];\n\t\t\n\t\tmazo = new Baraja();\n\t\tCarta carta;\n\t\tganador = new ArrayList<String>();\n\t\tapuestasJugadores = new int[3];\n\t\tmanoJugador1 = new ArrayList<Carta>();\n\t\tmanoJugador2 = new ArrayList<Carta>();\n\t\tmanoJugador3 = new ArrayList<Carta>();\n\t\tmanoDealer = new ArrayList<Carta>();\n\t\tparejaNombreGanancia = new ArrayList<Pair<String,Integer>>(); \n\t\t\n\t\t// gestiona las tres manos en un solo objeto para facilitar el manejo del hilo\n\t\tmanosJugadores = new ArrayList<ArrayList<Carta>>(4);\n\t\tmanosJugadores.add(manoJugador1);\n\t\tmanosJugadores.add(manoJugador2);\n\t\tmanosJugadores.add(manoJugador3);\n\t\tmanosJugadores.add(manoDealer);\n\t\t// reparto inicial jugadores 1 y 2\n\t\tfor (int i = 1; i <= 2; i++) {\n\t\t\tcarta = mazo.getCarta();\n\t\t\tmanoJugador1.add(carta);\n\t\t\tcalcularValorMano(carta, 0);\n\t\t\tcarta = mazo.getCarta();\n\t\t\tmanoJugador2.add(carta);\n\t\t\tcalcularValorMano(carta, 1);\n\t\t\tcarta = mazo.getCarta();\n\t\t\tmanoJugador3.add(carta);\n\t\t\tcalcularValorMano(carta, 2);\n\t\t}\n\t\t// Carta inicial Dealer\n\t\tcarta = mazo.getCarta();\n\t\tmanoDealer.add(carta);\n\t\tcalcularValorMano(carta, 3);\n\n\t\t\n\t}", "private void getMuestras(){\n mMuestras = estudioAdapter.getListaMuestrasSinEnviar();\n //ca.close();\n }", "public DAOPedidoMesa() {\n\t\trecursos = new ArrayList<Object>();\n\t}", "public void ganarDineroPorAutomoviles() {\n for (Persona p : super.getMundo().getListaDoctores()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n for (Persona p : super.getMundo().getListaCocineros()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n for (Persona p : super.getMundo().getListaAlbaniles()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n for (Persona p : super.getMundo().getListaHerreros()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n for (Persona p : super.getMundo().getListaCocineros()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n }", "public Controlador() {\n\t\t// m\n\t\tdatosPrueba1 = new ListaEnlazada();\n\t\t// m\n\t\tdatosPrueba2 = new ListaEnlazada();\n\t\t// add\n\t\tdatosPrueba3 = new ListaEnlazada();\n\t\tdatosPrueba4 = new ListaEnlazada();\n\t\tprueba1 = new Estadisticas(datosPrueba1);\n\t\tprueba2 = new Estadisticas(datosPrueba2);\n\t\tprueba3 = new Estadisticas(datosPrueba3);\n\t\tprueba4 = new Estadisticas(datosPrueba4);\n\t\t// finAdd\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic List<MarqueAlarme> touteslesMarqueAlarme() {\n\t\tList<MarqueAlarme> M = em.createQuery(\"from MarqueAlarme m\").getResultList();\n\t\treturn M;\n\t}", "private List<RhFuncionario> getFuncionariosMedicos()\n {\n System.out.println(\"supiEscalaFacade.findMedicos():\"+supiEscalaFacade.findMedicos());\n return supiEscalaFacade.findMedicos();\n }", "public List<EntradaDeMaterial> buscarEntradasDisponibles();", "public void obtenerMercadosSeleccionados() {\n\t\tlistaMercadosSeleccionado = new ArrayList<>();\n\t\tfor (String origen : this.mercadosSeleccionados) {\n\t\t\tCatalogoBean catalogo = catalogos.getCatalogoBean(\n\t\t\t\t\tCatalogoEnum.TP_MERCADOS_ORG, origen);\n\t\t\tlistaMercadosSeleccionado.add(origen + \" - \"\n\t\t\t\t\t+ catalogo.getDescripcionL());\n\t\t}\n\t}", "private void setearOpcionesMenuMantenimientos()\r\n\t{\r\n\t\tArrayList<FormularioVO> lstFormsMenuMant = new ArrayList<FormularioVO>();\r\n\t\t\r\n\t\r\n\t\t\r\n\t\t/*Buscamos los Formulairos correspondientes a este TAB*/\r\n\t\tfor (FormularioVO formularioVO : this.permisos.getLstPermisos().values()) {\r\n\t\t\t\r\n\t\t\tif(formularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_CLIENTES)\r\n\t\t\t\t|| formularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_FUNCIONARIOS) || \r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_IMPUESTO) ||\r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_EMPRESAS) ||\r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_CODIGOS_GENERALIZADOS) ||\r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_DOCUMENTOS) || \r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_DOCUMENTOS_DGI) || \r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_MONEDAS) || \r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_COTIZACIONES) ||\r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_TIPORUBROS) ||\r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_CUENTAS) ||\r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_BANCOS) ||\r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_PROCESOS) ||\r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_RESUMEN_PROCESO) ||\r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_PERIODO) ||\r\n\t\t\t\tformularioVO.getCodigo().equals(\"SaldoDocumentos\") ||\r\n\t\t\t\tformularioVO.getCodigo().equals(\"SaldoCuentas\") ||\r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_RUBROS))\r\n\t\t\t{\r\n\t\t\t\tlstFormsMenuMant.add(formularioVO);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t/*Si hay formularios para el tab*/\r\n\t\tif(lstFormsMenuMant.size()> 0)\r\n\t\t{\r\n\r\n\t\t\t//this.layoutMenu = new VerticalLayout();\r\n\t\t\t//this.tabMantenimientos.setMargin(true);\r\n\t\t\t\r\n\t\t\tthis.lbMantenimientos.setVisible(true);\r\n\t\t\tthis.layoutMenu.addComponent(this.lbMantenimientos);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tfor (FormularioVO formularioVO : lstFormsMenuMant) {\r\n\t\t\t\t\r\n\t\t\t\tswitch(formularioVO.getCodigo())\r\n\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_IMPUESTO :\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_IMPUESTO, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarImpuestoButton(); \r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.impuestoButton);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_EMPRESAS :\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_EMPRESAS, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarEmpresaButton();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.empresaButton);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_CODIGOS_GENERALIZADOS :\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_CODIGOS_GENERALIZADOS, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarCodigosGeneralizadosButton();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.codigosGeneralizados);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_DOCUMENTOS:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_DOCUMENTOS, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarDocumentosButton();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.documentosButton);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_MONEDAS:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_MONEDAS, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarMonedasButton();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.monedasButton);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_RUBROS:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_RUBROS, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarRubros();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.rubros);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_CLIENTES:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_CLIENTES, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarClientes();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.clientesButton);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_FUNCIONARIOS:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_FUNCIONARIOS, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarFuncionarios();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.funcionariosButton);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_COTIZACIONES:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_COTIZACIONES, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarCotizaciones();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.cotizaciones);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_TIPORUBROS:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_TIPORUBROS, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarTipoRubros();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.tipoRubros);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_CUENTAS:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_CUENTAS, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarCuentas();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.cuentas);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_BANCOS:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_BANCOS, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarBancos();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.bancos);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_PROCESOS:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_PROCESOS, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarProcesos();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.procesos);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_RESUMEN_PROCESO:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_RESUMEN_PROCESO, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarResumenProceso();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.resumenProc);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_PERIODO:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_PERIODO, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarPeriodo();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.periodo);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//TODO\r\n\t\t\t//this.acordion.addTab(tabMantenimientos, \"Mantenimientos\", null);\r\n\t\t\t\r\n\t\t\t//this.menuItems.addComponent(this.layoutMenu);\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t//acordion.setHeight(\"75%\"); /*Seteamos alto del accordion*/\r\n\t}", "public static void main(String[] args) {\n\n\t\tMulta_Trafico mt1 = new Multa_Trafico(20, \"B\");\n\t\tmt1.setResponsable(\"Paco\");\n\t\tmt1.setDescripcion(\"Exceso de velocidad\");\n\t\tmt1.setMatricula(\"MK\");\n\t\tmt1.setFecha(\"Viernes\");\n\t\tmt1.verdatos();\n\n\t\tMulta_Covid mc2 = new Multa_Covid(10, \"C\");\n\t\tmc2.setResponsable(\"Pepa\");\n\t\tmc2.setDescripcion(\"No llevaba mascarilla\");\n\t\tmc2.setMascarilla(false);\n\t\tmc2.setFecha(\"Jueves\");\n\t\tmc2.verdatos();\n\n\t\t// Para saber de qué tipo es una clase, objeto, etc... con instanceof\n\t\t// Método saberTipo\n\n\t\tExpediente expe1 = new Expediente(10, \"A\");\n\t\tSystem.out.println(saberTipo(expe1));\n\t\tSystem.out.println(saberTipo(mt1));\n\t\tSystem.out.println(saberTipo(mc2));\n\n\t\tMulta m3 = new Multa(10, \"A\"); // variables del metodo ImporteMayor\n\t\tMulta m4 = new Multa(10, \"B\");\n\t\tm3.setDescripcion(\"Multa\");\n\t\tm3.setResponsable(\"Alberto\");\n\t\tm3.setImporte(200);\n\t\tm4.setImporte(2000);\n\n\t\tSystem.out.println(ImporteMayor(m3, m4));\n\t\tSystem.out.println(conocerTipo(m3));\n\t\tSystem.out.println(m3);\n\n\t\t// array de 50 posiciones para el método MultaMayor\n\n\t\tMulta multas[] = new Multa[50];\n\n\t\tfor (int i = 0; i < multas.length; i++) { // Relleno con descripción e importe\n\t\t\tmultas[i] = new Multa(i, \"A\");\n\t\t\tmultas[i].setDescripcion(\"Descripción\" + i);\n\t\t\tmultas[i].setImporte(Math.random() * 1000 + 25);\n\t\t}\n\t\tSystem.out.println(CalcularMayor(multas));\n\n\t}", "private static void grabarYleerMedico() {\r\n\r\n\t\tMedico medico = new Medico(\"Manolo\", \"Garcia\", \"62\", \"casa\", \"2\", null);\r\n\t\tDTO<Medico> dtoMedico = new DTO<>(\"src/Almacen/medico.dat\");\r\n\t\tif (dtoMedico.grabar(medico) == true) {\r\n\t\t\tSystem.out.println(medico.getNombre());\r\n\t\t\tSystem.out.println(medico.getDireccion());\r\n\t\t\tSystem.out.println(\"Medico grabado\");\r\n\t\t}\r\n\t\t;\r\n\t\tMedico medicoLeer = dtoMedico.leer();\r\n\t\tSystem.out.println(medicoLeer);\r\n\t\tSystem.out.println(medicoLeer.getNombre());\r\n\t}", "public List<Mobibus> darMobibus();", "List<Motion> getMotions();", "public void limpiarCampos() {\n\t\ttema = new Tema();\n\t\ttemaSeleccionado = new Tema();\n\t\tmultimedia = new Multimedia();\n\t}", "public String[] ListarDPIMedicos(){\r\n int cantidad=0;\r\n Guardia s;\r\n for (int i = 0; i < medicosenfermeras.size(); i++) {\r\n s= medicosenfermeras.get(i);\r\n if (s instanceof Medico) {\r\n cantidad++;\r\n }\r\n }\r\n \r\n String[] DPIMedicos= new String[cantidad];\r\n Guardia t;\r\n int m=0;\r\n for (int i = 0; i < medicosenfermeras.size(); i++) {\r\n t=medicosenfermeras.get(i);\r\n if (t instanceof Medico) {\r\n DPIMedicos[m]=t.getNit();\r\n m++;\r\n }\r\n }\r\n \r\n return DPIMedicos;\r\n }", "private List<Object[]> getModelo() throws Exception {\n\t\treturn getModelo(null);\n\t}", "private void limpiarDatos() {\n\t\t\n\t}", "public ArrayList<String> obtenerNombresMedicos() {\n ArrayList<String> nombres = new ArrayList<String>();\n for (int i = 0; i < medicos.length; i++) {\n if (medicos[i] != null) {\n nombres.add(medicos[i].getNombre());\n }\n }\n return nombres;\n }", "@Override\r\n public ArrayList<Mensaje> leerTodosLosMensajes() {\n ArrayList<Mensaje> m = (ArrayList<Mensaje>) session.createCriteria(Mensaje.class).list();\r\n cerrarTodo();\r\n return m;\r\n }", "private void habilitarCamposModif() {\n\n listarPromotoresModif();\n //limpiarListaCrear();\n }", "public void inicializarListaMascotas()\n {\n //creamos un arreglo de objetos y le cargamos datos\n mascotas = new ArrayList<>();\n mascotas.add(new Mascota(R.drawable.elefante,\"Elefantin\",0));\n mascotas.add(new Mascota(R.drawable.conejo,\"Conejo\",0));\n mascotas.add(new Mascota(R.drawable.tortuga,\"Tortuga\",0));\n mascotas.add(new Mascota(R.drawable.caballo,\"Caballo\",0));\n mascotas.add(new Mascota(R.drawable.rana,\"Rana\",0));\n }", "public void loadTodosMensajes() {\r\n\t\t// Carga mensajes\r\n\t\tinfoDebug(\"Vista\", \"Cargando mensajes\");\r\n\t\tmensajesEntrantes = getTodosMensajesEntrantes(getEmpleadoActual().getEmplId());\r\n\t\tinfoDebug(\"Vista\", \"Acabado\");\r\n\t}", "public MapeadorAtributos getMapeadorAtributos();", "private void cargarRegistroMedicamentos() {\r\n\t\tMap<String, Object> parametros = new HashMap<String, Object>();\r\n\t\tparametros.put(\"admision_seleccionada\", admision_seleccionada);\r\n\t\tparametros.put(\"rol_medico\", \"S\");\r\n\t\ttabboxContendor.abrirPaginaTabDemanda(false,\r\n\t\t\t\t\"/pages/registro_medicamentos.zul\", \"REGISTRO DE MEDICAMENTOS\",\r\n\t\t\t\tparametros);\r\n\t}", "public ArrayList<A_MANOSCRITTO_0_Manoscritto> getListaManoscritti()\n\t{\n\t\tArrayList<A_MANOSCRITTO_0_Manoscritto> risultato = new funzionalitaVarieCONTROLLER().getListaManoscritti();\n\n\t\treturn risultato;\n\t}", "private void esvaziaMensageiro() {\n\t\tMensageiro.arquivo=null;\n\t\tMensageiro.lingua = linguas.indexOf(lingua);\n\t\tMensageiro.linguas=linguas;\n\t\tMensageiro.nomeArquivo=null;\n\t}", "@Override\n\tpublic void crearNuevaPoblacion() {\n\t\t/* Nos quedamos con los mejores individuos. Del resto, cruzamos la mitad, los mejores,\n\t\t * y el resto los borramos.*/\n\t\tList<IIndividuo> poblacion2 = new ArrayList<>();\n\t\tint numFijos = (int) (poblacion.size()/2);\n\t\t/* Incluimos el 50%, los mejores */\n\t\tpoblacion2.addAll(this.poblacion.subList(0, numFijos));\n\t\t\n\t\t/* De los mejores, mezclamos la primera mitad \n\t\t * con todos, juntandolos de forma aleatoria */\n\t\tList<IIndividuo> temp = poblacion.subList(0, numFijos+1);\n\t\tfor(int i = 0; i < temp.size()/2; i++) {\n\t\t\tint j;\n\t\t\tdo {\n\t\t\t\tj = Individuo.aleatNum(0, temp.size()-1);\n\t\t\t}while(j != i);\n\t\t\t\n\t\t\ttry {\n\t\t\t\tpoblacion2.addAll(cruce(temp.get(i), temp.get(j)));\n\t\t\t} catch (CruceNuloException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t\t//this.poblacion.clear();\n\t\tthis.poblacion = poblacion2;\n\t}", "public List<Matricula> getMatriculaAlumno() throws MatriculaException{\n\t\tList<Matricula> matalum = new ArrayList<Matricula>();\n\t\t\n for (Expediente ex : infosesion.getAlumno().getExpedientes()) {\n\t\t\tfor (Matricula matricula : matricula.buscarMatriculas(ex)) {\n\t\t\t\tmatalum.add(matricula);\n\t\t\t}\n\t\t}\n return matalum;\n\t}", "private void creaModuloMem() {\n /* variabili e costanti locali di lavoro */\n ArrayList<Campo> campi = new ArrayList<Campo>();\n ModuloRisultati modulo;\n Campo campo;\n\n try { // prova ad eseguire il codice\n\n campo = CampoFactory.intero(Campi.Ris.codicePiatto.getNome());\n campi.add(campo);\n\n campo = CampoFactory.testo(Campi.Ris.nomePiatto.getNome());\n campo.setVisibileVistaDefault();\n campo.setTitoloColonna(\"piatto\");\n campo.setToolTipLista(\"nome del piatto\");\n campo.decora()\n .etichetta(\"nome del piatto\"); // le etichette servono per il dialogo ricerca\n campo.setLarghezza(250);\n campi.add(campo);\n\n campo = CampoFactory.testo(Campi.Ris.categoria.getNome());\n campo.setVisibileVistaDefault();\n campo.setTitoloColonna(\"categoria\");\n campo.setToolTipLista(\"categoria del piatto\");\n campo.setLarghezza(80);\n campi.add(campo);\n\n campo = CampoFactory.intero(Campi.Ris.quanteVolte.getNome());\n campo.setVisibileVistaDefault();\n campo.setLarghezza(80);\n campo.setTitoloColonna(\"quante volte\");\n campo.setToolTipLista(\n \"quante volte questo piatto è stato offerto nel periodo analizzato\");\n campo.decora().etichetta(\"quante volte\");\n campi.add(campo);\n\n campo = CampoFactory.intero(Campi.Ris.quantiCoperti.getNome());\n campo.setVisibileVistaDefault();\n campo.setTitoloColonna(\"coperti\");\n campo.setToolTipLista(\"numero di coperti che avrebbero potuto ordinare\");\n campo.decora().etichetta(\"n. coperti\");\n campo.setLarghezza(80);\n campi.add(campo);\n\n campo = CampoFactory.intero(Campi.Ris.quanteComande.getNome());\n campo.setVisibileVistaDefault();\n campo.setTitoloColonna(\"comande\");\n campo.setToolTipLista(\"numero di comande effettive\");\n campo.decora().etichetta(\"n. comande\");\n campo.setLarghezza(80);\n campo.setTotalizzabile(true);\n campi.add(campo);\n\n campo = CampoFactory.percentuale(Campi.Ris.gradimento.getNome());\n campo.setVisibileVistaDefault();\n campo.setTitoloColonna(\"gradimento\");\n campo.setToolTipLista(\n \"percentuale di gradimento (è il 100% se tutti i coperti potenziali lo hanno ordinato)\");\n campo.decora().etichetta(\"% gradimento\");\n campo.setLarghezza(80);\n campi.add(campo);\n\n modulo = new ModuloRisultati(campi);\n setModuloRisultati(modulo);\n\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n } // fine del blocco try-catch\n\n }", "private static void menuManejoJugadores() {\n\t\tint opcion;\n\t\tdo{\n\t\t\topcion=menuManejoJugadores.gestionar();\n\t\t\tgestionarMenuManejoJugador(opcion);\n\t\t}while(opcion!=menuManejoJugadores.getSALIR());\n\t}", "private void cargarMallas() {\n\tmallas.clear();\n\ttry {\n\t mallas = registroServicio.obtenerMallaCurricular(infoCarreraDto);\n\t} catch (Exception e) {\n\t e.printStackTrace();\n\t return;\n\t}\n }", "public static void cargarMedicos() {\n medicos = new LinkedList<>();\n try {\n File f = new File(\"medicos.txt\");\n Scanner s = new Scanner(f);\n while (s.hasNextLine()) {\n String line = s.nextLine();\n String[] texto = line.split(\",\");\n Medico m = new Medico(texto[0], texto[1], texto[2], Integer.parseInt(texto[3]));\n int idPuesto = Integer.valueOf(texto[4].trim());\n if (idPuesto!=0) {\n Puesto pt = puestoPorId(idPuesto);\n if(pt == null){\n pt = new Puesto();\n puestos.add(pt);\n }\n m.setPuesto(pt);\n pt.setMedico(m);\n }\n else{\n m.setPuesto(null);\n }\n medicos.add(m);\n }\n } catch (FileNotFoundException e) {\n System.out.println(\"El archivo no existe...\");\n }\n }", "private void moverCarroLujo() {\n for (Auto auto : arrEnemigosAuto) {\n auto.render(batch);\n\n auto.moverIzquierda();\n }\n }", "public Map<Integer, DefMazmorra>getMapaMazmoras()\n {\n if(null==this.mapaMazmoras)\n this.mapaMazmoras=CargadorRecursos.cargaMapaMazmorras();\n \n \n //Comprobacion:\n for(Map.Entry<Integer, DefMazmorra>maz: mapaMazmoras.entrySet())\n Gdx.app.log(\"DEF_MAZMORRA:\", \"\"+maz.getKey()+\":\"+maz.getValue());\n \n \n return this.mapaMazmoras;\n }", "public Marca[] getMarca(){\n return this.marca;\n }", "private void cargarNotasAclaratorias() {\r\n\t\tMap<String, Object> parametros = new HashMap<String, Object>();\r\n\t\tparametros.put(\"nro_identificacion\",\r\n\t\t\t\tadmision_seleccionada.getNro_identificacion());\r\n\t\tparametros.put(\"nro_ingreso\", admision_seleccionada.getNro_ingreso());\r\n\t\tparametros.put(\"estado\", admision_seleccionada.getEstado());\r\n\t\tparametros.put(\"codigo_administradora\",\r\n\t\t\t\tadmision_seleccionada.getCodigo_administradora());\r\n\t\tparametros.put(\"id_plan\", admision_seleccionada.getId_plan());\r\n\t\tparametros.put(\"tipo_hc\", \"\");\r\n\t\tparametros.put(\"tipo\", INotas.NOTAS_ACLARATORIAS);\r\n\t\ttabboxContendor\r\n\t\t\t\t.abrirPaginaTabDemanda(false, \"/pages/nota_aclaratoria.zul\",\r\n\t\t\t\t\t\t\"NOTAS ACLARATORIAS\", parametros);\r\n\t}", "private final void inicializarListas() {\r\n\t\t//Cargo la Lista de orden menos uno\r\n\t\tIterator<Character> it = Constantes.LISTA_CHARSET_LATIN.iterator();\r\n\t\tCharacter letra;\r\n\t\twhile (it.hasNext()) {\r\n\t\t\tletra = it.next();\r\n\t\t\tthis.contextoOrdenMenosUno.crearCharEnContexto(letra);\r\n\t\t}\r\n\t\t\r\n\t\tthis.contextoOrdenMenosUno.crearCharEnContexto(Constantes.EOF);\r\n\t\t\r\n\t\tthis.contextoOrdenMenosUno.actualizarProbabilidades();\r\n\t\t\r\n\t\t//Cargo las listas de ordenes desde 0 al orden definido en la configuración\r\n\t\tOrden ordenContexto;\r\n\t\tfor (int i = 0; i <= this.orden; i++) {\r\n\t\t\tordenContexto = new Orden();\r\n\t\t\tthis.listaOrdenes.add(ordenContexto);\r\n\t\t}\r\n\t}", "@Override\n\tpublic List<Marca> ListaMarcas1() {\n\t\treturn marcadao.ListaMarcas1();\n\t}", "private void Mueve() {\n\t\tpaleta1.Mueve_paletas();\n\t\tpaleta2.Mueve_paletas();\n\t\tpelota.Mueve_pelota();\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic List<MarqueExtincteur> touteslesMarqueExtincteur() {\n\t\tList<MarqueExtincteur> M = em.createQuery(\"from MarqueExtincteur m\").getResultList();\n\t\treturn M;\n\t}", "private void remplirMaterielData() {\n\t}", "@Override\n\tpublic ArrayList<MODEL.Medicamento> getlista() {\n\t\treturn null;\n\t}", "private void crearElementos() {\n\n\t\tRotonda rotonda1 = new Rotonda(new Posicion(400, 120), \"5 de octubre\");\n\t\tthis.getListaPuntos().add(rotonda1);\n\n\t\tCiudad esquel = new Ciudad(new Posicion(90, 180), \"Esquel\");\n\t\tthis.getListaPuntos().add(esquel);\n\n\t\tCiudad trelew = new Ciudad(new Posicion(450, 200), \"Trelew\");\n\t\tthis.getListaPuntos().add(trelew);\n\n\t\tCiudad comodoro = new Ciudad(new Posicion(550, 400), \"Comodoro\");\n\t\tthis.getListaPuntos().add(comodoro);\n\n\t\tCiudad rioMayo = new Ciudad(new Posicion(350, 430), \"Rio Mayo\");\n\t\tthis.getListaPuntos().add(rioMayo);\n\n\t\t// --------------------------------------------------------\n\n\t\tRutaDeRipio rutaRipio = new RutaDeRipio(230, 230, rotonda1, esquel);\n\t\tthis.getListaRuta().add(rutaRipio);\n\n\t\tRutaPavimentada rutaPavimentada1 = new RutaPavimentada(380, 100, trelew, comodoro);\n\t\tthis.getListaRuta().add(rutaPavimentada1);\n\n\t\tRutaPavimentada rutaPavimentada2 = new RutaPavimentada(800, 120, esquel, comodoro);\n\t\tthis.getListaRuta().add(rutaPavimentada2);\n\n\t\tRutaDeRipio rutaripio3 = new RutaDeRipio(380, 100, trelew, comodoro);\n\t\tthis.getListaRuta().add(rutaripio3);\n\n\t\tRutaEnConstruccion rutaConst1 = new RutaEnConstruccion(180, 70, rioMayo, comodoro);\n\t\tthis.getListaRuta().add(rutaConst1);\n\n\t\tRutaPavimentada rutaPavimentada3 = new RutaPavimentada(600, 110, rioMayo, esquel);\n\t\tthis.getListaRuta().add(rutaPavimentada3);\n\t}", "public List<SelectItem> getListaMes()\r\n/* 163: */ {\r\n/* 164:209 */ ArrayList<SelectItem> lista = new ArrayList();\r\n/* 165:210 */ for (Mes mes : Mes.values()) {\r\n/* 166:211 */ lista.add(new SelectItem(mes, mes.getNombre()));\r\n/* 167: */ }\r\n/* 168:213 */ return lista;\r\n/* 169: */ }", "public SigalPeticion getUsuarios() throws Exception {\n SigalPeticion msgEnvio = SigalPeticion.getInstance( 2 );\n\n msgEnvio.addParametro( 0, new Parametro( \"FUNCION\", \"CL\" ) ); \n msgEnvio.addParametro( 1, \n /**\n * Somente usuarios ATIVOS\n * N = Ativos\n * S = Ativos e Inativos\n */\n new Parametro( \"USUBAJAC\", \"N\" ) \n );\n\n msgEnvio.setTipoOperacion( \"view\" );\n msgEnvio.setTransaccion( \"SGCLUSU\" );\n\n return msgEnvio;\n }", "public List<Modelo> obtenModelos() {\r\n try {\r\n IntAdmInventario adm = new FacAdmInventario();\r\n\r\n return adm.obtenListaModelos();\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n\r\n return null;\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 }", "@Override\n\tpublic DAOIncidencias CrearInformesMedicos() {\n\t\treturn null;\n\t}", "@Override\r\n\tpublic List<Turista> conMasPuntos() {\n\t\treturn (List<Turista>) turistaDAO.conMasPuntos();\r\n\t}", "public void abrirManoMaximo()\n {\n brazo.manoAbrirMaximo();\n }", "public List<RjMes> getAllRjMes()throws Exception{\n\t\tList<RjMes> lista=new LinkedList<RjMes>();\n\t\ttry{\n\t\t\tStringBuffer SQL=new StringBuffer(\"SELECT mes_id,descripcion,estado FROM \").append(Constante.schemadb).append(\".rj_mes order by mes_id asc\");\n\t\t\t\n\t\t\tPreparedStatement pst=connect().prepareStatement(SQL.toString());\n\t\t\tResultSet rs=pst.executeQuery();\n\t\t\twhile(rs.next()){\n\t\t\t\tRjMes obj=new RjMes(); \n\t\t\t\tobj.setMesId(rs.getString(\"mes_id\"));\n\t\t\t\tobj.setDescripcion(rs.getString(\"descripcion\"));\n\t\t\t\tobj.setEstado(rs.getString(\"estado\"));\n\t\t\t\tlista.add(obj);\n\t\t\t}\n\t\t\t\n\t\t}catch(Exception e){\n\t\t\tthrow(e);\n\t\t}\n\t\treturn lista;\n\t}", "public Map<Integer,MiembroDeEquipo> getMiembros(){\r\n\t\treturn this.miembros; \r\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\tpublic List<ComPermiso> escuelas() {\n\t\t\r\n\t\treturn em.createQuery(\"select c.dependencia.id,c.dependencia.nombre from ComPermiso c \").getResultList();\r\n\t}", "private void mostradados() {\r\n\t\tint in = 0;\r\n\r\n\t\tfor (Estado e : Estado.values()) {\r\n\t\t\tif (in == 0) {\r\n\t\t\t\tcmbx_estado.addItem(\"\");\r\n\t\t\t\tin = 1;\r\n\t\t\t}\r\n\t\t\tcmbx_estado.addItem(e.getNome());\r\n\t\t}\r\n\r\n\t\tfor (int x = 0; x < listacliente.size(); x++) {\r\n\t\t\tin = 0;\r\n\t\t\tif (x == 0) {\r\n\t\t\t\tcmbx_cidade.addItem(\"\");\r\n\t\t\t}\r\n\r\n\t\t\tfor (int y = 0; y < cmbx_cidade.getItemCount(); y++) {\r\n\t\t\t\tif (listacliente.get(x).getCidade().equals(cmbx_cidade.getItemAt(y).toString()))\r\n\t\t\t\t\tin++;\r\n\t\t\t\tif (in > 1)\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tif (in < 1)\r\n\t\t\t\tcmbx_cidade.addItem(listacliente.get(x).getCidade());\r\n\t\t}\r\n\t}", "public List<Propriedade> getListaDePropriedadesComMonopolio(){\r\n List<Propriedade> proComMonopolio = new ArrayList<>();\r\n for(Propriedade pro: this.propriedadesDoJogador){\r\n for(String cor: this.monopolioNoGrupoDeCor){\r\n if(pro.getCor().equals(cor)){\r\n proComMonopolio.add(pro);\r\n break;\r\n }\r\n }\r\n }\r\n \r\n return proComMonopolio;\r\n }", "public void cargaDeDatos(List<List<Object>> Musuarios,List<List<Object>> Mtareas, List<List<Object>> Mrequisitos) {\r\n\tfor (List<Object> l: Musuarios) {\r\n\t\tam.addMiembro(new MiembroDeEquipo((int)l.get(0),(String)l.get(1)));\r\n\t}\r\n\t/**\r\n\t * Cargamos a la lista de administrador de tareas todas las tareas que se encuentran en la base de datos, \r\n\t * si no tiene miembro se le pone a null sino se le añade un miembro.\r\n\t */\r\n\tfor (List<Object> l: Mtareas) {\r\n\t\tat.addTarea(new Tarea((String)l.get(0),(int)l.get(1),(int)l.get(2),(int)l.get(3),(int)l.get(6)));\r\n\t\t//Si tiene un miembro asignado (cualquier id mayor que cero) le añade el miembro de equipo, sino null\r\n\t\tif(0 < (int)l.get(5)) {\r\n\t\t\tat.BuscarTarea((int)l.get(1)).setAsignadoA(am.BuscarMiembro((int) l.get(5)));\r\n\t\t}else {\r\n\t\t\tat.BuscarTarea((int)l.get(1)).setAsignadoA(null);\r\n\t\t}\r\n\t\t//Si tiene un requisito (cualquier id maor que cero) le añade el requisito, sino null\r\n\t\tif(0 < (int)l.get(4)) {\r\n\t\t\tat.BuscarTarea((int)l.get(1)).setRequisito(ar.BuscarRequisito((int) l.get(4)));\r\n\t\t}else {\r\n\t\t\tat.BuscarTarea((int)l.get(1)).setRequisito(null);\r\n\t\t}\r\n\t\tat.BuscarTarea((int)l.get(1)).setDescripcion((String)l.get(7));\r\n\t}\r\n\t/**\r\n\t * Cargamos la lista del administrador de requisitos con todos los requisitos que tenemos,\r\n\t * si el requisito tiene 5 atributos, será un defecto, sino será una historia de usuario\r\n\t */\r\n\tfor (List<Object> l: Mrequisitos) {\r\n\t\tHashSet<Tarea> lista = new HashSet<Tarea>();\r\n\t\t//Buscamos todas las tareas que tengan este requisito, para tener una lista de las tareas que este tiene\r\n\t\tfor(List<Object> t: Mtareas) {\r\n\t\t\t\r\n\t\t\tif((int)l.get(2)==(int)t.get(4)) {\r\n\t\t\t\tlista.add(at.BuscarTarea((int)t.get(1)));\r\n\t\t\t}\r\n\t\t}\r\n\t\t//Creamos defecto o historiaDeUsuario, según sea el caso y lo añadimos a la lista generica de Requisitos.\r\n\t\tif(l.size()==5) {\r\n\t\t\tDefecto req = new Defecto((String)l.get(4),(String) l.get(0), (String)l.get(1),(int)l.get(2),lista);\r\n\t\t\tif((int)l.get(3)==1) {\r\n\t\t\treq.finalizar();\r\n\t\t\t}\r\n\t\t\tar.addRequisito(req);\r\n\t\t}else {\r\n\t\t\tRequisito req = new HistoriaDeUsuario((String) l.get(0), (String)l.get(1),(int)l.get(2));\r\n\t\t\tif(!lista.isEmpty()) {\r\n\t\t\t\treq.setRequisitos(lista);\r\n\t\t\t}\r\n\t\t\tif((int)l.get(3)==1) {\r\n\t\t\treq.finalizar();\r\n\t\t\t}\r\n\t\t\tar.addRequisito(req);\t\t\r\n\t\t}\r\n\t}\r\n\tfor (List<Object> l: Mtareas) {\r\n\t\t//Si tiene un requisito (cualquier id maor que cero) le añade el requisito, sino null\r\n\t\tif(0 < (int)l.get(4)) {\r\n\t\t\tat.BuscarTarea((int)l.get(1)).setRequisito(ar.BuscarRequisito((int) l.get(4)));\r\n\t\t}else {\r\n\t\t\tat.BuscarTarea((int)l.get(1)).setRequisito(null);\r\n\t\t}\r\n\t}\r\n}", "public EnemigoGenerico[] cargaBichos()\n {\n \n //Crear la bicheria (hardCoded)\n CoordCasilla[] origen={new CoordCasilla(1,1), new CoordCasilla(18,1), new CoordCasilla(14,8), new CoordCasilla(17,17), new CoordCasilla(13,5)};\n CoordCasilla[] destino={new CoordCasilla(6,18) , new CoordCasilla(1,1), new CoordCasilla(1,8), new CoordCasilla(18,1) , new CoordCasilla(13,18) };\n \n \n DefBicho pelota=this.atlasBicheria.get(\"Pelota Maligna\");\n EnemigoGenerico bichos[]=new EnemigoGenerico[origen.length];\n \n for(int x=0;x<origen.length;x++)\n {\n List<CoordCasilla> camino = this.getCamino(origen[x], destino[x]);\n Gdx.app.log(\"CAMINO:\", \"DESDE (\"+origen[x].x+\",\"+origen[x].y+\") HASTA ( \"+destino[x].x+\",\"+destino[x].y+\")\");\n for (CoordCasilla cc : camino)\n Gdx.app.log(\"CASILLA.\", String.format(\"(%2d ,%2d )\", cc.x, cc.y));\n \n \n bichos[x] = new EnemigoGenerico(pelota, this.mapaAnimaciones.get(pelota.archivoAnim), pelota.pv, pelota.tasaRegen, pelota.velocidad, camino, pelota.distanciaPercepcion, pelota.ataques);\n }\n \n return bichos;\n }", "public void recuperarDatosMedidor(String codigo){\n\t\ttry{\n\t\t\tList<Medidor> listaMedidor = new ArrayList<Medidor>();\n\t\t\tlistaMedidor = medidorDao.getRecuperaMedidor(codigo);\n\t\t\tfor(int i = 0 ; i < listaMedidor.size() ; i ++) {\n\t\t\t\ttxtIdMedidor.setText(String.valueOf(listaMedidor.get(i).getIdMedidor()));\n\t\t\t\ttxtCodigo.setText(listaMedidor.get(i).getCodigo());\n\t\t\t\tcboEstadoMed.setValue(listaMedidor.get(i).getEstadoMedidor());\n\t\t\t\ttxtMarca.setText(listaMedidor.get(i).getMarca());\n\t\t\t\ttxtModelo.setText(listaMedidor.get(i).getModelo());\n\t\t\t\ttxtPrecio.setText(String.valueOf(listaMedidor.get(i).getPrecio()));\n\t\t\t\t\n\t\t\t\tmedidorSeleccionado = listaMedidor.get(i);\n\t\t\t}\n\t\t\tif (listaMedidor.size() == 0)\n\t\t\t\tmedidorSeleccionado = new Medidor();\n\t\t}catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "void inicializarDiccionarioMultiple();", "public static Monitor[] cargaMonitores() {\n\t\t\n\t\tMonitor[] monitores = new Monitor[3];\n\t\t\n\t\tMonitor monitor1 = new Monitor(\"HP\", 33);\n\t\tMonitor monitor2 = new Monitor(\"RCA\", 19);\n\t\tMonitor monitor3 = new Monitor(\"Sony\", 27);\n\t\t\n\t\tmonitores[0] = monitor1;\n\t\tmonitores[1] = monitor2;\n\t\tmonitores[2] = monitor3;\n\t\t\n\t\treturn monitores;\n\t}", "private void obtenerGastosDiariosMes() {\n\t\t// Obtenemos las fechas actuales inicial y final\n\t\tCalendar calendar = Calendar.getInstance();\n calendar.setTime(new Date());\n int diaFinalMes = calendar.getActualMaximum(Calendar.DAY_OF_MONTH);\n\n\t\tList<Movimiento> movimientos = this.movimientoService.obtenerMovimientosFechaUsuario(idUsuario, LocalDate.of(LocalDate.now().getYear(),LocalDate.now().getMonthValue(),1),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tLocalDate.of(LocalDate.now().getYear(),LocalDate.now().getMonthValue(), diaFinalMes));\n\t\tList<Double> listaGastos = new ArrayList<Double>();\n\t\tList<String> listaFechas = new ArrayList<String>();\n\t\t\n\t\tDate fechaUtilizadaActual = null;\n\t\tdouble gastoDiario = 0;\n\t\t\n\t\tfor (Iterator iterator = movimientos.iterator(); iterator.hasNext();) {\n\t\t\tMovimiento movimiento = (Movimiento) iterator.next();\n\t\t\tif(fechaUtilizadaActual == null) { //Comprobamos si se acaba de entrar en el bucle para inicializar la fecha del movimiento\n\t\t\t\tfechaUtilizadaActual = movimiento.getFecha();\t\t\n\t\t\t}\n\t\t\t\n\t\t\t// Si hemos cambiado de fecha del movimiento se procede a guardar los datos recogidos\n\t\t\tif(!fechaUtilizadaActual.equals(movimiento.getFecha())) {\n\t\t\t\tlistaGastos.add(gastoDiario);\n\t\t\t\tlistaFechas.add(fechaUtilizadaActual.getDate()+\"/\"+Utils.getMonthForInt(fechaUtilizadaActual.getMonth()).substring(0, 3));\n\t\t\t\tgastoDiario = 0; // Reiniciamos el contador del gasto\n\t\t\t\tfechaUtilizadaActual = movimiento.getFecha(); // Almacenemos la fecha del nuevo gasto\n\t\t\t}\n\t\t\t\n\t\t\t// Si el movimiento que se ha realizado es un gasto lo sumamos al contador de gasto\n\t\t\tif(movimiento.getTipo().equals(TipoMovimiento.GASTO)) {\n\t\t\t\tgastoDiario += movimiento.getCantidad();\t\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t// Comprobamos si es el ultimo item del iterador y almacenamos sus datos\n\t\t\tif(!iterator.hasNext()) {\n\t\t\t\tlistaGastos.add(gastoDiario);\n\t\t\t\tlistaFechas.add(fechaUtilizadaActual.getDate()+\"/\"+Utils.getMonthForInt(fechaUtilizadaActual.getMonth()).substring(0, 3));\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\tthis.listadoGastosDiariosDiagrama = new Double[listaGastos.size()];\n\t\tthis.listadoGastosDiariosDiagrama = listaGastos.toArray(this.listadoGastosDiariosDiagrama);\n\t\tthis.fechasDiagrama = new String[listaFechas.size()];\n\t\tthis.fechasDiagrama = listaFechas.toArray(this.fechasDiagrama);\n\t\t\n\t}", "@GET\r\n public List<MarcaDetailDTO> getMarcas() {\r\n List<MarcaDetailDTO> listaMarcaes = listEntity2DetailDTO(marcaLogic.getMarcas());\r\n return listaMarcaes;\r\n }", "public List<Matricula> getMatriculas(){\n\t\t\n\t\ttry {\n\t\t\treturn matricula.leerMatriculasSecretaria();\n\t\t} catch (MatriculaException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "public int cargarCombustible(){ //creamos metodo cargarCombustible\r\n return this.getNivel();//retornara el nivel de ese mecanico\r\n }", "public ArrayList<InfoMensaje> getMensajes(String usuario) throws Exception;", "public Collection<OrdenCompra> traerTodasLasOrdenesDeCompra() {\n Collection<OrdenCompra> resultado = null;\n try {\n controlOC = new ControlOrdenCompra();\n bitacora.info(\"Registro OrdenCompra Iniciado correctamente\");\n resultado = controlOC.traerTodasLasOrdenesDeCompra();\n } catch (IOException ex) {\n bitacora.error(\"No se pudo iniciar el registro OrdenCompra por \" + ex.getMessage());\n }\n return resultado;\n }", "public Queue mejoresPromediosMes(int TamañoArreglo, int mes )\n\t{\n\t\tQueue Respuesta = null;\n\n\t\t//Pasa los arreglos de queue mes a un arreglo temporal \n\t\tQueue f = queueMonthly;\n\t\tQueue pre = null;\n\t\tfor(int i = 0; i< (queueMonthly.darNumeroElementos()-1); i++)\n\t\t{\n\t\t\tdouble[] dato= (double[]) queueMonthly.dequeue();\n\t\t\tUBERTrip datof = new UBERTrip((short)dato[0],(short)dato[1], (short)dato[2],(float) dato[3],(float) dato[4], (float)dato[5],(float) dato[6]);\n\t\t\t\n\t\t\tpre.enqueue(datof);\n\t\t}\n\n\t\tUBERTrip[] arreglo = new UBERTrip[pre.darNumeroElementos()]; \n\n\t\tfor(int z= 0; z< pre.darNumeroElementos(); z ++)\n\t\t{\n\t\t\tUBERTrip y = (UBERTrip) pre.dequeue();\n\t\t\tarreglo[z] = y;\n\t\t}\n\n\t\t//Separo el arreglo por los datos del mes solicitado \n\t\tUBERTrip[] arregloMes= new UBERTrip[pre.darNumeroElementos()];\n\n\t\tint posicion = 0;\n\n\t\tfor(int j = 0; j< arreglo.length; j++)\n\t\t{\n\t\t\tdouble[] x = arreglo[j].darDatosViaje();\n\n\t\t\tif(x[2] == mes)\n\t\t\t{\n\t\t\t\tarregloMes[posicion] = arreglo[j]; \n\t\t\t\tposicion ++;\n\t\t\t}\n\t\t}\n\n\t\t// Ordenamiento por insercion\n\t\tfor (int i=1; i < arregloMes.length; i++) \n\t\t{\n\t\t\tUBERTrip aux = arregloMes[i];\n\n\t\t\tint j = 0;\n\n\t\t\tdouble datosArreglomes[] = arregloMes[j].darDatosViaje();\n\t\t\tdouble datosAux[] = aux.darDatosViaje();\n\n\t\t\tfor (j=i-1; j >= 0 && datosArreglomes[3] > datosAux[3]; j--)\n\t\t\t{\n\t\t\t\tarregloMes[j+1] = arregloMes[j];\n\t\t\t}\n\t\t\tarregloMes[j+1] = aux;\n\t\t}\n\n\t\t// Retorna los N elementos \n\t\tfor(int i =0; i< TamañoArreglo; i++)\n\t\t{\n\t\t\tRespuesta.enqueue(arregloMes[i]);\n\t\t}\n\n\t\treturn Respuesta;\n\t}", "private void getObsequios(){\n mObsequios = estudioAdapter.getListaObsequiosSinEnviar();\n //ca.close();\n }", "public void inicializaEntradas(){\n\t\tentrada = TipoMotivoEntradaEnum.getList();\n\t\tentrada.remove(0);\n\t}", "void initEsperaMaterialesOrdenDeCompra() {\n try {\n\n HttpServletRequest request = (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest();\n if (request.getParameter(\"nroSolicitud\") != null) {\n codSolicitudMantenimiento = Integer.parseInt(request.getParameter(\"nroSolicitud\"));\n }\n con = (Util.openConnection(con));\n Statement st = con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);\n\n String consulta = \"\";\n //se lista los componentes a fabricar para programa_produccion\n\n consulta = \" SELECT SM.COD_SOLICITUD_MANTENIMIENTO, M.COD_MATERIAL,M.NOMBRE_MATERIAL, UM.COD_UNIDAD_MEDIDA, UM.NOMBRE_UNIDAD_MEDIDA,SCD.CANT_SOLICITADA FROM SOLICITUDES_MANTENIMIENTO SM \" +\n \" INNER JOIN SOLICITUDES_COMPRA SC ON SM.COD_SOLICITUD_COMPRA = SC.COD_SOLICITUD_COMPRA \" +\n \" INNER JOIN SOLICITUDES_COMPRA_DETALLE SCD ON SC.COD_SOLICITUD_COMPRA = SCD.COD_SOLICITUD_COMPRA \" +\n \" INNER JOIN MATERIALES M ON SCD.COD_MATERIAL=M.COD_MATERIAL \" +\n \" INNER JOIN UNIDADES_MEDIDA UM ON SCD.COD_UNIDAD_MEDIDA = UM.COD_UNIDAD_MEDIDA \" +\n \" WHERE SM.COD_SOLICITUD_MANTENIMIENTO = '\" + codSolicitudMantenimiento + \"'\";\n\n ResultSet rs = st.executeQuery(consulta);\n\n rs.last();\n int filas = rs.getRow();\n //programaProduccionList.clear();\n rs.first();\n materialesEnEsperaOrdenDeCompra.clear();\n for (int i = 0; i < filas; i++) {\n\n itemMateriales = new MaterialesSolicitudMantenimiento();\n itemMateriales.setCodSolicitudMantenimiento(rs.getString(\"COD_SOLICITUD_MANTENIMIENTO\"));\n itemMateriales.setCodMaterial(rs.getString(\"COD_MATERIAL\"));\n itemMateriales.setNombreMaterial(rs.getString(\"NOMBRE_MATERIAL\"));\n itemMateriales.setCodUnidadMedida(rs.getString(\"COD_UNIDAD_MEDIDA\"));\n itemMateriales.setNombreUnidadMedida(rs.getString(\"NOMBRE_UNIDAD_MEDIDA\"));\n itemMateriales.setCantidadSugerida(rs.getString(\"CANT_SOLICITADA\"));\n itemMateriales.setDisponible(this.getDisponible(rs.getString(\"COD_MATERIAL\")));\n\n materialesEnEsperaOrdenDeCompra.add(itemMateriales);\n rs.next();\n }\n if (rs != null) {\n rs.close();\n st.close();\n }\n this.getEstadoSolicitudCompraMateriales();\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public DcMotor[] getMotors(){\n return this.motors;\n }", "public void datosBundle()\n {\n //creamos un Bundle para recibir los datos de MascotasFavoritas al presionar el boton de atras en la ActionBar\n Bundle datosBundleAtras = getActivity().getIntent().getExtras();\n //preguntamos si este objeto viene con datos o esta vacio\n if(datosBundleAtras!=null)\n {//si hay datos estos se los agregamos a un ArrayList de mascotas\n mascotas = (ArrayList<Mascota>) datosBundleAtras.getSerializable(\"listamascotasatras\");\n }else{\n //si el bundle No trae datos entonces se inicializara la lista con datos\n validarBundle=1;\n //return;\n }\n }", "List<IMotion> getMotions();", "public Medico getMedicoRandom(){\r\n Medico m=null;\r\n Guardia t;\r\n int cantidad=0;\r\n Guardia s;\r\n for (int i = 0; i < medicosenfermeras.size(); i++) {\r\n s= medicosenfermeras.get(i);\r\n if (s instanceof Medico) {\r\n cantidad++;\r\n }\r\n }\r\n Medico[] mm= new Medico[cantidad];\r\n int Min=0,Max=mm.length,numero;\r\n numero=(int) (Math.random() *(Max-Min)+Min);\r\n m=mm[numero]; \r\n return m;\r\n }", "private void cargarRemisiones() {\r\n\t\tMap<String, Object> parametros = new HashMap<String, Object>();\r\n\t\tparametros.put(\"nro_identificacion\",\r\n\t\t\t\tadmision_seleccionada.getNro_identificacion());\r\n\t\tparametros.put(\"nro_ingreso\", admision_seleccionada.getNro_ingreso());\r\n\t\tparametros.put(\"estado\", admision_seleccionada.getEstado());\r\n\t\tparametros.put(\"tipo_hc\", \"\");\r\n\t\tparametros.put(IVias_ingreso.ADMISION_PACIENTE, admision_seleccionada);\r\n\r\n\t\ttabboxContendor.abrirPaginaTabDemanda(false,\r\n\t\t\t\tIRutas_historia.PAGINA_REMISIONES, \"REMISIONES\", parametros);\r\n\t}", "private void actualizarCampos(){\n obtenerPreguntasConRespuestas();\n actualizarRespuestasActuales();\n \n _opcionMultiple.actualizarPregunta(obtenerPregunta());\n _opcionMultiple.actualizarOpcion1(\"<html>\"+_respuestasActuales.get(0).getRespuesta()+\"</html>\");\n _opcionMultiple.actualizarOpcion2(\"<html>\"+_respuestasActuales.get(1).getRespuesta()+\"</html>\");\n _opcionMultiple.actualizarOpcion3(\"<html>\"+_respuestasActuales.get(2).getRespuesta()+\"</html>\");\n _opcionMultiple.actualizarOpcion4(\"<html>\"+_respuestasActuales.get(3).getRespuesta()+\"</html>\");\n \n if(_respuestaUsuario.size()>_posicion){\n _opcionMultiple.limpiarSelecciones();\n int numeroRespuesta = _respuestasActuales.indexOf(_respuestaUsuario.get(_posicion));\n _opcionMultiple.selecionarOpcion(numeroRespuesta);\n }else{\n _opcionMultiple.limpiarSelecciones();\n }\n }", "public List<EntradaDeMaterial> buscarEntradasDisponibles(Almacen a);", "@Override\n\tpublic long unidadesComida() {\n\t\treturn 3;\n\t}", "private void carregarAlunosTurma() {\n AcessoFirebase.getFirebase().addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n getUidUsuariosTurma(dataSnapshot);\n montandoArrayListUsuarios(dataSnapshot);\n }\n @Override\n public void onCancelled(DatabaseError databaseError) {\n }\n });\n }", "private void dibujarArregloCamionetas() {\n\n timerCrearEnemigo += Gdx.graphics.getDeltaTime();\n if (timerCrearEnemigo>=TIEMPO_CREA_ENEMIGO) {\n timerCrearEnemigo = 0;\n TIEMPO_CREA_ENEMIGO = tiempoBase + MathUtils.random()*2;\n if (tiempoBase>0) {\n tiempoBase -= 0.01f;\n }\n\n camioneta= new Camioneta(texturaCamioneta,ANCHO,60f);\n arrEnemigosCamioneta.add(camioneta);\n\n\n }\n\n //Si el vehiculo se paso de la pantalla, lo borra\n for (int i = arrEnemigosCamioneta.size-1; i >= 0; i--) {\n Camioneta camioneta1 = arrEnemigosCamioneta.get(i);\n if (camioneta1.sprite.getX() < 0- camioneta1.sprite.getWidth()) {\n arrEnemigosCamioneta.removeIndex(i);\n\n }\n }\n }", "public void limpiarMemoria();", "public String[] ListarDPIEnfermeras(){\r\n int cantidad=0;\r\n Guardia s;\r\n for (int i = 0; i < medicosenfermeras.size(); i++) {\r\n s= medicosenfermeras.get(i);\r\n if (s instanceof Enfermera) {\r\n cantidad++;\r\n }\r\n }\r\n \r\n String[] DPIEnfermeras= new String[cantidad];\r\n Guardia t;\r\n int m=0;\r\n for (int i = 0; i < medicosenfermeras.size(); i++) {\r\n t=medicosenfermeras.get(i);\r\n if (t instanceof Enfermera) {\r\n DPIEnfermeras[m]=t.getNit();\r\n m++;\r\n }\r\n }\r\n \r\n return DPIEnfermeras;\r\n }", "@Override\n\tvoid geraDados() {\n\n\t}", "private void getRecepcionSeros(){\n mRecepcionSeros = estudioAdapter.getListaRecepcionSeroSinEnviar();\n //ca.close();\n }", "public List<MesaCraps> getMesas() {\r\n\t\treturn mesas;\r\n\t}", "public void generTirarDados() {\n\r\n\t}", "@Override\n protected void getExras() {\n }", "public Mes getMesSeleccionado()\r\n/* 172: */ {\r\n/* 173:217 */ return this.mesSeleccionado;\r\n/* 174: */ }", "private void getObjects() {\n\t\tmeteors = go.getMeteors();\n\t\texplosions = go.getExplosions();\n\t\ttargets = go.getTargets();\n\t\tcrosses = go.getCrosses();\n\t\trockets = go.getRockets();\n\t\tearth = go.getEarth();\n\t}", "public Collection<Transferencia> traerTodasLasTransferencias() {\n Collection<Transferencia> resultado = null;\n try {\n controlTransferencia = new ControlTransferencia();\n bitacora.info(\"Registro Transferencia Iniciado correctamente\");\n resultado = controlTransferencia.traerTodasLasTransferencias();\n } catch (IOException ex) {\n bitacora.error(\"No se pudo iniciar el registro Transferencia por \" + ex.getMessage());\n }\n return resultado;\n }", "@Override\n\tpublic Vehiculo leerVehiculos(String matricula) {\n\t\treturn null;\n\t}", "public ArrayList<String> getModelos(String marca){\n \n ArrayList<String> modelos;\n modelos = modeloscarros.getModelo(marca);\n return modelos;\n }", "private void getPinchazos(){\n mPinchazos = estudioAdapter.getListaPinchazosSinEnviar();\n //ca.close();\n }", "private static void crearMuebles(Mueble[] muebles, Almacen[] almacenes) {\n\t\tfor (int i = 0; i < 15; i++) {\n\t\t\tmuebles[i] = new Mueble(\"mueble \"+ (i + 1) , 3, 3, 3);\n\t\t\t//hacemos aqui la asignacion de almacenes con random\n\t\t\tif(muebles[i].getAsignado()==false){\n\t\t\t\talmacenes[(int)(Math.random()*4)].guardarMueble(muebles[i]);\n\t\t\t\tmuebles[i].setAsignado(true);\n\t\t\t}\n\t\t}\n\t}", "private void llenarEntidadConLosDatosDeLosControles() {\n clienteActual.setNombre(txtNombre.getText());\n clienteActual.setApellido(txtApellido.getText());\n clienteActual.setDui(txtDui.getText());\n //clienteActual.setNumero(txtNumero.getText());\n //clienteActual.setNumero(Integer.parseInt(this.txtNumero.getText()));\n clienteActual.setNumero(Integer.parseInt(this.txtNumero.getText()));\n }", "private void cargarJugadoresEnMesa() {\n\n\t\tString nombreFichero = String.format(\"jugadoresEnMesa%d.csv\", id);\n\n\t\tthis.jugadoresEnMesa = GestionCSV.obtenerJugadores(nombreFichero);\n\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}", "public void loadMensajes() {\r\n\t\t// Carga mensajes\r\n\t\tinfoDebug(\"Vista\", \"Cargando mensajes\");\r\n\t\tmensajesEntrantes = getMensajesEntrantes(getEmpleadoActual().getEmplId(), 0, num_men_hoja);\r\n\t\tinfoDebug(\"Vista\", \"Acabado\");\r\n\t}" ]
[ "0.6501033", "0.6316506", "0.60450566", "0.6021099", "0.59985715", "0.5949243", "0.5788021", "0.5764112", "0.5722227", "0.5717609", "0.57126147", "0.5710203", "0.56982476", "0.5697404", "0.56337637", "0.56173134", "0.56122124", "0.56009007", "0.5589233", "0.5585401", "0.558438", "0.5569992", "0.5566041", "0.55596703", "0.5558371", "0.5555836", "0.55532724", "0.55502015", "0.5530383", "0.5528445", "0.55255604", "0.5513842", "0.5476592", "0.54687446", "0.5446261", "0.54451555", "0.54407847", "0.5423111", "0.5411721", "0.54094446", "0.54058456", "0.5401915", "0.53985506", "0.53965545", "0.5390306", "0.5371084", "0.53664684", "0.5351347", "0.5350326", "0.5349549", "0.5341918", "0.5338658", "0.5338169", "0.53372043", "0.533581", "0.53297025", "0.5322721", "0.53208774", "0.53197753", "0.53181785", "0.53170615", "0.5311616", "0.530244", "0.52896214", "0.528461", "0.5283705", "0.5283672", "0.5280411", "0.5277745", "0.5271088", "0.52660394", "0.52648824", "0.52506435", "0.5245895", "0.52451736", "0.5243623", "0.5240636", "0.52336377", "0.5233158", "0.52330977", "0.5216982", "0.5216703", "0.5213756", "0.52107733", "0.52064633", "0.52059287", "0.5204862", "0.5204285", "0.51955", "0.518722", "0.51869965", "0.51860034", "0.5183487", "0.51826143", "0.5176943", "0.51752466", "0.517072", "0.5164285", "0.5161427", "0.5160859", "0.51603323" ]
0.0
-1
Obtener las opciones a modificad a partir del PK.
public List<OptionModResult> _obtainOptionModResultsByOptionId(final int intOptionId) { String[] selectionArgs = new String[] { String.valueOf(intOptionId) }; Cursor cursor = activity.getContentResolver().query( OptionModResultDAO.QUERY_BY_OPTIONID_URI, null, null, selectionArgs, null); List<OptionModResult> lstResult = OptionModResultDAO.createObjects(cursor); cursor.close(); return lstResult; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "LogicalTableModify.Operation getTableModOp();", "int updateByPrimaryKeySelective(EpermissionDO record);", "int updateByPrimaryKeySelective(Access record);", "int updateByPrimaryKeySelective(Admin record);", "int updateByPrimaryKeySelective(ErpOaLicKey record);", "int updateByPrimaryKeySelective(Permission record);", "int updateByPrimaryKeySelective(AdminTab record);", "int updateByPrimaryKeySelective(Tipologia record);", "private void opciones() {\n switch (cboTipo.getSelectedIndex()) {\n case 1:\n txtPractica.setEditable(false);\n txtLaboratorio.setEditable(false);\n txtTrabajo.setEditable(false);\n break;\n case 2:\n txtPractica.setEditable(true);\n txtLaboratorio.setEditable(false);\n txtTrabajo.setEditable(false);\n break;\n case 3:\n txtPractica.setEditable(true);\n txtLaboratorio.setEditable(true);\n txtTrabajo.setEditable(false);\n break;\n case 4:\n txtPractica.setEditable(true);\n txtLaboratorio.setEditable(true);\n txtTrabajo.setEditable(true);\n break;\n }\n\n }", "public boolean isModified() {\n return MTBTypesKey_is_modified || \n type_is_modified || \n description_is_modified || \n tableName_is_modified || \n columnName_is_modified || \n createUser_is_modified || \n createDate_is_modified || \n updateUser_is_modified || \n updateDate_is_modified;\n }", "int updateByPrimaryKeySelective(AccessKeyRecordEntity record);", "int updateByPrimaryKeySelective(AccessModelEntity record);", "int updateByPrimaryKeySelective(ClOrderInfo record);", "int updateByPrimaryKeySelective(Movimiento record);", "int updateByPrimaryKeySelective(Disproduct record);", "int updateByPrimaryKey(EpermissionDO record);", "public void editOperation() {\n\t\t\r\n\t}", "int updateByPrimaryKeySelective(PensionRoleMenu record);", "int updateByPrimaryKeySelective(EquipmentOrder record);", "int updateByPrimaryKeySelective(ParUsuarios record);", "private void conmuteFields() {\r\n\t\ttxPassword.setEditable(!txPassword.isEditable());\r\n\t\ttxUsuario.setEditable(!txUsuario.isEditable());\r\n\t\tcheckAdmin.setDisable(!checkAdmin.isDisable());\r\n\t\tcheckTPV.setDisable(!checkTPV.isDisable());\r\n\t}", "public void modifierVie(int modificationVie);", "int updateByPrimaryKeySelective(R_order record);", "public void setModifiers(int modifiers);", "int updateByPrimaryKeySelective(CartDO record);", "@Override\r\n\tpublic int modify(PaymentPO po) {\n\t\treturn 0;\r\n\t}", "@Override\n\tpublic int admin_modify(BoardVO obj) {\n\t\treturn 0;\n\t}", "public boolean ModificarProducto(int id,String nom,String fab,int cant,int precio,String desc,int sucursal) {\n boolean status=false;\n int res =0;\n try {\n conectar(); \n res=state.executeUpdate(\"update producto set nombreproducto='\"+nom+\"', fabricante='\"+fab+\"',cantidad=\"+cant+\",precio=\"+precio+\",descripcion='\"+desc+\"',idsucursal=\"+sucursal+\" where idproducto=\"+id+\";\");\n if(res>=1)\n {\n status=true;\n }\n con.close();\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n return status;\n }", "public int getModifiers() {\n return mod;\n }", "int updateByPrimaryKeySelective(Order record);", "int getModifiers();", "int getModifiers();", "int updateByPrimaryKeySelective(PrefecturesMt record);", "int updateByPrimaryKeySelective(OrderPreferential record) throws SQLException;", "int updateByPrimaryKeySelective(TDictAreas record);", "int updateByPrimaryKeySelective(Powers record);", "public void setModifiers(int mod) {\n int old = this.mod;\n this.mod = mod;\n firePropertyChange (PROP_MODIFIERS, new Integer (old), new Integer (mod));\n }", "int updateByPrimaryKeySelective(PmKeyDbObj record);", "public String editar()\r\n/* 59: */ {\r\n/* 60: 74 */ if ((getMotivoLlamadoAtencion() != null) && (getMotivoLlamadoAtencion().getIdMotivoLlamadoAtencion() != 0)) {\r\n/* 61: 75 */ setEditado(true);\r\n/* 62: */ } else {\r\n/* 63: 77 */ addInfoMessage(getLanguageController().getMensaje(\"msg_info_seleccionar\"));\r\n/* 64: */ }\r\n/* 65: 79 */ return \"\";\r\n/* 66: */ }", "int updateByPrimaryKeySelective(MenuInfo record);", "@Override\r\n\tpublic int updPermission(Permission perms) {\n\t\treturn 0;\r\n\t}", "int updateByPrimaryKeySelective(UserPasswordDO record);", "int updateByPrimaryKeySelective(CraftAdvReq record);", "int updateByPrimaryKeySelective(FileRecordAdmin record);", "@Override\n\tpublic int updateByPrimaryKeySelective(Permis record) {\n\t\treturn 0;\n\t}", "int updateByPrimaryKeySelective(Prueba record);", "int updateByPrimaryKeySelective(Orderall record);", "int updateByPrimaryKey(ErpOaLicKey record);", "int updateByPrimaryKeySelective(Commet record);", "int updateByPrimaryKeySelective(TCar record);", "int updateByPrimaryKeySelective(UserOperateProject record);", "int updateByPrimaryKeySelective(NjOrderWork2 record);", "int updateByPrimaryKeySelective(OrderDetail record);", "@Override\r\n\tpublic int updateByPrimaryKeySelective(Remark record) {\n\t\treturn 0;\r\n\t}", "private RecordSet armaRSetFinalAceptarModificar(RecordSet r, RecordSet rAccesos)\n {\n \n UtilidadesLog.info(\"DAOGestionComisiones.armaRSetFinalAceptarModificar(RecordSet r, RecordSet rAccesos): Entrada\");\n\n UtilidadesLog.debug(\"***** RecordSet entrada: \" + r);\n UtilidadesLog.debug(\"***** RecordSet entrada: \" + rAccesos); \n \n for (int i = 0; i < r.getRowCount(); i++)\n {\n String descAcceso = (String) rAccesos.getValueAt(i,1);\n //Long oidAcceso = new Long( bigOidAcceso.longValue() );\n r.setValueAt(descAcceso, i,7);\n }\n \n UtilidadesLog.debug(\"***** RecordSet modificado: \" + r);\n UtilidadesLog.info(\"DAOGestionComisiones.armaRSetFinalAceptarModificar(RecordSet r, RecordSet rAccesos): Salida\");\n return r; \n }", "public String editar()\r\n/* 86: */ {\r\n/* 87:112 */ if (getDimensionContable().getId() != 0)\r\n/* 88: */ {\r\n/* 89:113 */ this.dimensionContable = this.servicioDimensionContable.cargarDetalle(this.dimensionContable.getId());\r\n/* 90:114 */ String[] filtro = { \"indicadorValidarDimension\" + getDimension(), \"true\" };\r\n/* 91:115 */ this.listaCuentaContableBean.agregarFiltro(filtro);\r\n/* 92:116 */ this.listaCuentaContableBean.setIndicadorSeleccionarTodo(true);\r\n/* 93:117 */ verificaDimension();\r\n/* 94:118 */ setEditado(true);\r\n/* 95: */ }\r\n/* 96: */ else\r\n/* 97: */ {\r\n/* 98:120 */ addInfoMessage(getLanguageController().getMensaje(\"msg_info_seleccionar\"));\r\n/* 99: */ }\r\n/* 100:123 */ return \"\";\r\n/* 101: */ }", "protected void setOpc(int opc) {\n this.opc = opc;\n }", "public void resetIsModified() {\n MTBTypesKey_is_modified = false;\n type_is_modified = false;\n description_is_modified = false;\n tableName_is_modified = false;\n columnName_is_modified = false;\n createUser_is_modified = false;\n createDate_is_modified = false;\n updateUser_is_modified = false;\n updateDate_is_modified = false;\n }", "@Override\n\tpublic void posModify() {\n\t\tgetEntityManager().refresh(instance);\n\t\tcambiarTipoCuenta(instance);\n\t\tgetEntityManager().flush();\n\t\tgetEntityManager().refresh(instance);\n\t\tresultList = null;\n\t\trootNode = null;\n\t}", "int updateByPrimaryKeySelective(OrderDetails record);", "public boolean ModificarUsuario(Usuario creador, int id, String nombreMostrar, boolean admin,int tipoPersonal,int tipodescuento, boolean notas, boolean habilitacion,boolean profesor, int ciProfesor){\r\n if (creador.isAdmin()){\r\n try {\r\n String sql= \"Update sistemasEM.usuarios set mostrar=?, admin=?, permisosPersonal=?, permisosDescuento=?, notas=?, habilitacion=?, profesor=?,ciProfesor=? where id=\"+id;\r\n PreparedStatement s= connection.prepareStatement(sql);\r\n int i=1;\r\n s.setString(i++, nombreMostrar);\r\n s.setBoolean(i++, admin);\r\n s.setInt(i++, tipoPersonal);\r\n s.setInt(i++, tipodescuento);\r\n s.setBoolean(i++, notas);\r\n s.setBoolean(i++, habilitacion);\r\n s.setBoolean(i++, profesor);\r\n s.setInt(i++, ciProfesor);\r\n int result = s.executeUpdate();\r\n if(result>0){\r\n return true;\r\n }\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ManejadorCodigoBD.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n return false;\r\n }", "int updateByPrimaryKeySelective(SysRoleDO record);", "int updateByPrimaryKeySelective(SysCode record);", "int updateByPrimaryKeySelective(PasswordCard record);", "int updateByPrimaryKeySelective(GoodsPo record);", "@Override\n\tpublic int update(Subordination entity) throws DBOperationException {\n\t\treturn 0;\n\t}", "int updateByPrimaryKeySelective(Cargo record);", "int updateByPrimaryKeySelective(BasicInfoPrecursorProcessType record);", "public int updateByPrimaryKeySelective(TbAdminMenu record) {\n int rows = getSqlMapClientTemplate().update(\"tb_admin_menu.ibatorgenerated_updateByPrimaryKeySelective\", record);\n return rows;\n }", "int updateByPrimaryKeySelective(AdminUser record);", "int updateByPrimaryKeySelective(AdminUser record);", "int updateByPrimaryKeySelective(SysNotice record);", "int updateByPrimaryKeySelective(HelpInfo record);", "int updateByPrimaryKeySelective(AccuseInfo record);", "int updateByPrimaryKeySelective(ItoProduct record);", "@Override\n\tpublic void doUpdatePerm(String roleId, String addIds, String delIds) throws Exception {\n\t\tRole role=(Role) repertory.findById(Role.class, roleId);\n\t\tif(role==null){\n\t\t\tthrow new Exception(\"角色未找到\");\n\t\t}\n\t\tString[] addIdsArray=addIds.split(StringVeriable.STR_SPLIT);\n\t\t/**删除权限的操作*/\n\t\tString[] delIdsArray=delIds.split(StringVeriable.STR_SPLIT);\n\t\t/**增加权限的操作*/\n\t\tfor(String addId:addIdsArray){\n\t\t\tif(StringUtil.isEmpty(addId)){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tPermission perm=(Permission) repertory.getEntityByHql(\" from Permission where perCode='\"+addId+\"' and perType='\"+PermType.TYPE_MENU+\"'\");\n\t\t\t//权限已经存在,直接建立关系\n\t\t\tif(perm!=null){\n\t\t\t\tString insertSql=\"insert into ROLE_PERM(roleId,perId) values('\"+role.getRoleId()+\"','\"+perm.getPerId()+\"')\";\n\t\t\t\trepertory.executeSql(insertSql);\n\t\t\t}else{\n\t\t\t\tperm=new Permission();\n\t\t\t\tperm.setPerCode(addId);\n\t\t\t\tperm.setPerType(PermType.TYPE_MENU);\n\t\t\t\trepertory.save(perm);\n\t\t\t\t//先提交到数据库存在进行并联\n\t\t\t\trepertory.flush();\n\t\t\t\tString insertSql=\"insert into ROLE_PERM(roleId,perId) values('\"+role.getRoleId()+\"','\"+perm.getPerId()+\"')\";\n\t\t\t\trepertory.executeSql(insertSql);\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tfor(String delId:delIdsArray){\n\t\t\tif(StringUtil.isEmpty(delId)){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tPermission perm=(Permission) repertory.getEntityByHql(\" from Permission where perCode='\"+delId+\"' and perType='\"+PermType.TYPE_MENU+\"'\");\n\t\t\tif(perm!=null){\n\t\t\t\t//解除关系\n\t\t\t\tString delSql=\"delete from ROLE_PERM where perId='\"+perm.getPerId()+\"' and roleId='\"+role.getRoleId()+\"'\";\n\t\t\t\trepertory.executeSql(delSql);\n\t\t\t}\n\t\t}\n\t}", "public String getModifyOperator() {\n\t\treturn modifyOperator;\n\t}", "int updateByPrimaryKeySelective(TSortOrder record);", "int updateByPrimaryKeySelective(UsrMmenus record);", "int updateByPrimaryKeySelective(SysRoleFunction record);", "int updateByPrimaryKeySelective(NjProductTaticsRelation record);", "@Override\n public int characteristics() {\n return ORDERED | NONNULL | IMMUTABLE;\n }", "@Override\n\tpublic void alterar(Parcela entidade) {\n\n\t}", "@Override\n public void alterar(EntidadeDominio entidade) throws SQLException\n {\n\t\n }", "int updateByPrimaryKeySelective(SysRole record);", "public void setEditablePlaCta(boolean editable)\n {\n if (editable==true)\n {\n objTblModPlaCta.setModoOperacion(objTblModPlaCta.INT_TBL_INS);\n }\n else\n {\n objTblModPlaCta.setModoOperacion(objTblModPlaCta.INT_TBL_NO_EDI);\n }\n }", "public boolean doModify() {\n return true;\n }", "int updateByPrimaryKeySelective(MrpConfigSettingsEntity record);", "int updateByPrimaryKeySelective(Product record);", "int updateByPrimaryKeySelective(DrpCommissionRule record);", "int updateByPrimaryKeySelective(UserRole record);", "int updateByPrimaryKeySelective(UserRole record);", "int updateByPrimaryKeySelective(WfCfgModuleCatalog record);", "@Override\r\n\tpublic int updateByPrimaryKeySelective(Byip record) {\n\t\treturn 0;\r\n\t}", "int updateByPrimaryKeySelective(SysAuthentication record);", "int updateByPrimaryKeySelective(Notice record);", "int updateByPrimaryKeySelective(FunctionInfo record);", "int updateByPrimaryKeySelective(Storage record);", "int updateByPrimaryKeySelective(Storage record);", "int updateByPrimaryKeySelective(PasswdDo record);", "int updateByPrimaryKeySelective(MedicalOrdersExecutePlan record);" ]
[ "0.57834625", "0.57078916", "0.5403622", "0.5394886", "0.5382373", "0.5370026", "0.536926", "0.5343358", "0.5330672", "0.52969533", "0.5294046", "0.52807814", "0.5261671", "0.5252694", "0.5245595", "0.5243883", "0.5229022", "0.5226259", "0.52199966", "0.52186495", "0.5216893", "0.52096385", "0.5181234", "0.5172629", "0.51689035", "0.5150129", "0.5144531", "0.5143709", "0.51434654", "0.5141736", "0.514137", "0.514137", "0.5128329", "0.51224554", "0.51163435", "0.5116164", "0.5113634", "0.5107476", "0.5097548", "0.50968975", "0.5096672", "0.50945705", "0.50823027", "0.50811505", "0.50657743", "0.5062904", "0.50574017", "0.505584", "0.5040217", "0.50388676", "0.5037582", "0.5034697", "0.5029778", "0.5026961", "0.50266373", "0.50221974", "0.5022148", "0.5020994", "0.50200343", "0.5017709", "0.5011465", "0.5006433", "0.5006246", "0.5003941", "0.5000192", "0.5000072", "0.4998954", "0.4994028", "0.49916255", "0.49897757", "0.49897757", "0.49800932", "0.49755982", "0.49706194", "0.49697793", "0.49613172", "0.4953235", "0.49523014", "0.49512446", "0.49437496", "0.4937274", "0.49358132", "0.4934584", "0.49316463", "0.49289355", "0.49235854", "0.49195814", "0.49176455", "0.49156886", "0.49134248", "0.49117425", "0.49117425", "0.4903701", "0.4903007", "0.4901021", "0.48969826", "0.4891161", "0.48906475", "0.48906475", "0.4890566", "0.4889567" ]
0.0
-1
Obtener todas las opciones con estado diferente a 1.
public List<Option> _obtainAllNonAvailableOptions() { Cursor cursor = activity.getContentResolver().query( OptionDAO.QUERY_NON_AVAILABLE_OPTIONS_URI, null, null, null,null); ArrayList<Option> lstResult = OptionDAO.createObjects(cursor); cursor.close(); return lstResult; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void setOpc(int opc) {\n this.opc = opc;\n }", "public void ejercicio01() {\r\n\t\tcabecera(\"01\",\"Seleccion de opciones\");\r\n\r\n\t\tRectangulo rectangulo=new Rectangulo(10,5);\r\n\t\tSystem.out.println(\"Introduce una opcion (1 - Area, 2 - Perimetro):\");\r\n\t\t// Inicio modificacion\r\n \r\n int opcionSelecionada = Teclado.readInteger();\r\n\r\n if (opcionSelecionada==1) {\r\n \tSystem.out.println(rectangulo.getArea());\r\n }else{\r\n \tSystem.out.println(rectangulo.getPerimetro());\r\n }\r\n\t\t\r\n\t\t// Fin modificacion\r\n\t}", "private void selecionarOpcoesDeBackup() {\n try {\n if (dao.opcaoDeBackupAtual().equals(\"Não fazer Backup Automático\")) {\n rbNãofazerBackup.setSelected(true);\n }\n if (dao.opcaoDeBackupAtual().equals(\"Fazer Backup na Entrada\")) {\n rbFazerBackupnaEntrada.setSelected(true);\n }\n if (dao.opcaoDeBackupAtual().equals(\"Fazer Backup na Saída\")) {\n rbFazerBackupnaSaída.setSelected(true);\n }\n if (dao.opcaoDeBackupAtual().equals(\"Fazer Backup na Entrada e na Saída\")) {\n rbFazerBackupnaEntradaenaSaida.setSelected(true);\n }\n } catch (SQLException ex) {\n Logger.getLogger(Backup.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public char getopcion(){\n return opciones;\n }", "@Test\r\n public void testVerificaPossibilidade8() {\r\n usucapiao.setAnimusDomini(true);\r\n usucapiao.setPosseMansa(true);\r\n usucapiao.setPossePassifica(true);\r\n usucapiao.setPosseIninterrupta(true);\r\n usucapiao.setBemComumCasal(true);\r\n usucapiao.setCompanheiroAbandonou(true);\r\n usucapiao.setRegistroDeOutroImovel(true);\r\n usucapiao.setTamanhoTerreno(250);\r\n usucapiao.setPrazo(1);\r\n String result = usucapiao.verificaRequisitos();\r\n assertEquals(\"possivel-depois\", result);\r\n }", "public void setOptions(){\n System.out.println(\"¿Que operacion desea realizar?\");\n System.out.println(\"\");\n System.out.println(\"1- Consultar sus datos\");\n System.out.println(\"2- Ingresar\");\n System.out.println(\"3- Retirar\");\n System.out.println(\"4- Transferencia\");\n System.out.println(\"5- Consultar saldo\");\n System.out.println(\"6- Cerrar\");\n System.out.println(\"\");\n}", "private static void gestionarOpciones(int opcion) {\r\n\t\tswitch (opcion) {\r\n\t\tcase 1:\r\n\t\t\tSystem.out.println(\"\\nMuestro la opci\\u00f3n \"+ opcion);\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tSystem.out.println(\"\\nMuestro la opci\\u00f3n \"+ opcion);\r\n\t\t\tbreak;\r\n\t\tcase 3:\r\n\t\t\tSystem.out.println(\"\\nMuestro la opci\\u00f3n \"+ opcion);\r\n\t\t\tbreak;\r\n\t\tcase 4:\r\n\t\t\tSystem.out.println(\"\\nMuestro la opci\\u00f3n \"+ opcion);\r\n\t\t\tbreak;\t\t\r\n\t\t}\t\t\r\n\t}", "@Test\r\n public void testVerificaPossibilidade9() {\r\n usucapiao.setAnimusDomini(true);\r\n usucapiao.setPosseMansa(true);\r\n usucapiao.setPossePassifica(true);\r\n usucapiao.setPosseIninterrupta(true);\r\n usucapiao.setBemComumCasal(true);\r\n usucapiao.setCompanheiroAbandonou(true);\r\n usucapiao.setRegistroDeOutroImovel(true);\r\n usucapiao.setTamanhoTerreno(250);\r\n usucapiao.setPrazo(2);\r\n String result = usucapiao.verificaRequisitos();\r\n assertEquals(\"possivel-agora\", result);\r\n }", "public PanelOpciones getOpciones() {\n\t\treturn opciones;\n\t}", "@Test\r\n public void testVerificaPossibilidade5() {\r\n usucapiao.setAnimusDomini(true);\r\n usucapiao.setPosseMansa(true);\r\n usucapiao.setPossePassifica(true);\r\n usucapiao.setPosseIninterrupta(true);\r\n usucapiao.setBemComumCasal(true);\r\n String result = usucapiao.verificaRequisitos();\r\n assertEquals(\"false\", result);\r\n }", "@Test\r\n public void testVerificaPossibilidade4() {\r\n usucapiao.setAnimusDomini(true);\r\n usucapiao.setPosseMansa(true);\r\n usucapiao.setPossePassifica(true);\r\n usucapiao.setPosseIninterrupta(true);\r\n String result = usucapiao.verificaRequisitos();\r\n assertEquals(\"false\", result);\r\n }", "public static int obterOpcaoMenu(Scanner sc) {\n\t\t//flag iniciando com o valor false\n\t\tboolean entradaValida = false;\n\t\t//opcao comeca com valor 3\n\t\tint opcao =3;\n\t\t//coletar dados para o menu\n\t\twhile(!entradaValida) {\n\t\tSystem.out.println(\"Digite a opcao desejada\");\n\t\tSystem.out.println(\"Digite (1) Consultar Contato\");\n\t\tSystem.out.println(\"Digite (2) Criar Contato\");\n\t\tSystem.out.println(\"Digite (3) Sair\");\n\t\t\n\t\t\n\t\ttry {\n\t\t\tString entrada= sc.nextLine();\n\t\t\t//mudando o valor de String para int\n\t\t\topcao = Integer.parseInt(entrada);\n\t\t\t//se qualquer uns desses botoes for selecionado mude para true a flag\n\t\t\tif(opcao ==1 || opcao ==2 || opcao==3) {\n\t\t\t\tentradaValida = true;\n\t\t\t\t\n\t\t\t}else {\n\t\t\t\tentradaValida = false;\n\t\t\t\tthrow new Exception(\"Entrada invalida\");\n\t\t\t}\n\t\t}catch(Exception e) {\n\t\t\tSystem.out.println(\"entrada invalida digite novamente\\n\");\n\t\t}\n\t\t}\n\t\treturn opcao;\n\t}", "@Test\r\n public void testVerificaPossibilidade6() {\r\n usucapiao.setAnimusDomini(true);\r\n usucapiao.setPosseMansa(true);\r\n usucapiao.setPossePassifica(true);\r\n usucapiao.setPosseIninterrupta(true);\r\n usucapiao.setBemComumCasal(true);\r\n usucapiao.setCompanheiroAbandonou(true);\r\n String result = usucapiao.verificaRequisitos();\r\n assertEquals(\"false\", result);\r\n }", "public short getOptions()\n {\n return field_1_options;\n }", "@Test\r\n public void testVerificaPossibilidade3() {\r\n usucapiao.setAnimusDomini(true);\r\n usucapiao.setPosseMansa(true);\r\n usucapiao.setPossePassifica(true);\r\n String result = usucapiao.verificaRequisitos();\r\n assertEquals(\"false\", result);\r\n }", "@Test\n\tpublic void peorCasoOrderAndSelectTest() {\n\t\tint longitud = 16;\n\t\tInteger[] conjunto = new Integer[longitud];\n\t\tfor (int i = 0; i < conjunto.length; i++)\n\t\t\tconjunto[i] = 1; \n\t\tint k = longitud - 1;\n\t\tassertEquals(new Integer(15), buscador.buscarEstadisticoDeOrdenK(conjunto, k));\n\t}", "@Test\r\n public void testVerificaPossibilidade2() {\r\n usucapiao.setAnimusDomini(true);\r\n usucapiao.setPosseMansa(true);\r\n String result = usucapiao.verificaRequisitos();\r\n assertEquals(\"false\", result);\r\n }", "private void opciones() {\n switch (cboTipo.getSelectedIndex()) {\n case 1:\n txtPractica.setEditable(false);\n txtLaboratorio.setEditable(false);\n txtTrabajo.setEditable(false);\n break;\n case 2:\n txtPractica.setEditable(true);\n txtLaboratorio.setEditable(false);\n txtTrabajo.setEditable(false);\n break;\n case 3:\n txtPractica.setEditable(true);\n txtLaboratorio.setEditable(true);\n txtTrabajo.setEditable(false);\n break;\n case 4:\n txtPractica.setEditable(true);\n txtLaboratorio.setEditable(true);\n txtTrabajo.setEditable(true);\n break;\n }\n\n }", "@Test\r\n public void testVerificaPossibilidade7() {\r\n usucapiao.setAnimusDomini(true);\r\n usucapiao.setPosseMansa(true);\r\n usucapiao.setPossePassifica(true);\r\n usucapiao.setPosseIninterrupta(true);\r\n usucapiao.setBemComumCasal(true);\r\n usucapiao.setCompanheiroAbandonou(true);\r\n usucapiao.setRegistroDeOutroImovel(true);\r\n usucapiao.setTamanhoTerreno(251);\r\n String result = usucapiao.verificaRequisitos();\r\n assertEquals(\"false\", result);\r\n }", "public static int menubestias() {\r\n int op = Integer.parseInt(JOptionPane.showInputDialog(null, \"----Menu Bestias----\\n\"\r\n + \"1. Aguilas\\n\"\r\n + \"2. Arañas\\n\"\r\n + \"3. Balrogs\\n\"\r\n + \"4. Bestias aladas\\n\"\r\n + \"5. Dragones\", \"Menu de bestias pollonas\", JOptionPane.DEFAULT_OPTION));\r\n\r\n return op;\r\n }", "int getOptionsCount();", "int getOptionsCount();", "int getOptionsCount();", "public String getOpis() {\r\n\t\treturn opis;\r\n\t}", "protected int getProtocolReadyOps()\n {\n return m_nOpsReadyProtocol;\n }", "public static String[] generarOpcionesMenu() {\n\t\tString[] opcionesMenu = new String[VALUES.length + 1];\n\t\tint i = 0;\n\t\tfor (Modelo modelo : VALUES) {\n\t\t\topcionesMenu[i++] = modelo.name();\n\t\t}\n\t\topcionesMenu[i] = \"Salir\";\n\t\treturn opcionesMenu;\n\t}", "@Test\n\tpublic void mejorCasoOrderAndSelectTest() {\n\t\t// TODO!\n\t\tint longitud = 16;\n\t\tInteger[] conjunto = new Integer[longitud];\n\t\tfor (int i = 0; i < conjunto.length / 2; i++)\n\t\t\tconjunto[i] = 1;\n\t\tfor (int i = conjunto.length / 2; i < conjunto.length; i++)\n\t\t\tconjunto[i] = 2;\n\t\tint k = longitud - 1;\n\t\tassertEquals(new Integer(2), buscador.buscarEstadisticoDeOrdenK(conjunto, k));\n\t}", "public int switch_modes() {\r\n //when angle modes is selected power field is disabled\r\n if(angle_radio.isArmed()){\r\n power_combo.setDisable(true);\r\n power_combo.setOpacity(.5);\r\n }\r\n //Power Field is necessary for Powers mode\r\n else if(power_radio.isArmed()){\r\n power_combo.setDisable(false);\r\n power_combo.setOpacity(1);\r\n }\r\n //when Angle sum mode is selected power field is disabled\r\n else if(sum_radio.isArmed()){\r\n power_combo.setDisable(true);\r\n power_combo.setOpacity(.5);\r\n }\r\n //Returning values to switch whole Program's mode based on Radio buttons\r\n if(angle_radio.isSelected()) return -1;\r\n else if(power_radio.isSelected()) return -2;\r\n else if(sum_radio.isSelected()) return -3;\r\n return 0;\r\n }", "public Enumeration listOptions(){\n\n Vector newVector = new Vector(2);\n\n newVector.addElement(new Option(\n\t\t\t\t \"\\tNumber of attempts of generalisation.\\n\",\n\t\t\t\t \"G\", \n\t\t\t\t 1, \n\t\t\t\t \"-G <value>\"));\n newVector.addElement(new Option(\n\t\t\t\t \"\\tNumber of folder for computing the mutual information.\\n\",\n\t\t\t\t \"I\", \n\t\t\t\t 1, \n\t\t\t\t \"-I <value>\"));\n\n return newVector.elements();\n }", "int getOptLevelValue();", "@Override\r\n\tpublic int operar() {\n\t\treturn 0;\r\n\t}", "private void almacenarEstadisticas(String resultado){\n int nivel = palabraActual.getDificultad();\n String str_nivel = \"\";\n switch (nivel){\n case BaseDatos.B1: str_nivel = MainActivity.KEY_PET; break;\n case BaseDatos.B2: str_nivel = MainActivity.KEY_FIRST; break;\n case BaseDatos.C1: str_nivel = MainActivity.KEY_ADVANCED; break;\n }\n\n int contador;\n try {\n contador = PreferenceManager.getInt(str_nivel+resultado, this);\n } catch (Exception e) {\n contador = 0;\n }\n PreferenceManager.putInt(str_nivel+resultado,contador+1,this);\n almacenarFallos();\n }", "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}", "private static void menuOpciones() {\n // Hacemos un do para mostrar las opciones hasta que pulse la opción correcta\n int opcion;\n // Scanner nos sirve para analizar la entrada desde el teclado. Al usar new si estamos creando el objeto (lo veremos)\n Scanner in = new Scanner(System.in);\n\n System.out.println(\"Seleccione la opción\");\n System.out.println(\"1.- Cálculo de estadístcas de clase\");\n System.out.println(\"2.- Cálculo año bisiesto\");\n System.out.println(\"3.- Cálculo de Factorial\");\n System.out.println(\"4.- Primos Gemelos\");\n System.out.println(\"0.- Salir\");\n\n // Creamos un bucle do while y lo tenemos girando aquí hasta que meta estos valores\n // Pero sabemos que scanner va a \"petar\" si no le metemos algo que pueda hacer el casting\n // Ya lo solucionaremos\n do {\n System.out.println(\"Elija opción: \");\n opcion = in.nextInt();\n } while (opcion != 0 && opcion != 1 && opcion != 2 && opcion != 3 && opcion != 4);\n\n switch (opcion) {\n case 1:\n estadisticaClase();\n break;\n case 2:\n añoBisiesto();\n break;\n case 3:\n factorial();\n break;\n case 4:\n primosGemelos();\n break;\n case 0:\n despedida();\n break;\n // No hay default, porque por el do-while no puede llegar aquí con otro valor\n }\n\n // Y si queremos volver al menú cada vez que terminemos una opción?\n\n }", "public void verificaCambioEstado(int op) {\r\n try {\r\n if (Seg.getCodAvaluo() == 0) {\r\n mbTodero.setMens(\"Seleccione un numero de Radicacion\");\r\n mbTodero.warn();\r\n } else {\r\n mBRadicacion.Radi.setCodAvaluo(Seg.getCodAvaluo());\r\n if (op == 1) {\r\n RequestContext.getCurrentInstance().execute(\"PF('DlgEstAvaluo').show()\");\r\n } else if (op == 2) {\r\n RequestContext.getCurrentInstance().execute(\"PF('DLGAnuAvaluo').show()\");\r\n }\r\n\r\n }\r\n } catch (Exception e) {\r\n mbTodero.setMens(\"Error en el metodo '\" + this.getClass() + \".verificaCambioEstado()' causado por: \" + e.getMessage());\r\n mbTodero.error();\r\n }\r\n\r\n }", "public int getOptions() {\n\t\treturn this.options;\n\t}", "long getFlags();", "public Set<NounPhrase> getOpSet(){\n\t\tSet<NounPhrase> opSet = this.getEntConsiderPass(\"O\");\n\t\treturn opSet;\n\t}", "private int obstaculos() {\n\t\treturn this.quadricula.length * this.quadricula[0].length - \n\t\t\t\tthis.ardiveis();\n\t}", "public Tipo calculaTipo(){\n\t\tif(!(get_izq().getTipo().equals(TipoBasico.BOOL) &&\n\t\t\t\tget_dcha().getTipo().equals(TipoBasico.BOOL)))\n\t\t\tGestionErroresAnalisis.getInstance().errorTipos(\"Los operandos de las expresiones lógicas deben ser booleanos.\", getFila());\n\t\t\n\t\treturn TipoBasico.BOOL;\n\t}", "public int getFlags();", "public int getFlags();", "public java.lang.Short getEstado();", "private void filtrarAccion() {\n\n if (cbOpcion.getSelectedIndex()==0) {\n paramFecha =false;\n jPanel1.setVisible(false);\n jPanel3.setVisible(false);\n }\n if (cbOpcion.getSelectedIndex() == 1) {\n System.out.println(\"opcion: \" + cbOpcion.getSelectedIndex());\n jPanel1.setVisible(true);\n jPanel3.setVisible(false);\n campo = \"cobran_codigo\";\n paramFecha = false;\n\n } \n if (cbOpcion.getSelectedIndex() == 2) {\n System.out.println(\"opcion: \" + cbOpcion.getSelectedIndex());\n jPanel1.setVisible(true);\n jPanel3.setVisible(false);\n campo = \"cli_codigo\";\n paramFecha = false;\n\n } if(cbOpcion.getSelectedIndex()==3) {\n System.out.println(\"seleccion:\" + cbOpcion.getSelectedIndex());\n jPanel1.setVisible(false);\n jPanel3.setVisible(true);\n campo = \"cobran_fecha\";\n paramFecha = true;\n }\n\n }", "final void habilitarcampos(boolean valor){\n TXT_CodCliente.setEnabled(valor);\n TXT_Aparelho.setEnabled(valor);\n TXT_Valor.setEnabled(valor);\n TXT_Informacao.setEnabled(valor); \n TXT_CodServico.setEnabled(valor); \n TXT_Clientes.setEnabled(valor); \n TXT_Serial.setEnabled(valor);\n TXT_Data.setEnabled(valor);\n}", "private void OpcionControl(int NumeroOpciones)\n {\n if (input.isKeyPressed(Input.KEY_DOWN)) \n {\n if (eleccionJugador == (NumeroOpciones - 1)) \n {\n eleccionJugador = 0;\n } \n else \n {\n eleccionJugador++;\n }\n }\n if (input.isKeyPressed(Input.KEY_UP)) \n {\n if (eleccionJugador == 0) {\n eleccionJugador = NumeroOpciones - 1;\n } else {\n eleccionJugador--;\n }\n } \n }", "public abstract java.lang.Short getHabilitado();", "public int value() { return mode; }", "public int getButacas() {\r\n\t\treturn butacas;\r\n\t}", "public void setOp(boolean value) {}", "private static void alloptional() {\n AllOptional op1 = ImmutableAllOptional.builder().build();\n System.out.println(op1);\n \n AllOptional op2 = ImmutableAllOptional.builder()\n //.v1(1)\n .v2(2)\n .i1(1)\n .l1(1L)\n .d1(1.0)\n .build();\n System.out.println(op2);\n System.out.println();\n }", "public void cambiarVisibilidad(int opcion){\n if(opcion==1){\n vistaInicial.jpCentral.setVisible(true);\n vistaInicial.jpDerecha.setVisible(true);\n vistaInicial.jpCentralGeneral.setVisible(false);\n }else{\n vistaInicial.jpCentral.setVisible(false);\n vistaInicial.jpDerecha.setVisible(false);\n vistaInicial.jpCentralGeneral.setVisible(true);\n }\n }", "private void setearOpcionesMenuMantenimientos()\r\n\t{\r\n\t\tArrayList<FormularioVO> lstFormsMenuMant = new ArrayList<FormularioVO>();\r\n\t\t\r\n\t\r\n\t\t\r\n\t\t/*Buscamos los Formulairos correspondientes a este TAB*/\r\n\t\tfor (FormularioVO formularioVO : this.permisos.getLstPermisos().values()) {\r\n\t\t\t\r\n\t\t\tif(formularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_CLIENTES)\r\n\t\t\t\t|| formularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_FUNCIONARIOS) || \r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_IMPUESTO) ||\r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_EMPRESAS) ||\r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_CODIGOS_GENERALIZADOS) ||\r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_DOCUMENTOS) || \r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_DOCUMENTOS_DGI) || \r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_MONEDAS) || \r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_COTIZACIONES) ||\r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_TIPORUBROS) ||\r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_CUENTAS) ||\r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_BANCOS) ||\r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_PROCESOS) ||\r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_RESUMEN_PROCESO) ||\r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_PERIODO) ||\r\n\t\t\t\tformularioVO.getCodigo().equals(\"SaldoDocumentos\") ||\r\n\t\t\t\tformularioVO.getCodigo().equals(\"SaldoCuentas\") ||\r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_RUBROS))\r\n\t\t\t{\r\n\t\t\t\tlstFormsMenuMant.add(formularioVO);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t/*Si hay formularios para el tab*/\r\n\t\tif(lstFormsMenuMant.size()> 0)\r\n\t\t{\r\n\r\n\t\t\t//this.layoutMenu = new VerticalLayout();\r\n\t\t\t//this.tabMantenimientos.setMargin(true);\r\n\t\t\t\r\n\t\t\tthis.lbMantenimientos.setVisible(true);\r\n\t\t\tthis.layoutMenu.addComponent(this.lbMantenimientos);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tfor (FormularioVO formularioVO : lstFormsMenuMant) {\r\n\t\t\t\t\r\n\t\t\t\tswitch(formularioVO.getCodigo())\r\n\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_IMPUESTO :\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_IMPUESTO, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarImpuestoButton(); \r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.impuestoButton);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_EMPRESAS :\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_EMPRESAS, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarEmpresaButton();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.empresaButton);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_CODIGOS_GENERALIZADOS :\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_CODIGOS_GENERALIZADOS, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarCodigosGeneralizadosButton();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.codigosGeneralizados);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_DOCUMENTOS:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_DOCUMENTOS, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarDocumentosButton();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.documentosButton);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_MONEDAS:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_MONEDAS, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarMonedasButton();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.monedasButton);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_RUBROS:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_RUBROS, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarRubros();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.rubros);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_CLIENTES:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_CLIENTES, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarClientes();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.clientesButton);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_FUNCIONARIOS:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_FUNCIONARIOS, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarFuncionarios();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.funcionariosButton);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_COTIZACIONES:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_COTIZACIONES, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarCotizaciones();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.cotizaciones);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_TIPORUBROS:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_TIPORUBROS, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarTipoRubros();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.tipoRubros);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_CUENTAS:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_CUENTAS, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarCuentas();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.cuentas);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_BANCOS:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_BANCOS, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarBancos();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.bancos);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_PROCESOS:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_PROCESOS, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarProcesos();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.procesos);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_RESUMEN_PROCESO:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_RESUMEN_PROCESO, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarResumenProceso();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.resumenProc);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_PERIODO:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_PERIODO, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarPeriodo();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.periodo);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//TODO\r\n\t\t\t//this.acordion.addTab(tabMantenimientos, \"Mantenimientos\", null);\r\n\t\t\t\r\n\t\t\t//this.menuItems.addComponent(this.layoutMenu);\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t//acordion.setHeight(\"75%\"); /*Seteamos alto del accordion*/\r\n\t}", "public int getOpsTodo() {\n int todo = _opcount - _opsdone;\n return todo < 0 ? 0 : todo;\n }", "public java.lang.Integer getCableres() throws java.rmi.RemoteException;", "public int getConexionesDescartadas(){\n return conexionesDescartadas;\n }", "public void testOptions() {\n OptionsOperator optionsOper = OptionsOperator.invoke();\n optionsOper.selectEditor();\n optionsOper.selectFontAndColors();\n optionsOper.selectKeymap();\n optionsOper.selectGeneral();\n // \"Manual Proxy Setting\"\n String hTTPProxyLabel = Bundle.getStringTrimmed(\n \"org.netbeans.core.ui.options.general.Bundle\", \"CTL_Use_HTTP_Proxy\");\n new JRadioButtonOperator(optionsOper, hTTPProxyLabel).push();\n // \"HTTP Proxy:\"\n String proxyHostLabel = Bundle.getStringTrimmed(\n \"org.netbeans.core.ui.options.general.Bundle\", \"CTL_Proxy_Host\");\n JLabelOperator jloHost = new JLabelOperator(optionsOper, proxyHostLabel);\n new JTextFieldOperator((JTextField) jloHost.getLabelFor()).setText(\"www-proxy.uk.oracle.com\"); // NOI18N\n // \"Port:\"\n String proxyPortLabel = Bundle.getStringTrimmed(\n \"org.netbeans.core.ui.options.general.Bundle\", \"CTL_Proxy_Port\");\n JLabelOperator jloPort = new JLabelOperator(optionsOper, proxyPortLabel);\n new JTextFieldOperator((JTextField) jloPort.getLabelFor()).setText(\"80\"); // NOI18N\n optionsOper.ok();\n }", "static public void verificaParametros()\r\n \r\n {\r\n SynthesizerModeDesc synthesizerModeDescTemp = (SynthesizerModeDesc)synthesizer.getEngineModeDesc();\r\n System.out.println(\"Nome do engine utilizado: \"+synthesizerModeDescTemp.getEngineName());\r\n System.out.println(\"Nome do modo de funcionamento utilizado: \"+synthesizerModeDescTemp.getModeName());\r\n \tSystem.out.println(\"Nome da localidade utilizada: \"+synthesizerModeDescTemp.getLocale().toString());\r\n \t\t//verifica a flag de controle\r\n if(synthesizerModeDescTemp.getRunning()!=null)\r\n if(synthesizerModeDescTemp.getRunning().booleanValue())\r\n System.out.println(\"Engine rodando.\");\r\n else\r\n System.out.println(\"Engine parado.\");\r\n else\r\n System.out.println(\"A flag de controle não foi setada e tem valor nulo.\");\r\n \t\t//mostra as vozes suportadas\r\n Voice[] VoiceTemp = synthesizerModeDescTemp.getVoices();\r\n for(int i=0;i<VoiceTemp.length;i++)\r\n {\r\n System.out.println(\"Voz numero \"+(i+1)+\" : \"+VoiceTemp[i].getName());\r\n }\r\n }", "public int getModopelea(){return modopelea;}", "int getSetParameterActionsCount();", "@Override\n public int characteristics() { return CONCURRENT | NONNULL | ORDERED; }", "public int getConceito(int posicao)\n\t{\n\t\treturn gradeConceitos[posicao];\n\t}", "public void menuTipoActividad() {\n\t\tSystem.out.println(\"MENU TIPOS ACTIVIDAD\");\n\t\tSystem.out.println(\"1. LOW\");\n\t\tSystem.out.println(\"2. MEDIUM\");\n\t\tSystem.out.println(\"3. HIGH\");\n\t}", "static void montaMenu() {\n System.out.println(\"\");\r\n System.out.println(\"1 - Novo cliente\");\r\n System.out.println(\"2 - Lista clientes\");\r\n System.out.println(\"3 - Apagar cliente\");\r\n System.out.println(\"0 - Finalizar\");\r\n System.out.println(\"Digite a opcao desejada: \");\r\n System.out.println(\"\");\r\n }", "public void Power() {\n if (Estado == false){\r\n Estado = true;\r\n } else if (Estado == true){\r\n Estado = false;\r\n }\r\n }", "public int getOp() {\n\t\treturn op;\n\t}", "int getJavacOptCount();", "public boolean checarRespuesta(Opcion[] opciones) {\n boolean correcta = false;\n\n for (int i = 0; i < radios.size(); i++) {\n if (radios.get(i).isSelected() && opciones[i].isCorrecta()) {\n System.out.println(\"Ya le atinaste\");\n correcta = true;\n break;\n }\n }\n\n return correcta;\n }", "public int construir(int pasoSolicitado ) {\n if(tipoTraductor.equals(\"Ascendente\")){\n construirAsc(pasoSolicitado);\n \n }\n else{\n construirDesc(pasoSolicitado);\n }\n contador=pasoSolicitado;\n cadena.actualizarCadena(pasoSolicitado);\n return contador;\n }", "private static int menu() {\r\n\t\tSystem.out.println(\"Elige opcion de jugada:\");\r\n\t\tSystem.out.println(\"1-Piedra\");\r\n\t\tSystem.out.println(\"2-Papel\");\r\n\t\tSystem.out.println(\"3-Tijera\");\r\n\t\tSystem.out.println(\"0-Salir\");\r\n\t\tSystem.out.print(\"Opcion: \");\r\n\t\treturn Teclado.leerInt();\r\n\t}", "public TreeMap<String,CheckOutMode>\n getModes()\n {\n TreeMap<String,CheckOutMode> modes = new TreeMap<String,CheckOutMode>();\n for(String name : pVersionFields.keySet()) {\n JCollectionField field = pModeFields.get(name);\n modes.put(name, CheckOutMode.values()[field.getSelectedIndex()]);\n }\n return modes;\n }", "@Override\n public int getProcessgetCapabilitie() {\n return 0;\n }", "public boolean comprobar(){\r\n boolean ind=false;\r\n switch(this.opc){\r\n case 1:\r\n for(int i=0;i<2;i++){\r\n for(int j=0;j<5;j++){\r\n if(mfacil[i][j].equals(\"*\")==false){\r\n ind=true;\r\n }\r\n else{\r\n ind=false;\r\n break;\r\n }\r\n }\r\n }\r\n break;\r\n case 2:\r\n for(int i=0;i<3;i++){\r\n for(int j=0;j<6;j++){\r\n if(mmedio[i][j].equals(\"*\")==false){\r\n ind=true;\r\n }\r\n else{\r\n ind=false;\r\n break;\r\n }\r\n }\r\n }\r\n break;\r\n case 3:\r\n for(int i=0;i<4;i++){\r\n for(int j=0;j<7;j++){\r\n if(mdificil[i][j].equals(\"*\")==false){\r\n ind=true;\r\n }\r\n else{\r\n ind=false;\r\n break;\r\n }\r\n }\r\n }\r\n break;\r\n }\r\n return ind;\r\n }", "@Override\r\n\tpublic boolean hasNPCOption1(NPC npc) {\n\t\treturn false;\r\n\t}", "@Override\r\n\tpublic boolean hasNPCOption1(NPC npc) {\n\t\treturn false;\r\n\t}", "@Override\n public int characteristics() {\n return ORDERED | NONNULL | IMMUTABLE;\n }", "public figuras(int opcion) {\r\n this.opcion = opcion;\r\n // this.aleatorio = aleatorio;\r\n }", "public static int Menu(){\n \n String StrOp=JOptionPane.showInputDialog(null, \"Ingrese una opcion:\\n\"+\"0.- Salir\\n\"+\n \"1-Calificacion de notas\\n\"+\n \"2-Promedio de la clase\");\n return(Integer.parseInt(StrOp));\n }", "private static void gestionarMenuGeneral(int opcion) {\n\t\tswitch(opcion){\n\t\tcase 1:\n\t\t\tmenuManejoJugadores();\n\t\t\tbreak;\n\t\tcase 2: jugar();\n\t\t\tbreak;\n\t\tcase 3:System.out.println(\"Hasta pronto.\");\n\t\t\tbreak;\n\t\t}\n\t}", "private String auxOperacion(int operando1, int operando2, String valor1, String valor2, int op) {\n if (ManejadorMemoria.isInt(operando1)) {\n if (ManejadorMemoria.isInt(operando2)) {\n switch (op) {\n case Codigos.SUMA:\n return (Integer.parseInt(valor1) + Integer.parseInt(valor2)) + \"\";\n case Codigos.RESTA:\n return (Integer.parseInt(valor1) - Integer.parseInt(valor2)) + \"\";\n case Codigos.MULT:\n return (Integer.parseInt(valor1) * Integer.parseInt(valor2)) + \"\";\n case Codigos.DIV:\n return (Integer.parseInt(valor1) / Integer.parseInt(valor2)) + \"\";\n case Codigos.MAYOR:\n System.out.println(valor1 + \" \" + valor2 + \" \" + (Integer.parseInt(valor1) > Integer.parseInt(valor2)));\n return (Integer.parseInt(valor1) > Integer.parseInt(valor2)) + \"\";\n case Codigos.MENOR:\n return (Integer.parseInt(valor1) < Integer.parseInt(valor2)) + \"\";\n case Codigos.MAYORIG:\n return (Integer.parseInt(valor1) >= Integer.parseInt(valor2)) + \"\";\n case Codigos.MENORIG:\n return (Integer.parseInt(valor1) <= Integer.parseInt(valor2)) + \"\";\n case Codigos.IGUAL:\n return (Integer.parseInt(valor1) == Integer.parseInt(valor2)) + \"\";\n case Codigos.DIFERENTE:\n return (Integer.parseInt(valor1) != Integer.parseInt(valor2)) + \"\";\n }\n } else if (ManejadorMemoria.isFloat(operando2)) {\n switch (op) {\n case Codigos.SUMA:\n return (Integer.parseInt(valor1) + Double.parseDouble(valor2)) + \"\";\n case Codigos.RESTA:\n return (Integer.parseInt(valor1) - Double.parseDouble(valor2)) + \"\";\n case Codigos.MULT:\n return (Integer.parseInt(valor1) * Double.parseDouble(valor2)) + \"\";\n case Codigos.DIV:\n return (Integer.parseInt(valor1) / Double.parseDouble(valor2)) + \"\";\n case Codigos.MAYOR:\n return (Integer.parseInt(valor1) > Double.parseDouble(valor2)) + \"\";\n case Codigos.MENOR:\n return (Integer.parseInt(valor1) < Double.parseDouble(valor2)) + \"\";\n case Codigos.MAYORIG:\n return (Integer.parseInt(valor1) >= Double.parseDouble(valor2)) + \"\";\n case Codigos.MENORIG:\n return (Integer.parseInt(valor1) <= Double.parseDouble(valor2)) + \"\";\n case Codigos.IGUAL:\n return (Integer.parseInt(valor1) == Double.parseDouble(valor2)) + \"\";\n case Codigos.DIFERENTE:\n return (Integer.parseInt(valor1) != Double.parseDouble(valor2)) + \"\";\n }\n }\n } else if (ManejadorMemoria.isFloat(operando1)) {\n if (ManejadorMemoria.isInt(operando2)) {\n switch (op) {\n case Codigos.SUMA:\n return (Double.parseDouble(valor1) + Integer.parseInt(valor2)) + \"\";\n case Codigos.RESTA:\n return (Double.parseDouble(valor1) - Integer.parseInt(valor2)) + \"\";\n case Codigos.MULT:\n return (Double.parseDouble(valor1) * Integer.parseInt(valor2)) + \"\";\n case Codigos.DIV:\n return (Double.parseDouble(valor1) / Integer.parseInt(valor2)) + \"\";\n case Codigos.MAYOR:\n return (Double.parseDouble(valor1) > Integer.parseInt(valor2)) + \"\";\n case Codigos.MENOR:\n return (Double.parseDouble(valor1) < Integer.parseInt(valor2)) + \"\";\n case Codigos.MAYORIG:\n return (Double.parseDouble(valor1) >= Integer.parseInt(valor2)) + \"\";\n case Codigos.MENORIG:\n return (Double.parseDouble(valor1) <= Integer.parseInt(valor2)) + \"\";\n case Codigos.IGUAL:\n return (Double.parseDouble(valor1) == Integer.parseInt(valor2)) + \"\";\n case Codigos.DIFERENTE:\n return (Double.parseDouble(valor1) != Integer.parseInt(valor2)) + \"\";\n }\n } else if (ManejadorMemoria.isFloat(operando2)) {\n switch (op) {\n case Codigos.SUMA:\n return (Double.parseDouble(valor1) + Double.parseDouble(valor2)) + \"\";\n case Codigos.RESTA:\n return (Double.parseDouble(valor1) - Double.parseDouble(valor2)) + \"\";\n case Codigos.MULT:\n return (Double.parseDouble(valor1) * Double.parseDouble(valor2)) + \"\";\n case Codigos.DIV:\n return (Double.parseDouble(valor1) / Double.parseDouble(valor2)) + \"\";\n case Codigos.MAYOR:\n return (Double.parseDouble(valor1) > Double.parseDouble(valor2)) + \"\";\n case Codigos.MENOR:\n return (Double.parseDouble(valor1) < Double.parseDouble(valor2)) + \"\";\n case Codigos.MAYORIG:\n return (Double.parseDouble(valor1) >= Double.parseDouble(valor2)) + \"\";\n case Codigos.MENORIG:\n return (Double.parseDouble(valor1) <= Double.parseDouble(valor2)) + \"\";\n case Codigos.IGUAL:\n return (Double.parseDouble(valor1) == Double.parseDouble(valor2)) + \"\";\n case Codigos.DIFERENTE:\n return (Double.parseDouble(valor1) != Double.parseDouble(valor2)) + \"\";\n }\n }\n } else if (ManejadorMemoria.isString(operando1)) {\n return valor1 + valor2;\n } else if(ManejadorMemoria.isBool(operando1)){\n switch(op){\n case Codigos.AND:\n return (Boolean.parseBoolean(valor1) && Boolean.parseBoolean(valor2)) + \"\";\n case Codigos.OR:\n return (Boolean.parseBoolean(valor1) || Boolean.parseBoolean(valor2)) + \"\";\n case Codigos.NOT:\n return (! Boolean.parseBoolean(valor1))+ \"\";\n }\n }\n\n return \"\";\n }", "public static String[] generarOpcionesMenu() {\r\n\t\tString[] opcionesMenu = new String[getValues().length + 1];\r\n\t\tint i = 0;\r\n\t\tfor (Color color : getValues()) {\r\n\t\t\topcionesMenu[i++] = color.name();\r\n\t\t}\r\n\t\topcionesMenu[i] = \"Salir\";\r\n\t\treturn opcionesMenu;\r\n\t}", "public boolean getMOPP();", "@Test\r\n public void testVerificaPossibilidade() {\r\n usucapiao.setAnimusDomini(true);\r\n String result = usucapiao.verificaRequisitos();\r\n assertEquals(\"false\", result);\r\n }", "public Instrucoes2op(){\n\t\tmmm1 = super.BitsModoDeEnderecamento();\t// pega os bits do endereçamento do primeiro operando\n\t\tmmm2 = super.BitsModoDeEnderecamento();\t// pega os bits do endereçamento do segundo operando \n\t\trrr1 = \"\";\n\t\trrr2 = \"\";\t\n\t}", "int getMisc();", "public int getOption() {\n return option;\n }", "public int getOption() {\n return option;\n }", "public boolean isSetOp() {\n return this.op != null;\n }", "int getACMode();", "static int leerOpcion()throws java.io.IOException{\n\t\t\n\t\tint opcion;\n\n\t\tout.print(\"Seleccione su opcion: \");\n\t\topcion = Integer.parseInt(in.readLine()); \n\t\tout.println();\n\n\t\treturn opcion;\n\t}", "@Override\n\tpublic long unidadesComida() {\n\t\treturn 3;\n\t}", "public static void main(String[] args) {\n\n for (OperateTypeEnum test : OperateTypeEnum.values()) {\n System.out.println(test.name()+\" \"+test.ordinal());\n }\n\n EnumMap<OperateTypeEnum, String> enumMap = new EnumMap<OperateTypeEnum, String>(OperateTypeEnum.class);\n enumMap.put(OperateTypeEnum.DELETE, \"dddddddddddddd\");\n enumMap.put(OperateTypeEnum.UPDATE, \"uuuuuuuuuuuuuu\");\n for (Map.Entry<OperateTypeEnum, String> entry : enumMap.entrySet()) {\n System.out.println(entry.getValue() + entry.getKey().getEnumDesc());\n }\n\n// EnumSet<OperateTypeEnum> enumSets = EnumSet.of(OperateTypeEnum.DELETE);\n// EnumSet<OperateTypeEnum> enumSets = EnumSet.allOf(OperateTypeEnum.class);\n// EnumSet<OperateTypeEnum> enumSets = EnumSet.range(OperateTypeEnum.DELETE,OperateTypeEnum.UPDATE);\n EnumSet<OperateTypeEnum> enumSet = EnumSet.noneOf(OperateTypeEnum.class);\n enumSet.add(OperateTypeEnum.DELETE);\n enumSet.add(OperateTypeEnum.UPDATE);\n for (Iterator<OperateTypeEnum> it = enumSet.iterator(); it.hasNext();) {\n System.out.println(it.next().getEnumDesc());\n }\n for (OperateTypeEnum enumTest : enumSet) {\n System.out.println(enumTest.getEnumDesc() + \" ..... \");\n }\n\n EnumSet<OperateTypeEnum> enumSets = EnumSet.copyOf(enumSet);\n }", "private int getSelections()\n {\n int sqlSelect = 1;\n if(dropBox1.getSelectedItem().toString().length() > 0)\n {\n sqlSelect = parseInt(sqlSelect + \"\" + \"1\");\n }\n else\n {\n sqlSelect = parseInt(sqlSelect + \"\" + \"0\");\n }\n if(dropBox2.getSelectedItem().toString().length() > 0)\n {\n sqlSelect = parseInt(sqlSelect + \"\" + \"1\");\n }\n else\n {\n sqlSelect = parseInt(sqlSelect + \"\" + \"0\");\n }\n if(dropBox3.getSelectedItem().toString().length() > 0)\n {\n sqlSelect = parseInt(sqlSelect + \"\" + \"1\");\n }\n else\n {\n sqlSelect = parseInt(sqlSelect + \"\" + \"0\");\n }\n \n //If all drop boxes have been selected, changes code to execute GO\n // button on it's own\n if(sqlSelect == 1111)\n sqlSelect = 2111;\n return sqlSelect;\n }", "public int getAprovacoes() {\n\t\treturn this.aprovacoes;\n\t}", "public HOp[] ops()\r\n {\r\n if (!cache.initialized()) \r\n throw new IllegalStateException(Cache.NOT_INITIALIZED);\r\n\r\n return OPS;\r\n }", "public long getFlags() {\n }", "int getOperationValue();", "public int menu(){\n System.out.println(\"Elija una opción:\");\n\t\tSystem.out.println(\"1. Registrar un nuevo carro\");//Le damos todas las opciones disponibles\n\t\tSystem.out.println(\"2. Eliminar un carro del registro\");\n\t\tSystem.out.println(\"3. Mostrar espacios disponibles\");\n System.out.println(\"4. Mostrar el registro completo\");\n System.out.println(\"5. Mostrar las estadisticas del parqueo\");\n System.out.println(\"6. Agregar mas espacios de parqueo\");\n System.out.println(\"7. Salir/n/n\");\n\n boolean paso = false;\n int option = 0;\n while (paso == false){//Aplicamos un metodo para que escriba el \n try {\n String optionString = scan.nextLine();//Recibimos el valor como String para evitar un bug con el metodo nextLine()\n option = Integer.parseInt(optionString);//Lo cambiamos a int\n paso = true;\n } catch (Exception e) {\n System.out.println(\"Ingrese un valor correcto, por favor\");\n }\n }\n return option;//regresamos el valor convertido\n }", "public void setopcion(){\n this.opciones=read.next().charAt(0);\n System.out.println();\n }", "private void setearOpcionesMenuProcesos()\r\n\t{\r\n\t\tArrayList<FormularioVO> lstFormsMenuProceso = new ArrayList<FormularioVO>();\r\n\t\t\r\n\t\r\n\t\t\r\n\t\t/*Buscamos los Formulairos correspondientes a este TAB*/\r\n\t\tfor (FormularioVO formularioVO : this.permisos.getLstPermisos().values()) {\r\n\t\t\t\r\n\t\t\tif(formularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_PROCESOS) ||\r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_RESUMEN_PROCESO))\r\n\t\t\t{\r\n\t\t\t\tlstFormsMenuProceso.add(formularioVO);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t/*Si hay formularios para el tab*/\r\n\t\tif(lstFormsMenuProceso.size()> 0)\r\n\t\t{\r\n\r\n\t\t\tthis.layoutMenu = new VerticalLayout();\r\n\t\t\t//this.tabMantenimientos.setMargin(true);\r\n\t\t\t\r\n\t\t\tthis.lbProcesos.setVisible(true);\r\n\t\t\tthis.layoutMenu.addComponent(this.lbProcesos);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tfor (FormularioVO formularioVO : lstFormsMenuProceso) {\r\n\t\t\t\t\r\n\t\t\t\tswitch(formularioVO.getCodigo())\r\n\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_PROCESOS:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_PROCESOS, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarProcesos();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.procesos);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_RESUMEN_PROCESO:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_RESUMEN_PROCESO, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarResumenProceso();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.resumenProc);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tthis.menuItems.addComponent(this.layoutMenu);\r\n\t\t\t\r\n\t\t}\r\n\t}", "private Long getSpecialFlags(CustomerTransactionVO ct) {\n Long specialFlags = 0L;\n if (BaseDBType.WTransactionDetails.getCTConverter().willGenerateOutput(ct)) {\n specialFlags |= WXClickConstants.Flags.SAVED_DETAILS.getValue();\n }\n if (BaseDBType.WTransactionURL.getCTConverter().willGenerateOutput(ct)) {\n specialFlags |= WXClickConstants.Flags.SAVED_URL.getValue();\n }\n return specialFlags;\n }" ]
[ "0.5778235", "0.56865185", "0.5679601", "0.56297433", "0.55237293", "0.5501519", "0.5468967", "0.5448429", "0.54310936", "0.5422736", "0.5356453", "0.5331292", "0.53229415", "0.52865505", "0.5273928", "0.5271713", "0.5261493", "0.5260237", "0.5252544", "0.52521664", "0.52490526", "0.52490526", "0.52490526", "0.5217747", "0.51859003", "0.5174281", "0.5146968", "0.5138837", "0.5123292", "0.5121842", "0.5119881", "0.51048887", "0.5076309", "0.5073886", "0.50672346", "0.5054191", "0.5027192", "0.5011498", "0.5011169", "0.498475", "0.49714988", "0.49714988", "0.49628663", "0.4937308", "0.4936393", "0.49356472", "0.49300393", "0.49209118", "0.49139652", "0.49078766", "0.490534", "0.48951936", "0.48942125", "0.48829693", "0.48789743", "0.4876497", "0.48702043", "0.4869778", "0.4869548", "0.48656422", "0.48555815", "0.48411065", "0.48371243", "0.48265254", "0.48221168", "0.48212826", "0.48191988", "0.48145398", "0.48055384", "0.48021907", "0.47855785", "0.47839874", "0.47837666", "0.47815034", "0.47815034", "0.47806168", "0.47754654", "0.47737092", "0.47698066", "0.47666794", "0.4764747", "0.47506788", "0.47489056", "0.47461343", "0.4742052", "0.47348207", "0.47348207", "0.47190505", "0.47176078", "0.47110754", "0.4709843", "0.4708697", "0.47056755", "0.46963468", "0.46943554", "0.4693867", "0.46937633", "0.46912032", "0.46908665", "0.46815938", "0.467766" ]
0.0
-1
Obtener la ubicacion mas precisa del dispositivo
protected Track _obtainCurrentLocation() { Cursor cursor = activity.getContentResolver().query(TrackDAO.QUERY_MOST_RECENT_URI, null,null,null,null); Track objTrack = TrackDAO.createObject(cursor); return objTrack; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public float carga(){\n return (this.capacidade/this.tamanho);\n }", "public int precioFinal(){\r\n int monto=super.PrecioFinal();\r\n\t \t \r\n\t if (pulgadas>40){\r\n\t monto+=precioBase*0.3;\r\n\t }\r\n\t if (sintonizador){\r\n\t monto+=50;\r\n\t }\r\n\t \r\n\t return monto;\r\n\t }", "private void peso(){\r\n if(getPeso()>80){\r\n precioBase+=100;\r\n }\r\n else if ((getPeso()<=79)&&(getPeso()>=50)){\r\n precioBase+=80;\r\n }\r\n else if ((getPeso()<=49)&&(getPeso()>=20)){\r\n precioBase+=50;\r\n }\r\n else if ((getPeso()<=19)&&(getPeso()>=0)){\r\n precioBase+=10;\r\n }\r\n }", "public Double calcularPrecio() {\n double adicion = 0.0;\n\n switch (tipoAlimento) {\n case 'N':\n // Producto Natural\n adicion += 40;\n break;\n\n case 'C':\n // Producto con Conservantes\n adicion += 20;\n break;\n\n default:\n break;\n }\n\n // El peso tambien afecta el precio final del producto\n if (peso >= 0 && peso <= 9) {\n adicion += 6;\n }\n if (peso > 9 && peso <= 16) {\n adicion += 8;\n }\n if (peso > 16) {\n adicion += 20;\n }\n\n return precioBase + adicion;\n }", "String getPrecio();", "public float getPrecio() {\r\n return precio;\r\n }", "public int getPrecio(){\n return precio;\n }", "public Float getPrecio() {\r\n return precio;\r\n }", "public int getPrecios()\r\n {\r\n for(int i = 0; i < motos.size(); i++)\r\n {\r\n precio_motos += motos.get(i).getCoste();\r\n }\r\n \r\n return precio_motos;\r\n }", "public void calcular()\r\n/* 530: */ {\r\n/* 531:556 */ this.facturaProveedorSRI.setMontoIva(this.facturaProveedorSRI.getBaseImponibleDiferenteCero().multiply(\r\n/* 532:557 */ ParametrosSistema.getPorcentajeIva().divide(BigDecimal.valueOf(100L))));\r\n/* 533: */ }", "public void calcPrecioTotal() {\n try {\n float result = precioUnidad * Float.parseFloat(unidades.getText().toString());\n prTotal.setText(String.valueOf(result) + \"€\");\n }catch (Exception e){\n prTotal.setText(\"0.0€\");\n }\n }", "public double precioFinal() {\r\n double aumento = 0;\r\n switch (consumoEnergetico) {\r\n case 'A':\r\n aumento = 100;\r\n break;\r\n case 'B':\r\n aumento = 80;\r\n break;\r\n case 'C':\r\n aumento = 60;\r\n break;\r\n case 'D':\r\n aumento = 50;\r\n break;\r\n case 'E':\r\n aumento = 30;\r\n break;\r\n case 'F':\r\n aumento = 10; \r\n break;\r\n }\r\n if (peso >= 0 && peso <= 19) {\r\n aumento += 10;\r\n }else if ( peso >= 20 && peso <= 49) {\r\n aumento += 50;\r\n }else if ( peso >= 50 && peso <=79 ) {\r\n aumento += 80;\r\n }else if ( peso >= 80 ){\r\n aumento += 100;\r\n }\r\n \r\n double precioFinal = aumento + this.precioBase;\r\n return precioFinal;\r\n }", "public Double getPrecio(){\n\t\t// Implementar\n\t\tDouble precio = 0.0;\n\t\tfor (Ingrediente ingrediente : ingredientes) {\n\t\t\tprecio+=ingrediente.getPrecio();\n\t\t}\n\t\treturn precio;\n\t}", "public int precioTotalRepuestos() {\n int sumaTotal = 0;\n for (Dispositivo dispositivo : dispositivos) {\n sumaTotal += dispositivo.getPrecioRepuesto();\n }\n return sumaTotal;\n }", "private int calcularPrecio(Repuesto repuesto, boolean formateo, boolean limpieza) {\n int precio = 0;\n if (repuesto != null) {\n precio += repuesto.getPrecio();\n }\n \n if (formateo) {\n precio += 10000;\n }\n \n if (limpieza) {\n precio += 7500;\n }\n return precio;\n }", "public double obtenerPrecio() {\n return precio;\n }", "public static void Promedio(){\n int ISumaNotas=0;\n int IFila=0,ICol=0;\n int INota;\n float FltPromedio;\n for(IFila=0;IFila<10;IFila++)\n {\n ISumaNotas+=Integer.parseInt(StrNotas[IFila][1]);\n }\n FltPromedio=ISumaNotas/10;\n System.out.println(\"El promedio de la clase es:\"+FltPromedio);\n }", "private float obtenerPrecioPieza(int codigo) {\n\t\tfloat resultado = 0;\n\t\ttry {\n\t\t\tXPathQueryService consulta = \n\t\t\t\t\t(XPathQueryService) \n\t\t\t\t\tcol.getService(\"XPathQueryService\", \"1.0\");\n\t\t\tResourceSet r = consulta.query(\"string(/piezas/pieza[@codigo='\"+\n\t\t\t\t\tcodigo+\"']/precio)\");\n\t\t\tResourceIterator i = r.getIterator();\n\t\t\tif(i.hasMoreResources()) {\n\t\t\t\tString numero =i.nextResource().getContent().toString();\n\t\t\t\tif(!numero.equals(\"\"))\n\t\t\t\t\tresultado = Float.parseFloat(numero);\n\t\t\t}\n\t\t} catch (XMLDBException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn resultado;\n\t}", "@Override\r\n\tpublic Double precio() {\n\t\treturn this.combo.precio() + 50;\r\n\t}", "public int getPrecio() {\n\t\treturn this.producto.getPrecio();\n\t}", "public double precioFinal(){\r\n \r\n double plus = 0;\r\n \r\n switch(consumoElectrico){\r\n case 'A':\r\n plus +=100;\r\n break;\r\n case 'B':\r\n plus += 80;\r\n break;\r\n case 'C':\r\n plus +=60;\r\n break;\r\n case 'D':\r\n plus +=50;\r\n break;\r\n case 'E':\r\n plus+=30;\r\n break;\r\n case 'F':\r\n plus+=10;\r\n break;\r\n \r\n }\r\n \r\n \r\n if(peso>=0 && peso<=19){\r\n plus+=10;\r\n }else if(peso >=20 && peso<= 49){\r\n plus+=50;\r\n }else if(peso >= 50 && peso<=79){\r\n plus+=80;\r\n }else if(peso>=80){\r\n plus+=100;\r\n }\r\n return precioBase+plus;\r\n }", "@Override\r\n\tpublic int precioTotal() {\n\t\treturn this.precio;\r\n\t}", "public double getPrecio() {\n return precio;\n }", "public void setPrecio(float precio) {\r\n this.precio = precio;\r\n }", "public double calcularPortes() {\n\t\tif (this.pulgadas <= 40) {\n\t\t\tif (this.getPrecioBase() > 500)\n\t\t\t\treturn 0;\n\t\t\telse\n\t\t\t\treturn 35;\n\t\t} else\n\t\t\treturn 35 + (this.pulgadas - 40);\n\t}", "public float montos(){\n\tDefaultTableModel modelo = vc.returnModelo();\r\n\tint numeroFilas=modelo.getRowCount();\r\n\tfloat monto=0;\r\n\t\tif(modelo.getRowCount()!=0){\r\n\t\t\r\n\t\t\tfor (int i = 0; i < numeroFilas; i++) {\r\n\t\t\t\t\r\n\t\t\t\tmonto = monto + Float.valueOf(modelo.getValueAt(i, 5).toString());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}else{\r\n\t\t\tmonto=0;\r\n\t\t}\r\n\t\treturn monto;\r\n\t}", "private float obtenerPrecioOrdenador(String codigo) {\n\t\tfloat resultado = 0;\n\t\ttry {\n\t\t\tXPathQueryService consulta = \n\t\t\t\t\t(XPathQueryService) \n\t\t\t\t\tcol.getService(\"XPathQueryService\", \"1.0\");\n\t\t\tResourceSet r = consulta.query(\"string(//ordenador[@codigo='\"+\n\t\t\t\t\tcodigo+\"']/precio)\");\n\t\t\tResourceIterator i = r.getIterator();\n\t\t\tif(i.hasMoreResources()) {\n\t\t\t\tString numero =i.nextResource().getContent().toString();\n\t\t\t\tif(!numero.equals(\"\"))\n\t\t\t\t\tresultado = Float.parseFloat(numero);\n\t\t\t}\n\t\t} catch (XMLDBException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn resultado;\n\t}", "public void setPrecio(int precio) {\r\n\t\tthis.precio = precio;\r\n\t}", "public Double getPrecio() {\n return precio;\n }", "public void precioFinal(){\r\n if(getConsumoEnergetico() == Letra.A){\r\n precioBase = 100+precioBase;\r\n }\r\n else if((getConsumoEnergetico() == Letra.B)){\r\n precioBase = 80+precioBase;\r\n }\r\n else if(getConsumoEnergetico() == Letra.C){\r\n precioBase = 60+precioBase;\r\n }\r\n else if((getConsumoEnergetico() == Letra.D)){\r\n precioBase = 50+precioBase;\r\n }\r\n else if(getConsumoEnergetico() == Letra.E){\r\n precioBase = 30+precioBase;\r\n }\r\n else if((getConsumoEnergetico() == Letra.F)){\r\n precioBase = 10+precioBase;\r\n }\r\n else{\r\n aux=1;\r\n System.out.println(\"...No existe...\");\r\n }\r\n if (aux==0){\r\n peso();\r\n }\r\n \r\n }", "public float getMinAlturaCM();", "public double getPrecioCompra() {\n return precioCompra;\n }", "float getMonatl_kosten();", "public double getPrecio() {\n\t\treturn precio;\n\t}", "public double portataMassicaFumi( ){\r\n\t\treturn portatamassica;\r\n\t}", "public double getMedia()\n {\n return ( suma / cantidad );\n }", "public void cambiarPrecio(Float porcent) {\r\n\t\tmodelo.cambiarPrecio(porcent);\r\n\t}", "public void carroPulando() {\n\t\tpulos++;\n\t\tpulo = (int) (PULO_MAXIMO/10);\n\t\tdistanciaCorrida += pulo;\n\t\tif (distanciaCorrida > distanciaTotalCorrida) {\n\t\t\tdistanciaCorrida = distanciaTotalCorrida;\n\t\t}\n\t}", "public double obtenerPrecio() {\n\t\t\n\t\treturn this.precio;\n\t}", "@Override\n\tpublic int manufacturando(int unidades) {\n\t\treturn unidades*this.getTiempoEstimadoParaProducirse();\n\t}", "public void precio4e(){\n precioHabitaciones = precioHabitaciones + (cantidadHabitaciones * numeroCamas);\n\n //Restaurante\n if(capacidadRestaurant < 30){\n precioHabitaciones = precioHabitaciones + 10;\n } else if (capacidadRestaurant > 29 && capacidadRestaurant < 51){\n precioHabitaciones = precioHabitaciones + 30;\n } else if (capacidadRestaurant > 50){\n precioHabitaciones = precioHabitaciones + 50;\n }\n\n //Gimnasio\n switch (gimnasio){\n case \"A\":\n precioHabitaciones = precioHabitaciones + 50;\n break;\n case \"B\":\n precioHabitaciones = precioHabitaciones + 30;\n break;\n }\n\n }", "public double getPrecioBase() {\r\n return precioBase;\r\n }", "@Override\n public double obtenerVolumen(){\n return (1.0 / 3.0) * c.obtenerArea() * c.obtenerAltura();\n }", "private BigDecimal calculaJuros(ParcelaRecebimento pagamento, long diasAtraso) {\n\t\tBigDecimal juros = pagamento.getParcelaReceber().getValor().multiply(pagamento.getTaxaJuro().setScale(5).divide(BigDecimal.valueOf(30.0), 5))\r\n\t\t\t\t.divide(BigDecimal.valueOf(100), 5).multiply(BigDecimal.valueOf(diasAtraso));\r\n\r\n\t\treturn juros.setScale(2, RoundingMode.HALF_DOWN);\r\n\t}", "@Override\n\tpublic float getPrecio() {\n\t\treturn 60.2f;\n\t}", "@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}", "@Override\n public void cantidad_Punteria(){\n punteria=69.5+05*nivel+aumentoP;\n }", "public float calcularPerimetro(){\n return baseMayor+baseMenor+(medidaLado*2);\n }", "public void calculoSalarioBruto(){\n salarioBruto = hrTrabalhada * valorHr;\n }", "long getQuantite();", "public double calcular_costo() {\n\t\t return 1.3*peso+30 ;\n\t}", "public void calcularIndicePlasticidad(){\r\n\t\tindicePlasticidad = limiteLiquido - limitePlastico;\r\n\t}", "private String peso(long peso,int i)\n {\n DecimalFormat df=new DecimalFormat(\"#.##\");\n //aux para calcular el peso\n float aux=peso;\n //string para guardar el formato\n String auxPeso;\n //verificamos si el peso se puede seguir dividiendo\n if(aux/1024>1024)\n {\n //variable para decidir que tipo es \n i=i+1;\n //si aun se puede seguir dividiendo lo mandamos al mismo metodo\n auxPeso=peso(peso/1024,i);\n }\n else\n {\n //si no se puede dividir devolvemos el formato\n auxPeso=df.format(aux/1024)+\" \"+pesos[i];\n }\n return auxPeso;\n }", "public Float getPuntuacion( )\n\t{\n\t\treturn puntuacion;\n\t}", "public float calcular(float dinero, float precio) {\n // Cálculo del cambio en céntimos de euros \n cambio = Math.round(100 * dinero) - Math.round(100 * precio);\n // Se inicializan las variables de cambio a cero\n cambio1 = 0;\n cambio50 = 0;\n cambio100 = 0;\n // Se guardan los valores iniciales para restaurarlos en caso de no \n // haber cambio suficiente\n int de1Inicial = de1;\n int de50Inicial = de50;\n int de100Inicial = de100;\n \n // Mientras quede cambio por devolver y monedas en la máquina \n // se va devolviendo cambio\n while(cambio > 0) {\n // Hay que devolver 1 euro o más y hay monedas de 1 euro\n if(cambio >= 100 && de100 > 0) {\n devolver100();\n // Hay que devolver 50 céntimos o más y hay monedas de 50 céntimos\n } else if(cambio >= 50 && de50 > 0) {\n devolver50();\n // Hay que devolver 1 céntimo o más y hay monedas de 1 céntimo\n } else if (de1 > 0){\n devolver1();\n // No hay monedas suficientes para devolver el cambio\n } else {\n cambio = -1;\n }\n }\n \n // Si no hay cambio suficiente no se devuelve nada por lo que se\n // restauran los valores iniciales\n if(cambio == -1) {\n de1 = de1Inicial;\n de50 = de50Inicial;\n de100 = de100Inicial;\n return -1;\n } else {\n return dinero - precio;\n }\n }", "public double CalcoloPerimetro () {\r\n \treturn 4*(base);\r\n }", "public static Integer media(List<Integer> numeros) {\r\n Integer quantidade = numeros.size();\r\n Integer valorT = 0;\r\n for (int i = 0; i < numeros.size(); i++) {\r\n valorT = valorT + numeros.get(i);\r\n }\r\n Integer calculo = valorT / quantidade;\r\n return calculo;\r\n }", "public void obtenerValorDePiezaEnPesosAPesos() {\r\n\t\tdouble precio = this.pieza.getPrecioEn(Moneda.PESO);\r\n\t\tAssert.assertEquals(precio, 40);\r\n\t}", "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}", "@Override\n\tpublic double calculaImc() {\n\t\t imc = peso / (altura * altura);\n\t\treturn imc;\n\t}", "public double calcularPerimetro() {\n\t\treturn 2 * (base + altura);\n\t}", "public void Millas_M(){\r\n System.out.println(\"Cálcular Metros o Kilometros de Millas Marinas\");\r\n System.out.println(\"Ingrese un valor en Millas Marinas\");\r\n cadena =numero.next(); \r\n valor = metodo.Doble(cadena);\r\n valor = metodo.NegativoD(valor);\r\n totalM = valor * 1852 ;\r\n Millas_KM(totalM);\r\n }", "public float capacidadeTotal() {\r\n float toneladas = 0;\r\n\r\n for (int i = 0; i < numNavios; i++) {\r\n if (navios[i] instanceof Petroleiro) {\r\n Petroleiro petroleiro = (Petroleiro) navios[i];\r\n toneladas = toneladas + petroleiro.getCapacidadeCarga();\r\n } else if (navios[i] instanceof PortaContentores) {\r\n PortaContentores portaContentores = (PortaContentores) navios[i];\r\n toneladas = toneladas + portaContentores.getMaxContentores() * 10;\r\n }\r\n }\r\n return toneladas;\r\n }", "public Float getPeso() {\r\n\t\treturn peso;\r\n\t}", "@Override\n\tpublic double calcularPrecio() {\n\t\treturn 0;\n\t}", "@Override\r\n\tpublic double porcentajeDelComercio() {\n\t\treturn 0.25;\r\n\t}", "private void actualizaPuntuacion() {\n if(cambiosFondo <= 10){\n puntos+= 1*0.03f;\n }\n if(cambiosFondo > 10 && cambiosFondo <= 20){\n puntos+= 1*0.04f;\n }\n if(cambiosFondo > 20 && cambiosFondo <= 30){\n puntos+= 1*0.05f;\n }\n if(cambiosFondo > 30 && cambiosFondo <= 40){\n puntos+= 1*0.07f;\n }\n if(cambiosFondo > 40 && cambiosFondo <= 50){\n puntos+= 1*0.1f;\n }\n if(cambiosFondo > 50) {\n puntos += 1 * 0.25f;\n }\n }", "double getPerimetro(){\n return 2 * 3.14 * raggio;\n }", "protected static float toPicas(int unit, float value) {\n \t\tswitch (unit) {\n \t\tcase CSSPrimitiveValue.CSS_CM:\n \t\t\treturn (value * 6 / 2.54f);\n \t\tcase CSSPrimitiveValue.CSS_MM:\n \t\t\treturn (value * 6 / 25.4f);\n \t\tcase CSSPrimitiveValue.CSS_IN:\n \t\t\treturn (value * 6);\n \t\tcase CSSPrimitiveValue.CSS_PT:\n \t\t\treturn (value / 12);\n \t\tcase CSSPrimitiveValue.CSS_PC:\n \t\t\treturn value;\n \t\tdefault:\n \t\t\tthrow new DOMException(DOMException.INVALID_ACCESS_ERR, \"\");\n \t\t}\n \t}", "public int getProteksi(){\n\t\treturn (getTotal() - getPromo()) * protectionCost / 100;\n\t}", "int getQuantite();", "int getQuantite();", "public static Double mediaDec(List<Double> numeros) {\r\n Integer quantidade = numeros.size();\r\n Double valorT = 0.0;\r\n for (int i = 0; i < numeros.size(); i++) {\r\n valorT = valorT + numeros.get(i);\r\n }\r\n Double calculo = valorT / quantidade;\r\n return calculo;\r\n }", "public BigDecimal getValorTotal() {\r\n \treturn valorUnitario.setScale(5, BigDecimal.ROUND_HALF_EVEN).multiply(quantidade.setScale(3, BigDecimal.ROUND_HALF_EVEN)).setScale(3, BigDecimal.ROUND_DOWN).subtract(valorDesconto).setScale(3, BigDecimal.ROUND_HALF_EVEN);\r\n }", "public float totalVentas() {\n float total = 0;\n for (int i = 0; i < posicionActual; i++) {\n total += getValorCompra(i); //Recorre el arreglo y suma toda la informacion el el arreglo de los valores en una variable que luego se retorna \n }\n return total;\n }", "public double getPercepcion(){\n return localPercepcion;\n }", "public BigDecimal getPorcentajeDiscapacidad()\r\n/* 234: */ {\r\n/* 235:429 */ return this.porcentajeDiscapacidad;\r\n/* 236: */ }", "public double darCapacidadKilometrosPorGalon() {\n\t\treturn capacidadKilometrosPorGalon;\n\t}", "public BigDecimal pesquisarValorMultasCobradas(int idConta) throws ErroRepositorioException ;", "public float perimetro() {\n return (lado * 2 + base);\r\n }", "public double obtener_total(){\r\n double total_ventas = precio*unidades;\r\n return total_ventas;\r\n }", "public java.math.BigInteger getCantidadCUVErrado(){\n return localCantidadCUVErrado;\n }", "public double getPrecioVenta() {\n return precioVenta;\n }", "private List<ObligacionCoactivoDTO> calcularCostasProcesales(List<ObligacionCoactivoDTO> obligaciones,\n BigDecimal valorAbsoluto, BigDecimal porcentaje) throws CirculemosNegocioException {\n // No aplica costas\n if (valorAbsoluto == null && porcentaje == null) {\n return obligaciones;\n } else if (valorAbsoluto != null) {\n // Aplica valor absoluto\n if (obligaciones.size() == 1) {\n obligaciones.get(0).setValorCostasProcesales(valorAbsoluto);\n return obligaciones;\n } else {\n BigDecimal porcentajeDeuda;\n BigDecimal totalDeuda = new BigDecimal(0);\n\n // Calculo de deuda\n for (ObligacionCoactivoDTO obligacion : obligaciones) {\n totalDeuda = totalDeuda\n .add(obligacion.getValorObligacion().add(obligacion.getValorInteresMoratorios()));\n\n }\n\n // Calculo de porcentaje y valor\n for (ObligacionCoactivoDTO obligacion : obligaciones) {\n porcentajeDeuda = ((obligacion.getValorCostasProcesales()\n .add(obligacion.getValorInteresMoratorios())).multiply(new BigDecimal(100)))\n .divide(totalDeuda);\n\n obligacion\n .setValorCostasProcesales(totalDeuda.multiply(porcentajeDeuda).divide(new BigDecimal(100)));\n\n }\n return obligaciones;\n\n }\n } else if (porcentaje != null) {\n // Aplica porcentaje de la deuda\n for (ObligacionCoactivoDTO obligacion : obligaciones) {\n obligacion.setValorCostasProcesales(\n (obligacion.getValorObligacion().add(obligacion.getValorInteresMoratorios()))\n .multiply(porcentaje).divide(new BigDecimal(100)).setScale(2,\n BigDecimal.ROUND_HALF_UP));\n\n }\n return obligaciones;\n } else {\n throw new CirculemosNegocioException(ErrorCoactivo.GenerarCoactivo.COAC_002005);\n }\n }", "public Double getPromedio() {\n double sum = 0;\n for (Unidad unidad : Unidades)\n sum += unidad.getCalificacion();\n return sum / Unidades.size();\n }", "private Map<String,Double> getPromedioHabilidades(Cuadrilla cuadrilla){\n\t\tSystem.out.println(\"#### getPromedioHabilidades ######\");\n\t\tdouble proprod= 0, protrae= 0, prodorm = 0, prodcaa = 0;\n\t\tint cantper = 0;\n\t\tfor (CuadrillasDetalle cd : cuadrilla.getCuadrillasDetalles()) {\n\t\t\t\n\t\t\tList<TecnicoCompetenciaDetalle> tcds = \tcd.getTecnico().getTecnicoCompetenciaDetalles();\n\t\t\tfor (TecnicoCompetenciaDetalle tcd : tcds) {\n\t\t\t\tInteger codigoComp = tcd.getCompetencia().getCodigoCompetencia();\n\t\t\t\tswitch(codigoComp){\n\t\t\t\t\tcase COMPETENCIA_PRODUCTIVIDAD:\n\t\t\t\t\t\tproprod = proprod+ tcd.getGradoCompetencia().doubleValue();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase COMPETENCIA_TRABAJO_EQUIPO:\n\t\t\t\t\t\tprotrae = protrae + tcd.getGradoCompetencia().doubleValue();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase COMPETENCIA_ORIENTACION_METAS:\n\t\t\t\t\t\tprodorm = prodorm + tcd.getGradoCompetencia().doubleValue();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase COMPETENCIA_CALIDAD_ATENCION:\n\t\t\t\t\t\tprodcaa = prodcaa +tcd.getGradoCompetencia().doubleValue();\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tcantper++;\t\t\t\n\t\t}\n\t\t\t\t\t\n\t\t// promedio de las competencias de los tenicos de cada cuadrilla\n\t\tproprod = proprod/cantper; \n\t\tprotrae = protrae/cantper;\n\t\tprodorm = prodorm/cantper;\n\t\tprodcaa = prodcaa/cantper;\n\n\t\tMap<String, Double> mpproms = new LinkedHashMap<String,Double>();\n\t\tmpproms.put(\"proprod\", proprod);\n\t\tmpproms.put(\"protrae\", protrae);\n\t\tmpproms.put(\"prodorm\", prodorm);\n\t\tmpproms.put(\"prodcaa\", prodcaa);\n\t\n\t\treturn mpproms;\n\t\t\n\t}", "public double getPreco(){\n return pagamento.getPreco();\n }", "private static int calcularMedia(int[] notas) {\n\t\tint media = 0;\n\n\t\tfor (int i = 0; i < notas.length; i++) {\n\n\t\t\tmedia = media + notas[i];\n\n\t\t}\n\t\treturn media/notas.length;\n\t}", "public int promedio() {\r\n // calculo y redondeo del promedio\r\n promedio = Math.round(nota1B+nota2B);\r\n // paso de Double a Int\r\n return (int) promedio;\r\n }", "double getPerimetro();", "public int addPontos(double gastos) {\n\t\tdouble pontos = gastos * BONUS_PREMIUM;\n\t\tint totalPontos = (int) pontos;\n\n\t\tif (gastos > 100) {\n\t\t\tdouble adicional = gastos / 100;\n\t\t\ttotalPontos += (int) adicional * 10;\n\n\t\t}\n\t\treturn totalPontos;\n\n\t}", "public void setPrecio(int precio) {\n\t\tthis.producto.setPrecio(precio);\n\t}", "public int getQuantidade();", "public static void main(String[] args){\n double precio_producto = 150;\n double iva = 0.13;\n double total = 0;\n \n total= precio_producto * iva;\n System.out.println(\"El iva del producto: $ \"+total);\n \n \n \n }", "public final void calcular() {\n long dias = Duration.between(retirada, devolucao).toDays();\n valor = veiculo.getModelo().getCategoria().getDiaria().multiply(new BigDecimal(dias));\n }", "public void calcularCubicajePorVolumen(DTOListaPicadoCabecera listaPicado) throws MareException {\n UtilidadesLog.info(\"MONCalculoCubicaje.calcularCubicajePorVolumen(DTOListaPicadoCabecera listaPicado): Entrada\");\n \n if(log.isDebugEnabled())\n UtilidadesLog.debug(\"listaPicado: \" + listaPicado);\n \n try {\n DAOCalculoCubicaje daoCalculoCubicaje = new DAOCalculoCubicaje();\n \n ArrayList tiposCajas = daoCalculoCubicaje.obtenerTiposCajasCubicaje(listaPicado.getLineaArmado());\n \n if(tiposCajas.size()==0){\n LogAPP.error(\"No existe ninguna caja con indicador de cubicaje activo\");\n return;\n }\n \n ArrayList volumenProductos = daoCalculoCubicaje.obtenerVolumenProductos(listaPicado);\n \n if(volumenProductos.size() > 0)\n this.homogeneizarMedidas(tiposCajas, volumenProductos);\n \n // Ordeno las listas de mayor a menor por capacidad y volumen\n Collections.sort(tiposCajas, new CapacidadComparator()); \n Collections.sort(volumenProductos, new VolumenComparator()); \n \n if(log.isDebugEnabled()) {\n UtilidadesLog.debug(\"despues de ordenar tiposCajas: \" + tiposCajas);\n UtilidadesLog.debug(\"despues de ordenar volumenProductos: \" + volumenProductos);\n }\n \n // Calculo el cubitaje\n BigDecimal volumenACubicar = this.calcularVolumenProductos(volumenProductos);\n \n ArrayList cajasInicial = new ArrayList();\n ArrayList cajas = new ArrayList();\n DTOTipoCajaEmbalaje cajaActual = null;\n DTOTipoCajaEmbalaje cajaAuxiliar = null;\n \n if(volumenACubicar.compareTo(((DTOTipoCajaEmbalaje)tiposCajas.get(0)).getCapacidad())==1){\n UtilidadesLog.debug(\"volumenACubicar > que la caja con mayor capacidad\");\n cajasInicial.add((DTOTipoCajaEmbalaje)tiposCajas.get(0));\n \n } else {\n UtilidadesLog.debug(\"busco la caja que tenga la capacidad > volumenACubicar\");\n int cantTiposCajas = tiposCajas.size();\n DTOTipoCajaEmbalaje dtoTipoCajaEmbalaje = null;\n \n for(int i=0; i< cantTiposCajas; i++){\n dtoTipoCajaEmbalaje = (DTOTipoCajaEmbalaje)tiposCajas.get(i);\n if(log.isDebugEnabled())\n UtilidadesLog.debug(\"dtoTipoCajaEmbalaje: \" + dtoTipoCajaEmbalaje);\n \n if(volumenACubicar.compareTo(((DTOTipoCajaEmbalaje)tiposCajas.get(i)).getCapacidad())==-1){\n cajaAuxiliar = dtoTipoCajaEmbalaje;\n }\n }\n \n DTOTipoCajaEmbalaje backCajaAuxiliar = (DTOTipoCajaEmbalaje)deepCopy(cajaAuxiliar);\n cajasInicial.add(backCajaAuxiliar);\n }\n \n cajaActual = (DTOTipoCajaEmbalaje)cajasInicial.get(0);\n cajaActual.setVolumenSobrante(cajaActual.getCapacidad());\n DTOTipoCajaEmbalaje cajaNueva = null;\n \n BigDecimal volumenCubicado = new BigDecimal(0);\n int numeroCajas = 1;\n long numeroCajasMaestra=0;\n boolean aplicarSeguridad = true;\n DTOVolumenProducto volumenProductoActual = null;\n \n ArrayList detalles = listaPicado.getDetalles();\n int cantDet = 0;\n int indexNuevoDet = 0;\n DTOListaPicadoDetalle dtoListaPicadoDetalle = null;\n DTOListaPicadoDetalle dtoListaPicadoDetalleCaja = null;\n DTOListaPicadoDetalle backDtoListaPicadoDetalle = null;\n\n while(!volumenProductos.isEmpty()) {\n volumenProductoActual = (DTOVolumenProducto)volumenProductos.get(0);\n \n if(log.isDebugEnabled())\n UtilidadesLog.debug(\"volumenProductoActual: \" + volumenProductoActual);\n \n // sapaza -- Cambios para WCS y MUO -- 22/09/2010\n //Verificamos si la cantidad de productos corresponde a una caja maestra\n if( (volumenProductoActual.getNumeroUnidadesCajaMaestra().intValue() > 0) &&\n (volumenProductoActual.getUnidadesProducto().intValue() >= volumenProductoActual.getNumeroUnidadesCajaMaestra().intValue())) {\n \n UtilidadesLog.debug(\"Aplica el caso de Caja Maestra\");\n volumenCubicado = volumenCubicado.add(volumenProductoActual.getVolumen().multiply(\n new BigDecimal(volumenProductoActual.getNumeroUnidadesCajaMaestra().toString())));\n \n //determinamos el numero de caja maestra que tendra el producto evaluado\n numeroCajasMaestra = cajas.size() + 1;\n \n //Se debe descontar el Nro de unidades en la caja maestra del total de unidades a picar y asignar los productos a esta caja.\n Integer numeroUnidadesRestante = new Integer(volumenProductoActual.getUnidadesProducto().intValue() - \n volumenProductoActual.getNumeroUnidadesCajaMaestra().intValue());\n \n UtilidadesLog.debug(\"numeroUnidadesRestante :\" + numeroUnidadesRestante);\n \n // Busca el ultimo producto en lista de picado que se corresponde con volumenProductoActual \n cantDet = detalles.size();\n for (int k = 0; k < cantDet; k++) {\n dtoListaPicadoDetalle = (DTOListaPicadoDetalle)detalles.get(k);\n \n if(volumenProductoActual.getOidProducto().equals(dtoListaPicadoDetalle.getOidProducto())){\n backDtoListaPicadoDetalle = (DTOListaPicadoDetalle)deepCopy(dtoListaPicadoDetalle);\n dtoListaPicadoDetalleCaja = dtoListaPicadoDetalle;\n indexNuevoDet = k + 1;\n }\n }\n \n dtoListaPicadoDetalleCaja.setNumeroCaja(new Long(numeroCajasMaestra));\n dtoListaPicadoDetalleCaja.setUnidadesProducto(new Long(volumenProductoActual.getNumeroUnidadesCajaMaestra()));\n dtoListaPicadoDetalleCaja.setOidTipoCajaEmbalaje(volumenProductoActual.getOidTipoCajaMaestra());\n dtoListaPicadoDetalleCaja.setDescripcionTipoCajaEmbalaje(volumenProductoActual.getDescripcionTipoCajaMaestra()); \n \n if(log.isDebugEnabled())\n UtilidadesLog.debug(\"dtoListaPicadoDetalleCaja: \" + dtoListaPicadoDetalleCaja);\n \n //si el numero de unidades restante es igual a 0, ya no se inserta un nuevo detalle de lista de picado\n if(numeroUnidadesRestante.intValue() > 0) \n detalles.add(indexNuevoDet, backDtoListaPicadoDetalle);\n\n cajaNueva = new DTOTipoCajaEmbalaje();\n cajaNueva.setOid(volumenProductoActual.getOidTipoCajaMaestra());\n cajaNueva.setDescripcion(volumenProductoActual.getDescripcionTipoCajaMaestra());\n cajaNueva.setVolumenSobrante(new BigDecimal(0));\n cajas.add(cajaNueva);\n \n volumenProductoActual.setUnidadesProducto(numeroUnidadesRestante);\n\n if(log.isDebugEnabled()) {\n UtilidadesLog.debug(\"cajaActual Maestra: \" + cajaNueva);\n UtilidadesLog.debug(\"detalles nueva vuelta Maestra: \" + detalles);\n } \n\n //si el numero de unidades restante es igual a 0, se continua con el siguiente producto\n if(numeroUnidadesRestante.intValue() == 0) {\n volumenProductos.remove(0);\n } \n\n continue; \n } else {\n cajaActual = (DTOTipoCajaEmbalaje)cajasInicial.get(0);\n boolean despachado = false;\n \n if(volumenProductoActual.getVolumen().compareTo(cajaActual.getNivelAplicacion())==1){\n if(log.isDebugEnabled())\n UtilidadesLog.debug(\"Aplica el porcentaje de seguridad del tipo de caja al producto\");\n\n BigDecimal porcentajeSeguridad = cajaActual.getPorcentajeSeguridad();\n \n // sapaza -- Cambios para WCS y MUO -- 22/09/2010\n if(ConstantesAPE.COD_PICADO_AFRAME.equals(volumenProductoActual.getCodigoSistemaPicado()))\n porcentajeSeguridad = porcentajeSeguridad.add(volumenProductoActual.getPorcentajeCubicajeAdicional());\n \n volumenProductoActual.setVolumen(volumenProductoActual.getVolumen().add(volumenProductoActual.getVolumen().multiply(porcentajeSeguridad).divide(new BigDecimal(100),2,BigDecimal.ROUND_HALF_UP)));\n }\n \n //Buscamos por las cajas que tienes volumen sobrante para ingresar los productos posibles en dicho espacio\n for(int i=0; i<cajas.size(); i++) {\n cajaActual = (DTOTipoCajaEmbalaje)cajas.get(i);\n numeroCajas = i+1;\n \n //la caja tiene volumen sobrante, verificamos si puede entrar algun producto \n if(cajaActual.getVolumenSobrante().longValue() > 0) {\n boolean crearDetalle = true;\n BigDecimal unidades = cajaActual.getVolumenSobrante().divide(volumenProductoActual.getVolumen(),0,BigDecimal.ROUND_DOWN);\n if(log.isDebugEnabled()) { \n UtilidadesLog.debug(\"numero cajaActual: \" + (i+1));\n UtilidadesLog.debug(\"unidades maxima en la caja: \" + unidades);\n UtilidadesLog.debug(\"unidades restantes: \" + volumenProductoActual.getUnidadesProducto());\n } \n \n if(unidades.intValue() >= volumenProductoActual.getUnidadesProducto()) {\n unidades = new BigDecimal(volumenProductoActual.getUnidadesProducto());\n crearDetalle = false;\n } \n \n if(unidades.longValue() > 0){\n \n volumenCubicado = volumenCubicado.add(volumenProductoActual.getVolumen().multiply(unidades));\n cajaActual.setVolumenSobrante(cajaActual.getVolumenSobrante().subtract(volumenProductoActual.getVolumen().multiply(unidades)));\n \n // Busca el ultimo producto en lista de picado que se corresponde con volumenProductoActual \n cantDet = detalles.size();\n for (int k = 0; k < cantDet; k++) {\n dtoListaPicadoDetalle = (DTOListaPicadoDetalle)detalles.get(k);\n \n if(volumenProductoActual.getOidProducto().equals(dtoListaPicadoDetalle.getOidProducto())){\n if(crearDetalle)\n backDtoListaPicadoDetalle = (DTOListaPicadoDetalle)deepCopy(dtoListaPicadoDetalle);\n dtoListaPicadoDetalleCaja = dtoListaPicadoDetalle;\n indexNuevoDet = k + 1;\n }\n }\n \n dtoListaPicadoDetalleCaja.setNumeroCaja(new Long(numeroCajas));\n dtoListaPicadoDetalleCaja.setUnidadesProducto(Long.valueOf(unidades.toString()));\n dtoListaPicadoDetalleCaja.setOidTipoCajaEmbalaje(cajaActual.getOid());\n dtoListaPicadoDetalleCaja.setDescripcionTipoCajaEmbalaje(cajaActual.getDescripcion()); \n \n if(log.isDebugEnabled())\n UtilidadesLog.debug(\"dtoListaPicadoDetalleCaja: \" + dtoListaPicadoDetalleCaja);\n \n if(crearDetalle)\n detalles.add(indexNuevoDet, backDtoListaPicadoDetalle);\n } else if(unidades.longValue()==0 && cajaActual.getVolumenSobrante().equals(cajaActual.getCapacidad())){\n throw new MareException(\"La volumen de la caja es menor que el volumen del producto \");\n } \n \n volumenProductoActual.setUnidadesProducto(new Integer(volumenProductoActual.getUnidadesProducto().intValue()- \n Integer.valueOf(unidades.toString()).intValue()));\n \n //si se ha atendido la cantidad solicitado del producto actual, se sigue con el siguiente producto \n if(volumenProductoActual.getUnidadesProducto() == 0) {\n volumenProductos.remove(0);\n despachado = true;\n break; \n } \n \n }\n } \n \n if(!despachado) {\n //si queda unidades pendientes x despachar, entonces empezamos a abrir nuevas cajas para despachar lo restante\n while(volumenProductoActual.getUnidadesProducto() > 0) {\n cajaActual = (DTOTipoCajaEmbalaje)deepCopy((DTOTipoCajaEmbalaje)cajasInicial.get(0));\n cajas.add(cajaActual);\n cajaActual.setVolumenSobrante(cajaActual.getCapacidad());\n numeroCajas = cajas.size();\n boolean crearDetalle = true;\n \n BigDecimal unidades = cajaActual.getVolumenSobrante().divide(volumenProductoActual.getVolumen(),0,BigDecimal.ROUND_DOWN);\n if(unidades.longValue()==0 && cajaActual.getVolumenSobrante().equals(cajaActual.getCapacidad())){\n throw new MareException(\"La volumen de la caja es menor que el volumen del producto \");\n } \n \n //validamos si cubre la cantidad de productos solicitados\n if(unidades.intValue() >= volumenProductoActual.getUnidadesProducto()) {\n unidades = new BigDecimal(volumenProductoActual.getUnidadesProducto());\n crearDetalle = false;\n }\n \n volumenCubicado = volumenCubicado.add(volumenProductoActual.getVolumen().multiply(unidades));\n cajaActual.setVolumenSobrante(cajaActual.getVolumenSobrante().subtract(volumenProductoActual.getVolumen().multiply(unidades)));\n \n cantDet = detalles.size();\n for (int k = 0; k < cantDet; k++) {\n dtoListaPicadoDetalle = (DTOListaPicadoDetalle)detalles.get(k);\n \n if(volumenProductoActual.getOidProducto().equals(dtoListaPicadoDetalle.getOidProducto())){\n dtoListaPicadoDetalleCaja = dtoListaPicadoDetalle;\n }\n }\n \n cantDet = detalles.size();\n for (int k = 0; k < cantDet; k++) {\n dtoListaPicadoDetalle = (DTOListaPicadoDetalle)detalles.get(k);\n \n if(volumenProductoActual.getOidProducto().equals(dtoListaPicadoDetalle.getOidProducto())){\n if(crearDetalle)\n backDtoListaPicadoDetalle = (DTOListaPicadoDetalle)deepCopy(dtoListaPicadoDetalle);\n dtoListaPicadoDetalleCaja = dtoListaPicadoDetalle;\n indexNuevoDet = k + 1;\n }\n } \n \n dtoListaPicadoDetalleCaja.setNumeroCaja(new Long(numeroCajas));\n dtoListaPicadoDetalleCaja.setUnidadesProducto(Long.valueOf(unidades.toString()));\n dtoListaPicadoDetalleCaja.setOidTipoCajaEmbalaje(cajaActual.getOid());\n dtoListaPicadoDetalleCaja.setDescripcionTipoCajaEmbalaje(cajaActual.getDescripcion()); \n \n volumenProductoActual.setUnidadesProducto(new Integer(volumenProductoActual.getUnidadesProducto().intValue()- \n Integer.valueOf(unidades.toString()).intValue()));\n \n if(crearDetalle)\n detalles.add(indexNuevoDet, backDtoListaPicadoDetalle);\n \n //si se ha atendido la cantidad solicitado del producto actual, se sigue con el siguiente producto \n if(volumenProductoActual.getUnidadesProducto() == 0) {\n volumenProductos.remove(0);\n break; \n } \n } \n }\n \n }\n } \n \n // Reacomodo la ultima caja\n this.reubicarProductosUltimaCaja(listaPicado, tiposCajas, volumenProductos, cajas, numeroCajas);\n \n listaPicado.setNumeroTotalCajas(new Long(cajas.size()));\n listaPicado.setVolumen(volumenCubicado);\n \n if(log.isDebugEnabled())\n UtilidadesLog.debug(\"listaPicado salida: \" + listaPicado);\n \n UtilidadesLog.info(\"MONCalculoCubicaje.calcularCubicajePorVolumen(DTOListaPicadoCabecera listaPicado): Salida\");\n \n } catch (Exception ex) {\n UtilidadesLog.error(\"ERROR \", ex);\n ex.printStackTrace();\n throw new MareException(ex);\n } \n }", "public BigDecimal getPercentageProfitPLimit();", "public float calcularTotalPagosFactura(FacturaIngreso factura){\n float total = (float) 0.00;\n if(factura != null){\n if(!factura.getPagoCompraCollection().isEmpty()){\n BigDecimal suma = BigDecimal.ZERO;\n for(PagoCompra actual : factura.getPagoCompraCollection()){\n suma = suma.add(actual.getTotalPagoCompra());\n }\n total = new funciones().redondearMas(suma.floatValue(), 2);\n }\n }\n return total;\n }", "private void calculadorNotaFinal() {\n\t\t//calculo notaFinal, media de las notas medias\n\t\tif(this.getAsignaturas() != null) {\n\t\t\t\tfor (Iterator<Asignatura> iterator = this.asignaturas.iterator(); iterator.hasNext();) {\n\t\t\t\t\tAsignatura asignatura = (Asignatura) iterator.next();\n\t\t\t\t\tif(asignatura.getNotas() != null) {\n\t\t\t\t\tnotaFinal += asignatura.notaMedia();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//curarse en salud con division entre 0\n\t\t\t\tif(this.getAsignaturas().size() != 0) {\n\t\t\t\tnotaFinal /= this.getAsignaturas().size();\n\t\t\t\t}\n\t\t}\n\t}", "public void prepararPago(){\n pago = (float) 0.00;\n nuevoSaldo = (float) 0.00;\n intereses = (float) 0.00;\n mora = (float) 0.00;\n pagoValido = false;\n }", "public double getCalificacionMedia() {\r\n return calificacionMedia;\r\n }" ]
[ "0.71431357", "0.6822491", "0.6820964", "0.6736162", "0.6685849", "0.66474944", "0.6617849", "0.6530899", "0.6515826", "0.64648026", "0.646311", "0.64448315", "0.6402529", "0.63942", "0.6374147", "0.6326585", "0.63060313", "0.62804264", "0.6248677", "0.62260634", "0.6196187", "0.6187968", "0.61877096", "0.61391413", "0.6130669", "0.6093297", "0.60810864", "0.60563123", "0.6035827", "0.60344696", "0.6027018", "0.60156476", "0.6012357", "0.60033435", "0.5956786", "0.594526", "0.5932084", "0.5928217", "0.5927961", "0.5914396", "0.58887297", "0.5869832", "0.58687747", "0.5866362", "0.5849617", "0.58341235", "0.5834092", "0.5830443", "0.5823418", "0.58087885", "0.58073646", "0.57988656", "0.5789426", "0.5787352", "0.5787183", "0.5775065", "0.57629097", "0.5760721", "0.5759536", "0.5754295", "0.57526076", "0.5746985", "0.57196075", "0.5719378", "0.5714662", "0.57035005", "0.57025474", "0.5694182", "0.5682842", "0.5673502", "0.5668713", "0.5668713", "0.5662411", "0.5661206", "0.5659829", "0.56438726", "0.56371963", "0.5636463", "0.5633494", "0.5632461", "0.5626681", "0.5623669", "0.5620693", "0.5620001", "0.55927634", "0.5592477", "0.5591023", "0.5590673", "0.5589435", "0.5588875", "0.55868214", "0.558667", "0.55729586", "0.55728453", "0.55646", "0.5563268", "0.55631757", "0.55616635", "0.55571574", "0.55540717", "0.5552294" ]
0.0
-1
Sets the bits requsted
public static void addAcl(boolean grant, Permission permssion, String key, List<AclModification> modifications) { if (grant) { key = AclModification.grantKey(key); } else { key = AclModification.denyKey(key); } modifications.add(new AclModification(key, permssion.getPermission(), AclModification.Operation.OP_OR)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setBits(int... values);", "void setBit(int index, int value);", "void setCollideBits (long bits);", "public void set()\n\t{\n\t\tbitHolder.setValue(1);\n\t}", "protected void setAll() {\n for (int i=0; i <= (Numbers.INTEGER_WIDTH*8-2); i++) {\n \tthis.setBitAt(i);\n } \t\n }", "protected void setBit(long bitIndex) {\r\n\t long intIndex = (bitIndex >>> ADDRESS_BITS_PER_UNIT);\r\n\t bits[(int)(intIndex / ONE_MB_INTS)][(int)(intIndex % ONE_MB_INTS)] \r\n\t |= 1 << (bitIndex & BIT_INDEX_MASK);\r\n\t }", "void setCategoryBits (long bits);", "public void setBit(int pos, int bit) {\r\n\t\tflagBits[pos] = bit;\r\n\t}", "protected void setBitAt(final int bitIndex) {\n _bitMap = _setBit(_bitMap,\n \t\t\t\t (Numbers.INTEGER_WIDTH*8-1)-bitIndex-1);\n }", "public void setFlags( byte[] bytes )\n {\n if ( (bytes== null ) || ( bytes.length != 4 ) )\n {\n value = -1;\n }\n \n value = ( ( bytes[0] & 0x00F ) << 24 ) | ( ( bytes[1] & 0x00FF ) << 16 ) | ( ( bytes[2] & 0x00FF ) << 8 ) | ( 0x00FF & bytes[3] ); \n setData( bytes );\n }", "public UnmodifiableBitSet setBit(int i){\n\t\tUnmodifiableBitSet nbs = (UnmodifiableBitSet)this.clone();\n\t\tnbs.setBitInn(i);\n\t\treturn nbs;\n\t}", "public int updateBit(int i,int j, boolean set){\n int value=(set)?1:0;\n int mask=~(1<<j);\n int clear=mask&i;\n return clear|(1<<value);\n\n}", "public void setAverageBits(int bits) {\n }", "public int\n setBitRate(int bitRate);", "public void set(final int i) {\n\t\tint wordPos;\n\t\tint bitPos = 0;\n\t\tint offset;\n\n\t\tassert (i >= 0);\n\n\t\t// try simple set (append style)\n\t\tif (fastSet(i))\n\t\t\treturn;\n\n\t\t// simple set failed. Find compressed word where to set the bit\n\t\tRunningLengthWord rlw = null, prev = null, next = null;\n\n\t\tEWAHIterator iter = new EWAHIterator(this.buffer, actualsizeinwords);\n\t\twhile (iter.hasNext() && (bitPos < i || bitPos == 0)) {\n\t\t\tif (rlw != null)\n\t\t\t\tprev = new RunningLengthWord(rlw);\n\t\t\trlw = iter.next();\n\t\t\tbitPos += rlw.size() * wordinbits;\n\t\t}\n\t\tif (iter.hasNext())\n\t\t\tnext = rlw.getNext();\n\n\t\tbitPos -= rlw.size() * 64;\n\t\toffset = i - bitPos;\n\t\twordPos = rlw.position;\n\n\t\t// the bit to set is in a literal word. Try to set bit directly\n\t\tif (offset >= rlw.getRunningLength() * 64) {\n\t\t\toffset -= rlw.getRunningLength() * 64;\n\t\t\tint literalPos = (offset / 64);\n\t\t\twordPos += literalPos + 1;\n\t\t\tfinal long newdata = 1l << (offset % 64);\n\t\t\tthis.buffer[wordPos] = this.buffer[wordPos] | newdata;\n\t\t\t// if all bits of literal set, then either merge with run length\n\t\t\t// or create new RLW.\n\t\t\tif (this.buffer[wordPos] == oneMask) {\n\t\t\t\t// first literal of current RLW and running bit is set\n\t\t\t\t// increase count by one (unless maximal count reached)\n\t\t\t\tif (literalPos == 0\n\t\t\t\t\t\t&& (rlw.getRunningBit() || rlw.getRunningLength() == 0)\n\t\t\t\t\t\t&& rlw.getRunningLength() < RunningLengthWord.largestrunninglengthcount) {\n\t\t\t\t\trlw.setRunningBit(true);\n\t\t\t\t\trlw.setRunningLength(rlw.getRunningLength() + 1);\n\t\t\t\t\trlw.setNumberOfLiteralWords(rlw.getNumberOfLiteralWords() - 1);\n\t\t\t\t\t// current RLW has no literals left, try to merge with\n\t\t\t\t\t// following RLW\n\t\t\t\t\tif (rlw.getNumberOfLiteralWords() == 0\n\t\t\t\t\t\t\t&& next != null\n\t\t\t\t\t\t\t&& next.getRunningBit()\n\t\t\t\t\t\t\t&& next.getRunningLength() + rlw.getRunningLength() < RunningLengthWord.largestrunninglengthcount) {\n\t\t\t\t\t\tif (rlw.equals(this.rlw))\n\t\t\t\t\t\t\tthis.rlw.position = next.position;\n\t\t\t\t\t\tnext.setRunningLength(next.getRunningLength()\n\t\t\t\t\t\t\t\t+ rlw.getRunningLength());\n\t\t\t\t\t\tshiftCompressedWordsLeft(rlw.position + 2, 2);\n\t\t\t\t\t}\n\t\t\t\t\t// merging doesn't work because of size\n\t\t\t\t\t// else just reduce length of rlw by 1\n\t\t\t\t\telse\n\t\t\t\t\t\tshiftCompressedWordsLeft(rlw.position + 2, 1);\n\t\t\t\t}\n\t\t\t\t// if last word increase following running length count if\n\t\t\t\t// possible\n\t\t\t\telse if (next != null\n\t\t\t\t\t\t&& next.getRunningLength() \n\t\t\t\t\t\t\t\t< RunningLengthWord.largestrunninglengthcount\n\t\t\t\t\t\t&& (next.getRunningLength() == 0 || next\n\t\t\t\t\t\t\t\t.getRunningBit())\n\t\t\t\t\t\t&& literalPos == rlw.getNumberOfLiteralWords() - 1) {\n\t\t\t\t\tnext.setRunningBit(true);\n\t\t\t\t\tnext.setRunningLength(next.getRunningLength() + 1);\n\t\t\t\t\trlw.setNumberOfLiteralWords(rlw.getNumberOfLiteralWords() - 1);\n\t\t\t\t\t// current RLW has no literals left, try to merge with\n\t\t\t\t\t// following\n\t\t\t\t\tif (rlw.getNumberOfLiteralWords() == 0\n\t\t\t\t\t\t\t&& next != null\n\t\t\t\t\t\t\t&& next.getRunningBit()) {\n\t\t\t\t\t\tlong totalRunLen = next.getRunningLength() + rlw.getRunningLength(); \n\t\t\t\t\t\t\n\t\t\t\t\t\t// merging into next possible?\n\t\t\t\t\t\tif (totalRunLen < RunningLengthWord.largestrunninglengthcount) {\n\t\t\t\t\t\t\tnext.setRunningLength(next.getRunningLength()\n\t\t\t\t\t\t\t\t\t+ rlw.getRunningLength());\n\t\t\t\t\t\t\tshiftCompressedWordsLeft(rlw.position + 2, 2);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// run length to large, move run length from next to current\n\t\t\t\t\t\t// and shift next one to the left\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\trlw.setRunningLength(RunningLengthWord.\n\t\t\t\t\t\t\t\t\tlargestrunninglengthcount);\n\t\t\t\t\t\t\tnext.setRunningLength(totalRunLen - RunningLengthWord\n\t\t\t\t\t\t\t\t\t.largestrunninglengthcount);\n\t\t\t\t\t\t\tshiftCompressedWordsLeft(rlw.position + 2, 1);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t// remove RLW\n\t\t\t\t\telse\n\t\t\t\t\t\tshiftCompressedWordsLeft(\n\t\t\t\t\t\t\t\trlw.position + rlw.getNumberOfLiteralWords()\n\t\t\t\t\t\t\t\t\t\t+ 2, 1);\n\t\t\t\t}\n\t\t\t\t// cannot merge, have to create new RLW and adapt literal count\n\t\t\t\t// of current RLW\n\t\t\t\telse {\n\t\t\t\t\tint beforeLit = literalPos;\n\t\t\t\t\tint afterLit =\n\t\t\t\t\t\t\trlw.getNumberOfLiteralWords() - literalPos - 1;\n\n\t\t\t\t\tif (log.isDebugEnabled()) {log.debug(\"split into \" + beforeLit + \" and \" + afterLit);};\n\n\t\t\t\t\tRunningLengthWord newRlw = new RunningLengthWord(rlw);\n\t\t\t\t\tnewRlw.position += literalPos + 1;\n\t\t\t\t\tnewRlw.setRunningBit(true);\n\t\t\t\t\tnewRlw.setRunningLength(1L);\n\t\t\t\t\tnewRlw.setNumberOfLiteralWords(afterLit);\n\n\t\t\t\t\trlw.setNumberOfLiteralWords(beforeLit);\n\n\t\t\t\t\t// if next one is full running length 1's we have to switch\n\t\t\t\t\t// running lengths\n\t\t\t\t\tif (next != null\n\t\t\t\t\t\t\t&& next.getRunningBit()\n\t\t\t\t\t\t\t&& next.getRunningLength() == RunningLengthWord.largestrunninglengthcount) {\n\t\t\t\t\t\tnext.setRunningLength(1L);\n\t\t\t\t\t\tnewRlw.setRunningLength(RunningLengthWord.largestrunninglengthcount);\n\t\t\t\t\t}\n\n\t\t\t\t\t// we split the last word, adapt it\n\t\t\t\t\tif (rlw.position == this.rlw.position)\n\t\t\t\t\t\tthis.rlw.position = newRlw.position;\n\t\t\t\t\tif (log.isDebugEnabled()) {log.debug(\"split because new 1's run\");};\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// bit is in a clean word, if it is a '1' sequence we are fine\n\t\telse if (rlw.getRunningBit()) {\n\t\t\treturn;\n\t\t}\n\t\t// bit to set is in '0' clean word. We have to split this clean word and\n\t\t// shift following words in the buffer.\n\t\t// We do this by adding a new RLW y after the RLW x which has to be\n\t\t// split. This new RWL y takes over all the\n\t\t// literal words of x and encodes the part of the 0 sequence that\n\t\t// follows the bit we want to set. RWL x's\n\t\t// run length is reduced and we add the new bit as the new single\n\t\t// literal word for x.\n\t\telse {\n\t\t\tlong zeroRunLen = rlw.getRunningLength();\n\t\t\tlong newRunLen = offset / 64;\n\t\t\tlong afterRunLen = ((zeroRunLen * 64 - 63) / 64) - newRunLen;\n\t\t\tlong newNumLiterals = rlw.getNumberOfLiteralWords() + 1;\n\t\t\tfinal long newdata = 1l << (offset % 64);\n\n\t\t\t// no preceeding and following run length.\n\t\t\t// CASE 1) Try to merge with preceeding or following RLW.\n\t\t\tif (newRunLen == 0 && afterRunLen == 0) {\n\t\t\t\t// merge with previous if exists and possible\n\t\t\t\tif (prev != null\n\t\t\t\t\t\t&& prev.getNumberOfLiteralWords() + newNumLiterals <= RunningLengthWord.largestliteralcount) {\n\t\t\t\t\tprev.setNumberOfLiteralWords(prev.getNumberOfLiteralWords()\n\t\t\t\t\t\t\t+ newNumLiterals);\n\t\t\t\t\tthis.buffer[rlw.position] = newdata;\n\n\t\t\t\t\tif (this.rlw.equals(rlw))\n\t\t\t\t\t\tthis.rlw = prev;\n\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// No merging possible!\n\t\t\t// CASE 2) if previous run length = 0 then add new literal into\n\t\t\t// previous if previous still has space\n\t\t\tif (newRunLen == 0\n\t\t\t\t\t&& prev != null\n\t\t\t\t\t&& prev.getNumberOfLiteralWords() < RunningLengthWord.largestliteralcount) {\n\t\t\t\tprev.setNumberOfLiteralWords(prev.getNumberOfLiteralWords() + 1);\n\t\t\t\trlw.setRunningLength(afterRunLen);\n\t\t\t\tshiftCompressedWordsRight(rlw.position, 1);\n\t\t\t\tthis.buffer[prev.position + prev.getNumberOfLiteralWords()] =\n\t\t\t\t\t\tnewdata;\n\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// CASE 3) No merging possible, if following run length = 0, then\n\t\t\t// try to extend R with the new literal.\n\t\t\tif (afterRunLen == 0\n\t\t\t\t\t&& rlw.getNumberOfLiteralWords() < RunningLengthWord.largestliteralcount) {\n\t\t\t\trlw.setNumberOfLiteralWords(rlw.getNumberOfLiteralWords() + 1);\n\t\t\t\trlw.setRunningLength(newRunLen);\n\t\t\t\tshiftCompressedWordsRight(rlw.position + 1, 1);\n\t\t\t\tthis.buffer[rlw.position + 1] = newdata;\n\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// TODO rlw is full (literals) and next one has no running length\n\t\t\t// and is not full\n\t\t\tif (afterRunLen == 0\n\t\t\t\t\t& next != null\n\t\t\t\t\t&& rlw.getNumberOfLiteralWords() == RunningLengthWord.largestliteralcount\n\t\t\t\t\t&& next.getNumberOfLiteralWords() < RunningLengthWord.largestliteralcount) {\n\t\t\t\trlw.setRunningLength(rlw.getRunningLength() - 1);\n\t\t\t\tshiftCompressedWordsRight(rlw.position + 1, 1);\n\t\t\t\trlw.array = this.buffer;\n\t\t\t\tnext.array = this.buffer;\n\n\t\t\t\tthis.buffer[rlw.position + 1] = newdata;\n\n\t\t\t\t// switch next header with last literal\n\t\t\t\tlong temp = this.buffer[next.position + 1];\n\t\t\t\tthis.buffer[next.position + 1] = this.buffer[next.position];\n\t\t\t\tthis.buffer[next.position] = temp;\n\t\t\t\tnext.setNumberOfLiteralWords(next.getNumberOfLiteralWords() + 1);\n\n\t\t\t\tif (next.position + 1 == this.rlw.position)\n\t\t\t\t\tthis.rlw.position = next.position;\n\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// CASE 4) no extension possible. Have to SPLIT the zero sequence\n\t\t\t// and create new RLW\n\t\t\t// new RLW only gets a single literal\n\t\t\tif (afterRunLen == 0) {\n\t\t\t\tassert (rlw.getNumberOfLiteralWords() == RunningLengthWord.largestliteralcount);\n\n\t\t\t\tshiftCompressedWordsRight(rlw.position + 1, 1);\n\t\t\t\tshiftCompressedWordsRight(\n\t\t\t\t\t\trlw.position + rlw.getNumberOfLiteralWords() + 1, 1);\n\t\t\t\tRunningLengthWord newRlw =\n\t\t\t\t\t\tnew RunningLengthWord(this.buffer, rlw.position\n\t\t\t\t\t\t\t\t+ rlw.getNumberOfLiteralWords() + 1);\n\t\t\t\trlw.array = this.buffer;\n\n\t\t\t\tnewRlw.setNumberOfLiteralWords(1L);\n\t\t\t\tnewRlw.setRunningLength(0);\n\t\t\t\tnewRlw.setRunningBit(false);\n\n\t\t\t\trlw.setRunningLength(newRunLen);\n\n\t\t\t\tthis.buffer[rlw.position + 1] = newdata;\n\n\t\t\t\tif (newRlw.position > this.rlw.position)\n\t\t\t\t\tthis.rlw.position = newRlw.position;\n\t\t\t}\n\t\t\t// new RLW also gets run length\n\t\t\telse {\n\t\t\t\tshiftCompressedWordsRight(wordPos + 1, 2);\n\t\t\t\tRunningLengthWord newRlw =\n\t\t\t\t\t\tnew RunningLengthWord(this.buffer, wordPos + 2);\n\t\t\t\trlw.array = this.buffer;\n\n\t\t\t\tnewRlw.setNumberOfLiteralWords(rlw.getNumberOfLiteralWords());\n\t\t\t\tnewRlw.setRunningLength(afterRunLen);\n\t\t\t\tnewRlw.setRunningBit(false);\n\n\t\t\t\trlw.setRunningLength(newRunLen);\n\t\t\t\trlw.setNumberOfLiteralWords(1);\n\n\t\t\t\tthis.buffer[wordPos + 1] = newdata;\n\n\t\t\t\tif (newRlw.position > this.rlw.position)\n\t\t\t\t\tthis.rlw.position = newRlw.position;\n\t\t\t}\n\t\t}\n\t}", "public int setBit(int i, int j){\n return (i|(1<<j));\n }", "public void setBitToOne(int k) {\n if (this.inBitRange(k)) {\n int i = k / 8;\n int j = k % 8;\n int b = this.data.get(i);\n int c = 1 << (7 - j);\n b = b | c;\n byte d = (byte) b;\n this.data.set(i, d);\n }\n }", "void setBit(int index, boolean value);", "public void setBit(int index, boolean bit)\n\t{\n\t\tif (index + 1 > bits.size()) bits.ensureCapacity(index + 1);\n\t\tbits.add(index, bit);\n\t}", "public void setBitSetMask(BitSet mask) {\r\n newMask = mask;\r\n }", "static void getIndexSetBits(int[] setBits, long board) {\n\t\tint onBits = 0;\n\t\twhile (board != 0) {\n\t\t\tsetBits[onBits] = Long.numberOfTrailingZeros(board);\n\t\t\tboard ^= (1L << setBits[onBits++]);\n\t\t}\n\t\tsetBits[onBits] = -1;\n\t}", "private EfficientTerminalSet setBit(int index, boolean value) {\n int[] newData = data.clone();\n int blockIndex = index / 32;\n int bitIndex = index % 32;\n if (value)\n newData[blockIndex] |= 1 << bitIndex;\n else\n newData[blockIndex] &= ~(1 << bitIndex);\n return new EfficientTerminalSet(terminals, indices, newData);\n }", "static int setBit(int num, int pos) {\n\t\t\treturn num | (1<<pos);\n\t\t}", "static int setBit(int n, int pos){\n return n | (1<<pos);\n }", "public static byte set(byte value, int bit){\n return (byte)(value|(1<<bit));\n }", "public void setZero() {\n\t\tset((byte) (get() | (1 << 7)));\n\t}", "public static int _setBit(final int originalInt,final int bitIndex) {\n return originalInt | _getMask(bitIndex);\n }", "void setBitsPerPixel(int bitsPerPixel);", "private static int setBit(int ci, int bo, int newBit) {\n int clearMask = ~(1 << bo);\n int ciWithBitCleared = ci & clearMask;\n int bitMask = newBit << bo;\n int xiWithNewBitSet = ciWithBitCleared | bitMask;\n return xiWithNewBitSet;\n }", "public void setBitField(BitField bitField){\n \tthis.bitField=bitField;\n }", "protected long setBit(long word, boolean flag, long position) {\n\t\tif (!flag) {\n\t\t\treturn word & (~(1L << position));\n\t\t}\n\t\treturn word | (1L << position);\n\t}", "public static void setFlags(int flag){\r\n flags |= flag;\r\n }", "void set(int i, int val) {\n int numPosition = i / MAX_BITS;\n int intPosition = i % MAX_BITS;\n\n if (val == 1)\n values[numPosition] |= (1 << intPosition);\n else\n values[numPosition] = values[numPosition]&~(1 << intPosition);\n }", "public void setCarry() {\n\t\tset((byte) (get() | (1 << 4)));\n\t}", "public void setBitField(byte[] byteField){\n \tbitField.setBitField(byteField);;\n }", "public void set(int loc, boolean val)\n\t{\n\t\tif (loc < this.size)\n\t\t{\n\t\t\tif (val)\n\t\t\t{\n\t\t\t\tbits[loc / BITS_IN_LONG] |= (1L << (loc % BITS_IN_LONG));\n\t\t\t} else\n\t\t\t{\n\t\t\t\tbits[loc / BITS_IN_LONG] &= ~(1L << (loc % BITS_IN_LONG)); // DO NOT FORGET THAT SECOND L\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t // TOOK ME FOREVER TO FIX WHEN I FORGOT\n\t\t\t}\n\t\t} else\n\t\t{\n\t\t\tthrow new ArrayIndexOutOfBoundsException(\"Exception: tried to set value of BitArray that was out of bounds: \" + loc + \". Size was \" + this.size);\n\t\t}\n\t}", "public static long setBit(long value, int pos) {\n pos--;\n return value | (1L << pos);\n\n }", "public void set(int value)\n\t{\n\t\tbitHolder.setValue(value);\n\t}", "public static int setBit(final int intValue, final Bits bit) {\n return setFlag(intValue, bit, true);\n }", "public TribitByte setBit(int bitPosition, Tribit bit){\n MathUtils.assertInRange(bitPosition, 0, LENGTH - 1);\n Objects.requireNonNull(bit);\n Tribit[] newValues = Arrays.copyOf(this.value, this.value.length);\n newValues[bitPosition] = bit;\n return new TribitByte(newValues);\n }", "public void setMutexBits(int p_75248_1_) {\n/* 55 */ this.mutexBits = p_75248_1_;\n/* */ }", "private int setNibble(int num, int data, int which, int bitsToReplace) {\n return (num & ~(bitsToReplace << (which * 4)) | (data << (which * 4)));\n }", "void writeBits(long bits, int numBits) throws IOException;", "public void setBitToZero(int k) {\n if (this.inBitRange(k)) {\n int i = k / 8;\n int j = k % 8;\n int b = this.data.get(i);\n int c = ~(1 << (7 - j));\n b = b & c;\n byte d = (byte) b;\n this.data.set(i, d);\n }\n }", "public static byte setBit(byte input, int position, boolean val){\n return val? (byte) (input | (1 << position)):(byte) (input & ~(1 << position));\n }", "BinaryArrayReadWrite set(int index, byte x);", "public void setFlag( int flag )\n {\n value |= 1 << flag;\n setBit( flag );\n }", "private static int setBits(int n) {\r\n int highestBitValue = 1;\r\n int c = 0;\r\n\r\n while (highestBitValue < n) {\r\n highestBitValue = highestBitValue * 2;\r\n }\r\n\r\n \r\n int currentBitValue = highestBitValue;\r\n while (currentBitValue > 0) {\r\n if (currentBitValue <= n) {\r\n\r\n n -= currentBitValue;\r\n c++;\r\n }\r\n currentBitValue = currentBitValue / 2;\r\n }\r\n\r\n return c;\r\n }", "public void setBitMode(byte ucMask, BitModes bitMode) throws FTD2XXException {\n ensureFTStatus(ftd2xx.FT_SetBitMode(ftHandle, ucMask, (byte) bitMode.constant()));\n }", "void setNetworkMask(byte[] networkMask);", "protected final void operationBIT(final int data) {\r\n this.signFlag = data >= 0x80;\r\n this.overflowFlag = (data & 0x40) > 0;\r\n this.zeroFlag = (this.ac & data) == 0;\r\n }", "public void setFlagBin(int n) {\n flagBin=Translate.decTobinN(n, 4);\n }", "public void setFlag( int flag )\n {\n value |= 1 << ( MAX_SIZE - 1 - flag );\n }", "public void resetZero() {\n\t\tset((byte) (get() & ~(1 << 7)));\n\t}", "private static void setParityBit(byte[] key) {\n for (int i = 0; i < key.length; i++) {\n int b = key[i] & 0xfe;\n b |= (Integer.bitCount(b) & 1) ^ 1;\n key[i] = (byte) b;\n }\n }", "void setFlag(long flag, boolean val) {\n\t\tif (val)\r\n\t\t\tflags = flags | flag;\r\n\t\telse\r\n\t\t\tflags = flags & ~flag;\r\n\t}", "public Builder set(int position, Tribit bit){\n Objects.requireNonNull(bit);\n MathUtils.assertInRange(position, 0, LENGTH - 1);\n bits[position] = bit;\n this.cursor = position + 1;\n return this;\n }", "private void setIsBinary(boolean value) {\r\n\t \t_isBinary = value;\r\n\t }", "public void resetCarry() {\n\t\tset((byte) (get() & ~(1 << 4)));\n\t}", "public void r_SET(short src)\n { set_bytes((short)(src) & -1L, 2, data, 9); }", "private static void setBitAtGivenPositions(int pos1, int pos2) {\n\t\tlong temp1 = 1l << pos1;\n\t\tlong temp2 = 1l << pos2;\n\t\tlong result = temp1 | temp2;\n\t\tSystem.out.println(result);\n\t}", "protected final synchronized void setFlag(int flag, boolean sts) {\n\t\tboolean state = (m_flags & flag) != 0 ? true : false;\n\t\tif ( state && sts == false)\n\t\t\tm_flags -= flag;\n\t\telse if ( state == false && sts == true)\n\t\t\tm_flags += flag;\n\t}", "public void setBlueBit(int bit, boolean value) {\n\t this.blue[bit] = value;\n\t this.color = computeColor();\n\t }", "public void y_SET(short src)\n { set_bytes((short)(src) & -1L, 2, data, 5); }", "private void markBitmap(int frameNo){\n int bit = frameNo/32;\n int mask = frameNo%32;\n bitMap[bit] = bitMap[bit]|MASK[mask];\n }", "public void alt_SET(int src)\n { set_bytes((int)(src) & -1L, 4, data, 14); }", "public void setBitOffset(int bitOffset) {\r\n\t\tthis.bitOffset = bitOffset;\r\n\t}", "public void setFlags(int param1) {\n }", "void set(ByteModule byteModule);", "public void x_SET(short src)\n { set_bytes((short)(src) & -1L, 2, data, 3); }", "private void setInt(byte [] buffer, int offset, int value) {\r\n\t\tbuffer[offset++] = (byte)((value & 0xFF000000) >>> 24);\r\n\t\tbuffer[offset++] = (byte)((value & 0x00FF0000) >>> 16);\r\n\t\tbuffer[offset++] = (byte)((value & 0x0000FF00) >>> 8);\r\n\t\tbuffer[offset] = (byte)((value & 0x000000FF));\r\n\t}", "public interface BitField {\n\n /**\n * @return the size of the field\n */\n int size();\n\n /**\n * set all values of the BitField with the rightmost value being index 0 (LSB).\n * example set(0,0,0,1) would set bit0 == 1 and bit3 == 0\n *\n * @param values the values to set the BitField (only 0 and 1 are accepted)\n * @return the BitField\n */\n void setBits(int... values);\n\n /**\n * set a given bit in the field\n *\n * @param index\n * @param value true == 1, false == 0\n * @throws IndexOutOfBoundsException if you try to set a bit greater than the size of the field\n */\n void setBit(int index, boolean value);\n\n /**\n * set a given bit in the field\n *\n * @param index\n * @param value (only 0 and 1 are accepted)\n * @throws IndexOutOfBoundsException if you try to set a bit greater than the size of the field\n */\n void setBit(int index, int value);\n\n /**\n * replace all values of the bitfield with this integer value\n *\n * @param val\n * @return\n */\n void setToValue(int val);\n\n /**\n * invert all the bits\n */\n void invertAllBits();\n\n /**\n * get a given bit as a boolean\n *\n * @param index\n * @return a boolean for the bit (true == 1, false == 0)\n * @throws IndexOutOfBoundsException if you ask for a bit our of range\n */\n boolean getBit(int index);\n\n /**\n * get a given bit as a 0 or 1\n *\n * @param index\n * @return a value for the bit (1 == 1, 0 == 0)\n * @throws IndexOutOfBoundsException if you ask for a bit our of range\n */\n int getBitAsInt(int index);\n\n /**\n * get the field as an integer\n *\n * @return the int value of the bitfield\n */\n int intValue();\n\n /**\n * return a nice string representation of the field\n *\n * @return\n */\n String asString();\n\n /**\n * get the LSBs of the BitField (if possible)\n *\n * @param digits the number of LSBs to return\n * @return a new BitField of the LSBs\n */\n BitField getLSBs(int digits);\n\n /**\n * get the MSBs of the BitField (if possible)\n *\n * @param digits the number of MSBs to return\n * @return a new BitField of the MSBs\n */\n BitField getMSBs(int digits);\n\n /**\n * return a new BitField. Inclusive\n *\n * @param from index of the from (0==LSB)\n * @param to index of the to (max is the size-1 of the field)\n * @return a new BitField of the chosen bits\n * @throws IndexOutOfBoundsException if you ask for a bit our of range\n */\n BitField getSubField(int from, int to);\n\n /**\n * return a new BitField. Inclusive\n *\n * @param from index of the from (0==LSB)\n * @param to index of the to (if > size then we pad with 0's)\n * @return a new BitField of the chosen bits\n * @throws IndexOutOfBoundsException if you ask for a bit our of range\n */\n BitField getSubFieldWithPadding(int from, int to);\n\n /**\n * a convenience method to add to the LS Bits of the BitField.\n * this will resize the BitField, shift everything to the left and insert\n * the new BitField\n *\n * @param fieldToAddToTheRight\n */\n void shiftAndAddToRight(BitField fieldToAddToTheRight);\n\n /**\n * shift to the left and pad the new LSBs with 0's\n *\n * @param numberToShift the number of bits to shift\n */\n void shiftLeft(int numberToShift);\n\n /**\n * shift to the right and have the LSBs dissapear\n *\n * @param numberToShift the number of bits to shift\n */\n void shiftRight(int numberToShift);\n\n /**\n * resize, but trimming/adding to the MSB side\n * <p>\n * if newSize > currentSize, we pad with 0's on the MSBs\n * if newSize < currentSize, we simply drop the bits on the left\n *\n * @param newSize the new size of the BitField\n */\n void resize(int newSize);\n\n /**\n * copy the BitField\n *\n * @return a copy of the bitField\n */\n BitField copy();\n\n /**\n * convert the bit field and return as a collection of bytes made up from the BitField from the LSB to the MSB. Padding in the MSB if needed\n * (byte == 8 bits).\n * <p>\n * For example:\n * 00001000 would return a list with a single byte value of 8\n * 1000001000 would return a list with the first value being a byte with a value of 8, then one with a value of 2\n *\n * @return a collection with the LSB in position 0 and the MSB as the last value\n */\n List<Byte> getAsBytes();\n\n}", "public void SetBinaryGenotype(BitSet binaryData) {\n this.SetBinaryPhenotype(binaryData);\n this.m_Genotype =(BitSet)binaryData.clone();\n }", "void invertAllBits();", "private static int mask(int bit) {\n return MSB >>> bit;\n }", "public static int setFlag(final int intValue, Bits bit, final boolean condition) {\n if (condition) {\n return intValue | bit.getMask();\n } else {\n return intValue & ~bit.getMask();\n }\n }", "public void setFlags(int flags) throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__io__block.writeInt(__io__address + 156, flags);\n\t\t} else {\n\t\t\t__io__block.writeInt(__io__address + 124, flags);\n\t\t}\n\t}", "public void setSizeInBits(final int size) {\n\t\tthis.sizeinbits = size;\n\t}", "public void setHalfCarry() {\n\t\tset((byte) (get() | (1 << 5)));\n\t}", "public FormatableBitSet(byte[] newValue)\n \t{\n \t\tvalue = newValue;\n \t\tbitsInLastByte = 8;\n \t\tlengthAsBits = calculateLength(newValue.length);\n \t}", "static void init(int[] referenceBits, int leap) {\n\t\treferenceBits[0] = 0;\n\t\treferenceBits[1] = leap;\n\t\treferenceBits[2] = 0;\n\t\treferenceBits[3] = 0;\n\t}", "public int bitAt(int i) {\n // PUT YOUR CODE HERE\n }", "public void alt_SET(int src)\n { set_bytes((int)(src) & -1L, 4, data, 24); }", "public void setBitRate(Integer bitRate) {\n this.bitRate = bitRate;\n }", "public void clearBits()\r\n {\r\n clear();\r\n }", "protected void _setBooleanElement(int index, boolean value) {\n\t\tint bitOffset = Math.multiplyExact(index, this.step);\n\t\t// the number of the Bit in the byte it is in\n\t\tbyte bitnum = (byte) (bitOffset % Constants.BITS_PER_BYTE);\n\t\t// position of the byte in the data section\n\t\tint position = (this.ptr + bitOffset / Constants.BITS_PER_BYTE);\n\t\tbyte oldValue = this.segment.buffer.get(position);\n\t\t// the left side of the '|' zeros the selected bit; the right side sets the new value\n\t\tthis.segment.buffer.put(position, (byte) ((oldValue & (~(1 << bitnum))) | ((value ? 1 : 0) << bitnum)));\n\t}", "static int countSetBits(int n)\r\n {\r\n int count = 0;\r\n while (n > 0) {\r\n count += n & 1;\r\n n >>= 1;\r\n }\r\n return count;\r\n }", "public void toggle()\n\t{\n\t\tbitHolder.setValue(Math.abs(bitHolder.getValue() - 1 ));\n\t\t\n\t}", "public void setSubtraction() {\n\t\tset((byte) (get() | (1 << 6)));\n\t}", "public static void main(String[] args) {\n\n\t\tint bitmask = 0xF0F0;\n\t\tint value = 0x0000;\n\t\tSystem.out.println(bitmask ^ value); // Prints 0xF0F0 = 61680\n\n\t\tbitmask = 0xF0F0;\n\t\tvalue = 0x0F0F;\n\t\tSystem.out.println(bitmask ^ value); // Prints 0xFFFF = 65535\n\n\t\tbitmask = 0xF0F0;\n\t\tvalue = 0xF0F0;\n\t\tSystem.out.println(bitmask ^ value); // Prints 0\n\t}", "public void setNumRabbits(int numRabbits) {\n\t\tif (numRabbits < 0) {\n\t\t\tSystem.out.println(\"numRabbits should be positive ! It is set to 1.\");\n\t\t\tnumRabbits = 1;\n\t\t} else if (numRabbits > xSize * ySize) {\n\t\t\tSystem.out.println(\n\t\t\t\t\t\"numRabbits should less or equal than the size of the grid! It is set to \" + xSize * ySize + \".\");\n\t\t\tnumRabbits = xSize * ySize;\n\t\t}\n\t\tthis.numRabbits = numRabbits;\n\t\tupdatePanel();\n\t}", "public void z_SET(short src)\n { set_bytes((short)(src) & -1L, 2, data, 7); }", "public void setValue(int value) {\n BitSet b = new BitSet();\n addIntToBitset(b, value, 0, 32);\n setMessagePayload(b, getByteSize());\n }", "abstract void set(ByteModule byteModule);", "public void resetHalfCarry() {\n\t\tset((byte) (get() & ~(1 << 5)));\n\t}", "private void set(){\n resetBuffer();\n }", "public void updateFlags()\n {\n initialize();\n }", "private void resetFlags(){\n\t\tint count = 0;\n\t\tif (partOfAPairedAlignment) count += Math.pow(2, 0);\n\t\tif (aProperPairedAlignment) count += Math.pow(2, 1);\n\t\tif (unmapped) count += Math.pow(2, 2);\n\t\tif (mateUnMapped) count += Math.pow(2, 3);\n\t\tif (reverseStrand) count += Math.pow(2, 4);\n\t\tif (mateReverseStrand) count += Math.pow(2, 5);\n\t\tif (firstPair) count += Math.pow(2, 6);\n\t\tif (secondPair) count += Math.pow(2, 7);\n\t\tif (notAPrimaryAlignment) count += Math.pow(2, 8);\n\t\tif (failedQC) count += Math.pow(2, 9);\n\t\tif (aDuplicate) count += Math.pow(2, 10);\n\t\tflags = (short) count;\n\t\tflagResetNeeded = false;\n\t\t\n\t}", "private static BitSet makeBitSet( int... args ) {\n\tBitSet result = new BitSet( MAX_OPCODE + 1 ) ;\n\tfor (int value : args )\n\t result.set( value ) ;\n\treturn result ;\n }", "public final void setLE(byte le) {\n\tif (le == (byte) 0x00) {\n\t setLE(256);\n\t} else {\n\t setLE(le & 0xFF);\n\t}\n }", "public void setMask(BitSet imageMask) {\r\n mask = imageMask;\r\n }" ]
[ "0.7432316", "0.7419642", "0.72185355", "0.71957517", "0.71857834", "0.6962265", "0.684865", "0.6837365", "0.68337715", "0.66596895", "0.6650481", "0.65977746", "0.6534296", "0.6508369", "0.65024024", "0.64864826", "0.64687866", "0.6462459", "0.6434775", "0.64189845", "0.6413613", "0.6410301", "0.6388763", "0.63364965", "0.6309307", "0.63068503", "0.63017863", "0.6246321", "0.62304664", "0.62123024", "0.6205087", "0.619502", "0.6192399", "0.6187125", "0.6184995", "0.6157988", "0.61471045", "0.61236924", "0.6106894", "0.60952353", "0.6028795", "0.5982436", "0.59817743", "0.597202", "0.5962703", "0.5945784", "0.5913763", "0.5910502", "0.5888513", "0.58869165", "0.5885354", "0.5845885", "0.5809499", "0.5779029", "0.5773999", "0.57668746", "0.5757419", "0.5754373", "0.57540464", "0.5748819", "0.57311773", "0.5712381", "0.5711768", "0.5711121", "0.5697362", "0.56876844", "0.5685018", "0.56638366", "0.5651295", "0.56186604", "0.5618356", "0.5616262", "0.56144696", "0.56046593", "0.55977076", "0.55758786", "0.5570369", "0.55668443", "0.5564716", "0.5555966", "0.55521", "0.55487", "0.5548425", "0.5539037", "0.55322564", "0.55196214", "0.55065477", "0.5503785", "0.5481151", "0.54646015", "0.5459779", "0.54471797", "0.5429439", "0.5422468", "0.5415394", "0.54135525", "0.54109955", "0.5404095", "0.5402636", "0.54011315", "0.53960913" ]
0.0
-1
Unsets the bits requested
public static void removeAcl(boolean grant, Permission permssion, String key, List<AclModification> modifications) { if (grant) { key = AclModification.grantKey(key); } else { key = AclModification.denyKey(key); } modifications.add(new AclModification(key, ~permssion.getPermission(), AclModification.Operation.OP_AND)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void clearBits()\r\n {\r\n clear();\r\n }", "public void clear()\n\t{\n\t\tbitHolder.setValue(0);\n\t}", "protected void clearAll() {\n for (int i=0; i <= (Numbers.INTEGER_WIDTH*8-2); i++) {\n \tthis.clearBitAt(i);\n } \t\n }", "public void clearFlag( int flag )\n {\n value &= ~( 1 << ( MAX_SIZE - 1 - flag ) );\n }", "void unset() {\n size = min = pref = max = UNSET;\n }", "public int clearBit(int i,int j){\n int mask=~(1<<j);\n return i&mask;\n }", "private void _setUnshifted ()\r\n {\r\n m_bBase64mode = false;\r\n m_nBitsRead = 0;\r\n m_nTempChar = 0;\r\n }", "void unsetValue();", "void unsetValue();", "static int clearBit(int num, int pos) {\n\t\t\tint mask = ~(1<<pos);\n\t\t\treturn num & mask;\n\t\t}", "public void resetSubtraction() {\n\t\tset((byte) (get() & ~(1 << 6)));\n\t}", "public void clearFlag( int flag )\n {\n value &= ~( 1 << flag );\n clearBit( flag );\n }", "public void unsetReset() {\n\t\twasReset=false;\n\t}", "public void resetCarry() {\n\t\tset((byte) (get() & ~(1 << 4)));\n\t}", "protected void clearBitAt(final int bitIndex) {\n _bitMap = _clearBit(_bitMap,\n \t\t\t\t\t(Numbers.INTEGER_WIDTH*8-1)-bitIndex-1);\n }", "public static int clearBit(int num, int i) {\n int mask = ~(1 << i);\n return num & mask;\n }", "public void resetZero() {\n\t\tset((byte) (get() & ~(1 << 7)));\n\t}", "void invertAllBits();", "void unsetState();", "public static int _clearBit(final int originalInt,final int bitIndex) {\n return originalInt & ~_getMask(bitIndex);\n }", "void unsetRawOffset();", "public void clearFlag( KerberosFlag flag )\n {\n value &= ~( 1 << ( MAX_SIZE - 1 - flag.getOrdinal() ) );\n }", "public void deselect(){\n\t\tPIN.reset();\n\t}", "public void clearBits(int[][] bits, int start, int len) {\n\t\tint left = start; \n\t\tint right = start + len - 1; \n\t\tfor (int i = 0; i < bits.length; i++) {\n\t\t\tfor (int j = left; j <= right; j++) {\n\t\t\t\tbits[i][j] = 0;\n\t\t\t}\n\t\t\tleft = left / 2;\n\t\t\tright = right / 2;\n\t\t}\n\t}", "public void clear() {\n\t\tthis.sizeinbits = 0;\n\t\tthis.actualsizeinwords = 1;\n\t\tthis.rlw.position = 0;\n\t\t// buffer is not fully cleared but any new set operations should\n\t\t// overwrite stale data\n\t\tthis.buffer[0] = 0;\n\t}", "public void unpin();", "public void unpin();", "public void unAssign(){\n\t\tthis.value = 0;\n\t}", "public void clear() {\r\n\t\tbitset.clear();\r\n\t\tnumberOfAddedElements = 0;\r\n\t}", "public void reset()\n {\n a = 0x0123456789ABCDEFL;\n b = 0xFEDCBA9876543210L;\n c = 0xF096A5B4C3B2E187L;\n\n xOff = 0;\n for (int i = 0; i != x.length; i++)\n {\n x[i] = 0;\n }\n\n bOff = 0;\n for (int i = 0; i != buf.length; i++)\n {\n buf[i] = 0;\n }\n\n byteCount = 0;\n }", "void unsetNcbi8Aa();", "void unsetCit();", "public void toggle()\n\t{\n\t\tbitHolder.setValue(Math.abs(bitHolder.getValue() - 1 ));\n\t\t\n\t}", "private void resetMask() {\n maskArray = new int [][]{\n {0,0,0,0},\n {0,0,0,0},\n {0,0,0,0},\n {0,0,0,0}\n };\n }", "public void reset() {\n this.inhibited = false;\n this.forced = false;\n }", "public void clearFlag( KerberosFlag flag )\n {\n value &= ~( 1 << flag.getOrdinal() );\n clearBit( flag.getOrdinal() );\n }", "protected void unmaskSlot(int slot) {\n\t\tif (slot >= 0 && slot < this.length) {\n\t\t\tthis.mask[slot] = false;\n\t\t\tthis.unrevealedSlots--;\n\t\t}\n\t}", "public void deselect() {\n\n // reset the pin value\n pin.reset();\n\n }", "private void clearX() {\n bitField0_ = (bitField0_ & ~0x00000001);\n x_ = 0L;\n }", "public void clear() {\n\t\tn1 = n0 = 0L;\n\t}", "void setCollideBits (long bits);", "public void reset(){\r\n \tdefaultFlag = false;\r\n }", "public void clear(int flag) {\n setWaitFlags( waitFlags & ~flag );\n }", "void unsetOffset();", "void clearPowertypeRanges();", "private void unmarkForSecOp() {\n\t\tthis.secOpFlag = false;\n\t\tthis.secopDoc = null;\n\t}", "void unsetValueSampledData();", "private void clearAll(byte value) {\n for (int i = 0; i < size; i++) {\n data[i] = (byte) (value & 0xff);\n }\n }", "void unsetCombine();", "public void mo37873b() {\n C13262e.this.f34200n.onReset(this.f34229f, this.f34230g);\n synchronized (C13262e.this) {\n C13262e.this.f34210x.remove(Integer.valueOf(this.f34229f));\n }\n }", "public abstract Op resetStates();", "public void reset() {\n onoff.reset();\n itiefe.reset();\n itiefe.setEnabled(false);\n }", "public void opbClearState() {\r\n final String methodName = \"opbClearState()\";\r\n\r\n logger.entering(CLASS_NAME, methodName);\r\n\r\n // set all fields to their initial values\r\n a = null;\r\n aDataSourceValue = null;\r\n\r\n aVarchar = null;\r\n aVarcharDataSourceValue = null;\r\n\r\n aNumber = null;\r\n aNumberDataSourceValue = null;\r\n\r\n aInteger = 8L;\r\n aIntegerDataSourceValue = 8L;\r\n\r\n aDate = null;\r\n aDateDataSourceValue = null;\r\n\r\n aRo = null;\r\n\r\n\r\n }", "void unsetQuick();", "public void resetState();", "public void unset(){\n\t\tcurrentInst = -1;\n\t}", "void unsetPowerBox();", "public void reset() {\n this.state = null;\n }", "public void unReset () {\n count = lastSave;\n }", "void unsetValueQuantity();", "public static byte unsetFourHighestOrderBits(byte b) {\r\n\t\treturn andBits(b, MASK_WITH_FIRST_FOUR_BITS_SET);\r\n\t}", "private void unsetOneAllChecks() {\r\n\r\n checkIman.setEnabled(false);\r\n checkBonferroni.setEnabled(false);\r\n checkHolm.setEnabled(false);\r\n checkHochberg.setEnabled(false);\r\n checkHommel.setEnabled(false);\r\n checkHolland.setEnabled(false);\r\n checkRom.setEnabled(false);\r\n checkFinner.setEnabled(false);\r\n checkLi.setEnabled(false);\r\n\r\n }", "public void resetHalfCarry() {\n\t\tset((byte) (get() & ~(1 << 5)));\n\t}", "public int updateBit(int i,int j, boolean set){\n int value=(set)?1:0;\n int mask=~(1<<j);\n int clear=mask&i;\n return clear|(1<<value);\n\n}", "private void switchOffFlag(int flag) {\r\n\t\tsim40.memory[Simulator.STATUS_ADDRESS] = ~(~sim40.memory[Simulator.STATUS_ADDRESS] | (1<<flag));\r\n\t}", "public void setBitToZero(int k) {\n if (this.inBitRange(k)) {\n int i = k / 8;\n int j = k % 8;\n int b = this.data.get(i);\n int c = ~(1 << (7 - j));\n b = b & c;\n byte d = (byte) b;\n this.data.set(i, d);\n }\n }", "void unsetRequired();", "void unsetProbables();", "public void reset()\n {\n mine = false;\n revealed = false;\n flagged = false;\n repaint();\n }", "void unsetValueCodeableConcept();", "public void clearBytes() {\n this.f12193a = 0;\n this.f12194b = 0;\n this.f12195c = 0;\n this.f12196d.clear();\n this.f12197e.mo42967b();\n this.f12198f.clear();\n mo42980c();\n }", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "private void resetFlags(){\n\t\tint count = 0;\n\t\tif (partOfAPairedAlignment) count += Math.pow(2, 0);\n\t\tif (aProperPairedAlignment) count += Math.pow(2, 1);\n\t\tif (unmapped) count += Math.pow(2, 2);\n\t\tif (mateUnMapped) count += Math.pow(2, 3);\n\t\tif (reverseStrand) count += Math.pow(2, 4);\n\t\tif (mateReverseStrand) count += Math.pow(2, 5);\n\t\tif (firstPair) count += Math.pow(2, 6);\n\t\tif (secondPair) count += Math.pow(2, 7);\n\t\tif (notAPrimaryAlignment) count += Math.pow(2, 8);\n\t\tif (failedQC) count += Math.pow(2, 9);\n\t\tif (aDuplicate) count += Math.pow(2, 10);\n\t\tflags = (short) count;\n\t\tflagResetNeeded = false;\n\t\t\n\t}", "void unsetMultiple();", "public void remove(int type) {\n\t\tint n = check(type);\n\t\tif (n >= 64) {\n\t\t\tn1 &= ~mask(n - 64);\n\t\t} else {\n\t\t\tn0 &= ~mask(n);\n\t\t}\n\t}", "public void clear() {\n\t\tstate = null;\n\t}", "public void unfreeze(){\n isFrozen = false;\n }", "protected void setAll() {\n for (int i=0; i <= (Numbers.INTEGER_WIDTH*8-2); i++) {\n \tthis.setBitAt(i);\n } \t\n }", "public Builder clearFlag() {\n bitField0_ = (bitField0_ & ~0x00000400);\n flag_ = 0;\n onChanged();\n return this;\n }", "public void reset() {\n\t\tinit(0, 0, 1, false);\n\t}", "void unsetControlType();", "public Builder clearPower() {\n bitField0_ = (bitField0_ & ~0x00000040);\n power_ = 0F;\n onChanged();\n return this;\n }", "public void resetBinary()\n\t{\n\t\tint k=0;\n\t\t\n\t\tfor (int i=0;i<binaryCode.length;i++)\n\t\t{\n\t\t\tfor (int j=0; j<PARITY.length; j++)\n\t\t\t{\n\t\t\t\t//if the bit is a parity bit, it is skipped\n\t\t\t\tif (i==PARITY[j])\n\t\t\t\t{\n\t\t\t\t\tcontinue;\n\t\t\t\t} else {\n\t\t\t\t\t\n\t\t\t\t\t//if it is not a parity bit, the value is sent to the binary number\n\t\t\t\t\tbinaryNumber.setBinary(k, binaryCode[i]);\n\t\t\t\t\tk++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public void unsetState()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(STATE$8, 0);\r\n }\r\n }", "public void clear() {\n up = false;\n down = false;\n left = false;\n right = false;\n }", "public void unsetSwissprot()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(SWISSPROT$14, 0);\r\n }\r\n }", "protected abstract void reset();" ]
[ "0.7416709", "0.68837625", "0.6870788", "0.6711502", "0.66445214", "0.6577866", "0.6572338", "0.65628344", "0.65628344", "0.65550554", "0.6538337", "0.6522728", "0.6440712", "0.64361006", "0.6405933", "0.63945806", "0.6382973", "0.6362188", "0.6341242", "0.6305175", "0.62584716", "0.625105", "0.624963", "0.623883", "0.6172582", "0.6166215", "0.6166215", "0.6138549", "0.6132881", "0.6130992", "0.61302984", "0.611741", "0.60875064", "0.6054922", "0.6050572", "0.6040483", "0.6028598", "0.60053474", "0.5945264", "0.59441775", "0.593822", "0.59359366", "0.5932285", "0.5924727", "0.5916134", "0.59108436", "0.58920246", "0.5890148", "0.5857356", "0.5852817", "0.5847076", "0.58397144", "0.58390033", "0.5829852", "0.58238816", "0.5821538", "0.5816612", "0.58150065", "0.5807295", "0.5806991", "0.58029604", "0.577396", "0.57573", "0.5753925", "0.57398295", "0.57371354", "0.5727758", "0.5724185", "0.5724005", "0.57226807", "0.57181597", "0.5716417", "0.5716417", "0.5716417", "0.5716417", "0.5716417", "0.5716417", "0.5716417", "0.5716417", "0.5716417", "0.5716417", "0.5716417", "0.5716417", "0.5716417", "0.5716417", "0.5716417", "0.57052976", "0.5703745", "0.56995386", "0.56955415", "0.56906277", "0.56853557", "0.5683879", "0.5667921", "0.5665732", "0.56645477", "0.56629336", "0.56541675", "0.56494874", "0.5647572", "0.5639298" ]
0.0
-1
inserisce il dado nella window del player e toglie il dado dal draft
public int doAction(Player player, GameBoard board, List<Integer> parameterForInserDie){ int resultOfAction; int posDieOnDraft=parameterForInserDie.get(0); int whichRow=parameterForInserDie.get(1); int whichColumn=parameterForInserDie.get(2); resultOfAction=checkInsert(player,board,posDieOnDraft,whichRow,whichColumn,false); if(resultOfAction==1){ player.getWindow().insertDie(board.getDieDraft(posDieOnDraft),whichRow,whichColumn,"both"); board.removeDieFromDraft(posDieOnDraft); player.setInsertDieInThisTurn(true); } return resultOfAction; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void vittoria() {\n Platform.runLater(() -> {\n /*Alert alert = new Alert(Alert.AlertType.INFORMATION);\n alert.setTitle(\"Hai vinto\");\n alert.setHeaderText(\"Fine della partita\");\n alert.showAndWait();*/\n Parent root = null;\n Stage dialog = new Stage();\n try {\n root = FXMLLoader.load(Objects.requireNonNull(getClass().getClassLoader().getResource(\"winner.fxml\")));\n Scene s = new Scene(root);\n dialog.setScene(s);\n dialog.setTitle(\"Vittoria!\");\n dialog.getIcons().add(new Image(\"images/cm_boardgame.png\"));\n overlayedStage = dialog;\n overlayedStage.initOwner(thisStage);\n overlayedStage.initModality(Modality.APPLICATION_MODAL);\n overlayedStage.setResizable(false);\n overlayedStage.showAndWait();\n } catch (IOException e) {\n e.printStackTrace();\n }\n System.exit(0);\n });\n try {\n handlerClient.getServer().close();\n } catch (IOException e) {\n System.out.println();\n }\n }", "private void _openEditor() {\n\t\tWindow w = new Window(_caption.getValue());\n\t\tw.setId(\"tinyEditor\");\n\t\tw.setCaptionAsHtml(true);\n\t\t_tinyEditor = new TinyMCETextField();\n\t\t_tinyEditor.setValue(_hiddenField.getValue());\n\t\tw.setResizable(true);\n\t\tw.center();\n\t\tw.setWidth(800, Unit.PIXELS);\n\t\tw.setHeight(600, Unit.PIXELS);\n\t\tVerticalLayout vl = new VerticalLayout();\n\t\tvl.setSizeFull();\n\t\tw.setContent(vl);\n\t\tvl.addComponent(_tinyEditor);\n\t\tButton close = new Button(_i18n.getMessage(\"close\"));\n\t\tclose.addClickListener(evt -> w.close());\n\t\tButton accept = new Button(_i18n.getMessage(\"accept\"));\n\t\taccept.addStyleName(ValoTheme.BUTTON_PRIMARY);\n\t\taccept.addClickListener(evt -> {\n\t\t\t\t\t\t\t\t\t\tString oldValue = _hiddenField.getValue();\n\t\t\t\t\t\t\t\t\t\t_hiddenField.setValue(_tinyEditor.getValue());\n\t\t\t\t\t\t\t\t\t\tif (!oldValue.equals(_hiddenField.getValue())) {\n\t\t\t\t\t\t\t\t\t\t\tthis.fireEvent(new ValueChangeEvent<String>(this,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \toldValue,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \ttrue));\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t_html.removeAllComponents();\n\t\t\t\t\t\t\t\t\t\t_html.addComponent(new Label(_tinyEditor.getValue(), ContentMode.HTML));\n\t\t\t\t\t\t\t\t\t\tw.close();\n\t\t\t\t\t\t\t\t\t });\n\t\tHorizontalLayout hl = new HorizontalLayout();\n\t\thl.addComponents(close, accept);\n\t\thl.setWidth(100, Unit.PERCENTAGE);\n\t\thl.setExpandRatio(close, 1);\n\t\thl.setComponentAlignment(accept, Alignment.BOTTOM_RIGHT);\n\t\thl.setComponentAlignment(close, Alignment.BOTTOM_RIGHT);\n\t\tvl.addComponent(hl);\n\t\tvl.setExpandRatio(_tinyEditor, 1);\n\t\tgetUI().addWindow(w);\n\t}", "public void gameDraft(){\n this.displayMessage(\"Starting the draft phase for player: \" + this.getCurrentPlayer());\n\n currentPlayer.bonusTroops();//Calculates the number of troops to be distributed\n\n //Keep asking player to send troops to territories until there are no more troops to send\n while (currentPlayer.getNumTroops() > 0){\n currentPlayer.draftChoice(this);//Calls the player obj to get the choice\n }\n\n //Draft complete. Move on to attack\n this.displayMessage(\"Draft stage complete, starting the attack phase for player: \" + this.getCurrentPlayer());\n }", "private void initDraftTab() throws IOException {\n // THESE ARE THE CONTROLS FOR THE BASIC SCHEDULE PAGE HEADER INFO\n // WE'LL ARRANGE THEM IN A VBox\n draftTab = new Tab();\n draftWorkspacePane = new VBox();\n draftWorkspacePane.getStyleClass().add(CLASS_DRAFT_PANE);\n \n // ADD PAGE LABEL & BUTTON\n Label draftLabel = new Label();\n draftLabel = initChildLabel(draftWorkspacePane, DraftKit_PropertyType.DRAFT_HEADING_LABEL, CLASS_HEADING_LABEL);\n \n PropertiesManager props = PropertiesManager.getPropertiesManager();\n String imagePath = \"file:\" + PATH_IMAGES + props.getProperty(DraftKit_PropertyType.DRAFT_ICON);\n Image buttonImage = new Image(imagePath);\n draftTab.setGraphic(new ImageView(buttonImage));\n \n // ADD BUTTONS TO THE DRAFT PAGE\n HBox draftButtons = new HBox();\n \n pickPlayer = initHBoxButton(draftButtons, PICK_ICON, PICK_PLAYER_TOOLTIP, false);\n autoPickPlayer = initHBoxButton(draftButtons, PLAY_ICON, AUTO_DRAFT_TOOLTIP, false);\n autoPickPause = initHBoxButton(draftButtons, PAUSE_ICON, AUTO_PAUSE_TOOLTIP, false);\n \n pickPlayer.setMinHeight(10);\n autoPickPlayer.setMinHeight(34);\n autoPickPause.setMinHeight(34);\n pickPlayer.setMinWidth(8);\n autoPickPlayer.setMinWidth(38);\n autoPickPause.setMinWidth(38);\n \n ToolBar draftToolBar = new ToolBar(\n pickPlayer,\n autoPickPlayer,\n autoPickPause\n );\n \n // CREATE THE DRAFT TABLE\n draftTable = new TableView();\n\n draftPick = new TableColumn<>(\"Pick #\");\n draftPick.setCellValueFactory(new Callback<CellDataFeatures<Player, Integer>, ObservableValue<Integer>>() {\n @Override\n public ObservableValue<Integer> call(CellDataFeatures<Player, Integer> p) {\n return new ReadOnlyObjectWrapper(draftTable.getItems().indexOf(p.getValue()) + 1);\n }\n }); \n draftPick.setSortable(false);\n draftFirst = new TableColumn<>(\"First\");\n draftFirst.setCellValueFactory(new PropertyValueFactory<>(\"FirstName\"));\n draftLast = new TableColumn<>(\"Last\");\n draftLast.setCellValueFactory(new PropertyValueFactory<>(\"LastName\"));\n draftTeam = new TableColumn<>(\"Team\");\n draftTeam.setCellValueFactory(new PropertyValueFactory<>(\"ChosenTeam\"));\n draftContract = new TableColumn<>(\"Contract\");\n draftContract.setCellValueFactory(new PropertyValueFactory<>(\"Contract\"));\n draftSalary = new TableColumn<>(\"Salary ($)\");\n draftSalary.setCellValueFactory(new PropertyValueFactory<>(\"Salary\"));\n \n draftTable.getColumns().addAll(draftPick, draftFirst, draftLast, draftTeam, draftContract, draftSalary);\n \n // NEED TO CREATE THE WAY TO ADD THE TABLE (REFRESH IT)\n \n // SET TOOLTIP\n Tooltip t = new Tooltip(\"Draft Summary Page\");\n draftTab.setTooltip(t);\n \n // PUT IN TAB PANE\n draftWorkspacePane.getChildren().add(draftToolBar);\n draftWorkspacePane.getChildren().add(draftTable);\n draftTab.setContent(draftWorkspacePane);\n mainWorkspacePane.getTabs().add(draftTab);\n }", "private static void createParty() {\n\n\n JFrame fenetre = new JFrame(\"Little Thief Auto\");\n\n Route route = new Route();\n User user = new User();\n\n Affichage affichage = new Affichage(fenetre, user, route);\n Controleur ctrl = new Controleur(affichage, user, route);\n //ctrl.setAffichage(affichage);\n //ctrl.setCmds();\n //Deplace deplace = new Deplace(user, route, affichage);\n\n //deplace.start();//Voir qui le lance, en fonction de si il y a une fenetre de demarage ou pas\n Data.initGame();\n\n //fenetre.add(affichage);\n //fenetre.add(affichage.outScreen);\n affichage.switchInteface(false);\n\n //ctrl.startPartie(); //Pas d ecran dacceuil\n /*\n\n Voler fly = new Voler();\n Etat modele = new Etat(fly);\n Controleur ctrl = new Controleur(modele);\n Affichage affichage = new Affichage(ctrl, modele);\n VueBird bird = new VueBird(affichage);\n\n Instant start = Instant.now();\n affichage.setTimer(start);\n\n ctrl.setVue(affichage);\n Avancer avance = new Avancer(affichage, modele.getParcours());\n\n ctrl.enableKeyPad();\n enableReload(fenetre, affichage);\n\n modele.getParcours().setTime(start);\n fly.start();\n avance.start();\n\n\n\n fenetre.add(affichage);\n*/\n\n\n\n\n fenetre.pack();\n fenetre.setVisible(true);\n fenetre.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n }", "public void spustPosluchace() {\n newGameButton.addActionListener(new ActionListener() {\n\n @Override\n public void actionPerformed(ActionEvent arg0) {\n\n // posli komunikaci at zalozi hru\n if (zalozenaHra == false) {\n gameConnectButton.setEnabled(false);\n newGameButton.setText(\"Zrus zalozeni\");\n zalozenaHra = true;\n komunikace.CreateGame();\n } else {\n gameConnectButton.setEnabled(true);\n newGameButton.setText(\"Zaloz hru\");\n zalozenaHra = false;\n komunikace.cancelGame();\n }\n\n }\n });\n\n gameConnectButton.addActionListener(new ActionListener() {\n\n @Override\n public void actionPerformed(ActionEvent e) {\n int polozka = listHer.getSelectedIndex();\n if (polozka >= 0) {\n newGameButton.setEnabled(false);\n gameConnectButton.setEnabled(false);\n komunikace.connectToGame(polozka);\n }\n\n }\n });\n\n this.addWindowListener(new WindowAdapter() {\n public void windowClosing(WindowEvent e) {\n komunikace.disconnect(\"f\");\n zalogujSkonci();\n }\n });\n\n }", "public void sauvegardeActionPerformed(java.awt.event.ActionEvent evt) throws IOException{ \n Games.get(0).saveGame();\n JOptionPane.showMessageDialog(this,\"Partie sauvegardée !\");\n this.requestFocusInWindow();\n }", "public void saveGameView(NextWindow nextWindow) {\n\t\ttry {\n\t\t\tprimaryStage.setTitle(\"Spiel Speichern\");\n\t\t\tBorderPane root = new BorderPane();\n\t\t\tFXMLLoader loader = new FXMLLoader(getClass().getResource(\"/view/LoadGame.fxml\"));\n\t\t\troot = loader.load();\n\t\t\tLoadGameViewController loadGameViewController = (LoadGameViewController) loader.getController();\n\t\t\tloadGameViewController.setOnitamaController(onitamaController);\n\t\t\tloadGameViewController.initSave(nextWindow);\n\t\t\tScene scene = new Scene(root);\n\t\t\t//((Stage) outerPane.getScene().getWindow()).setScene(scene);\n\t\t\tPlatform.runLater(() -> { LoadViewController.primaryStage.setScene(scene); });\n\t\t\t//LoadViewController.primaryStage.setScene(scene);\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void WinDraft() {\n\t\tint bet = (int) (Math.random() * (500 - 1));\n\t\tint minBet = 100;\n\t\t// Use the method Draft() to compare if it return true or false\n\t\tif (Draft() == true) {\n\n\t\t\tthis.dinero = bet + minBet;\n\t\t\tSystem.out.println(\"You won \" + this.dinero + \"$\");\n\n\t\t\tif (this.dinero >= 200 && this.dinero < 500) {\n\t\t\t\tSystem.out.println(\"Good Luck\");\n\t\t\t} else if (this.dinero < 200) {\n\t\t\t\tSystem.out.println(\"Bad luck\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"God in the bets\");\n\t\t\t}\n\n\t\t} else {\n\t\t\tSystem.out.println(\"You lose the draft\");\n\t\t}\n\n\t}", "public void openWindow()\r\n {\r\n myWindow = new TraderWindow(this);\r\n while(!mailbox.isEmpty())\r\n {\r\n myWindow.showMessage( mailbox.remove() );\r\n }\r\n }", "public static void show() {\n\t\tcadastrados = new DaoPagadores();\n\t\t\n\t\tstagePrimary = new Stage();\n\t\tstagePrimary.initModality(Modality.WINDOW_MODAL);\n\t\tstagePrimary.setTitle(\"Mostra Pagadores\");\n\t\tstagePrimary.setMinWidth(900);\n\t\tstagePrimary.setMaxWidth(900);\n\t\tstagePrimary.setMaxHeight(900);\n\t\t\n\t\t// ---------------------- Linha 1\n\t\ttbvPagadoresAtivos = new TableView<Pagadores>();\n\t\tdadosPagadores = cadastrados.carregaPagadores();\n\t\ttbvPagadoresAtivos = tablePagadoresAtivos(dadosPagadores);\n\t\ttbvPagadoresAtivos.getSelectionModel().selectedItemProperty().addListener((v, oldValue, newValue) -> tbvPagadoresAtivos_Change());\n\t\t\n\t\tpaneLinha1 = new HBox(tbvPagadoresAtivos);\n\t\tpaneLinha1.setPrefHeight(400);\n\t\tpaneLinha1.setPrefWidth(850);\n\t\tpaneLinha1.setPadding(new Insets(30,0,0,30));\n \n\t\t// ----------------------- Linha 2\n\t\tlblFonte = new Label(\"Fonte Pagadora : \");\n\t\tlblFonte.setFont(Font.font(\"Arial\", 16));\n\t\tlblFonte.setPrefWidth(150);\n\t\t\n\t\tlblPagFonte = new Label(\"\");\n\t\tlblPagFonte.setFont(Font.font(\"Arial\", 16));\n\t\tpaneLinha2 = new HBox(lblFonte,lblPagFonte);\n\t\tpaneLinha2.setPadding(new Insets(30, 0, 50, 30));\n\t\t\n\t\t// -------------------------\n\t\tgrupo = Ini.loadProps(\"CentroReceb\", \"RecCen\"); // passar esta linha para baixo\n\t\t\n\t\tpanePrimary = new VBox(paneLinha1, paneLinha2);\n\t\tscenePrimary = new Scene(panePrimary);\n\t\tstagePrimary.setScene(scenePrimary);\n\t\tstagePrimary.showAndWait();\n\t}", "public void win() {\n\n\t\t// exist next level?\n\t\tif (Project.project.getMaps().get(maptyp).size() > id + 1) {\n\t\t\tProject.project.startLevel(maptyp, id + 1);\n\n\t\t\t// save it\n\t\t\tif (Project.project.getMapLevel(maptyp) < id + 1) {\n\t\t\t\tProject.project.setMapLevel(maptyp, id + 1);\n\t\t\t}\n\t\t} else {\n\t\t\tPWindow.window.setActScene(new MessageScene(\"Gewonnen\", \"\", new MenuMainScene()));\n\t\t}\n\t}", "void buildWindow()\n { main.gui.gralMng.selectPanel(\"primaryWindow\");\n main.gui.gralMng.setPosition(-30, 0, -47, 0, 'r'); //right buttom, about half less display width and hight.\n int windProps = GralWindow.windConcurrently;\n GralWindow window = main.gui.gralMng.createWindow(\"windStatus\", \"Status - The.file.Commander\", windProps);\n windStatus = window; \n main.gui.gralMng.setPosition(3.5f, GralPos.size -3, 1, GralPos.size +5, 'd');\n widgCopy = main.gui.gralMng.addButton(\"sCopy\", main.copyCmd.actionConfirmCopy, \"copy\");\n widgEsc = main.gui.gralMng.addButton(\"dirBytes\", actionButton, \"esc\");\n }", "@Override\n public void gameWindow() {\n gameBoard = guiGame.getPanel();\n boardArea = guiGame.getBoardArea();\n inputArea = guiGame.getInputArea();\n JButton sendMessageButton = guiGame.getSendButton();\n JButton skipTurnButton = guiGame.getSkipTurnButton();\n JButton swapPiece = guiGame.getSwapPieceButton();\n messagesArea = guiGame.getMessagesArea();\n JButton forfeitButton = guiGame.getForfeitButton();\n JLabel usernameLabel = guiGame.getUsernameLabel();\n usernameLabel.setText(username);\n JButton movePieceButton = guiGame.getMovePieceButton();\n JButton leaveButton = guiGame.getLeaveButton();\n JButton hintButton = guiGame.getHintButton();\n\n boardArea.setFont(new Font(Font.MONOSPACED, Font.PLAIN, 20));\n boardArea.setEditable(false);\n\n messagesArea.setEditable(false);\n inventoryArea.setEditable(false);\n\n forfeitButton.addActionListener(e -> {\n connectedServer.writeMessage(client.leave());\n frame.setContentPane(gameList);\n });\n\n JPanel piecePanel = new JPanel();\n piecePanel.add(new JLabel(\"Piece number:\"));\n JTextField pieceNumber = new JTextField(1);\n piecePanel.add(pieceNumber);\n piecePanel.add(Box.createHorizontalStrut(15));\n piecePanel.add(new JLabel(\"Index on board:\"));\n JTextField indexOnBoard = new JTextField(2);\n piecePanel.add(indexOnBoard);\n piecePanel.add(Box.createHorizontalStrut(15));\n piecePanel.add(new JLabel(\"Rotation 1 or 2 (0 for default)\"));\n JTextField rotationField = new JTextField(1);\n rotationField.setText(\"0\");\n piecePanel.add(rotationField);\n\n\n\n movePieceButton.addActionListener(e -> {\n int result = JOptionPane.showConfirmDialog(frame, piecePanel, \"Move piece\", JOptionPane.OK_CANCEL_OPTION);\n if(result == JOptionPane.OK_OPTION) {\n int pieceNum = Integer.parseInt(pieceNumber.getText());\n int i = Integer.parseInt(indexOnBoard.getText());\n int rotation = Integer.parseInt(rotationField.getText());\n if(!Board.isLegal(i)) {\n JOptionPane.showMessageDialog(frame, \"Invalid board index\", \"Ilegal board index\", JOptionPane.ERROR_MESSAGE);\n } else if(pieceNum > client.getGame().getPlayer(username).getInventory().size()) {\n JOptionPane.showMessageDialog(frame, \"Invalid piece number\", \"Ilegal piece\", JOptionPane.ERROR_MESSAGE);\n } else {\n Tile t = client.getGame().getPlayer(username).getInventory().get(pieceNum - 1);\n t.rotate(rotation);\n connectedServer.writeMessage(client.move(t, i));\n }\n }\n });\n\n skipTurnButton.addActionListener(e -> {\n connectedServer.writeMessage(client.skip());\n });\n\n hintButton.addActionListener(e -> {\n giveHint(client.getHint());\n });\n\n swapPiece.addActionListener(e -> {\n String[] options = {\"1\", \"2\", \"3\", \"4\", \"5\", \"6\"};\n String result = (String) JOptionPane.showInputDialog(frame, \"Piece number:\", \"Swap piece\", JOptionPane.QUESTION_MESSAGE, null, options, options[0]);\n int resultInt = Integer.parseInt(result);\n if(resultInt > client.getGame().getPlayer(username).getInventory().size()) {\n JOptionPane.showMessageDialog(frame, \"Invalid piece number\", \"Ilegal piece\", JOptionPane.ERROR_MESSAGE);\n } else {\n connectedServer.writeMessage(client.swap(client.getGame().getPlayer(username).getInventory().get(resultInt)));\n }\n });\n\n sendMessageButton.addActionListener(e -> {\n executeCommand();\n });\n\n leaveButton.addActionListener(e -> {\n forfeit();\n });\n\n //an action for when someone presses enter in the inputArea\n Action pressedEnter = new AbstractAction() {\n public void actionPerformed(ActionEvent e) {\n executeCommand();\n }\n };\n\n inputArea.getInputMap().put(KeyStroke.getKeyStroke(\"ENTER\"),\n pressedEnter);\n\n frame.setContentPane(gameBoard);\n frame.revalidate();\n\n forfeitButton.addActionListener(e -> {\n forfeit();\n });\n\n client.setGame(connectedGamePlayerCount);\n client.getGame().addPlayer(client.getPlayer());\n\n tui = new TUI();\n messagesArea.append(tui.HELP);\n\n boardArea.append(tui.getBoard());\n }", "@Override\n public void windowOpened(WindowEvent e) {\n this.mostrar();\n }", "public void newGame() {\n // this.dungeonGenerator = new TowerDungeonGenerator();\n this.dungeonGenerator = cfg.getGenerator();\n\n Dungeon d = dungeonGenerator.generateDungeon(cfg.getDepth());\n Room[] rooms = d.getRooms();\n\n String playername = JOptionPane.showInputDialog(null, \"What's your name ?\");\n if (playername == null) playername = \"anon\";\n System.out.println(playername);\n\n this.player = new Player(playername, rooms[0], 0, 0);\n player.getCurrentCell().setVisible(true);\n rooms[0].getCell(0, 0).setEntity(player);\n\n frame.showGame();\n frame.refresh(player.getCurrentRoom().toString());\n frame.setHUD(player.getGold(), player.getStrength(), player.getCurrentRoom().getLevel());\n }", "void attachToGameWindow(GameWindow gameWindow);", "public static void goToEditSongWindow()\n {\n EditSongWindow editSongWindow = new EditSongWindow();\n editSongWindow.setVisible(true);\n editSongWindow.setFatherWindow(actualWindow, false);\n }", "@Override\n\tpublic void show() {\n\t\tsuper.show();\n\t\t\n\t\tSkin skin = new Skin(Gdx.files.internal(\"Textos/uiskin.json\"));\n\t\tint miniheight= Gdx.graphics.getHeight()/8;\n\t\tint mitad= Gdx.graphics.getWidth()/2;\n\t\t//int miniwidth= Gdx.graphics.getWidth()/8;\n\t\t\n\t\t/*Botones*/\n\t\tbtnVolv = new TextButton(\"Back\", skin);\n\t\tbtnVolv.setPosition(0, 0);\n\t\tbtnVolv.setWidth(Gdx.graphics.getWidth()/2);\n\t\tbtnVolv.setHeight(miniheight);\n\t\tbtnVolv.addListener(QueHacemos(false));\n\t\tbtnGuardar = new TextButton(\"Save\", skin);\n\t\tbtnGuardar.setPosition(Gdx.graphics.getWidth()/2, 0);\n\t\tbtnGuardar.setWidth(Gdx.graphics.getWidth()/2);\n\t\tbtnGuardar.setHeight(miniheight);\n\t\tbtnGuardar.addListener(QueHacemos(true));\n\t\t\n\t\t/*Tabla */\n\t\t//Puntuacion\n\t\tLabel tapunt= new Label(\"\"+user.getPuntuacion(),skin);\n\t\ttapunt.setAlignment(Align.center);\n\t\ttapunt.setX(Gdx.graphics.getWidth()/2-tapunt.getWidth()/2);\n\t\ttapunt.setY(miniheight*7);\t\t\n\t\ttapunt.setFontScale(3);\n\t\ttapunt.setColor(0.9f,0.1f,0.1f,0.8f);\n\t\t\n\t\t//Definimos el label y el TextArea del nick\n\t\tLabel tlnick= new Label(\"NICK: \",skin);\n\t\ttlnick.setX(mitad-13-tlnick.getWidth());\n\t\ttlnick.setY(miniheight*5);\n\t\ttanick= new TextArea(user.getNick(), skin);\n\t\ttanick.setX(mitad+13);\n\t\ttanick.setY(miniheight*5-tanick.getHeight()/5);\t\t\n\t\ttanick.setAlignment(Align.bottom);\n\t\ttanick.setColor(1, 1, 1, -0.5f);\n\t\t\n\t\t//Checkbox\t\t\n\t\tchcksonido= new CheckBox(\"Sound\", skin);\n\t\tchcksonido.setX(mitad-chcksonido.getWidth()/2);\n\t\tchcksonido.setY(miniheight*3);\n\t\tchcksonido.left();\n\t\t//chcksonido.align(Align.right);\n\t\tchcksonido.setChecked(user.isSonido());\n\t\n\t\t//Escenario nuevo\n\t\tescenariopciones = new Stage(new ScreenViewport());\n\n\t\t//Le añadimos los distintos actores\n\t\tescenariopciones.addActor(tapunt);\n\t\tescenariopciones.addActor(tlnick);\n\t\tescenariopciones.addActor(tanick);\n\t\tescenariopciones.addActor(chcksonido);\n\t\t\t\n\t\t\t\n\t\tescenariopciones.addActor(btnVolv);\n\t\tescenariopciones.addActor(btnGuardar);\n\t\tGdx.input.setInputProcessor(escenariopciones);\n\t}", "public void actionPerformed(ActionEvent e){\n \tString nomButton=e.getActionCommand();\n\n\n \tif(nomButton.equals(\"Retour\")){\n \t\tnewMeuble.dispose();\n \t\tMeuble meuble = new Meuble();\n \t\tmeuble.setVisible(true); \n \t}\n \telse if(nomButton.equals(\"Enregistrer\")){\n \t\tMeubleBd app = new MeubleBd();\n \t\tboolean detachable = this.newMeuble.getIsRemovableBox();\n\n String name = this.newMeuble.getName();\n String description = this.newMeuble.getDescription();\n String piece = (String)this.newMeuble.getPieceComboBox().getSelectedItem();\n\n int number = 1;\n int volumeAv = 0;\n int volumeAp = 0;\n int numberDetachable = 0;\n\n try{\n number = Integer.parseInt(this.newMeuble.getNumberText()); \n volumeAv = Integer.parseInt(this.newMeuble.getVolume());\n volumeAp = Integer.parseInt(this.newMeuble.getVolumeAfterTexT().getText());\n numberDetachable = Integer.parseInt(this.newMeuble.getDetachableText());\n }catch(NumberFormatException exception){;}\n\n String img = this.newMeuble.getImg();\n\n if(!name.equals(\"\") && !description.equals(\"\")){\n app.insert(name,volumeAv,number,piece,detachable,numberDetachable,volumeAp,description,img);\n ListMeuble.donnees = app.getMeubles();\n this.newMeuble.dispose();\n Meuble meuble = new Meuble();\n meuble.setVisible(true);\n new PopUpValid(1,\"Insertion du meuble reussie.\");\n\n \n }else{\n new PopUpValid(2,\"Veuillez remplir les champs indiquer par (*).\");\n }\n ListMeuble.donnees = app.getMeubles();\n\n }\n\n}", "public void draftEvent(){\n gameState = GameState.DRAFT;\n currentMessage = \"\" + currentPlayer.getNumTroops();\n currentTerritoriesOfInterest = currentPlayer.getTerritoriesList();\n notifyObservers();\n }", "public void afficherConversation() throws SQLException{\n this.conversation.maj();\n VBox fp = ((VBox) windows.getRoot());\n fp.getChildren().remove(1);\n fp.getChildren().add(conversation);\n }", "@Override\r\n\t\t\tpublic void buttonClick(ClickEvent event) \r\n\t\t\t{\n\t\t\t\tif(((NavigatorUI) UI.getCurrent()).getMainView().equals(\"Cibernauta\"))\r\n\t\t\t\t{\r\n\r\n\t\t\t\t\tsubWindow.setModal(true);\r\n\t\t\t\t\tsubWindow.setResizable(false);\r\n\t\t\t\t\tsubWindow.setContent(new Contratar_cibernauta(canalL.getValue()));\r\n\t\t\t\t\tUI.getCurrent().addWindow(subWindow);\r\n\t\t\t\t\t\r\n\t\t\t\t}else if(((NavigatorUI) UI.getCurrent()).getMainView().equals(\"Vista_Cliente\"))\r\n\t\t\t\t{\r\n\t\t\t\t\tcontratacion = comprobarContratacion();\r\n\t\t\t\t\t\r\n\t\t\t\t\tsubWindow.setModal(true);\r\n\t\t\t\t\tsubWindow.setResizable(false);\r\n\t\t\t\t\tsubWindow.setContent(new Contratar_vista_usuario(canalL.getValue(), contratacion, idModalidad));\r\n\t\t\t\t\tUI.getCurrent().addWindow(subWindow);\r\n\t\t\t\t\t\r\n\t\t\t\t}else if(((NavigatorUI) UI.getCurrent()).getMainView().equals(\"Cliente\"))\r\n\t\t\t\t{\r\n\t\t\t\t\tcontratacion = comprobarContratacion();\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(contratacion || idModalidad.isEmpty())\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tsubWindow.setModal(true);\r\n\t\t\t\t\t\tsubWindow.setResizable(false);\r\n\t\t\t\t\t\tsubWindow.setContent(new Contratar_cliente(canalL.getValue()));\r\n\t\t\t\t\t\tUI.getCurrent().addWindow(subWindow);\r\n\t\t\t\t\t}else\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tdoNavigate(Crear_incidencia.VIEW_NAME + \"/\" + \"contratacion\" +\";\" +canalL.getValue());\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}", "private void i_win() {\n\t\tif (MainMusic.isPlaying())\n\t\t\tMainMusic.stop();\n\t\tMainMusic = MediaPlayer.create(Game.this, R.raw.win);\n\t\tMainMusic.start();\n\t\tgame_panel.Pause_game=true;\n\t\tWinDialog.setVisibility(View.VISIBLE);\n\t}", "@Override\n public void run(){\n Settings.setGameSettings(new Player(0,Color.RED,1800, \"Player 1\",true),\n new Player(1,Color.BLUE,1800, \"Player 2\",false),1800,25);\n MenuFrame menuFrame = new MenuFrame();\n }", "void showPlaceholderGui() {\n this.game.a(new da());\n }", "@Override\n public void showPlayerWon() {\n if (isEnglish) {\n Toast.makeText(this, WIN, Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(this, WIN_CHINESE, Toast.LENGTH_SHORT).show();\n }\n\n\n //Set visibility for replayButton to visible\n replayButton.setVisibility(View.VISIBLE);\n retryButton.setVisibility(View.VISIBLE);\n scoreboardButton.setVisibility(View.VISIBLE);\n }", "@Override\n public void sconfitta(String winner) {\n Platform.runLater(() -> {\n /*Alert alert = new Alert(Alert.AlertType.INFORMATION);\n alert.setTitle(\"Hai perso\");\n alert.setHeaderText(\"Ha vinto \" + winner + \"\\nFine della partita\");\n alert.showAndWait();*/\n Parent root = null;\n Stage dialog = new Stage();\n try {\n root = FXMLLoader.load(Objects.requireNonNull(getClass().getClassLoader().getResource(\"loser.fxml\")));\n Scene s = new Scene(root);\n dialog.setScene(s);\n dialog.setTitle(\"Sconfitta!\");\n dialog.getIcons().add(new Image(\"images/cm_boardgame.png\"));\n overlayedStage = dialog;\n overlayedStage.initOwner(thisStage);\n overlayedStage.initModality(Modality.APPLICATION_MODAL);\n overlayedStage.setResizable(false);\n overlayedStage.showAndWait();\n } catch (IOException e) {\n e.printStackTrace();\n }\n System.exit(0);\n });\n try {\n handlerClient.getServer().close();\n } catch (IOException e) {\n System.out.println();\n }\n }", "public static void decidedWinner(){\n if(playerOneWon == true ){\n//\n// win.Fill(\"Player One Has Won !\");\n// new WinnerWindow().setVisible(true);\n }\n else if (playerTwoWon == true){\n// win.Fill(\"Player Two Has Won !\");\n// new WinnerWindow().setVisible(true);\n }\n else\n {\n// win.Fill(\"Match Has been Tied !\");\n// new WinnerWindow().setVisible(true);\n }\n }", "public void afterReceivedBoardURL(String url) {\r\n \tSystem.out.println(\"[DEBUG LOG/Game.java] Updating board...\");\r\n\t\tboardImageURL = url;\r\n\t\tEmbedBuilder embed = new EmbedBuilder();\r\n\t\tembed.setTitle(\"Board\");\r\n\t\tembed.setColor(Color.GRAY);\r\n\t\t\r\n\t\t// Calculate clank footer\r\n\t\tint totalClank = dragonClank + p1.getClankInBag();\r\n\t\tif (playerCount >= 2) {\r\n\t\t\ttotalClank += p2.getClankInBag();\r\n\t\t\tif (playerCount >= 3) {\r\n\t\t\t\ttotalClank += p3.getClankInBag();\r\n\t\t\t\tif (playerCount >= 4) {\r\n\t\t\t\t\ttotalClank += p4.getClankInBag();\r\n\t\t\t\t\tembed.setFooter(dragonClank+\" BLACK / \"+p1.getClankInBag()+\" (\"+p1.getClankOnBoard()+\") RED / \"+p2.getClankInBag()+\" (\"+p2.getClankOnBoard()+\") BLUE / \"+p3.getClankInBag()+\" (\"+p3.getClankOnBoard()+\") YELLOW / \"+p4.getClankInBag()+\" (\"+p4.getClankOnBoard()+\") GREEN / \"+totalClank+\" TOTAL\", null);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tembed.setFooter(dragonClank+\" BLACK / \"+p1.getClankInBag()+\" (\"+p1.getClankOnBoard()+\") RED / \"+p2.getClankInBag()+\" (\"+p2.getClankOnBoard()+\") BLUE / \"+p3.getClankInBag()+\" (\"+p3.getClankOnBoard()+\") YELLOW / \"+totalClank+\" TOTAL\", null);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tembed.setFooter(dragonClank+\" BLACK / \"+p1.getClankInBag()+\" (\"+p1.getClankOnBoard()+\") RED / \"+p2.getClankInBag()+\" (\"+p2.getClankOnBoard()+\") BLUE / \"+totalClank+\" TOTAL\", null);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tembed.setFooter(dragonClank+\" BLACK / \"+p1.getClankInBag()+\" (\"+p1.getClankOnBoard()+\") RED / \"+totalClank+\" TOTAL\", null);\r\n\t\t}\r\n\t\t// Dragon and Health indicator\r\n\t\tString healthIndicator = \"LEVEL **\"+attackLevel+\"** :dragon: |\";\r\n\t\tfor (int i = 0; i < players.size(); i++) {\r\n\t\t\tPlayer p = players.get(i);\r\n\t\t\tif (!p.hasQuit()) {\r\n\t\t\t\thealthIndicator += \" **\"+p.getHealth()+\"** \"+p.getHeartString();\r\n\t\t\t}\r\n\t\t}\r\n\t\tembed.setDescription(healthIndicator);\r\n\t\tembed.setImage(url);\r\n\t\tif (isFirstBoard) {\r\n\t\t\t// If first board, set delay so it appears in correct order\r\n\t\t\tgameChannel.sendMessage(embed.build()).queueAfter(1000, TimeUnit.MILLISECONDS);;\r\n\t\t\tisFirstBoard = false;\r\n\t\t} else {\r\n\t\t\tgameChannel.editMessageById(boardID, embed.build()).queue();\r\n\t\t}\r\n\t\tSystem.out.println(\"[DEBUG LOG/Game.java] Updated board\");\r\n\t}", "@Override\n public void actionPerformed(ActionEvent e){\n try{\n //Open a new window with the past game data\n new PastDataWindow();\n }catch(NullPointerException ex){\n JOptionPane.showMessageDialog(null, \"Error! No data loaded!\",\"Error!\",JOptionPane.ERROR_MESSAGE);\n }\n }", "private void zeichneWindow(int ypos,int xpos, int size)\r\n {\r\n ypos = ypos + size/6;\r\n xpos = xpos + size/6;\r\n size = size/4;\r\n zeichneWand(\"blau\",ypos,xpos,size); \r\n }", "public void playDB(){\n\t\tboolean emptyPot = false;\n\t\tint points = myPC.count(myPC.createWords(myField.getTiles(), myField.getNewWords()), myField.getTiles(), myField.getNewWords().size());\n\t\tint turn = DBCommunicator.requestInt(\"SELECT id FROM beurt WHERE spel_id = \" + id + \" AND account_naam = '\" + app.getCurrentAccount().getUsername() + \"' ORDER BY id DESC\");\n\t\tturn += 2;\n\t\t\n\t\tDBCommunicator.writeData(\"INSERT INTO beurt (id, spel_id, account_naam, score, aktie_type) VALUES (\" + turn + \", \" + id + \", '\" + app.getCurrentAccount().getUsername() + \"', \" + points + \", 'Word')\");\n\t\t\n\t\tHashMap<String, GameStone> newWords = myField.getNewWords();\n\t\tSystem.out.println(newWords);\n\t\tArrayList<Integer> addedInts = new ArrayList<Integer>();\n\t\t\n\t\tfor(Entry<String, GameStone> word : newWords.entrySet()){\n\t\t\tSystem.out.println(word.getKey());\n\t\t\tString key = word.getKey();\n\t\t\tint x = 0;\n\t\t\tint y = 0;\n\t\t\t\n\t\t\tString[] cords = key.split(\",\");\n\t\t\tx = Integer.parseInt(cords[0]);\n\t\t\ty = Integer.parseInt(cords[1]);\n\t\t\t\n\t\t\t\n\t\t\tint stoneID = word.getValue().getID();\n\t\t\tSystem.out.println(stoneID);\n\t\t\tString character = DBCommunicator.requestData(\"SELECT letterType_karakter FROM letter WHERE id = \" + stoneID + \" AND spel_id = \" + id);\n\t\t\tSystem.out.println(character);\n\t\t\tif(!character.equals(\"?\")){\n\t\t\t\tDBCommunicator.writeData(\"INSERT INTO gelegdeletter (letter_id, spel_id, beurt_id, tegel_x, tegel_y, tegel_bord_naam, blancoletterkarakter)\"\n\t\t\t\t\t\t+ \" VALUES(\" + stoneID + \", \" + id + \", \" + turn + \", \" + x + \", \" + y + \", 'Standard', NULL)\");\n\t\t\t}\n\t\t\telse{\n\t\t\t\tDBCommunicator.writeData(\"INSERT INTO gelegdeletter (letter_id, spel_id, beurt_id, tegel_x, tegel_y, tegel_bord_naam, blancoletterkarakter)\"\n\t\t\t\t\t\t+ \" VALUES(\" + stoneID + \", \" + id + \", \" + turn + \", \" + x + \", \" + y + \", 'Standard', '\" + word.getValue().getLetter() + \"')\");\n\t\t\t}\n\t\t\t\n\t\t\tfor(int e = 0; e < gameStones.size(); e++){\n\t\t\t\tif(gameStones.get(e) == stoneID){\n\t\t\t\t\t\n\t\t\t\t\tint potSize = DBCommunicator.requestInt(\"SELECT COUNT(letter_id) FROM pot WHERE spel_id = \" + id);\n\t\t\t\t\tif(potSize != 0){\n\t\t\t\t\t\tboolean added = false;\n\t\t\t\t\t\twhile(!added){\n\t\t\t\t\t\t\tint letterID = (int) (Math.random() * 105);\n\t\t\t\t\t\t\tSystem.out.println(letterID);\n\t\t\t\t\t\t\tString randCharacter = DBCommunicator.requestData(\"SELECT karakter FROM pot WHERE spel_id = \" + id + \" AND letter_id = \" + letterID);\n\t\t\t\t\t\t\tif(randCharacter != null){\n\t\t\t\t\t\t\t\tboolean inStones = false;\n\t\t\t\t\t\t\t\tfor(int a = 0; a < gameStones.size(); a++){\n\t\t\t\t\t\t\t\t\tSystem.out.println(gameStones.get(a));\n\t\t\t\t\t\t\t\t\tif(gameStones.get(a) == letterID){\n\t\t\t\t\t\t\t\t\t\tinStones = true;\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\t\t\tif(!inStones){\n\t\t\t\t\t\t\t\t\tgameStones.set(e,letterID);\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"PLACE \"+ id +\" \"+ letterID +\" \"+ turn);\n\t\t\t\t\t\t\t\t\tDBCommunicator.writeData(\"INSERT INTO letterbakjeletter (spel_id, letter_id, beurt_id) VALUES (\" + id + \", \" + letterID + \", \" + turn + \")\");\n\t\t\t\t\t\t\t\t\taddedInts.add(letterID);\n\t\t\t\t\t\t\t\t\tadded = true;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\temptyPot = true;\n\t\t\t\t\t\tgameStones.remove(e);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tArrayList<Integer> nonAddedInts = new ArrayList<Integer>();\n\t\tfor(int e : gameStones){\n\t\t\tnonAddedInts.add(e);\n\t\t}\n\t\t\n\t\tfor(int a : addedInts){\n\t\t\tfor(int e = 0; e < nonAddedInts.size(); e++){\n\t\t\t\tif(a == nonAddedInts.get(e)){\n\t\t\t\t\tnonAddedInts.remove(e);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int e : nonAddedInts){\n\t\t\tSystem.out.println(\"PLACE \"+ id +\" \"+ e +\" \"+ turn);\n\t\t\tDBCommunicator.writeData(\"INSERT INTO letterbakjeletter (spel_id, letter_id, beurt_id) VALUES (\" + id + \", \" + e + \", \" + turn + \")\");\n\t\t}\n\t\t\t\t\n\t\tif(emptyPot && (gameStones.size() == 0)){\n\t\t\tDBCommunicator.writeData(\"UPDATE spel SET toestand_type = 'Finished' WHERE id = \" + id );\n\t\t\tendGame(true);\n\t\t}\n\t\telse{\n\t\t\tthis.setStoneLetters();\n\t\t\tthis.fillStoneChars();\n\t\t}\n\t}", "void openDialog()\n {\n if(main.copyCmd.listEvCopy.size() >0){\n widgCopy.setBackColor(GralColor.getColor(\"rd\"), 0);\n } else {\n widgCopy.setBackColor(GralColor.getColor(\"wh\"), 0);\n }\n \n windStatus.setFocus(); //setWindowVisible(true);\n\n }", "private void showCreateNewPlayer(){\n try{\n FXMLLoader loader = new FXMLLoader();\n loader.setLocation(Game.class.getResource(\"view/CreateNewPlayer.fxml\"));\n AnchorPane janela = (AnchorPane) loader.load();\n \n Stage createNewPlayerStage = new Stage();\n createNewPlayerStage.setTitle(\"Create new player\");\n createNewPlayerStage.initModality(Modality.WINDOW_MODAL);\n createNewPlayerStage.initOwner(primaryStage);\n Scene scene = new Scene(janela);\n createNewPlayerStage.setScene(scene);\n \n CreateNewPlayerController controller = loader.getController();\n controller.setGame(this);\n controller.setCreateNewPlayerStage(createNewPlayerStage); \n \n createNewPlayerStage.showAndWait();\n }catch(IOException e){\n }\n }", "void win() {\n if (_game.isWon()) {\n showMessage(\"Congratulations you win!!\", \"WIN\", \"plain\");\n }\n }", "@Override\n public void setNumeroGiocatori() {\n Platform.runLater(() -> {\n overlayedStage.close();\n Stage dialog = new Stage();\n Parent root;\n try {\n FXMLLoader loader = new FXMLLoader(Objects.requireNonNull(getClass().getClassLoader().getResource(\"numberPlayers.fxml\")));\n NumberPlayers numberPlayersController = new NumberPlayers(dialog);\n loader.setController(numberPlayersController);\n root = loader.load();\n Scene s = new Scene(root);\n dialog.setTitle(\"Numero Giocatori\");\n dialog.getIcons().add(new Image(\"images/cm_boardgame.png\"));\n dialog.setResizable(false);\n dialog.setScene(s);\n dialog.initOwner(thisStage);\n dialog.initModality(Modality.APPLICATION_MODAL);\n dialog.initStyle(StageStyle.UNDECORATED);\n //dialog.setOnCloseRequest(event -> returnNumber(numberPlayersController));\n dialog.showAndWait();\n handlerClient.setPartecipanti(numberPlayersController.getPlayers());\n waitDialog(\"Attendi...\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n });\n\n }", "private void setupGameWindow()\n {\n uControll.setWindowProperties(new WindowListener() {\n @Override\n public void windowOpened(WindowEvent we) {\n }\n\n @Override\n public void windowClosing(WindowEvent we) {\n menuPanel.open();\n }\n\n @Override\n public void windowClosed(WindowEvent we) {\n }\n\n @Override\n public void windowIconified(WindowEvent we) {\n }\n\n @Override\n public void windowDeiconified(WindowEvent we) {\n }\n\n @Override\n public void windowActivated(WindowEvent we) {\n }\n\n @Override\n public void windowDeactivated(WindowEvent we) {\n }\n });\n }", "private void createContents() throws SQLException {\n\t\tshell = new Shell(getParent(), SWT.SHELL_TRIM);\n\t\tshell.setImage(user.getIcondata().BaoduongIcon);\n\t\tshell.setLayout(new GridLayout(2, false));\n\t\tsetText(\"Tạo Công việc (Đợt Bảo dưỡng)\");\n\t\tshell.setSize(777, 480);\n\t\tnew FormTemplate().setCenterScreen(shell);\n\n\t\tFill_ItemData fi = new Fill_ItemData();\n\n\t\tSashForm sashForm = new SashForm(shell, SWT.NONE);\n\t\tsashForm.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 2, 1));\n\n\t\tSashForm sashForm_3 = new SashForm(sashForm, SWT.VERTICAL);\n\n\t\tSashForm sashForm_2 = new SashForm(sashForm_3, SWT.NONE);\n\t\tComposite composite = new Composite(sashForm_2, SWT.NONE);\n\t\tcomposite.setLayout(new GridLayout(2, false));\n\n\t\tLabel label_2 = new Label(composite, SWT.NONE);\n\t\tlabel_2.setText(\"Tên đợt Bảo dưỡng*:\");\n\n\t\ttext_Tendot_Baoduong = new Text(composite, SWT.BORDER);\n\t\ttext_Tendot_Baoduong.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\n\n\t\tLabel label_3 = new Label(composite, SWT.NONE);\n\t\tGridData gd_label_3 = new GridData(SWT.LEFT, SWT.TOP, false, false, 1, 1);\n\t\tgd_label_3.verticalIndent = 3;\n\t\tlabel_3.setLayoutData(gd_label_3);\n\t\tlabel_3.setText(\"Loại phương tiện:\");\n\n\t\tcombo_Loaiphuongtien = new Combo(composite, SWT.READ_ONLY);\n\t\tcombo_Loaiphuongtien.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tif (ViewAndEdit_MODE_dsb != null) {\n\t\t\t\t\tFill_ItemData f = new Fill_ItemData();\n\t\t\t\t\tif ((int) combo_Loaiphuongtien.getData(combo_Loaiphuongtien.getText()) == f.getInt_Xemay()) {\n\t\t\t\t\t\tViewAndEdit_MODE_dsb.setLOAI_PHUONG_TIEN(f.getInt_Xemay());\n\t\t\t\t\t\ttree_PTTS.removeAll();\n\t\t\t\t\t} else if ((int) combo_Loaiphuongtien.getData(combo_Loaiphuongtien.getText()) == f.getInt_Oto()) {\n\t\t\t\t\t\tViewAndEdit_MODE_dsb.setLOAI_PHUONG_TIEN(f.getInt_Oto());\n\t\t\t\t\t\ttree_PTTS.removeAll();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tcombo_Loaiphuongtien.setLayoutData(new GridData(SWT.FILL, SWT.TOP, true, false, 1, 1));\n\t\tfi.setComboBox_LOAIPHUONGTIEN_Phuongtien_Giaothong(combo_Loaiphuongtien, 0);\n\n\t\tLabel label_4 = new Label(composite, SWT.NONE);\n\t\tGridData gd_label_4 = new GridData(SWT.LEFT, SWT.TOP, false, false, 1, 1);\n\t\tgd_label_4.verticalIndent = 3;\n\t\tlabel_4.setLayoutData(gd_label_4);\n\t\tlabel_4.setText(\"Mô tả:\");\n\n\t\ttext_Mota = new Text(composite, SWT.BORDER | SWT.WRAP | SWT.V_SCROLL | SWT.MULTI);\n\t\ttext_Mota.setLayoutData(new GridData(SWT.FILL, SWT.FILL, false, true, 1, 1));\n\t\tnew Label(composite, SWT.NONE);\n\n\t\tbtnNgunSaCha = new Button(composite, SWT.NONE);\n\t\tGridData gd_btnNgunSaCha = new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1);\n\t\tgd_btnNgunSaCha.widthHint = 85;\n\t\tbtnNgunSaCha.setLayoutData(gd_btnNgunSaCha);\n\t\tbtnNgunSaCha.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tChonNguonSuachua_Baoduong cnsb = new ChonNguonSuachua_Baoduong(shell, SWT.DIALOG_TRIM, user);\n\t\t\t\t\tcnsb.open();\n\t\t\t\t\tnsb = cnsb.getResult();\n\t\t\t\t\tif (ViewAndEdit_MODE_dsb == null) {\n\t\t\t\t\t\tfillNguonSuachuaBaoduong(nsb);\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tif (nsb == null) {\n\t\t\t\t\t\tMessageBox m = new MessageBox(shell, SWT.ICON_QUESTION | SWT.YES | SWT.NO | SWT.CLOSE);\n\t\t\t\t\t\tm.setText(\"Xóa dữ liệu cũ?\");\n\t\t\t\t\t\tm.setMessage(\"Bạn muốn xóa dữ liệu cũ?\");\n\t\t\t\t\t\tint rc = m.open();\n\t\t\t\t\t\tswitch (rc) {\n\t\t\t\t\t\tcase SWT.CANCEL:\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase SWT.YES:\n\t\t\t\t\t\t\tViewAndEdit_MODE_dsb.setMA_NGUONSUACHUA_BAODUONG(-1);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase SWT.NO:\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tViewAndEdit_MODE_dsb.setMA_NGUONSUACHUA_BAODUONG(nsb.getMA_NGUONSUACHUA_BAODUONG());\n\t\t\t\t\t}\n\t\t\t\t\tcontroler.getControl_DOT_THUCHIEN_SUACHUA_BAODUONG()\n\t\t\t\t\t\t\t.update_DOT_THUCHIEN_SUACHUA_BAODUONG(ViewAndEdit_MODE_dsb);\n\t\t\t\t\tfillNguonSuachuaBaoduong(ViewAndEdit_MODE_dsb);\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnNgunSaCha.setText(\"Liên hệ\");\n\t\tbtnNgunSaCha.setImage(user.getIcondata().PhoneIcon);\n\n\t\tComposite composite_1 = new Composite(sashForm_2, SWT.NONE);\n\t\tcomposite_1.setLayout(new GridLayout(2, false));\n\n\t\tLabel lblSXut = new Label(composite_1, SWT.NONE);\n\t\tlblSXut.setText(\"Số đề xuất: \");\n\n\t\ttext_Sodexuat = new Text(composite_1, SWT.NONE);\n\t\ttext_Sodexuat.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\ttext_Sodexuat.setEditable(false);\n\t\ttext_Sodexuat.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\n\t\tLabel lblNgyThng = new Label(composite_1, SWT.NONE);\n\t\tlblNgyThng.setText(\"Ngày tháng: \");\n\n\t\ttext_NgaythangVanban = new Text(composite_1, SWT.NONE);\n\t\ttext_NgaythangVanban.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\ttext_NgaythangVanban.setEditable(false);\n\t\ttext_NgaythangVanban.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\n\t\tLabel lblnV = new Label(composite_1, SWT.NONE);\n\t\tlblnV.setText(\"Đơn vị: \");\n\n\t\ttext_Donvi = new Text(composite_1, SWT.NONE);\n\t\ttext_Donvi.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\ttext_Donvi.setEditable(false);\n\t\ttext_Donvi.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\n\t\tLabel lblNgyXL = new Label(composite_1, SWT.NONE);\n\t\tlblNgyXL.setText(\"Ngày xử lý:\");\n\n\t\ttext_Ngaytiepnhan = new Text(composite_1, SWT.NONE);\n\t\ttext_Ngaytiepnhan.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\ttext_Ngaytiepnhan.setEditable(false);\n\t\ttext_Ngaytiepnhan.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\n\t\tLabel lblNgyGiao = new Label(composite_1, SWT.NONE);\n\t\tlblNgyGiao.setText(\"Ngày giao:\");\n\n\t\ttext_Ngaygiao = new Text(composite_1, SWT.NONE);\n\t\ttext_Ngaygiao.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\ttext_Ngaygiao.setEditable(false);\n\t\ttext_Ngaygiao.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\n\t\tLabel lblTrchYu = new Label(composite_1, SWT.NONE);\n\t\tGridData gd_lblTrchYu = new GridData(SWT.LEFT, SWT.TOP, false, false, 1, 1);\n\t\tgd_lblTrchYu.verticalIndent = 3;\n\t\tlblTrchYu.setLayoutData(gd_lblTrchYu);\n\t\tlblTrchYu.setText(\"Ghi chú: \");\n\n\t\ttext_Trichyeu = new Text(composite_1, SWT.NONE);\n\t\ttext_Trichyeu.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\ttext_Trichyeu.setEditable(false);\n\t\tGridData gd_text_Trichyeu = new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1);\n\t\tgd_text_Trichyeu.heightHint = 27;\n\t\ttext_Trichyeu.setLayoutData(gd_text_Trichyeu);\n\t\tnew Label(composite_1, SWT.NONE);\n\n\t\tbtnThemDexuat = new Button(composite_1, SWT.NONE);\n\t\tbtnThemDexuat.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tInsert_dx = null;\n\t\t\t\t\tif (ViewAndEdit_MODE_dsb != null\n\t\t\t\t\t\t\t&& ViewAndEdit_MODE_dsb.getMA_DOT_THUCHIEN_SUACHUA_BAODUONG() > 0) {\n\t\t\t\t\t\tInsert_dx = controler.getControl_DEXUAT().get_DEXUAT(ViewAndEdit_MODE_dsb);\n\t\t\t\t\t}\n\t\t\t\t\tif (Insert_dx != null) {\n\t\t\t\t\t\tTAPHOSO ths = controler.getControl_TAPHOSO().get_TAP_HO_SO(Insert_dx.getMA_TAPHOSO());\n\t\t\t\t\t\tTaphoso_View thsv = new Taphoso_View(shell, SWT.DIALOG_TRIM, user, ths, false);\n\t\t\t\t\t\tthsv.open();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tNhapDeXuat ndx = new NhapDeXuat(shell, SWT.DIALOG_TRIM, user);\n\t\t\t\t\t\tndx.open();\n\t\t\t\t\t\tInsert_dx = ndx.result;\n\t\t\t\t\t\tif (Insert_dx == null)\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tfillDexuat(Insert_dx);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (ViewAndEdit_MODE_dsb == null)\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\tif (ViewAndEdit_MODE_dsb.getMA_DOT_THUCHIEN_SUACHUA_BAODUONG() <= 0)\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\tint Ma_Quatrinh_Dexuat_thuchien = getMaQuantrinhDexuatThuchien(Insert_dx);\n\t\t\t\t\t\tif (Ma_Quatrinh_Dexuat_thuchien <= 0)\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\tboolean ict = controler.getControl_DOT_THUCHIEN_SUACHUA_BAODUONG()\n\t\t\t\t\t\t\t\t.update_DOT_THUCHIEN_SUACHUA_BAODUONG_Update_QUATRINH_DEXUAT_THUCHIEN(\n\t\t\t\t\t\t\t\t\t\tViewAndEdit_MODE_dsb, Ma_Quatrinh_Dexuat_thuchien);\n\t\t\t\t\t\tif (ict) {\n\t\t\t\t\t\t\tMessageBox m = new MessageBox(shell, SWT.ICON_WORKING);\n\t\t\t\t\t\t\tm.setText(\"Hoàn tất\");\n\t\t\t\t\t\t\tm.setMessage(\"Thêm Đề xuất Hoàn tất\");\n\t\t\t\t\t\t\tm.open();\n\t\t\t\t\t\t\tfillDexuat(Insert_dx);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} catch (NullPointerException | SQLException 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}\n\t\t});\n\t\tbtnThemDexuat.setImage(user.getIcondata().DexuatIcon);\n\t\tbtnThemDexuat.setLayoutData(new GridData(SWT.FILL, SWT.BOTTOM, false, false, 1, 1));\n\t\tbtnThemDexuat.setText(\"Thêm Hồ sơ\");\n\t\tsashForm_2.setWeights(new int[] { 1000, 618 });\n\n\t\tSashForm sashForm_1 = new SashForm(sashForm_3, SWT.NONE);\n\t\ttree_PTTS = new Tree(sashForm_1, SWT.BORDER | SWT.FULL_SELECTION | SWT.MULTI);\n\t\ttree_PTTS.setLinesVisible(true);\n\t\ttree_PTTS.setHeaderVisible(true);\n\t\ttree_PTTS.addListener(SWT.Selection, new Listener() {\n\t\t\t@Override\n\t\t\tpublic void handleEvent(Event arg0) {\n\t\t\t\tTreeItem[] til = tree_PTTS.getSelection();\n\t\t\t\tif (til.length > 0) {\n\t\t\t\t\tRow_PTTSthamgia_Baoduong pttg = (Row_PTTSthamgia_Baoduong) til[0].getData();\n\t\t\t\t\tsetHinhthuc_Baoduong(pttg.getHtbd());\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\ttree_PTTS.addListener(SWT.SetData, new Listener() {\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\tif (tree_PTTS.getItems().length > 0) {\n\t\t\t\t\tcombo_Loaiphuongtien.setEnabled(false);\n\t\t\t\t} else {\n\t\t\t\t\tcombo_Loaiphuongtien.setEnabled(true);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tTreeColumn trclmnStt = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnStt.setWidth(50);\n\t\ttrclmnStt.setText(\"Stt\");\n\n\t\tTreeColumn trclmnTnMT = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnTnMT.setWidth(100);\n\t\ttrclmnTnMT.setText(\"Tên, mô tả\");\n\n\t\tTreeColumn trclmnHngSnXut = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnHngSnXut.setWidth(100);\n\t\ttrclmnHngSnXut.setText(\"Hãng sản xuất\");\n\n\t\tTreeColumn trclmnDngXe = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnDngXe.setWidth(100);\n\t\ttrclmnDngXe.setText(\"Dòng xe\");\n\n\t\tTreeColumn trclmnBinS = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnBinS.setWidth(100);\n\t\ttrclmnBinS.setText(\"Biển số\");\n\n\t\tTreeColumn trclmnNgySDng = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnNgySDng.setWidth(100);\n\t\ttrclmnNgySDng.setText(\"Ngày sử dụng\");\n\n\t\tTreeColumn trclmnMPhngTin = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnMPhngTin.setWidth(90);\n\t\ttrclmnMPhngTin.setText(\"Mã PTTS\");\n\n\t\tMenu menu = new Menu(tree_PTTS);\n\t\ttree_PTTS.setMenu(menu);\n\n\t\tMenuItem mntmThmPhngTin = new MenuItem(menu, SWT.NONE);\n\t\tmntmThmPhngTin.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tThem_PTGT();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tmntmThmPhngTin.setText(\"Thêm phương tiện tài sản\");\n\n\t\tMenuItem mntmXoa = new MenuItem(menu, SWT.NONE);\n\t\tmntmXoa.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tdelete();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\n\t\t});\n\t\tmntmXoa.setText(\"Xóa\");\n\n\t\tTreeColumn trclmnThayNht = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayNht.setWidth(70);\n\t\ttrclmnThayNht.setText(\"Thay nhớt\");\n\n\t\tTreeColumn trclmnThayLcNht = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayLcNht.setWidth(100);\n\t\ttrclmnThayLcNht.setText(\"Thay lọc nhớt\");\n\n\t\tTreeColumn trclmnThayLcGi = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayLcGi.setWidth(100);\n\t\ttrclmnThayLcGi.setText(\"Thay lọc gió\");\n\n\t\tTreeColumn trclmnThayLcNhin = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayLcNhin.setWidth(100);\n\t\ttrclmnThayLcNhin.setText(\"Thay lọc nhiên liệu\");\n\n\t\tTreeColumn trclmnThayDuPhanh = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayDuPhanh.setWidth(100);\n\t\ttrclmnThayDuPhanh.setText(\"Thay Dầu phanh - ly hợp\");\n\n\t\tTreeColumn trclmnThayDuHp = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayDuHp.setWidth(100);\n\t\ttrclmnThayDuHp.setText(\"Thay Dầu hộp số\");\n\n\t\tTreeColumn trclmnThayDuVi = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayDuVi.setWidth(100);\n\t\ttrclmnThayDuVi.setText(\"Thay Dầu vi sai\");\n\n\t\tTreeColumn trclmnLcGiGin = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnLcGiGin.setWidth(100);\n\t\ttrclmnLcGiGin.setText(\"Lọc gió giàn lạnh\");\n\n\t\tTreeColumn trclmnThayDuTr = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayDuTr.setWidth(100);\n\t\ttrclmnThayDuTr.setText(\"Thay dầu trợ lực lái\");\n\n\t\tTreeColumn trclmnBoDngKhcs = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnBoDngKhcs.setWidth(100);\n\t\ttrclmnBoDngKhcs.setText(\"Bảo dưỡng khác\");\n\n\t\tExpandBar expandBar = new ExpandBar(sashForm_1, SWT.V_SCROLL);\n\t\texpandBar.setForeground(SWTResourceManager.getColor(SWT.COLOR_LIST_FOREGROUND));\n\n\t\tExpandItem xpndtmLoiHnhBo = new ExpandItem(expandBar, SWT.NONE);\n\t\txpndtmLoiHnhBo.setText(\"Loại hình bảo dưỡng\");\n\n\t\tComposite grpHnhThcBo = new Composite(expandBar, SWT.NONE);\n\t\txpndtmLoiHnhBo.setControl(grpHnhThcBo);\n\t\tgrpHnhThcBo.setLayout(new GridLayout(1, false));\n\n\t\tbtnDaudongco = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnDaudongco.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnDaudongco.setText(\"Dầu động cơ\");\n\n\t\tbtnLocdaudongco = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnLocdaudongco.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnLocdaudongco.setText(\"Lọc dầu động cơ\");\n\n\t\tbtnLocgio = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnLocgio.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnLocgio.setText(\"Lọc gió\");\n\n\t\tbtnLocnhienlieu = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnLocnhienlieu.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnLocnhienlieu.setText(\"Lọc nhiên liệu\");\n\n\t\tbtnDauphanh_lyhop = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnDauphanh_lyhop.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnDauphanh_lyhop.setText(\"Dầu phanh và dầu ly hợp\");\n\n\t\tbtnDauhopso = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnDauhopso.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnDauhopso.setText(\"Dầu hộp số\");\n\n\t\tbtnDauvisai = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnDauvisai.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnDauvisai.setText(\"Dầu vi sai\");\n\n\t\tbtnLocgiogianlanh = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnLocgiogianlanh.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnLocgiogianlanh.setText(\"Lọc gió giàn lạnh\");\n\n\t\tbtnDautroluclai = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnDautroluclai.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnDautroluclai.setText(\"Dầu trợ lực lái\");\n\n\t\tbtnBaoduongkhac = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnBaoduongkhac.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnBaoduongkhac.setText(\"Bảo dưỡng khác\");\n\t\txpndtmLoiHnhBo.setHeight(xpndtmLoiHnhBo.getControl().computeSize(SWT.DEFAULT, SWT.DEFAULT).y);\n\n\t\tExpandItem xpndtmLinH = new ExpandItem(expandBar, SWT.NONE);\n\t\txpndtmLinH.setText(\"Liên hệ\");\n\n\t\tComposite composite_2 = new Composite(expandBar, SWT.NONE);\n\t\txpndtmLinH.setControl(composite_2);\n\t\tcomposite_2.setLayout(new GridLayout(2, false));\n\n\t\tLabel lblTnLinH = new Label(composite_2, SWT.NONE);\n\t\tlblTnLinH.setText(\"Tên liên hệ: \");\n\n\t\ttext_Tenlienhe = new Text(composite_2, SWT.BORDER);\n\t\ttext_Tenlienhe.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\n\t\tLabel lblGiiThiu = new Label(composite_2, SWT.NONE);\n\t\tGridData gd_lblGiiThiu = new GridData(SWT.LEFT, SWT.TOP, false, false, 1, 1);\n\t\tgd_lblGiiThiu.verticalIndent = 3;\n\t\tlblGiiThiu.setLayoutData(gd_lblGiiThiu);\n\t\tlblGiiThiu.setText(\"Giới thiệu: \");\n\n\t\ttext_Gioithieu = new Text(composite_2, SWT.BORDER);\n\t\ttext_Gioithieu.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));\n\n\t\tLabel lblLinH = new Label(composite_2, SWT.NONE);\n\t\tGridData gd_lblLinH = new GridData(SWT.LEFT, SWT.TOP, false, false, 1, 1);\n\t\tgd_lblLinH.verticalIndent = 3;\n\t\tlblLinH.setLayoutData(gd_lblLinH);\n\t\tlblLinH.setText(\"Liên hệ: \");\n\n\t\ttext_Lienhe = new Text(composite_2, SWT.BORDER);\n\t\ttext_Lienhe.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));\n\t\txpndtmLinH.setHeight(120);\n\t\tsashForm_1.setWeights(new int[] { 543, 205 });\n\t\tsashForm_3.setWeights(new int[] { 170, 228 });\n\t\tsashForm.setWeights(new int[] { 1000 });\n\n\t\tbtnLuu = new Button(shell, SWT.NONE);\n\t\tbtnLuu.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tif (dataCreate != null) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tTaoMoi_DotSuachua_Baoduong();\n\t\t\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tupdateField();\n\t\t\t\t\t}\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tprivate void TaoMoi_DotSuachua_Baoduong() throws SQLException {\n\t\t\t\tif (checkTextNotNULL()) {\n\t\t\t\t\tDOT_THUCHIEN_SUACHUA_BAODUONG dsb = getDOT_SUACHUA_BAODUONG();\n\t\t\t\t\tint key = controler.getControl_DOT_THUCHIEN_SUACHUA_BAODUONG()\n\t\t\t\t\t\t\t.InsertDOT_THUCHIEN_SUACHUA_BAODUONG(dsb, null, null);\n\t\t\t\t\tdsb.setMA_DOT_THUCHIEN_SUACHUA_BAODUONG(key);\n\t\t\t\t\tif (key >= 0) {\n\t\t\t\t\t\tif (nsb != null)\n\t\t\t\t\t\t\tdsb.setMA_NGUONSUACHUA_BAODUONG(nsb.getMA_NGUONSUACHUA_BAODUONG());\n\t\t\t\t\t\tcontroler.getControl_DOT_THUCHIEN_SUACHUA_BAODUONG().update_DOT_THUCHIEN_SUACHUA_BAODUONG(dsb);\n\t\t\t\t\t\tint Ma_Quatrinh_Dexuat_thuchien = getMaQuantrinhDexuatThuchien(Insert_dx);\n\t\t\t\t\t\tif (Ma_Quatrinh_Dexuat_thuchien > 0)\n\t\t\t\t\t\t\tcontroler.getControl_DOT_THUCHIEN_SUACHUA_BAODUONG()\n\t\t\t\t\t\t\t\t\t.update_DOT_THUCHIEN_SUACHUA_BAODUONG_Update_QUATRINH_DEXUAT_THUCHIEN(dsb,\n\t\t\t\t\t\t\t\t\t\t\tMa_Quatrinh_Dexuat_thuchien);\n\t\t\t\t\t\tTreeItem[] til = tree_PTTS.getItems();\n\t\t\t\t\t\tif (til.length > 0) {\n\t\t\t\t\t\t\tfor (TreeItem ti : til) {\n\t\t\t\t\t\t\t\tdsb.setMA_DOT_THUCHIEN_SUACHUA_BAODUONG(key);\n\t\t\t\t\t\t\t\tRow_PTTSthamgia_Baoduong rp = (Row_PTTSthamgia_Baoduong) ti.getData();\n\t\t\t\t\t\t\t\tcontroler.getControl_DOT_THUCHIEN_SUACHUA_BAODUONG_TAISAN()\n\t\t\t\t\t\t\t\t\t\t.set_DOT_THUCHIEN_SUACHUA_TAISAN(dsb, rp);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tshowMessage_Succes();\n\t\t\t\t\t\tshell.dispose();\n\t\t\t\t\t\tGiaoViec gv = new GiaoViec(user);\n\t\t\t\t\t\tgv.open();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tshowMessage_Fail();\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tshowMessage_FillText();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tprivate DOT_THUCHIEN_SUACHUA_BAODUONG getDOT_SUACHUA_BAODUONG() {\n\t\t\t\tDOT_THUCHIEN_SUACHUA_BAODUONG dsb = new DOT_THUCHIEN_SUACHUA_BAODUONG();\n\t\t\t\tdsb.setTEN_DOT_THUCHIEN_SUACHUA_BAODUONG(text_Tendot_Baoduong.getText());\n\t\t\t\tdsb.setLOAI_PHUONG_TIEN(\n\t\t\t\t\t\tInteger.valueOf((int) combo_Loaiphuongtien.getData(combo_Loaiphuongtien.getText())));\n\t\t\t\tdsb.setSUACHUA_BAODUONG(fi.getInt_Baoduong());\n\t\t\t\tdsb.setMO_TA(text_Mota.getText());\n\t\t\t\treturn dsb;\n\t\t\t}\n\n\t\t});\n\t\tGridData gd_btnLu = new GridData(SWT.RIGHT, SWT.CENTER, true, false, 1, 1);\n\t\tgd_btnLu.widthHint = 75;\n\t\tbtnLuu.setLayoutData(gd_btnLu);\n\t\tbtnLuu.setText(\"Xong\");\n\n\t\tbtnDong = new Button(shell, SWT.NONE);\n\t\tbtnDong.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tif (ViewAndEdit_MODE_dsb != null) {\n\t\t\t\t\t\tupdateField();\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// if (Insert_dx != null)\n\t\t\t\t\t\t// controler.getControl_DEXUAT().delete_DEXUAT(Insert_dx);\n\t\t\t\t\t}\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t\tshell.dispose();\n\t\t\t}\n\t\t});\n\t\tGridData gd_btnDong = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\n\t\tgd_btnDong.widthHint = 75;\n\t\tbtnDong.setLayoutData(gd_btnDong);\n\t\tbtnDong.setText(\"Đóng\");\n\t\tinit_loadMODE();\n\t\tinit_CreateMode();\n\t}", "private void showWindow(String winner) {\n String message;\n final FXMLLoader loader = new FXMLLoader(getClass().getResource(\"winlose.fxml\"));\n if (\"Draw\".equals(winner)) {\n message = \"It's a draw! Play again.\";\n } else {\n if (single) {\n if (winner.equals(playerO)) {\n message = \"LOSER!!\";\n } else {\n message = \"YOU WON!!\";\n }\n } else {\n message = winner + \" won!\";\n }\n }\n\n loader.setController(new WinLoseController(message, playerX, playerO, single));\n resetValues();\n\n try {\n final Parent root = loader.load();\n final Scene scene = new Scene(root, 250, 150);\n Stage stage = new Stage();\n stage.initModality(Modality.APPLICATION_MODAL);\n stage.initStyle(StageStyle.DECORATED);\n stage.setTitle(\"Game Over!\");\n stage.initOwner(label.getScene().getWindow());\n stage.setScene(scene);\n stage.showAndWait();\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n // Close present window\n label.getScene().getWindow().hide();\n\n }", "public void mostrar() {\n\t\t\n\t\tdibujarFondo();\n\t\tdibujarMarcador();\n\t\t\n\t\tScene escena = new Scene(panel, panel.getPrefWidth(), panel.getPrefHeight());\n\n\t\tescenario.setScene(escena);\n\t\tescenario.setResizable(false);\n\t\tescenario.setTitle(Aplicacion.TITULO);\n\t\t\n\t\tdibujar();\n\n\t\tescenario.show();\n\t}", "private void populateWindow() {\n\t\tadd(net, BorderLayout.CENTER);\n\t\t//net.setPreferredSize(new Dimension(4 * Polje.defaultSize + 4 * 3, 5 * Polje.defaultSize + 5 * 3));\n\t\t//ipak radi samo ako se stavi za svaki kanvas prefferedSize(new Dimension(75,75))\n\t\t\n\t\t//trigger nek bude kad se dugme pritisne\n\t\trandomNumber.setText(\"\");\n\t\trandomNumber.setForeground(Color.WHITE);\n\t\trandomNumber.setFont(new Font(\"Arial\", Font.BOLD, 17)); //posto se slabo videlo\n\t\tstatusBar.setBackground(Color.GRAY);\n\t\tstatusBar.setLayout(new FlowLayout(FlowLayout.LEFT));\n\t\tstatusBar.add(randomNumber);\n\t\t//promene nek se desavaju u metodi dugmeta Igra\n\t\t\n\t\tcontrolPanel.setLayout(new GridLayout(5,1));\n\t\tPanel t1 = new Panel(new FlowLayout(FlowLayout.LEFT));\n\t\tt1.add(new Label(\"Balans:\"));\n\t\tt1.add(balans);\n\t\tcontrolPanel.add(t1);\n\t\t\n\t\tPanel t2 = new Panel(new FlowLayout(FlowLayout.LEFT));\n\t\tt2.add(new Label(\"Ulog:\"));\n\t\ttextfield.setText(\"100\");\n\t\ttextfield.addTextListener((ae) -> {\n\t\t\tupdateDobitak();\n\t\t});\n\t\tt2.add(textfield);\n\t\tcontrolPanel.add(t2);\n\t\t\n\t\tPanel t3 = new Panel(new FlowLayout(FlowLayout.LEFT));\n\t\tt3.add(new Label(\"Kvota:\"));\n\t\tt3.add(kvota);\n\t\tcontrolPanel.add(t3);\n\t\t\n\t\tPanel t4 = new Panel(new FlowLayout(FlowLayout.LEFT));\n\t\tt4.add(new Label(\"Dobitak:\"));\n\t\tt4.add(dobitak);\n\t\tcontrolPanel.add(t4);\n\t\t\n\t\tPanel t5 = new Panel(new FlowLayout(FlowLayout.RIGHT));\n\t\tt5.add(igraj);\n\t\tcontrolPanel.add(t5);\n\t\t\n\t\tigraj.setEnabled(false);\n\t\t\n\t\tigraj.addActionListener((ae) -> {\n\t\t\t//TODO: heshset se uzima i gleda se da li je broj od generatora\n\t\t\t//u heshsetu\n\t\t\tHashSet<Integer> set = net.getHashSet();\n\t\t\tint t = Generator.generateNum(0, net.getRows() * net.getColumns());\n\t\t\trandomNumber.setText(Integer.toString(t));\n\t\t\tif(set.contains(t)) {\n\t\t\t\tstatusBar.setBackground(Color.GREEN);\n\t\t\t\trandomNumber.setBackground(Color.GREEN);\n\t\t\t\tupdateBalans(\"-\" + textfield.getText());\n\t\t\t\tupdateBalans(dobitak.getText());\n\t\t\t}else {\n\t\t\t\tstatusBar.setBackground(Color.RED);\n\t\t\t\trandomNumber.setBackground(Color.RED);\n\t\t\t\tupdateBalans(\"-\" + textfield.getText());\n\t\t\t}\n\t\t});\n\t\t\n\t\tcontrolPanel.setBackground(Color.LIGHT_GRAY);\n\t\tadd(controlPanel, BorderLayout.EAST);\n\t\tadd(statusBar, BorderLayout.SOUTH);\n\t}", "public void windowOpened(WindowEvent e)\n\t{\n\t\ttry\n\t\t{\n\t\t\tCallableStatement notificaciones=conexionBBDD.getConexionBBDD().\n\t\t\tprepareCall(\"{call notificaciones()}\");\n\t\t\t \n\t\t\tResultSet tabla=notificaciones.executeQuery();\n\t\t\t \n\t\t\twhile(tabla.next())\n\t\t\t{\n\t\t\t\t//Si un paciente al faltado >=4 veces ==>\n\t\t\t\t//cantidadDeInasistenciaDePacientes para respectivamente\n\t\t\t\t//mostrar la notificacion en la campanilla de notificacion.\n\t\t\t\tif(tabla.getInt(2)>=4)\n\t\t\t\t{\n\t\t\t\t\tcantidadDeInasistenciaDePacientes++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t \n\t\t\tif(cantidadDeInasistenciaDePacientes>0)\n\t\t\t{\n\t\t\t\tventanaAdministrador.getNotificaciones().setNumero(cantidadDeInasistenciaDePacientes);\n\t\t\t}\n\t\t\t \n\t\t\tconexionBBDD.cerrarConexionBBDD();\n\t\t \n\t\t}\n\t\tcatch (SQLException e1){}\n\t}", "private void win() {\r\n Player winner = board.win();\r\n if (winner == null)\r\n return;\r\n\r\n int winner_number;\r\n Label winner_info;\r\n Label loser_info;\r\n if (winner.getId() == 'U') {\r\n winner_info = player1info;\r\n loser_info = player2info;\r\n winner_number = 1;\r\n }\r\n else {\r\n winner_info = player2info;\r\n loser_info = player1info;\r\n winner_number = 2;\r\n }\r\n\r\n winner_info.setFont(new Font(\"Segoe UI Semibold\", 20));\r\n winner_info.setText(\"You Won!!\");\r\n loser_info.setFont(new Font(\"Segoe UI Semibold\", 20));\r\n loser_info.setText(\"You Lost :)\");\r\n\r\n for (int i = 0; i < 17; ++i)\r\n for (int j = 0; j < 17; j++) {\r\n String id = \"#cell\" + ((i < 10) ? \"0\" + i : i) + ((j < 10) ? \"0\" + j : j);\r\n AnchorPane cell = (AnchorPane) (play.getScene().lookup(id));\r\n // remove functionality\r\n cell.setOnMouseClicked(null);\r\n cell.setOnMouseEntered(null);\r\n cell.setOnMouseExited(null);\r\n if (!cup_is_on) {\r\n if (i == 6) {\r\n if (j == 6) {\r\n cell.setStyle(\"-fx-background-color: mediumaquamarine\");\r\n Label label = new Label(\"try\");\r\n label.setTextFill(Color.BLACK);\r\n label.setFont(new Font(\"Arial Rounded MT Bold\", 12));\r\n label.setAlignment(Pos.CENTER);\r\n label.setPrefSize(40, 40);\r\n cell.getChildren().add(label);\r\n if (bead1.getLayoutX() == cell.getLayoutX() && bead1.getLayoutY() == cell.getLayoutY())\r\n bead1.setVisible(false);\r\n if (bead2.getLayoutX() == cell.getLayoutX() && bead2.getLayoutY() == cell.getLayoutY())\r\n bead2.setVisible(false);\r\n }\r\n else if (j == 8) {\r\n cell.setStyle(\"-fx-background-color: mediumaquamarine\");\r\n Label label = new Label(\"again?\");\r\n label.setTextFill(Color.BLACK);\r\n label.setFont(new Font(\"Arial Rounded MT Bold\", 12));\r\n label.setAlignment(Pos.CENTER);\r\n label.setPrefSize(40, 40);\r\n cell.getChildren().add(label);\r\n if (bead1.getLayoutX() == cell.getLayoutX() && bead1.getLayoutY() == cell.getLayoutY())\r\n bead1.setVisible(false);\r\n if (bead2.getLayoutX() == cell.getLayoutX() && bead2.getLayoutY() == cell.getLayoutY())\r\n bead2.setVisible(false);\r\n }\r\n }\r\n else if(i == 8) {\r\n if (j == 6) {\r\n cell.setStyle(\"-fx-background-color: limegreen\");\r\n Label label = new Label(\"YES\");\r\n label.setTextFill(Color.BLACK);\r\n label.setFont(new Font(\"Arial Rounded MT Bold\", 12));\r\n label.setAlignment(Pos.CENTER);\r\n label.setPrefSize(40, 40);\r\n label.setOnMouseClicked(event -> {\r\n try {\r\n gotoNewGame(new Player(board.getPlayer1().getName(), 'U', 10),\r\n new Player(board.getPlayer2().getName(), 'D', 10));\r\n } catch (IOException ioException) { ioException.printStackTrace(); }\r\n });\r\n cell.getChildren().add(label);\r\n if (bead1.getLayoutX() == cell.getLayoutX() && bead1.getLayoutY() == cell.getLayoutY())\r\n bead1.setVisible(false);\r\n if (bead2.getLayoutX() == cell.getLayoutX() && bead2.getLayoutY() == cell.getLayoutY())\r\n bead2.setVisible(false);\r\n }\r\n else if (j == 8) {\r\n cell.setStyle(\"-fx-background-color: red\");\r\n Label label = new Label(\"NO\");\r\n label.setTextFill(Color.BLACK);\r\n label.setFont(new Font(\"Arial Rounded MT Bold\", 12));\r\n label.setAlignment(Pos.CENTER);\r\n label.setPrefSize(40, 40);\r\n label.setOnMouseClicked(event -> {\r\n try { gotoGameModes(); } catch (IOException ioException) {\r\n ioException.printStackTrace();\r\n }\r\n });\r\n cell.getChildren().add(label);\r\n if (bead1.getLayoutX() == cell.getLayoutX() && bead1.getLayoutY() == cell.getLayoutY())\r\n bead1.setVisible(false);\r\n if (bead2.getLayoutX() == cell.getLayoutX() && bead2.getLayoutY() == cell.getLayoutY())\r\n bead2.setVisible(false);\r\n }\r\n }\r\n }\r\n }\r\n\r\n if (cup_is_on)\r\n cupOptimizer(winner_number);\r\n }", "public void open(Plugin plugin, SpoutPlayer splayer) {\n\n GenericPopup popup = new GenericPopup();\n int width = splayer.getMainScreen().getMaxWidth();\n int height = splayer.getMainScreen().getMaxHeight();\n pluginLeg.log(\"aight\" + width + \"\" + height);\n\n// int width = splayer.getCurrentScreen().getWidth();\n// int height = splayer.getCurrentScreen().getHeight();\n\n //title of the screen\n GenericLabel topLabel = new GenericLabel(\"Clan-Invitation\");\n topLabel.setScale(1);\n\n topLabel.setWidth(topLabel.getText().length() * 8 * (int) topLabel.getScale()).setHeight((int) topLabel.getScale() * 15);\n\n topLabel.setX(width / 2 - topLabel.getWidth() / 2);\n topLabel.setY(topLabel.getHeight() / 2 + 5);\n popup.attachWidget(plugin, topLabel);\n\n //title of the screen\n String questionString = \"&2You are invited to \"+clan.getName()+\". Do you want to join?\";\n GenericLabel questionLabel = new GenericLabel(LegendaryClans.parseColor(questionString));\n questionLabel.setScale(1);\n questionLabel.setWidth(questionLabel.getText().length() * 5 * (int) questionLabel.getScale());\n questionLabel.setHeight((int) questionLabel.getScale() * 15);\n\n questionLabel.setX(width / 2 - questionLabel.getWidth() / 2);\n questionLabel.setY(height / 2 - questionLabel.getHeight() / 2);\n popup.attachWidget(plugin, questionLabel);\n\n //Accept Button\n LegendaryButton acceptButton = new LegendaryButton(LegendaryClans.parseColor(\"&2Accept!\"), popup) {\n\n @Override\n public void onButtonClick(ButtonClickEvent event) {\n if (pluginLeg.getClanManager().getClanByPlayer(clan.getLeaders().get(0)) != null && askedPlayer != null) {\n clan.addMember(askedPlayer);\n } \n getPopup().close();\n }\n };\n\n\n acceptButton.setWidth(acceptButton.getText().length() * 8 * (int) acceptButton.getScale()).setHeight((int) acceptButton.getScale() * 15);;\n acceptButton.setX(width / 2 + width / 4 - acceptButton.getWidth() / 2).setY(height / 2 + height / 4 - acceptButton.getHeight() / 2);\n\n\n popup.attachWidget(plugin, acceptButton);\n //deny button\n LegendaryButton denieButton = new LegendaryButton(LegendaryClans.parseColor(\"&4Deny!\"), popup) {\n\n @Override\n public void onButtonClick(ButtonClickEvent event) {\n clan.broadcastMessage(\"&4\" + askedPlayer.getName() + \" denied invitation!\");\n getPopup().close();\n }\n };\n\n denieButton.setWidth(acceptButton.getText().length() * 8 * (int) acceptButton.getScale());\n denieButton.setHeight((int) denieButton.getScale() * 15);\n// \n// ((LegendaryClans)plugin).log(\"\"+width+\",\"+height);\n// denieButton.setX(denieButton.getX()+denieButton.getWidth()/2 +10);\n\n denieButton.setX(width / 4 - denieButton.getWidth() / 2);\n denieButton.setY(height / 2 + height / 4 - denieButton.getHeight() / 2);\n popup.attachWidget(plugin, denieButton);\n\n splayer.closeActiveWindow();\n splayer.getMainScreen().attachPopupScreen(popup);\n }", "public void openGUISounds(Player p){\n //gui.setItem(0, new ItemStack(Material.GRASS));\n //ItemStack grass = new ItemStack(Material.SKULL_ITEM, 1, (short) 3);\n //SkullMeta skullMeta = (SkullMeta) grass.getItemMeta();\n //skullMeta.setDisplayName(ChatColor.GRAY + \"Player: \" + ChatColor.YELLOW + p.getName());\n //skullMeta.setOwner(p.getName());\n //grass.setItemMeta(skullMeta);\n //gui.setItem(1, grass);\n //p.openInventory(gui);\n }", "private void MostrarSombra()\n {\n // Si tiene el valor por defecto\n if (EsDefecto())\n {\n // Si tenemos establecida la sombra \"defecto\"\n if (m_SombraD.m_nShadowColor != Color.TRANSPARENT)\n {\n setShadowLayer(m_SombraD.m_nShadowRadius, m_SombraD.m_nShadowDx,\n m_SombraD.m_nShadowDy, m_SombraD.m_nShadowColor);\n }\n else setShadowLayer(0, 0, 0, Color.TRANSPARENT);\n }\n else\n {\n // Si tenemos establecida la sombra \"normal\"\n if (m_SombraN.m_nShadowColor != Color.TRANSPARENT)\n {\n setShadowLayer(m_SombraN.m_nShadowRadius, m_SombraN.m_nShadowDx,\n m_SombraN.m_nShadowDy, m_SombraN.m_nShadowColor);\n }\n else setShadowLayer(0, 0, 0, Color.TRANSPARENT);\n }\n }", "public PausePanel()\n {\n StateSelector stateSelector = StateSelector.getInstance();\n GameState state = (GameState) stateSelector.getState();\n Session session = state.getSession();\n\n JTextField idTextField = new JTextField(40);\n idTextField.setEditable(false);\n idTextField.setText(session.getId());\n add(idTextField);\n \n StringSelection stringSelection = new StringSelection(session.getId());\n Clipboard clipboard = Toolkit.getDefaultToolkit().getSystemClipboard();\n clipboard.setContents(stringSelection, null);\n \n Button backButton = new Button(\"assets/images/buttons/backDefault.png\", \"assets/images/buttons/backHover.png\", \"assets/images/buttons/backClick.png\");\n backButton.setWidth(71);\n backButton.setHeight(33);\n backButton.setX(539);\n backButton.setY(367);\n onHover(backButton, backButton.HOVER_COMMAND, backButton.UNHOVER_COMMAND);\n onPress(backButton, backButton.PRESS_COMMAND);\n onRelease(backButton, new Callable()\n {\n public void call()\n {\n Window window = Window.getInstance();\n window.setPanel(new GamePanel());\n \n }\n });\n buttons.add(backButton);\n\n JButton quitBtn = new JButton(\"quit\");\n quitBtn.addActionListener(new QuitListener());\n add(quitBtn);\n }", "public void run() {\n\t\t\t\tVerticalPanel panelCompteRendu = new VerticalPanel();\r\n\t\t\t\thtmlCompteRendu = new HTML();\r\n\t\t\t\tpanelCompteRendu.add(htmlCompteRendu);\r\n\t\t\t\tRootPanel.get(\"compteRendu\").add(panelCompteRendu);\r\n\t\t\t\t\r\n\t\t\t\tVerticalPanel panelLegende = new VerticalPanel();\r\n\t\t\t\thtmlLegende = new HTML();\r\n\t\t\t\tpanelLegende.add(htmlLegende);\r\n\t\t\t\tRootPanel.get(\"legende\").add(htmlLegende);\r\n\t\t\t\t\r\n\t\t\t\t// temps d'intˇgration restant\r\n\t\t\t\tLabel tempsDIntegrationRestant = new Label();\r\n\t\t\t\tRootPanel.get(\"tempsDIntegrationRestant\").add(tempsDIntegrationRestant);\r\n\t\t\t\t\r\n\t\t\t\t// ajout de la carte\r\n\t\t\t\twMap = new MapFaWidget2(htmlCompteRendu);\r\n\t\t\t\tRootPanel.get(\"carte\").add(wMap);\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t// ajout du bouton reset\r\n\t\t\t\tButton boutonReset = new Button(\"Nettoyer la carte\");\r\n\t\t\t\tboutonReset.addClickHandler(actionBoutonReset());\r\n\t\t\t\tRootPanel.get(\"boutonReset\").add(boutonReset);\r\n\r\n\t\t\t\t// ajout du formulaire d'intˇgration\r\n\t\t\t\tnew FileUploadView(wMap,htmlLegende, htmlCompteRendu,tempsDIntegrationRestant);\r\n\r\n\t\t\t}", "public POSDialog(List<Produkt> produkte, List<Kunde> kunden) {\n\t\tthis.kunden = kunden;\n\t\tthis.produkte = produkte;\n\t\t\n\t\tstage = new Stage();\n\t\tstage.setWidth(820.);\n\t\tstage.setHeight(700.);\n\t\tstage.initModality(Modality.APPLICATION_MODAL);\n\t\tinitDialog();\n\t}", "public void openDialog(){\n if (!isAdded()) return;\n homeViewModel.getAllSets().removeObservers(getViewLifecycleOwner());\n ChooseSetDialog dialog = new ChooseSetDialog(setsTitles);\n dialog.show(getChildFragmentManager(), \"choose_set_dialog\");\n dialog.setOnSelectedListener(choice -> {\n Word word = new Word(setsObjects.get(choice).getId(), original, translation);\n homeViewModel.insertWord(word);\n original=\"\"; translation=\"\";\n etOrigWord.setText(\"\"); etTransWord.setText(\"\");\n });\n }", "public void win() {\n JOptionPane.showConfirmDialog(null, \"You won! You got out with \" + this.player.getGold() + \" gold!\", \"VICTORY!\", JOptionPane.OK_OPTION);\n this.saveScore();\n this.updateScores();\n this.showTitleScreen();\n }", "public void prepareBroadcast() {\r\n\t\ttheDialog.show();\r\n\t\ttry {\r\n\t\t\tthePres= new SimplePres( new QTFile( theDialog.getDirectory() + theDialog.getFile()), theCanvas );\r\n\t\t\tsetTitle(theDialog.getFile());\r\n\t\t\ttheCanvas.setClient( thePres.pDrawer, true );\r\n\r\n\t\t\tif (drawer == null)\r\n\t\t\t{\r\n\t\t\t\tdrawer = new StatDrawer(thePres);\t// draws the rate and time information\r\n\t\t\t\tdrawer.timeLabel = currTimeLabel;\r\n\t\t\t\tdrawer.rateLabel = currRateLabel;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\tdrawer.setPres(thePres);\r\n\t\t}\r\n\t\tcatch (QTException qte) {\r\n\t\t\tqte.printStackTrace();\r\n\t\t} \r\n\t}", "public static void fillEditWindow (int index)\n {\n EditSongWindow.songName =listSongs.getSongAtIndex(JSoundsMainWindowViewController.jlActualListSongs.getSelectedIndex()).getSongName();\n EditSongWindow.artistEdit =listSongs.getSongAtIndex(JSoundsMainWindowViewController.jlActualListSongs.getSelectedIndex()).getArtist();\n EditSongWindow.albumEdit =listSongs.getSongAtIndex(JSoundsMainWindowViewController.jlActualListSongs.getSelectedIndex()).getAlbum();\n EditSongWindow.genderEdit=(findGender(listSongs.getSongAtIndex(JSoundsMainWindowViewController.jlActualListSongs.getSelectedIndex()).getSongName()));\n EditSongWindow.index = JSoundsMainWindowViewController.jlActualListSongs.getSelectedIndex();\n EditSongWindow.list = listSongs;\n }", "private void addDialog(boolean gameWon) {\n String separator = Hauptfenster.getSeparator();\n String img_source = Hauptfenster.getDirectory() + \"image\" + separator + hauptfenster.getTheme();\n String[] choices = {\"Neues Spiel\", \"Abbrechen\"};\n ImageIcon lose = new ImageIcon(img_source + separator + \"gameover.gif\");\n ImageIcon win = new ImageIcon(img_source + separator + \"win.gif\");\n int result;\n if(gameWon) {\n result = JOptionPane.showOptionDialog(hauptfenster, \"Sie haben das Spiel gewonnen!\", \"Win\", JOptionPane.YES_NO_OPTION, JOptionPane.PLAIN_MESSAGE, win, choices, \"Neues Spiel\");\n }\n else {\n result = JOptionPane.showOptionDialog(hauptfenster, \"Sie haben das Spiel verloren!\", \"Game Over\", JOptionPane.YES_NO_OPTION, JOptionPane.PLAIN_MESSAGE, lose, choices, \"Neues Spiel\");\n }\n hauptfenster.getSounds().stopPlaying(); // beenden aller aktiven Soundwiedergaben\n if(result == 0) {\n hauptfenster.getSpielfeld().drawNew();\n hauptfenster.newGame();\n }\n }", "private static void createWindow(final Serializable object) {\n\t\tDIALOG.setVisible(false);\n\t\tFrameFactory.createFrame(object);\n\t}", "public void pobierzNajlepsze(MainWindow win)\n\t{\n\t\tif(czyZdalnie())\n\t\t{\n\t\t\tPobranieWynikow wyniki = new PobranieWynikow(win, port, host);\n\t\t\tThread zadanie = new Thread(wyniki);\n\t\t\tzadanie.start();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tString wyniki = najlepsze.pobierz();\n\t\t\tif(wyniki.isEmpty())\n\t\t\t\twyniki = \"Brak wynikow\";\n\t\t\tJOptionPane.showMessageDialog(win, wyniki, \"Najpelsze wyniki lokalnie\",JOptionPane.INFORMATION_MESSAGE);\n\t\t}\n\n\t}", "private void generaVentana()\n {\n // Crea la ventana\n ventana = new JFrame(\"SpaceInvaders\");\n panel = (JPanel) ventana.getContentPane();\n \n // Establece el tamaño del panel\n panel.setPreferredSize(new Dimension(anchoVentana, altoVentana));\n\n // Establece el layout por defecto\n panel.setLayout(null);\n\n // Establece el fondo para el panel\n panel.setBackground(Color.black);\n\n // Establece el tamaño de Canvas y lo añade a la ventana\n setBounds(0,0,altoVentana,anchoVentana);\n panel.add(this);\n\n // Establece que el programa se cerrará cuando la ventana se cierre\n ventana.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n // Establece el tamaño de la ventana\n ventana.pack();\n\n // La ventana no se cambia de tamaño\n ventana.setResizable(false);\n\n // Centra la ventana en la pantalla\n ventana.setLocationRelativeTo(null);\n\n // Muestra la ventana\n ventana.setVisible(true);\n\n // Mantine el foco en la ventana\n requestFocusInWindow();\n }", "public SeletionScreen() {\r\n\t\theight = 600;\r\n\t\twidth = 800;\r\n\r\n\t\tposicao = new Point[9];\r\n\t\tenderecoImage = new String[8];\r\n\t\t\r\n\t\tenderecoImageSelecaoP1 = new String[8];\r\n\t\tenderecoImageSelecaoP2 = new String[8];\r\n\r\n\t\tsizeHeightImage = 147;\t\t\t\r\n\t\tsizeWidhtImage =114;\r\n\r\n\t\tsizeHeightImageSelecionado = 183;\r\n\t\tsizeWidhtImageSelecionado = 146;\r\n\t\t\r\n\t\tplayer1 = 0;\r\n\t\tplayer2 = 3;\r\n\r\n\r\n\t\t//personagem superior da tela\r\n\t\tposicao[0]= new Point(99,41);\r\n\t\tposicao[1]= new Point(264, 41);\r\n\t\tposicao[2]= new Point(429, 41);\r\n\t\tposicao[3]= new Point(594, 41);\r\n\t\t//personagem inferior da tela \r\n\t\tposicao[4]= new Point(175, 206);\r\n\t\tposicao[5]= new Point(340, 206);\r\n\t\tposicao[6]= new Point(505, 206);\t//posicao do randon\r\n\t\t//posicao do personagem escolhido\r\n\t\tposicao[7]= new Point(77, 374);\r\n\t\tposicao[8]= new Point(578, 374);\t\t\r\n\r\n\t\t/*\r\n\t\t * endereco das imagens que vao ser caregadas para mostrar os lutadores\r\n\t\t */\r\n\t\tenderecoImage[0]= \"/image/fireHead/fireHead_menu_0.png\";\r\n\t\tenderecoImage[1]= \"/image/madimbu/madimbu_menu_0.png\";\r\n\t\tenderecoImage[2]= \"/image/bigboss/bigBoss_Menu_0.png\";\r\n\t\tenderecoImage[3]= \"/image/monitora/monitora_menu_0.png\";\r\n\t\tenderecoImage[4]= \"/image/tche/tche_menu_0.png\";\r\n\t\tenderecoImage[5]= \"/image/random.png\";\r\n\t\tenderecoImage[6]= \"/image/mallock/mallock_menu_0.png\";\r\n\t\tenderecoImage[7]= \"/image/Screens/screenSelect.png\";//fundo\r\n\r\n//========================Carrega o endereco de imagem da animacao de selacao do Player 1 =================================\r\n\t\tenderecoImageSelecaoP1[0] = \"/image/fogo/fogo_0.png\";\r\n\t\tenderecoImageSelecaoP1[1] = \"/image/fogo/fogo_1.png\";\r\n\t\tenderecoImageSelecaoP1[2] = \"/image/fogo/fogo_2.png\";\r\n\t\tenderecoImageSelecaoP1[3] = \"/image/fogo/fogo_3.png\";\r\n\t\tenderecoImageSelecaoP1[4] = \"/image/fogo/fogo_4.png\";\r\n\t\tenderecoImageSelecaoP1[5] = \"/image/fogo/fogo_5.png\";\r\n\t\tenderecoImageSelecaoP1[6] = \"/image/fogo/fogo_6.png\";\r\n\t\tenderecoImageSelecaoP1[7] = \"/image/grade.png\";\r\n//======================================================================================================================\r\n\r\n//=================Carrega o endereco de imagem da animacao de selacao do Player 2=========================================\r\n\t\tenderecoImageSelecaoP2[0] = \"/image/fogo/fogo_azul_0.png\";\r\n\t\tenderecoImageSelecaoP2[1] = \"/image/fogo/fogo_azul_1.png\";\r\n\t\tenderecoImageSelecaoP2[2] = \"/image/fogo/fogo_azul_2.png\";\r\n\t\tenderecoImageSelecaoP2[3] = \"/image/fogo/fogo_azul_3.png\";\r\n\t\tenderecoImageSelecaoP2[4] = \"/image/fogo/fogo_azul_4.png\";\r\n\t\tenderecoImageSelecaoP2[5] = \"/image/fogo/fogo_azul_5.png\";\r\n\t\tenderecoImageSelecaoP2[6] = \"/image/fogo/fogo_azul_6.png\";\r\n\t\tenderecoImageSelecaoP2[7] = \"/image/grade.png\";\r\n//====================================================================================================================\r\n\t\ttry {\r\n\t\t\tfor (int i = 0; i < 8; i++) {\r\n\t\t\t\tBufferedImage ani = ImageIO.read(Controller.getInstance().getClass().getResourceAsStream(enderecoImageSelecaoP1[i]));\r\n//\t\t\t\r\n\t\t\t\tanimacaoDeSelecaoP1.add(ani);\r\n\t\t\t}\r\n\t\t\tfor (int i = 0; i < 8; i++) {\r\n\t\t\t\tBufferedImage ani2 = ImageIO.read(Controller.getInstance().getClass().getResourceAsStream(enderecoImageSelecaoP2[i]));\r\n//\t\t\t\t\r\n\t\t\t\tanimacaoDeSelecaoP2.add(ani2);\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}\t\t\r\n\t\t\r\n\t\t\r\n\t\ttry {\r\n\t\t\t/*\r\n\t\t\t * Carregar todas as imagem dos jogadores\r\n\t\t\t */\r\n//================================Carrega a imagem de Fundo ====================================================\t\t\t\r\n\r\n\t\t\tfundo = ImageIO.read(Controller.getInstance().getClass().getResourceAsStream(enderecoImage[7]));\r\n\r\n//===============================================================================================================\r\n//=============================Carrega as imagens dos lutadores =================================================\r\n\t\t\tfor(int i=0;i<7; i++)\r\n\t\t\t{\r\n\t\t\t\tlutadores.add(new Button(Utilities.loadImage(enderecoImage[i]),posicao[i].x,posicao[i].y){\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\tpublic void onClick() {\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void draw(Graphics2D graphics) {\r\n\t\t\t\t\t\tgraphics.drawImage(getImage(), position.toPoint().x, position.toPoint().y, position.toPoint().x+sizeWidhtImage, position.toPoint().y+sizeHeightImage, 0,0,getImage().getWidth(), getImage().getHeight(), null);\r\n\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\r\n\t\t\t}\r\n//==========================================================================================================================================================\t\t\r\n\r\n//===============================Adiciona os lutadores para ser mostrado na tela===========================================================================================================================\t\t\t\r\n\t\t\tfor (int i = 0; i < lutadores.size(); i++) {\r\n\t\t\t\taddComponent(lutadores.get(i));\r\n\t\t\t}\r\n//==============================================================================================================================================================================\t\t\t\r\n\r\n\r\n//================================== Imagem do lutador selecionado do player 1 ==========================================================================================================\t\t\t\r\n\t\t\tlutadoresSelcionado.add(new Button(Utilities.loadImage(enderecoImage[0]),posicao[7].x,posicao[7].y){\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void onClick() {\r\n\t\t\t\t\t// TODO Auto-generated method stub\r\n\r\n\t\t\t\t}\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void draw(Graphics2D graphics) {\r\n//==================selecao feita atraves do mouse o primeiro click ============================================================================================================\r\n//\t\t\t\t\tif(player1!=-1)\r\n//\t\t\t\t\t{\r\n//\t\t\t\t\t\tthis.setImage(lutadores.get(player1).getImage());\r\n//\t\t\t\t\t\tgraphics.setColor(Color.RED);\r\n//\t\t\t\t\t\tgraphics.fillRect( position.toPoint().x-2, position.toPoint().y-2, sizeWidhtImageSelecionado+4, sizeHeightImageSelecionado+4);\r\n//\t\t\t\t\t\tgraphics.drawImage(getImage(), position.toPoint().x, position.toPoint().y, position.toPoint().x+sizeWidhtImageSelecionado, position.toPoint().y+sizeHeightImageSelecionado, 0,0,getImage().getWidth(), getImage().getHeight(), null);\r\n//\t\t\t\t\t}\r\n//\t\t\t\t\telse\r\n//\t\t\t\t\t{\t\t\t\t\t\t\t\r\n//\t\t\t\t\t\tgraphics.setColor(Color.RED);\r\n//\t\t\t\t\t\tgraphics.fillRect( position.toPoint().x-2, position.toPoint().y-2, sizeWidhtImageSelecionado+4, sizeHeightImageSelecionado+4);\r\n//\t\t\t\t\t\tgraphics.drawImage(getImage(), position.toPoint().x, position.toPoint().y, position.toPoint().x+sizeWidhtImageSelecionado, position.toPoint().y+sizeHeightImageSelecionado, 0,0,getImage().getWidth(), getImage().getHeight(), null);\r\n//\t\t\t\t\t}\r\n//=============================================================================================================================================================================================================================================\t\t\t\t\t\r\n//============================Selecao do personagem atraves do teclado com as teclas A, D e E para confirmar selecao =================================================================================================================================================================================================================\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tthis.setImage(lutadores.get(player1).getImage());\r\n\t\t\t\t\t\tgraphics.drawImage(getImage(), position.toPoint().x, position.toPoint().y, position.toPoint().x+sizeWidhtImageSelecionado, position.toPoint().y+sizeHeightImageSelecionado, 0,0,getImage().getWidth(), getImage().getHeight(), null);\r\n\t\t\t\t\t\tif(E){\r\n\t\t\t\t\t\t\tgraphics.drawImage(animacaoDeSelecaoP1.get(7),posicao[player1].x , posicao[player1].y, posicao[player1].x+sizeWidhtImage ,posicao[player1].y+sizeHeightImage, 0, 0, animacaoDeSelecaoP1.get(7).getWidth(), animacaoDeSelecaoP1.get(7).getHeight(), null);\r\n\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t});\r\n\r\n//=============================================================================================================================================================================================================================================\t\t\t\t\t\r\n\r\n//================================== Imagem do lutador selecionado do player 2 ============================================================================\t\t\t\r\n\t\t\tlutadoresSelcionado.add(new Button(Utilities.loadImage(enderecoImage[3]),posicao[8].x,posicao[8].y){\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void onClick() {\r\n\t\t\t\t\t// TODO Auto-generated method stub\r\n\r\n\t\t\t\t}\r\n\t\t\t\tpublic void draw(Graphics2D graphics) {\r\n\t\t\t\t\t\r\n//=============================Selecao do personagem Atraves do mouse, selecao feita por ordem ==================================\r\n//\t\t\t\t\tif(player2!=-1)\r\n//\t\t\t\t\t{\r\n//\t\t\t\t\t\tthis.setImage(lutadores.get(player2).getImage());\r\n//\t\t\t\t\t\tgraphics.setColor(Color.RED);\r\n//\t\t\t\t\t\tgraphics.fillRect( position.toPoint().x-2, position.toPoint().y-2, sizeWidhtImageSelecionado+4, sizeHeightImageSelecionado+4);\r\n//\t\t\t\t\t\tgraphics.drawImage(getImage(), position.toPoint().x, position.toPoint().y, position.toPoint().x+sizeWidhtImageSelecionado, position.toPoint().y+sizeHeightImageSelecionado, 0,0,getImage().getWidth(), getImage().getHeight(), null);\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\tgraphics.setColor(Color.RED);\r\n//\t\t\t\t\t\tgraphics.fillRect( position.toPoint().x-2, position.toPoint().y-2, sizeWidhtImageSelecionado+4, sizeHeightImageSelecionado+4);\r\n//\t\t\t\t\t\tgraphics.drawImage(getImage(), position.toPoint().x, position.toPoint().y, position.toPoint().x+sizeWidhtImageSelecionado, position.toPoint().y+sizeHeightImageSelecionado, 0,0,getImage().getWidth(), getImage().getHeight(), null);\r\n//\t\t\t\t\t}\r\n//===========================================================================================================================================\r\n//================================Selecao do personagem feita atraves do teclado teclas LEFT , RIGHT e Confirmar selacao com ENTER \r\n\t\t\t\t\t\tthis.setImage(lutadores.get(player2).getImage());\r\n\t\t\t\t\t\tgraphics.drawImage(getImage(), position.toPoint().x, position.toPoint().y, position.toPoint().x+sizeWidhtImageSelecionado, position.toPoint().y+sizeHeightImageSelecionado, 0,0,getImage().getWidth(), getImage().getHeight(), null);\r\n\t\t\t\t\t\tif(ENTER){\r\n\t\t\t\t\t\t\tgraphics.drawImage(animacaoDeSelecaoP2.get(7),posicao[player2].x , posicao[player2].y, posicao[player2].x+sizeWidhtImage ,posicao[player2].y+sizeHeightImage, 0, 0, animacaoDeSelecaoP2.get(7).getWidth(), animacaoDeSelecaoP2.get(7).getHeight(), null);\r\n\r\n\t\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t});\r\n//==============================================================================================================================================================================================================================================\r\n\r\n//===============================Adiciona os lutadores Selecionado para ser mostrado na tela===========================================================================================================================\t\t\t\r\n\t\t\tfor (int i = 0; i < lutadoresSelcionado.size(); i++) {\r\n\t\t\t\taddComponent(lutadoresSelcionado.get(i));\r\n\t\t\t}\r\n//======================================================================================================================================================================================================================================\t\t\t\r\n\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t\tSystem.out.println(\"erro\");\r\n\t\t}\r\n\r\n\t}", "@Command\n public void nuevaMateria() {\n\t\t\n\t\tWindow window = (Window)Executions.createComponents(\n \"/WEB-INF/include/Mantenimiento/Materias/vtnMaterias.zul\", null, null);\n window.doModal();\n }", "void enterCanvas(){\n user.setWhiteboardID(Integer.parseInt(whiteboardField.getText()));\n System.out.println(\"enter \"+ user.getUsername()+ \" \" + user.getUserID() + \" \" + user.getWhiteboardID());\n new ProtocolWorker(\"enter \"+ user.getUsername()+ \" \" + user.getUserID() + \" \" + user.getWhiteboardID()).execute(); \n }", "public VentanaRegistroLocal() {\n\t\t\n\t\taddWindowListener(new WindowAdapter() {\n\t\t\tpublic void windowOpened(WindowEvent e){\n\t\t\t\ttxtNroLocal.requestFocus();\n\t\t\t}\n\t\t});\n\t\t\n\n\t\tbotonGuardar = new JButton();\n\t\tbotonGuardar.setToolTipText(\"Guardar\");\n\t\tbotonGuardar.setIcon(new ImageIcon(VentanaRegistroLocal.class\n\t\t\t\t.getResource(\"/imgs/save.png\")));\n\t\tbotonGuardar.setBounds(298, 52, 32, 32);\n\t\tbotonGuardar.setOpaque(false);\n\t\tbotonGuardar.setContentAreaFilled(false);\n\t\tbotonGuardar.setBorderPainted(false);\n\t\tImage img3 = ((ImageIcon) botonGuardar.getIcon()).getImage();\n\t\tImage newimg3 = img3.getScaledInstance(32, 32,\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH);\n\t\tbotonGuardar.setIcon(new ImageIcon(newimg3));\n\n\t\tbotonCancelar = new JButton();\n\t\tbotonCancelar.setBackground(Color.WHITE);\n\t\tbotonCancelar.setToolTipText(\"Atrás\");\n\t\tbotonCancelar.setIcon(new ImageIcon(VentanaRegistroLocal.class\n\t\t\t\t.getResource(\"/imgs/back2.png\")));\n\t\tbotonCancelar.setBounds(589, 150, 32, 32);\n\t\tbotonCancelar.setOpaque(false);\n\t\tbotonCancelar.setContentAreaFilled(false);\n\t\tbotonCancelar.setBorderPainted(false);\n\t\tImage img2 = ((ImageIcon) botonCancelar.getIcon()).getImage();\n\t\tImage newimg2 = img2.getScaledInstance(32, 32,\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH);\n\t\tbotonCancelar.setIcon(new ImageIcon(newimg2));\n\t\t\n\n\t\tlabelTitulo = new JLabel();\n\t\tlabelTitulo.setText(\"NUEVO LOCAL\");\n\t\tlabelTitulo.setBounds(269, 11, 380, 30);\n\t\tlabelTitulo.setFont(new java.awt.Font(\"Verdana\", 1, 18));\n\n\t\tbotonGuardar.addActionListener(this);\n\t\tbotonCancelar.addActionListener(this);\n\t\tgetContentPane().add(botonCancelar);\n\t\tgetContentPane().add(botonGuardar);\n\t\tgetContentPane().add(labelTitulo);\n\t\tlimpiar();\n\t\tsetSize(624, 208);\n\t\tsetTitle(\"Sistema E-vote: Paraguay Elecciones 2015\");\n\t\tsetLocationRelativeTo(null);\n\t\tsetResizable(false);\n\t\tgetContentPane().setLayout(null);\n\n\t\tbtnHome = new JButton(\"\");\n\t\tbtnHome.setToolTipText(\"Inicio\");\n\t\tbtnHome.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tDefinicionesGenerales menuprincipal = new DefinicionesGenerales();\n\t\t\t\tmenuprincipal.setVisible(true);\n\t\t\t\tdispose();\n\t\t\t}\n\t\t});\n\t\tbtnHome.setIcon(new ImageIcon(VentanaRegistroLocal.class\n\t\t\t\t.getResource(\"/imgs/home.png\")));\n\t\tbtnHome.setBounds(0, 0, 32, 32);\n\t\tImage img = ((ImageIcon) btnHome.getIcon()).getImage();\n\t\tImage newimg = img.getScaledInstance(32, 32,\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH);\n\t\tbtnHome.setIcon(new ImageIcon(newimg));\n\t\tgetContentPane().add(btnHome);\n\n\t\tlblNroLocal = new JLabel();\n\t\tlblNroLocal.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\tlblNroLocal.setText(\"Nro:\");\n\t\tlblNroLocal.setBounds(142, 59, 61, 25);\n\t\tgetContentPane().add(lblNroLocal);\n\n\t\ttxtNroLocal = new JTextField();\n\t\ttxtNroLocal.addKeyListener(new KeyAdapter() {\n\t\t\t@Override\n\t\t\tpublic void keyTyped(KeyEvent e) {\n\t\t\t\tchar car = e.getKeyChar();\n\t\t\t\tif((car<'0' || car>'9')) e.consume();\n\t\t\t}\n\t\t});\n\t\ttxtNroLocal.addFocusListener(new FocusAdapter() {\n\t\t\t@Override\n\t\t\tpublic void focusLost(FocusEvent e) {\n\t\t\t\tif (txtNroLocal.getText().length() == 1)\n\t\t\t\t{\n\t\t\t\t\ttxtNroLocal.setText(0 + txtNroLocal.getText() );\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\ttxtNroLocal.setBounds(213, 54, 75, 26);\n\t\tgetContentPane().add(txtNroLocal);\n\t\ttxtNroLocal.setColumns(10);\n\n\t\tlblMensaje = new JLabel(\"\");\n\t\tlblMensaje.setForeground(Color.RED);\n\t\tlblMensaje.setBounds(213, 122, 363, 14);\n\t\tgetContentPane().add(lblMensaje);\n\t\t\n\t\tJLabel lblDescripcionLocal = new JLabel();\n\t\tlblDescripcionLocal.setText(\"Descripcion:\");\n\t\tlblDescripcionLocal.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\tlblDescripcionLocal.setBounds(114, 86, 89, 25);\n\t\tgetContentPane().add(lblDescripcionLocal);\n\t\t\n\t\ttxtDescripcionLocal = new JTextField();\n\t\ttxtDescripcionLocal.setColumns(10);\n\t\ttxtDescripcionLocal.setBounds(213, 85, 298, 26);\n\t\tgetContentPane().add(txtDescripcionLocal);\n\t\t//recuperarDatos();\n\t\t\n\t\tgetRootPane().getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER,0),\"clickButton\");\n\n\t\tgetRootPane().getActionMap().put(\"clickButton\",new AbstractAction(){\n\t\t\t public void actionPerformed(ActionEvent ae)\n\t\t\t {\n\t\t\t botonGuardar.doClick();\n\t\t\t System.out.println(\"button clicked\");\n\t\t\t }\n\t\t\t });\n\t\t\n\t\t\n\t\tgetRootPane().getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE,0),\"clickButtonescape\");\n\n\t\tgetRootPane().getActionMap().put(\"clickButtonescape\",new AbstractAction(){\n\t\t\t public void actionPerformed(ActionEvent ae)\n\t\t\t {\n\t\t\t botonCancelar.doClick();\n\t\t\t System.out.println(\"button esc clicked\");\n\t\t\t }\n\t\t\t });\n\n\t}", "private void popupModify2te() {\n\t\tRolle rolle = (Rolle) this;\n\t\taufzugschacht.mainFrameShowOptionsFrame(rolle.getRolle2teUmschlingung(), true);\n\t}", "public void chooseWindowSceneLoaded(String username) throws IOException{\n PrintWriter out = new PrintWriter(socket.getOutputStream(), true);\n out.println(username + \" chooseWindowOk\");\n out.close();\n socket.close();\n }", "private String updateWindow()\n\t{\n \t return String.format(\"Batt: %d Alt: %d Hdg: %d Rdy: %b Track: %b Id: %d\", drone.getBattery(), drone.getHeight(), \n \t\t\tdrone.getHeading(), drone.isFlying(), trackMarker, markerId);\n\t}", "public void openGamePane() {\n\t\tParent root;\n\t\ttry {\n\t\t\tFXMLLoader loader = new FXMLLoader(getClass().getResource(GAMEPANELOCATION));\n\t\t\tloader.setController(this);\n\t\t\troot = loader.load();\n\t\t\tScene scene = new Scene(root);\n\t\t\tStage stage = new Stage();\n\t\t\tstage.setScene(scene);\n\t\t\tstage.show();\n\t\t} catch (IOException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t\tgamePane.setBackground(new Background(new BackgroundFill(new Color(195/256.0,222/256.0,250/256.0,1),CornerRadii.EMPTY, Insets.EMPTY)));\n\t\tgameObjects=new HashMap<Integer,GameObjectVisualComponent>();\n\t\tpodium=new ArrayList<Text>();\n\t\tpodium.add(new Text(gamePane.getWidth()-100,15,\"TOP\"));\n\t\tgamePane.getChildren().add(podium.get(0));\n\t}", "private void inizia() throws Exception {\n\n try { // prova ad eseguire il codice\n\n /* questo dialogo non e' modale */\n this.getDialogo().setModal(false);\n\n this.setTitolo(TITOLO_DIALOGO);\n this.addBottoneStampa();\n this.addBottoneChiudi();\n\n /* crea il modulo con db in memoria */\n this.creaModuloMem();\n\n /* crea i pannelli del dialogo */\n this.creaPannelli();\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "public void createNewLobby() {\n\t\tPlatform.runLater(() -> {\n\t\tTab tab = new Tab(\"Ludo\");\n\t\ttab.setId(hostName);\n\t\ttab.setClosable(true);\n\t\ttab.setOnClosed(new EventHandler<Event>() {\n\t\t\t@Override\n\t\t\tpublic void handle(Event e) {\n\t\t\t\t//String dcPlayer;\n\t\t\t\tint p, turnowner;\n\t\t\t\tif (gameClientUIController != null) {\n\t\t\t\t\tp = gameClientUIController.getPlayer();\n\t\t\t\t\tturnowner = gameClientUIController.getTurnOwner();\n\t\t\t\t\t//dcPlayer = Integer.toString(gameClientUIController.getPlayer());\n\t\t\t\t\tif(p == turnowner) { //Check if player disconnected on his/her own turn\n\t\t\t\t\t\tsendText(Constants.DICEVALUE + 0 + p + 0);\n\t\t\t\t\t}\n\t\t\t\t\t//sendText(Constants.DISCONNECT + dcPlayer);\t//Disconnect the player and remove the player from the server\n\t\t\t\t\tMain.sendText(Constants.GAMELOST); \n\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tsendText(Constants.DISCONNECT);\n\t\t\t\t\n\t\t\t\tMain.cHandler.leaveGameChat(hostName);\n\t\t\t\tString tmp = Constants.IDGK + Main.userName;\n\t\t\t\tif (tmp.equals(hostName)) {\n\t\t\t\t\tMain.sendText(Constants.REMOVEHOST + hostName);\n\t\t\t\t\tMain.mainController.openNewGameButton();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tclose();\n\t\t\t\t\n\t\t\t\tfor(int i = 0; i < Main.gameTabs.getTabs().size(); i++) {\n\t\t\t\t\tif(Main.gameTabs.getTabs().get(i).getId().equals(hostName)) {\n\t\t\t\t\t\tMain.gameTabs.getTabs().remove(i);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfor (int i=0; i<Main.gameHandler.size(); i++) {\n\t\t\t\t\tif(hostName.equals(Main.gameHandler.get(i).getHostName())) {\n\t\t\t\t\t\tMain.gameHandler.remove(i);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tFXMLLoader loader = new FXMLLoader();\n\t\n\t\t\ttry {\n\t\t\t\tswitch (caseNr) {\n\t\t\t\tcase 1:\n\t\t\t\t\ttab.setContent(loader.load(getClass().getResource(\"CreateGameLobby.fxml\").openStream()));\n\t\t\t\t\tcreateGameLobbyController = (CreateGameLobbyController) loader.getController();\n\t\t\t\t\tcreateGameLobbyController.setHostPlayer(hostName);\n\t\t\t\t\tcreateGameLobbyController.setConnetion(output);\n\t\t\t\t\tbreak;\n\t\n\t\t\t\tcase 2:\n\t\t\t\t\ttab.setContent(loader.load(getClass().getResource(\"HostGameLobby.fxml\").openStream()));\n\t\t\t\t\thostGameLobbyController = (HostGameLobbyController) loader.getController();\n\t\t\t\t\thostGameLobbyController.setHostPlayer(hostName);\n\t\t\t\t\thostGameLobbyController.setConnetion(output);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase 3: \n\t\t\t\t\ttab.setContent(loader.load(getClass().getResource(\"PlayerGameLobby.fxml\").openStream()));\n\t\t\t\t\tplayerGameLobbyController = (PlayerGameLobbyController) loader.getController();\n\t\t\t\t\tplayerGameLobbyController.setHostPlayer(hostName);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tdefault: \n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\n\t\t\t\tMain.gameTabs.getTabs().add(tab);\n\t\t\t\tMain.gameTabs.getSelectionModel().select(tab);\n\t\t\t\t\n\t\t\t\tprocessConnection();\n\t\t\t} catch (IOException ioe) {\n\t\t\t\tMain.LOGGER.log(Level.SEVERE, \"Unable to find fxml file\", ioe);\n\t\t\t}\n\t\t});\n\t}", "public void displayWinner(Player player) {\n System.out.println(\"Partie terminée !\");\n System.out.println(player.getPlayerName()+\" remporte la partie avec les billes \"+player.getColor().toString(true));\n System.out.println(\"――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――\");\n }", "public void gano() {\n\t\t\n\t\tGameOver_Win win = new GameOver_Win(1);\n\t\thiloJuego = null;\n\t\tthis.panelJuego = null;\n\t\tthis.dispose();\n\t\tthis.juego = null;\n\t\twin.setVisible(true);\n\t\t\n\t}", "public void gameSetupMultiplayer() {\r\n\t\t\r\n\t\tmultiplayerScreen = new MultiplayerScreen(this, playerNumber, playerIndex ); \r\n\t\t\r\n\t\t// creo giocatore\r\n\t\tfor (int i=0; i<playerNumber; i++) {\r\n\t\t\tplayers.add(new Player());\r\n\r\n\t\t}\t\r\n\t\tmultiplayerScreen.addPlayers(players); //creazione schermo di gioco multiplayer\r\n\t\t\r\n\t\tmultiplayerScreen.setMusic(music);\r\n\t\t\r\n\t\tmultiplayerScreen.setLevel(level);\r\n\t\t\r\n\t\tclient.startThread(multiplayerScreen);\r\n\t\t\r\n\t\tgameFrame.add(multiplayerScreen);\r\n\t\tgameFrame.requestFocusInWindow();\r\n\r\n\t\t// aggiungo controllo da tastiera\r\n\t\tgameFrame.addKeyListener(players.get(playerIndex).getInputHandler());\r\n\t\tgameFrame.pack();\r\n\t\tgameFrame.setVisible(true);\r\n\t\t\t\t\r\n\t\t// avvio ciclo di gioco\r\n\t\tnew Thread(multiplayerScreen).start();\r\n\t\tmultiplayerScreen.setVisible(true);\r\n\t}", "public void popup(String s, String id){\n\t\t\n\t\t// call to a db function -> what kind if exercises was carried out during this training?\n\t\tExerciseForTrainingFetch eftf = new ExerciseForTrainingFetch();\n\t\ttry {\n\t\t\teftf.readDataBase(id);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tArrayList<ArrayList> allOvelser = eftf.getExForTraining();\n\t\t\n\t\tStringBuilder bStr = new StringBuilder();\n\t\tfor (int i=0;i<allOvelser.get(0).size();i++){\n\t\t\tbStr.append(\"Ovelse: \" + allOvelser.get(0).get(i) + \" Belastning: \" +allOvelser.get(1).get(i) +\n\t\t\t\t\t\" Sett: \" + allOvelser.get(2).get(i) + \" Repetisjoner: \" + allOvelser.get(3).get(i) + \" Beskrivelse: \" + allOvelser.get(4).get(i) + \n\t\t\t\t\t\" Kategori: \" + allOvelser.get(5).get(i) + \"\\n\" + \"-----------------\\n\");\n\t\t}\n\t\t\n\t\tGroup root = new Group();\n\t\tScene dialogScene = new Scene(root, 400, 300);\n\t\tLabel label3 = new Label(bStr.toString());\n\t\tlabel3.setWrapText(true);\n\t\tlabel3.setFont(new Font(\"Arial\", 12));\n\t\tlabel3.setMaxSize(380, 300);\n\t\t\n final Stage dialog = new Stage();\n dialog.initModality(Modality.APPLICATION_MODAL);\n dialog.initOwner(UserApplication.primaryStage);\n\n Button cancel = new Button(\"Cancel\");\n cancel.setCancelButton(true);\n cancel.setOnAction((actionEvent) -> dialog.close());\n GridPane gridpane = new GridPane();\n gridpane.setMaxSize(400, 300);\n gridpane.setHgap(10); //horizontal gap in pixels => that's what you are asking for\n gridpane.setVgap(10); //vertical gap in pixels\n gridpane.setPadding(new Insets(10, 10, 10, 10)); //margins around the whole grid\n //(top/right/bottom/left)\n ScrollPane s1 = new ScrollPane();\n s1.setPrefSize(380, 300);\n s1.setHbarPolicy(ScrollBarPolicy.NEVER);\n s1.setContent(label3);\n gridpane.add(cancel, 0, 3); // column=0 row=3\n gridpane.add(s1, 0, 1); // column=0 row=1\n gridpane.setMaxSize(400, 300);\n root.getChildren().addAll(gridpane);\n \n dialog.setScene(dialogScene);\n dialog.show(); \n \n\t}", "public void updateWin(PlayerInterface p) {\n notifyWin(p);\n }", "public void perdio() {\n\t\tthis.juego = null;\n\t\thiloJuego = null;\n\t\tthis.panelJuego = null;\n\t\tthis.dispose();\n\t\tGameOver_Win go = new GameOver_Win(0);\n\t\tgo.setVisible(true);\n\t\t\n\t}", "public void popAddEntity()throws IOException {\n final Stage dialog = new Stage();\n dialog.setTitle(\"Agregar entidad\");\n \n Parent root = FXMLLoader.load(getClass().getResource(\"/view/PopAddEntity.fxml\"));\n \n Scene xscene = new Scene(root);\n \n dialog.setResizable(false);\n dialog.initModality(Modality.APPLICATION_MODAL);\n dialog.initOwner((Stage) root.getScene().getWindow());\n //dialog.resizableProperty().setValue(Boolean.FALSE);\n \n dialog.setScene(xscene);\n dialog.showAndWait();\n dialog.setResizable(false);\n dialog.close();\n\n }", "public static void main(String[] args) {\r\n Window w = new Window();\r\n w.msg(\"The Almighty Council of Trevor has just found you guilty of committing crimes against Skyrim and her people. \\n \\n They used their quantum entanglement technology to imprison you(in fortnite) in a vast maze. \\n \\n They have summoned the silent Minotaur, known only as \\\"The Pipe\\\" that will chase you unerringly, as well as the three ratlike Hartogs, who patrol the halls. \\n \\n However, your boy Jonah smuggled in a sword for you to use, though it's a cheap ass sword so it'll only work once. Thanks, Obama! \\n \\n All you need to do is make it to the exit of the maze, and the Almighty Council of Trevor will pardon your crimes since you've demonstrated your epicness. \\n \\n Now don't fuck this up, or Trevor and Ronald will absorb your soul.\");\r\n Overseer _o = new Overseer();\r\n _o._s.updateMap(_o._p, _o._m, _o._r1, _o._r2, _o._r3, _o._v, _o._z);\r\n while (_o._p.checkAlive()) {\r\n _o.move(_o.getPlayerMovement());\r\n _o._s.updateMap(_o._p, _o._m, _o._r1, _o._r2, _o._r3, _o._v, _o._z);\r\n _o.gamecheck();\r\n }\r\n }", "private void winScreen() {\n timer.stop();\n gameModel.setState(\"Win Screen\");\n WinScreen screen = new WinScreen(width, height);\n Button replayButton = screen.getReplayButton();\n replayButton.setOnAction(e -> {\n try {\n Controller newGame = new Controller();\n newGame.start(mainWindow);\n } catch (Exception exception) {\n exception.printStackTrace();\n }\n });\n Button exitButton = screen.getExitButton();\n exitButton.setOnAction(e -> {\n System.exit(0);\n });\n Scene scene = screen.getScene();\n mainWindow.setScene(scene);\n }", "private void setWonOrLossViews() {\n if (success) {\n TextView message = findViewById(R.id.winText);\n message.setText(R.string.flashWin1);\n } else {\n player.loseALife();\n\n TextView message = findViewById(R.id.winLoss);\n message.setText(R.string.flashLoss);\n\n TextView minusOne = findViewById(R.id.minus1);\n minusOne.setText(\"-1\");\n }\n }", "public VuePlateaux(JFrame frame,GameManager gm){\n super();\n this.frame = frame;\n frame.setPreferredSize(new Dimension(1200,500));\n gm.addObserver(this);\n this.shown = false;\n this.gm = gm;\n this.save = new JButton(\"sauvegarder\");\n this.contentIAdversaire = new JPanel();\n this.contentJoueur = new JPanel();\n this.plateaux = new JPanel();\n this.munitions = new JPanel();\n this.options = new JPanel();\n this.retourMenu = new JButton(\"Retourner au Menu\");\n setAffichage();\n }", "public void replyBoard(BoardDto dto) {\n\t\t\r\n\t\ttry {\r\n\t\t\t//DataSource(커넥션풀)에서 DB와 미리 연결된 Connection 객체를 얻어온다.\r\n\t\t\tcon = ds.getConnection();\r\n\t\t\t\r\n\t\t\t// 1. 부모 글의 pos 보다 큰 글은 pos를 1씪 증가시켜야 한다.\r\n\t\t\tString sql = \"update Board set pos = pos+1 where pos > (select * from (select pos from Board b where num = ? ) as b)\";\r\n\t\t\tpstmt = con.prepareStatement(sql);\r\n\t\t\tpstmt.setInt(1, dto.getNum()); // 전달 받은 num은 부모의 num\r\n\t\t\tpstmt.executeUpdate();\r\n\r\n\t\t\t// dto에 있는 데이터를 DB에 저장\r\n\t\t\tsql = \"insert into Board(name,email,subject,content,pw,count,regdate,pos,depth) values (?,?,?,?,?,0,now(),?,?)\";\r\n\t\t\t\r\n\t\t\t//Connection객체의 힘을 빌려! insert구문을 DB에 실행할!\r\n\t\t\t//PreparedStatement객체를 얻을 수있는데\r\n\t\t\t//이 PreparedStatement객체를 얻어 올때는????를 제외한 나머지 insert구문을\r\n\t\t\t//PreparedStatement객체에 저장하여!!\r\n\t\t\t//PreparedStatement객체 자제를 리턴받아온다.\r\n\t\t\t//아래의 메소드에서!!\r\n\t\t\tpstmt = con.prepareStatement(sql); //insert구문을 실행할 PreparedStatement객체\r\n\t\t\tpstmt.setString(1, dto.getName());\r\n\t\t\tpstmt.setString(2, dto.getEmail());\r\n\t\t\tpstmt.setString(3, dto.getSubject());\r\n\t\t\tpstmt.setString(4, dto.getContent());\r\n\t\t\tpstmt.setString(5, dto.getPw());\r\n\t\t\tpstmt.setInt(6, dto.getPos()+1); \t// 부모의 pos + 1\r\n\t\t\tpstmt.setInt(7, dto.getDepth()+1); \t// 부모의 depth + 1\r\n\t\t\t\r\n\t\t\tpstmt.executeUpdate();\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\tSystem.out.println(\"BoardDao클래스의 replyBoard() 메서드의 오류 : \" + e);\r\n\t\t} finally {\r\n\t\t\tfreeResource();\r\n\t\t}\r\n\t\t\r\n\t}", "public void startRound() {\n\t\troundWindow = new Stage();\n\t\troundWindow.initModality(Modality.APPLICATION_MODAL);\n\t\troundWindow.setTitle(\"Rundenoptionen\");\n\t\troundWindow.setMinWidth(400);\n\t\troundWindow.setMinHeight(500);\n\t\tif (player.isJailed()) { // give options to either pay 50, use card if\n\t\t\t\t\t\t\t\t\t// in possession, roll dice 3 times\n\t\t\tLabel header = new Label(\"DU BIST IM GEFÄNGNIS!\");\n\t\t\tButton firstOpt = new Button(\"Bezahle M 50\");\n\t\t\tButton secondOpt = new Button(\"Gefängnis-frei Karte\");\n\t\t\tButton thirdOpt = new Button(\"Würfeln\");\n\t\t\tfirstOpt.setOnAction(e -> {\n\t\t\t\tMonopolyClient.unjail(\"money\");\n\t\t\t\tMonopolyClient.toInterruptInterrupt();\n\n\t\t\t});\n\t\t\tsecondOpt.setOnAction(e -> {\n\t\t\t\tMonopolyClient.unjail(\"card\");\n\t\t\t\tMonopolyClient.toInterruptInterrupt();\n\n\t\t\t});\n\t\t\tthirdOpt.setOnAction(e -> {\n\t\t\t\tMonopolyClient.rollDice();\n\t\t\t\tMonopolyClient.toInterruptInterrupt();\n\t\t\t});\n\t\t\tHBox dices = new HBox(10);\n\t\t\tdices.setAlignment(Pos.CENTER);\n\t\t\tVBox dice1 = new VBox(10);\n\t\t\tVBox dice2 = new VBox(10);\n\t\t\tLabel header1 = new Label(\"Würfel\");\n\t\t\tLabel header2 = new Label(\"Pasch\");\n\t\t\tLabel diceNumber1 = new Label();\n\t\t\tLabel diceNumber2 = new Label();\n\t\t\tdice1.getChildren().addAll(header1, diceNumber1);\n\t\t\tdice2.getChildren().addAll(header2, diceNumber2);\n\t\t\tdices.getChildren().addAll(dice1, dice2);\n\t\t\tlayout = new VBox(10);\n\t\t\tlayout.setPadding(new Insets(10, 10, 10, 10));\n\t\t\tlayout.getChildren().addAll(header, firstOpt, secondOpt, thirdOpt, dices);\n\t\t\tlayout.setAlignment(Pos.CENTER);\n\t\t\tScene scene = new Scene(layout);\n\t\t\troundWindow.setScene(scene);\n\t\t\troundWindow.showAndWait();\n\n\t\t} else {\n\t\t\tHBox dices = new HBox(10);\n\t\t\tdices.setAlignment(Pos.CENTER);\n\t\t\tVBox dice1 = new VBox(10);\n\t\t\tVBox dice2 = new VBox(10);\n\t\t\tLabel header1 = new Label(\"Augenzahl\");\n\t\t\tLabel header2 = new Label(\"Pasch\");\n\t\t\tLabel diceNumber1 = new Label();\n\t\t\tLabel diceNumber2 = new Label();\n\t\t\tdice1.getChildren().addAll(header1, diceNumber1);\n\t\t\tdice2.getChildren().addAll(header2, diceNumber2);\n\t\t\tdices.getChildren().addAll(dice1, dice2);\n\t\t\tButton rollDice = new Button(\"Würfeln\");\n\t\t\trollDice.setOnAction(e -> { // send message to Server to roll Dice\n\t\t\t\tMonopolyClient.rollDice();\n\t\t\t\tMonopolyClient.toInterruptInterrupt();\n\t\t\t});\n\t\t\tlayout = new VBox(10);\n\t\t\tlayout.setPadding(new Insets(10, 10, 10, 10));\n\t\t\tlayout.getChildren().addAll(dices, rollDice);\n\t\t\tlayout.setAlignment(Pos.CENTER);\n\t\t\tScene scene = new Scene(layout);\n\t\t\troundWindow.setScene(scene);\n\n\t\t\troundWindow.showAndWait();\n\t\t}\n\t}", "public void addPlayerData() {\n\t\tStackPane root = (StackPane) GameLogic.getRoot();\n\t\t//VBox info = new VBox();\n\t\t//info.setAlignment(Pos.TOP_LEFT);\n\t\tLabel playerInfo = new Label();\n\t\tplayerInfo.setBackground(new Background(new BackgroundFill(Color.LIGHTGOLDENRODYELLOW, CornerRadii.EMPTY, Insets.EMPTY)));\n\t\t//playerInfo.setGraphic(new ImageView(BackgroundImageHolder.textBackground));\n\t\tplayerInfo.setText(\" Player :\"+GameSaved.getPlayer_name()+\"\\n Level : \"+GameSaved.getPlayer_level()+\"\\n Experience point : \"+GameSaved.getExperiencePoint()+\"/\"+GameSaved.getExperiencePoint_Max()+\" \");\n\t\t//playerInfo.setAlignment(Pos.TOP_LEFT);\n\t\t//info.getChildren().add(playerInfo);\n\t\troot.getChildren().add(playerInfo);\n\t\tStackPane.setAlignment(playerInfo,Pos.TOP_LEFT);\n\t}", "@Override\n\t\t\tpublic void windowOpened(WindowEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void windowOpened(WindowEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void windowOpened(WindowEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void windowOpened(WindowEvent e) {\n\t\t\t\t\n\t\t\t}", "private void accederpro() {\n\t\tVprosesor prof= new Vprosesor ();\n\t\t\n\t\tControladorprofesor b = new Controladorprofesor(prof);\n\t\tprof.setControladorprofesor(b);\n\t\tprof.setVisible(true);\n\t\tvb.dispose();\n\t\t\n\t}", "private void btnPlayActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnPlayActionPerformed\n if (libCancion.getSelectedIndex()<0){\n \n }\n else{\n e=libCancion.getSelectedIndex();\n String[] test=cancion.mostrarCancion(e);\n camino = test[5]+\"\";\n System.out.println(camino);\n \n java.awt.EventQueue.invokeLater(() -> {\n try {\n reproductorMp3 player;\n player = new reproductorMp3(camino);\n player.setVisible(true);\n } catch (BasicPlayerException ex) {\n Logger.getLogger(biblioteca.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n });\n \n }\n }", "public void createNewSoundBoard() {\n\n dialogCreateSoundBoard = new Dialog(this);\n dialogCreateSoundBoard.setContentView(R.layout.soundboard_create);\n dialogCreateSoundBoard.setTitle(\"Create board\");\n dialogCreateSoundBoard.setCancelable(true);\n\n\n sbName = (EditText) dialogCreateSoundBoard.findViewById(R.id.textfieldcreatesoundboardname);\n sbName.setHint(\"Name\");\n Button createOkButton = (Button) dialogCreateSoundBoard.findViewById(R.id.createSoundBoardButton);\n createOkButton.setOnClickListener(createSoundBoardListener);\n\n Button createCancelButton = (Button) dialogCreateSoundBoard.findViewById(R.id.cancelSoundBoardButton);\n createCancelButton.setOnClickListener(cancelButtonCreateSoundBoardListener);\n\n dialogCreateSoundBoard.show();\n }", "private void createContents() {\n\t\tshlEditionRussie = new Shell(getParent(), getStyle());\n\t\tshlEditionRussie.setSize(470, 262);\n\t\tshlEditionRussie.setText(\"Edition r\\u00E9ussie\");\n\t\t\n\t\tLabel lblLeFilm = new Label(shlEditionRussie, SWT.NONE);\n\t\tlblLeFilm.setBounds(153, 68, 36, 15);\n\t\tlblLeFilm.setText(\"Le film\");\n\t\t\n\t\tLabel lblXx = new Label(shlEditionRussie, SWT.NONE);\n\t\tlblXx.setBounds(195, 68, 21, 15);\n\t\tlblXx.setText(\"\" + getViewModel());\n\t\t\n\t\tLabel lblABient = new Label(shlEditionRussie, SWT.NONE);\n\t\tlblABient.setText(\"a bien \\u00E9t\\u00E9 modifi\\u00E9\");\n\t\tlblABient.setBounds(222, 68, 100, 15);\n\t\t\n\t\tButton btnRevenirLa = new Button(shlEditionRussie, SWT.NONE);\n\t\tbtnRevenirLa.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tm_Infrastructure.runController(shlEditionRussie, ListMoviesController.class);\n\t\t\t}\n\t\t});\n\t\tbtnRevenirLa.setBounds(153, 105, 149, 25);\n\t\tbtnRevenirLa.setText(\"Revenir \\u00E0 la liste des films\");\n\n\t}", "@Override\n public void run() {\n if (plugin.getGm().getPlayersInGame().size() < plugin.getAm().getMinPlayers()) {\n plugin.getGm().setCheckStart(true);\n plugin.getServer().getOnlinePlayers().forEach(pl -> pl.setLevel(0));\n GameState.state = GameState.LOBBY;\n cancel();\n return;\n }\n \n plugin.getGm().getPlayersInGame().stream().forEach(players -> {\n plugin.getMsg().sendActionBar(players, \"&a&lEl juego empieza en: \" + count);\n });\n\n switch (count){\n case 30:\n plugin.getMsg().sendBroadcast(\"&7El juego empezará en &c30 &7segundos\");\n break;\n case 5:\n GameState.state = GameState.GAME;\n plugin.getGm().getPlayersInGame().forEach(p -> {\n plugin.getAm().teleport(p);\n TntWars.getPlayer(p).setCleanPlayer(GameMode.SURVIVAL);\n });\n break;\n case 4:\n case 3:\n case 2:\n case 1:\n plugin.getMsg().sendBroadcast(\"&7El juego empezará en &c\" + count + \" &7segundos\");\n plugin.getGm().getPlayersInGame().forEach(p -> p.playSound(p.getLocation(), Sound.NOTE_PLING, 1F, 1F));\n break;\n case 0:\n plugin.getGm().setDañoEnCaida(false);\n\n //Iniciar hilo de la fase de esconder (Ja, still nope)\n new GameTask(plugin).runTaskTimer(plugin, 20, 20);\n cancel();\n break;\n }\n --count; \n }", "@Override\n public void doRender(float delta) {\n if(showWindow) {\n drawTexture(background.getTexture(), marginX, marginY, windowWidth, windowHeigth);\n batch.draw(cursor, origin.x + cursorOriginX + SIZE * cursorPosX, origin.y + cursorOriginY - SIZE * cursorPosY);\n\n\n int iX = 0;\n int iY = 0;\n for (Item item : OverworldScreen.manager.getPlayer().itemList) {\n item.render(cursorOriginX + iX * SIZE, cursorOriginY - iY*SIZE, origin, batch);\n iX++;\n if(iX > maxItemX){\n iX = 0;\n iY++;\n }\n }\n }\n\n\n }", "@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 }", "@Override\n public void makeVisible(Player viewer) {\n \n }", "private void toXW() {\n if (fragment_XW == null) {\n fragment_XW = new Fragment_XW();\n fragmenttransaction.add(R.id.frame_content, fragment_XW);\n } else {\n fragmenttransaction.show(fragment_XW);\n }\n }", "@Override\n\tpublic void win() {\n\t\t\n\t}", "@Override\n\tpublic void show() {\n\t\tSystem.out.println(\"SHOWWWW_ACCUEIL\");\n\t\tMusicManager.playLoop(typeSong.accueil);\n\t\tfond = new Texture(Gdx.files.internal(LauncherScreen.accueil));\n\t\tbatch = new SpriteBatch();\n\t\tGdx.input.setInputProcessor(this.inputHandler());\n\t}", "@Override\n\tpublic void startCreateNewGame() \n\t{\t\n\t\tgetNewGameView().setTitle(\"\");\n\t\tgetNewGameView().setRandomlyPlaceHexes(false);\n\t\tgetNewGameView().setRandomlyPlaceNumbers(false);\n\t\tgetNewGameView().setUseRandomPorts(false);\n\t\tif(!getNewGameView().isModalShowing())\n\t\t{\n\t\t\tgetNewGameView().showModal();\n\t\t}\n\t}", "@Override\n public void show() {\n\n skin = new Skin(Gdx.files.internal(\"menu/menu.json\"),new TextureAtlas(\"menu/menu.pack\"));\n\n Image background = new Image(skin, \"menuscreen\");\n background.setPosition(0,0);\n stage.addActor(background);\n\n Image gameOver = new Image(skin,\"gameOver\");\n gameOver.setPosition( ( 800 - 484)/2 , (480 - 345)/2 ) ;\n stage.addActor(gameOver);\n\n Button gameOverSim = new Button(skin,\"gameOverSim\");\n gameOverSim.setPosition(265,100);\n stage.addActor(gameOverSim);\n\n Button gameOverNao = new Button(skin,\"gameOverNao\");\n gameOverNao.setPosition(425,100);\n stage.addActor(gameOverNao);\n\n gameOverSim.addListener(new ClickListener() {\n @Override\n public void clicked(InputEvent event, float x, float y) {\n // TO DO passar o level como parametro no construtor\n selecionado.play();\n ((Game) Gdx.app.getApplicationListener()).setScreen(new PlayScreen(game, level));\n dispose();\n }\n });\n\n gameOverNao.addListener(new ClickListener() {\n @Override\n public void clicked(InputEvent event, float x, float y) {\n selecionado.play();\n ((Game) Gdx.app.getApplicationListener()).setScreen(new MenuScreen(game));\n dispose();\n }\n });\n\n }", "public void setPlayer(Player p){\r\n playerModel=p; \r\n jEnemigoDatos.setText(p.getEnemy().getName());\r\n /*if(p.getBadConsequence()==null)\r\n jMalRolloDatos.setText(\"No\");\r\n else\r\n jMalRolloDatos.setText(\"Si\");*/\r\n if(p.isDead())\r\n jMuertoDatos.setText(\"Si\");\r\n else\r\n jMuertoDatos.setText(\"No\");\r\n \r\n jNivelDatos.setText(p.getLevels()+\"\");\r\n jCombatLevelDatos.setText(p.getCombatLevel()+\"\");\r\n jNombreDatos.setText(p.getName());\r\n if(p.canISteal())\r\n jRobarDatos.setText(\"Si\");\r\n else\r\n jRobarDatos.setText(\"No\");\r\n \r\n jNSectDatos.setText(Integer.toString(CultistPlayer.getTotalCultistPlayer()));\r\n \r\n if(playerModel.getClass() == CultistPlayer.class){\r\n jSectarioDatos.setText(\"Si\");\r\n //String text=(CultistPlayer)playerModel.getMyCultist().getGainedLevels()+\"\";\r\n //jSectarioDatos.setText(\"\"+(CultistPlayer)playerModel.getGainedLevels());\r\n \r\n }else\r\n jSectarioDatos.setText(\"No\");\r\n \r\n /*if(playerModel.getBadConsequence().isEmpty())\r\n pendingBadView1.setVisiblePending(false);\r\n else*/\r\n pendingBadView1.setVisiblePending(true);\r\n pendingBadView1.limpiar();\r\n \r\n // A continuación se actualizan sus tesoros \r\n fillTreasurePanel (jpVisibles, playerModel.getVisibleTreasures()); \r\n fillTreasurePanel (jpOcultos, playerModel.getHiddenTreasures()); \r\n btRobar.setEnabled(playerModel.canISteal());\r\n manejarBotones(true);\r\n repaint(); \r\n revalidate();\r\n }", "@Override\n public void windowOpened(WindowEvent e) {\n \n }" ]
[ "0.5834626", "0.57975525", "0.5730117", "0.56646246", "0.5635168", "0.56156164", "0.5609593", "0.55979824", "0.5554596", "0.55541456", "0.5533109", "0.5526915", "0.5519988", "0.5514168", "0.5509891", "0.5500819", "0.54951036", "0.5485065", "0.54824144", "0.5476124", "0.5468782", "0.54334235", "0.5431561", "0.5416259", "0.54161006", "0.53894347", "0.5380602", "0.53786784", "0.5377177", "0.5376259", "0.53574234", "0.53488064", "0.5323246", "0.53004616", "0.5298812", "0.5285729", "0.5268086", "0.52309006", "0.5224932", "0.52218443", "0.52168053", "0.521526", "0.5214615", "0.5203915", "0.5192278", "0.51900154", "0.5188307", "0.51707006", "0.5170008", "0.51555604", "0.5154401", "0.51520085", "0.5151497", "0.51424986", "0.51392746", "0.5136113", "0.5134067", "0.5132147", "0.5125715", "0.51056534", "0.51054907", "0.5105377", "0.5104853", "0.50960445", "0.50950646", "0.50932413", "0.5086967", "0.50866055", "0.5086499", "0.50781333", "0.50772375", "0.5076341", "0.50684404", "0.5066593", "0.50637645", "0.50433254", "0.5040502", "0.5039216", "0.50386184", "0.5038341", "0.5035957", "0.5035209", "0.50284994", "0.50284994", "0.50284994", "0.50284994", "0.50264275", "0.5023135", "0.50206685", "0.50128883", "0.5011336", "0.500735", "0.5005718", "0.5002409", "0.5002136", "0.5001683", "0.49990982", "0.4998421", "0.49945378", "0.49932006", "0.4992923" ]
0.0
-1
Put some fake scores for giving clues and guessing mystery words correctly
@BeforeEach public void setup() { Map<String, Integer> scores = new HashMap<String, Integer>(); Map<String, Integer> mysteryWords = new HashMap<String, Integer>(); //players PlayerEntity player1 = new PlayerEntity(); player1.setUsername("A"); PlayerEntity player2 = new PlayerEntity(); player2.setUsername("B"); PlayerEntity player3 = new PlayerEntity(); player3.setUsername("C"); PlayerEntity player4 = new PlayerEntity(); player4.setUsername("D"); //put with scores into hash map scores.put(player1.getUsername(),100); scores.put(player2.getUsername(),200); scores.put(player3.getUsername(),300); scores.put(player4.getUsername(),400); mysteryWords.put(player1.getUsername(), 1); mysteryWords.put(player2.getUsername(), 2); mysteryWords.put(player3.getUsername(), 3); mysteryWords.put(player4.getUsername(), 4); scoreboard.setScoreboard(scores); scoreboard.setCorrectlyGuessedMysteryWordsPerPlayer(mysteryWords); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public synchronized void resetScore() {\n\t\twhile (true) {\n\t\t\tint existingValueW = getCaught();\n\t\t\tint existingValueG = getScore();\n\t\t\tint existingValueM = getMissed();\n\t\t\tint newValueW = 0;\n\t\t\tint newValueG = 0;\n\t\t\tint newValueM = 0;\n\t\t\tif (caughtWords.compareAndSet(existingValueW, newValueW)\n\t\t\t\t\t&& gameScore.compareAndSet(existingValueG, newValueG)\n\t\t\t\t\t&& missedWords.compareAndSet(existingValueM, newValueM)) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}", "protected final void calcScore()\n {\n\n m_score = SCORE_OTHER;\n\n if (null == m_targetString)\n calcTargetString();\n }", "private static int calculateScore( String word )\n\t{\n\t\tif (word.equals(\"rc\")) {\n\t\t\treturn -1;\n\t\t} else if (word.equals(\"b\")) {\n\t\t\treturn -2;\n\t\t} else if (word.equals(\"beta\")) {\n\t\t\treturn -3;\n\t\t} else if (word.equals(\"a\")) {\n\t\t\treturn -4;\n\t\t} else if (word.equals(\"alpha\")) {\n\t\t\treturn -5;\n\t\t} else if (word.equals(\"snapshot\")) {\n\t\t\treturn -10;\n\t\t} else if (word.equals(\"push0ver\")) {\n\t\t\treturn -11;\n\t\t} else if (word.equals(\"cvs\")) {\n\t\t\treturn -21;\n\t\t} else if (word.equals(\"svn\")) {\n\t\t\treturn -21;\n\t\t} else if (word.equals(\"bzr\")) {\n\t\t\treturn -21;\n\t\t} else if (word.equals(\"hg\")) {\n\t\t\treturn -21;\n\t\t} else if (word.equals(\"git\")) {\n\t\t\treturn -21;\n\t\t} else if (word.equals(\"rev\")) {\n\t\t\treturn -100;\n\t\t} else if (word.equals(\"r\")) {\n\t\t\treturn -101;\n\t\t} else if (word.equals(\"release\")) {\n\t\t\treturn 12;\n\t\t} else if (word.equals(\"update\")) {\n\t\t\treturn 11;\n\t\t} else if (word.equals(\"u\")) {\n\t\t\treturn 10;\n\t\t} else if (word.equals(\"patch\")) {\n\t\t\treturn 9;\n\t\t} else if (word.equals(\"p\")) {\n\t\t\treturn 8;\n\t\t} else if (word.equals(\"hotfix\")) {\n\t\t\treturn 7;\n\t\t} else if (word.equals(\"fix\")) {\n\t\t\treturn 6;\n\t\t}\n\t\tLong l = toLong( word );\n\t\treturn l != null ? 100 : 0; // a pure number (with no alpha) wins against all of those.\n\t}", "@Test\n public void OriginalScoreTest() {\n score = new OriginalScore();\n\n try {\n //Basados en las fronteras\n score.calculateScore(0, 0);\n score.calculateScore(1, 1);\n score.calculateScore(235, 9);\n score.calculateScore(100, 10);\n } catch (HangmanException e) {\n Assert.fail();\n }\n\n try {\n score.calculateScore(-1, -1);\n Assert.fail();\n } catch (HangmanException e) {\n Assert.assertEquals(e.getMessage(), HangmanException.PARAMETROS_NEGATIVOS);\n }\n\n try {\n score.calculateScore(-2, -2);\n Assert.fail();\n } catch (HangmanException e) {\n Assert.assertEquals(e.getMessage(), HangmanException.PARAMETROS_NEGATIVOS);\n }\n\n\n try {\n score.calculateScore(0, 11);\n Assert.fail();\n } catch (HangmanException e) {\n Assert.assertEquals(e.getMessage(), HangmanException.PARAMETRO_LIMITE_PUNTUACION);\n }\n\n try {\n score.calculateScore(0, 12);\n Assert.fail();\n } catch (HangmanException e) {\n Assert.assertEquals(e.getMessage(), HangmanException.PARAMETRO_LIMITE_PUNTUACION);\n }\n try {\n score.calculateScore(20, 11);\n Assert.fail();\n } catch (HangmanException e) {\n Assert.assertEquals(e.getMessage(), HangmanException.PARAMETRO_LIMITE_PUNTUACION);\n }\n }", "private void playagain() {\n Randomize r=new Randomize(t);\n r.number(5);\n wordchar=r.validWordScr();\n set=r.getMap();\n word.setText(null);\n grade.setText(null);\n \n DefaultTableModel model=(DefaultTableModel)correct.getModel();\n rowc=model.getRowCount()-1;\n while(rowc>=0)\n {model.removeRow(rowc); rowc--;}\n \n model=(DefaultTableModel)incorrect.getModel();\n rowi=model.getRowCount()-1;\n while(rowi>=0)\n {model.removeRow(rowi); rowi--;}\n \n initLetters();\n \n setc=new TreeMap<>();\n seti=new TreeMap<>();\n progress.setStringPainted(true);\n progress.setValue((int)((setc.size()/set.size())*100.0));\n progress.setString(\"0% [\"+setc.size()+\" Of \"+set.size()+\"]\");\n }", "public void testAltScoring() throws Exception {\n \n String [] runsData = {\n \"1,1,A,1,No\", // 20\n \"2,1,A,3,Yes\", // 3 (Minute points for 1st Yes count)\n \"3,1,A,5,No\", // 20 (a No on a solved problem)\n \"4,1,A,7,Yes\", // zero (only \"No's\" count)\n \"5,1,A,9,No\", // 20 (another No on the solved problem)\n \n \"6,1,B,11,No\", // zero (problem has not been solved)\n \"7,1,B,13,No\", // zero (problem has not been solved)\n \n \"8,2,A,30,Yes\", // 30 (Minute points for 1st Yes)\n \n \"9,2,B,35,No\", // zero -- not solved\n \"10,2,B,40,No\", // zero -- not solved\n \"11,2,B,45,No\", // zero -- not solved\n \"12,2,B,50,No\", // zero -- not solved\n \"13,2,B,55,No\", // zero -- not solved\n };\n \n\n // Rank TeamId Solved Penalty\n \n // alt1: 0 0 200\n \n String[] alt1rankData = {\n \"1,team1,1,200\",\n \"2,team2,1,200\", // tie-breaker causes rank 2\n };\n \n scoreboardTest (2, runsData, alt1rankData, alt1);\n // alt2: 30 5 0\n String[] alt2rankData = {\n \"1,team1,1,45\", // 1 no@30 each + 3 min * 5\n \"2,team2,1,150\", // 5*30\n };\n \n scoreboardTest (2, runsData, alt2rankData, alt2);\n \n // alt3: 0 10 0\n String[] alt3rankData = {\n \"1,team1,1,30\", // 3 min * 10\n \"2,team2,1,300\", // 30 min * 10\n };\n \n scoreboardTest (2, runsData, alt3rankData, alt3);\n \n // alt4: 5 0 20\n String[] alt4rankData = {\n \"1,team2,1,20\", // base yes\n \"2,team1,1,25\", // base yes + 1 no\n };\n \n scoreboardTest (2, runsData, alt4rankData, alt4);\n\n }", "public void calculateScore() {\n for (Sequence seq: currentSeq) {\n double wordWeight = Retriever.getWeight(seq);\n String token = seq.getToken();\n int size = seq.getRight() - seq.getLeft() + 1;\n int titleCount = getCount(token.toLowerCase(), title.toLowerCase());\n if (titleCount != 0) {\n setMatch(size);\n setTitleContains(true);\n }\n int lowerCount = getCount(token.toLowerCase(), lowerContent);\n if (lowerCount == 0) {\n// scoreInfo += \"Token: \" + token + \" Original=0 Lower=0 WordWeight=\" + wordWeight + \" wordTotal=0\\n\";\n continue;\n }\n int originalCount = getCount(token, content);\n lowerCount = lowerCount - originalCount;\n if (lowerCount != 0 || originalCount != 0) {\n setMatch(size);\n }\n double originalScore = formula(wordWeight, originalCount);\n double lowerScore = formula(wordWeight, lowerCount);\n final double weight = 1.5;\n double addedScore = weight * originalScore + lowerScore;\n// scoreInfo += \"Token: \" + token + \" Original=\" + originalScore + \" Lower=\" + lowerScore +\n// \" WordWeight=\" + wordWeight + \" wordTotal=\" + addedScore + \"\\n\";\n dependencyScore += addedScore;\n }\n currentSeq.clear();\n }", "@Test\n void adjectivesScoring() {\n NLPAnalyser np = new NLPAnalyser();\n List<CoreMap> sentences = np.nlpPipeline(\"RT This made my day; glad @JeremyKappell is standing up against #ROC’s disgusting mayor. \"\n + \"Former TV meteorologist Jeremy Kappell suing Mayor Lovely Warren\"\n + \"https://t.co/rJIV5SN9vB (Via NEWS 8 WROC)\");\n HashMap<String, Double> as = np.adjectivesScoring(sentences);\n for (String key : as.keySet()) {\n Double value = as.get(key);\n assertTrue(value >= 0 && value <= 4);\n }\n }", "public void winner() {\n\t\tList<String> authors = new ArrayList<String>(scores_authors.keySet());\n\t\tCollections.sort(authors, new Comparator<String>() {\n\n\t\t\t@Override\n\t\t\tpublic int compare(String o1, String o2) {\n\t\t\t\treturn scores_authors.get(o1).compareTo(scores_authors.get(o2));\n\t\t\t}\n\t\t});\n\t\tSystem.out.println(\"Score des auteurs :\");\n\t\tfor(String a :authors) {\n\t\t\tSystem.out.println(a.substring(0,5)+\" : \"+scores_authors.get(a));\n\t\t}\n\t\t\n\t\tList<String> politicians = new ArrayList<String>(scores_politicians.keySet());\n\t\tCollections.sort(politicians, new Comparator<String>() {\n\n\t\t\t@Override\n\t\t\tpublic int compare(String o1, String o2) {\n\t\t\t\treturn scores_politicians.get(o1).compareTo(scores_politicians.get(o2));\n\t\t\t}\n\t\t});\n\t\tSystem.out.println(\"Score des politiciens :\");\n\t\tfor(String p :politicians) {\n\t\t\tSystem.out.println(p.substring(0,5)+\" : \"+scores_politicians.get(p));\n\t\t}\n\t}", "@Test\n\tpublic void addScoreTest() {\n\t\tassertEquals(\"80.0 75.0 \", g1.toString());\n\t\tassertEquals(\"64.0 90.0 72.0 \", g2.toString());\n\t\tassertEquals(\"82.0 52.0 92.0 72.0 \", g3.toString());\n\t}", "private void checkMyScore() {\n\n int[] scores = ar.checkMyScore();\n System.out.println(\" My score: \");\n int level = 1;\n for (int i : scores) {\n System.out.println(\" level \" + level + \" \" + i);\n if (i > 0)\n solved[level - 1] = 1;\n level++;\n }\n }", "@SmallTest\n\tpublic void testBadMatchPenalty() {\n\t\tbadMatch();\n\t\tassertEquals((Integer) (START_SCORE - BAD_MATCH_PENALTY), Integer.valueOf(solo.getText(1).getText().toString()));\n\t}", "public float computePhraseScore(int dl, int tf, GlobalStats stats);", "private String getScore(){\n return whiteName + \" : \" + blackName + \" - \" + whiteScore + \" : \" + blackScore;\n }", "@Test\n public void testRunScoringScenario() throws Exception\n {\n YahtzeeModel y1 = new YahtzeeModel();\n\n //Turn 1\n y1.getDiceCollection().setValues(1, 1, 3, 3, 3);\n assertEquals(2, y1.scoreOnes());\n //Turn 2\n y1.getDiceCollection().setValues(2, 1, 2, 2, 3);\n assertEquals(6, y1.scoreTwos());\n //Turn 3\n y1.getDiceCollection().setValues(2, 1, 2, 2, 3);\n assertEquals(3, y1.scoreThrees());\n //Turn 4\n y1.getDiceCollection().setValues(2, 1, 2, 2, 3);\n assertEquals(0, y1.scoreFours());\n //Turn 5\n y1.getDiceCollection().setValues(2, 1, 2, 2, 5);\n assertEquals(5, y1.scoreFives());\n //Turn 6\n y1.getDiceCollection().setValues(6, 6, 6, 6, 6);\n assertEquals(30, y1.scoreSixes());\n //3 of a kind\n y1.getDiceCollection().setValues(2, 1, 2, 2, 3);\n assertEquals(10, y1.scoreThreeOfAKind());\n //4 of a kind\n y1.getDiceCollection().setValues(2, 2, 2, 2, 2);\n assertEquals(10, y1.scoreFourOfAKind());\n //full house\n y1.getDiceCollection().setValues(6, 4, 6, 4, 6);\n assertEquals(25, y1.scoreFullHouse());\n //small straight\n y1.getDiceCollection().setValues(6, 6, 6, 6, 6);\n assertEquals(0, y1.scoreSmallStraight());\n //large straight\n y1.getDiceCollection().setValues(2, 1, 2, 2, 3);\n assertEquals(0, y1.scoreLargeStraight());\n //yahtzee\n y1.getDiceCollection().setValues(2, 2, 2, 2, 2);\n assertEquals(50, y1.scoreYahtzee());\n //chance\n y1.getDiceCollection().setValues(6, 1, 1, 1, 1);\n assertEquals(10, y1.scoreChance());\n\n //calculate bonus and verify bonus\n assertEquals(0, y1.scoreBonus());\n\n //verify that the available scoring types has one entry for YAHTZEE since it was scored\n assertEquals(1, y1.getScoreCard().getAvailableScoreTypes().size());\n assertTrue(y1.getScoreCard().getAvailableScoreTypes().contains(YahtzeeScoreTypes.YAHTZEE));\n\n //verify final score\n assertEquals(151, y1.getScoreCard().getScore());\n\n\n //*** Game 2: 0 Bonus, 2 Yahtzee ***\n YahtzeeModel y2 = new YahtzeeModel();\n\n //Turn 1\n y2.getDiceCollection().setValues(1, 1, 1, 1, 1);\n assertEquals(50, y2.scoreYahtzee());\n //Turn 2\n y2.getDiceCollection().setValues(2, 1, 2, 2, 3);\n assertEquals(6, y2.scoreTwos());\n //Turn 3\n y2.getDiceCollection().setValues(2, 1, 2, 2, 3);\n assertEquals(3, y2.scoreThrees());\n //Turn 4\n y2.getDiceCollection().setValues(2, 1, 2, 2, 3);\n assertEquals(0, y2.scoreFours());\n //Turn 5\n y2.getDiceCollection().setValues(2, 1, 2, 2, 5);\n assertEquals(5, y2.scoreFives());\n //Turn 6\n y2.getDiceCollection().setValues(6, 6, 6, 6, 6);\n assertEquals(30, y2.scoreSixes());\n //3 of a kind\n y2.getDiceCollection().setValues(2, 1, 2, 2, 3);\n assertEquals(10, y2.scoreThreeOfAKind());\n //4 of a kind\n y2.getDiceCollection().setValues(2, 2, 2, 2, 2);\n assertEquals(10, y2.scoreFourOfAKind());\n //full house\n y2.getDiceCollection().setValues(6, 4, 6, 4, 6);\n assertEquals(25, y2.scoreFullHouse());\n //small straight\n y2.getDiceCollection().setValues(6, 6, 6, 6, 6);\n assertEquals(0, y2.scoreSmallStraight());\n //large straight\n y2.getDiceCollection().setValues(2, 1, 2, 2, 3);\n assertEquals(0, y2.scoreLargeStraight());\n //yahtzee\n y2.getDiceCollection().setValues(2, 2, 2, 2, 2);\n assertEquals(100, y2.scoreYahtzee());\n //chance\n y2.getDiceCollection().setValues(6, 1, 1, 1, 1);\n assertEquals(10, y2.scoreChance());\n\n //calculate bonus and verify bonus\n assertEquals(0, y2.scoreBonus());\n\n //verify that the available scoring types has two entres...\n // one for YAHTZEE and one for ONES\n assertEquals(2, y2.getScoreCard().getAvailableScoreTypes().size());\n assertTrue(y2.getScoreCard().getAvailableScoreTypes().contains(YahtzeeScoreTypes.ONES));\n assertTrue(y2.getScoreCard().getAvailableScoreTypes().contains(YahtzeeScoreTypes.YAHTZEE));\n\n //verify final score\n assertEquals(249, y2.getScoreCard().getScore());\n\n //*** Game 3: 1 Bonus, 0 Yahtzee ***\n YahtzeeModel y3 = new YahtzeeModel();\n\n //Turn 1\n y3.getDiceCollection().setValues(1, 1, 1, 1, 1);\n assertEquals(5, y3.scoreOnes());\n //Turn 2\n y3.getDiceCollection().setValues(2, 1, 2, 2, 3);\n assertEquals(6, y3.scoreTwos());\n //Turn 3\n y3.getDiceCollection().setValues(3, 3, 2, 2, 3);\n assertEquals(9, y3.scoreThrees());\n //Turn 4\n y3.getDiceCollection().setValues(2, 4, 4, 4, 3);\n assertEquals(12, y3.scoreFours());\n //Turn 5\n y3.getDiceCollection().setValues(2, 5, 2, 2, 5);\n assertEquals(10, y3.scoreFives());\n //Turn 6\n y3.getDiceCollection().setValues(6, 6, 6, 6, 6);\n assertEquals(30, y3.scoreSixes());\n //3 of a kind\n y3.getDiceCollection().setValues(2, 1, 2, 2, 3);\n assertEquals(10, y3.scoreThreeOfAKind());\n //4 of a kind\n y3.getDiceCollection().setValues(2, 2, 2, 2, 2);\n assertEquals(10, y3.scoreFourOfAKind());\n //full house\n y3.getDiceCollection().setValues(6, 4, 6, 4, 6);\n assertEquals(25, y3.scoreFullHouse());\n //small straight\n y3.getDiceCollection().setValues(6, 6, 6, 6, 6);\n assertEquals(0, y3.scoreSmallStraight());\n //large straight\n y3.getDiceCollection().setValues(2, 1, 2, 2, 3);\n assertEquals(0, y3.scoreLargeStraight());\n //yahtzee\n y3.getDiceCollection().setValues(2, 1, 2, 2, 2);\n assertEquals(0, y3.scoreYahtzee());\n //chance\n y3.getDiceCollection().setValues(6, 1, 1, 1, 1);\n assertEquals(10, y3.scoreChance());\n\n //calculate bonus and verify bonus\n assertEquals(35, y3.scoreBonus());\n\n //verify that no scoring types remain\n assertEquals(0, y3.getScoreCard().getAvailableScoreTypes().size());\n\n //verify final score\n assertEquals(162, y3.getScoreCard().getScore());\n }", "private void findHighestScoringWord(ArrayList<Tile> inputTiles, ArrayList<Tile> tilesToBeUsed, String currentWord, int score, Anchor anchor){\n for (int tileNo = 0 ; tileNo < inputTiles.size() ; tileNo++){\n Tile currentTile = inputTiles.get(tileNo);\n if (currentTile == null) break;\n if (isValidPrefix(currentWord + currentTile.letter)\t){\n ArrayList<Tile> remainingTiles = new ArrayList<Tile>( inputTiles);\n ArrayList<Tile> tilesInWord = new ArrayList<Tile>(tilesToBeUsed);\n remainingTiles.remove(tileNo);\n tilesInWord.add(currentTile);\n //score check here when we know it's valid?\n findHighestScoringWord(remainingTiles, tilesInWord ,currentWord + currentTile.letter, score + currentTile.pointValue , anchor);\n\n //need to check if anchor is in the word before we propose it as an answer\n if (tilesToBeUsed.contains(anchor.anchorTile) || currentTile.equals(anchor.anchorTile)){\n if (isValidWord(currentWord + currentTile.letter)){\n if (fitsOnBoard(anchor, tilesInWord)){\n Move move = null; //let's make our move to score\n if(anchor.isAcross()){ //make a move to check score bases on anchor being across type\n move = new Move(tilesInWord, anchor.row , (anchor.col - getAnchorPosition(anchor, tilesInWord)), true, bot );\n } else if(!anchor.isAcross()){ // make a move to check score on anchor being vert type\n move = new Move(tilesInWord, (anchor.row - getAnchorPosition(anchor,tilesInWord)), anchor.col,false, bot );\n }\n int currentWordScore = Scorer.score(move , boardSpaces);\n if (currentWord.length() > 6){\n currentWordScore += 50;\n }\n\n if (maxScore < currentWordScore && moveIsValid(move) ){\n maxScore = currentWordScore;\n bestWord = tilesInWord;\n currentAnchor = anchor;\n }\n }\n }\n }\n }\n }\n }", "@Test\n public void bonusScoreTest() {\n score = new BonusScore();\n\n try {\n score.calculateScore(0, 1);\n Assert.fail();\n } catch (HangmanException e) {\n Assert.assertEquals(e.getMessage(), HangmanException.PARAMETRO_LIMITE_PUNTUACION);\n }\n try {\n score.calculateScore(1, 3);\n\n Assert.fail();\n } catch (HangmanException e) {\n Assert.assertEquals(e.getMessage(), HangmanException.PARAMETRO_LIMITE_PUNTUACION);\n }\n\n\n try {\n score.calculateScore(-2, -2);\n Assert.fail();\n } catch (HangmanException e) {\n Assert.assertEquals(e.getMessage(), HangmanException.PARAMETROS_NEGATIVOS);\n }\n try {\n score.calculateScore(-1, -1);\n Assert.fail();\n } catch (HangmanException e) {\n Assert.assertEquals(e.getMessage(), HangmanException.PARAMETROS_NEGATIVOS);\n }\n\n\n try {\n score.calculateScore(1, 0);\n score.calculateScore(1, 1);\n score.calculateScore(1, 2);\n score.calculateScore(0, 0);\n score.calculateScore(2, 0);\n } catch (HangmanException e) {\n Assert.fail();\n }\n\n }", "protected abstract double relevantScore(Tweet tweet);", "@Override\n\tpublic void checkScore() {\n\t\t\n\t}", "public void scoring(){\n for (int i=0; i< players.size(); i++){\n Player p = players.get(i);\n p.setScore(10*p.getTricksWon());\n if(p.getTricksWon() < p.getBid() || p.getTricksWon() > p.getBid()){\n int diff = Math.abs(p.getTricksWon() - p.getBid());\n p.setScore(p.getScore() - (10*diff));\n }\n if(p.getTricksWon() == p.getBid()){\n p.setScore(p.getScore() + 20);\n }\n }\n }", "public void phaseTwoCheck() {\r\n String guess = phaseTwoAnswer.toString();\r\n int length = guess.length();\r\n\r\n // check if valid word\r\n if (length >= 3) { // check if the length of the word is >= 3\r\n if (dictionary.contains(guess.toLowerCase())) { // check if the dictionary contains the word\r\n mSoundPool.play(mSoundCorrect, mVolume, mVolume, 1, 0, 1f); // chime when correct\r\n // set amount of points\r\n int bonus = 0;\r\n for (char c : guess.toCharArray()) {\r\n if (c == 'E' || c == 'A' || c == 'I' || c == 'O' || c == 'N' || c == 'R' || c == 'T' || c == 'L' || c == 'S') {\r\n pointsScore += 1; // bonus for x, y, or z in word\r\n } else if (c == 'D' || c == 'G') {\r\n pointsScore += 2;\r\n } else if (c == 'B' || c == 'C' || c == 'M' || c == 'P') {\r\n pointsScore += 3;\r\n } else if (c == 'F' || c == 'H' || c == 'V' || c == 'W' || c == 'Y') {\r\n pointsScore += 4;\r\n } else if (c == 'K') {\r\n pointsScore += 5;\r\n } else if (c == 'J' || c == 'X') {\r\n pointsScore += 8;\r\n } else {\r\n pointsScore += 10;\r\n }\r\n }\r\n if (length == 9 && phase == 1) bonus += length; // bonus for 9 letter word during phase 1\r\n pointsScore += (length + bonus) * 2; // calculate total score\r\n scoreBoard.setText(\"\"+pointsScore); // set scoreboard to total\r\n timer.cancel();\r\n timer.onFinish();\r\n }\r\n } else {\r\n mSoundPool.play(mSoundIncorrect, mVolume, mVolume, 1, 0, 1f); // quack when incorrect\r\n pointsScore -= 3; // penalize for submitting an incorrect word\r\n scoreBoard.setText(\"\"+pointsScore); // set scoreboard to total\r\n }\r\n }", "private int computeScore() {\n int score = 0;\n for (int i = 0; i < MainActivity.DEFAULT_SIZE; i++) {\n TextView answerView = (TextView) findViewById(MainActivity.NAME_VIEWS[i]);\n String answer = answerView.getText().toString();\n String solution = getQuizCountries().get(i).getName();\n if (answer.equals(solution)) {\n score++;\n }\n }\n return score;\n }", "public void checkWord(int largeTile) {\r\n String guess = \"\";\r\n int length = 0;\r\n// int score = 0;\r\n boolean correct = false; // flag for whether the word is valid\r\n\r\n // get word string based on which button was pressed\r\n switch(largeTile) {\r\n case 1:\r\n guess = tile1.toString();\r\n break;\r\n case 2:\r\n guess = tile2.toString();\r\n break;\r\n case 3:\r\n guess = tile3.toString();\r\n break;\r\n case 4:\r\n guess = tile4.toString();\r\n break;\r\n case 5:\r\n guess = tile5.toString();\r\n break;\r\n case 6:\r\n guess = tile6.toString();\r\n break;\r\n case 7:\r\n guess = tile7.toString();\r\n break;\r\n case 8:\r\n guess = tile8.toString();\r\n break;\r\n case 9:\r\n guess = tile9.toString();\r\n break;\r\n default:\r\n guess = \"\";\r\n }\r\n length = guess.length();\r\n\r\n // check if valid word\r\n if (length >= 3) { // check if the length of the word is >= 3\r\n if (dictionary.contains(guess.toLowerCase())) { // check if the dictionary contains the word\r\n correct = true; // true if found\r\n\r\n stringSubmitted[largeTile-1] = 1; // word has been submitted for this tile\r\n\r\n // set amount of points\r\n int bonus = 0;\r\n for (char c : guess.toCharArray()) {\r\n if (c == 'E' || c == 'A' || c == 'I' || c == 'O' || c == 'N' || c == 'R' || c == 'T' || c == 'L' || c == 'S') {\r\n bonus += 1;\r\n } else if (c == 'D' || c == 'G') {\r\n bonus += 2;\r\n } else if (c == 'B' || c == 'C' || c == 'M' || c == 'P') {\r\n bonus += 3;\r\n } else if (c == 'F' || c == 'H' || c == 'V' || c == 'W' || c == 'Y') {\r\n bonus += 4;\r\n } else if (c == 'K') {\r\n bonus += 5;\r\n } else if (c == 'J' || c == 'X') {\r\n bonus += 8;\r\n } else {\r\n bonus += 10;\r\n }\r\n }\r\n if (length == 9 && phase == 1) bonus += length; // bonus for 9 letter word during phase 1\r\n pointsScore += bonus; // calculate total score\r\n scoreBoard.setText(\"\"+pointsScore); // set scoreboard to total\r\n\r\n // save longest word information\r\n if (length > longestLength) {\r\n longestLength = length;\r\n longestWord = guess;\r\n longestWordScore = bonus;\r\n }\r\n\r\n // mark as submitted in tile tacker array\r\n submittedTracker[largeTile-1] = true;\r\n int done = 0;\r\n for (boolean b : submittedTracker) {\r\n if (b == true) done++;\r\n }\r\n// if (done == 9) {\r\n// timer.cancel();\r\n// gameOver();\r\n// }\r\n }\r\n } else {\r\n correct = false; // false if not found\r\n pointsScore -= 3; // penalize for submitting an incorrect word\r\n scoreBoard.setText(\"\"+pointsScore); // set scoreboard to total\r\n }\r\n\r\n // if word is in the dictionary\r\n if (correct) {\r\n mSoundPool.play(mSoundCorrect, mVolume, mVolume, 1, 0, 1f); // chime when correct\r\n adapter.add(guess); // add to list\r\n// Log.e(\"word\", String.valueOf(tile1));\r\n\r\n // set unused tiles to be blank\r\n for (int small = 0; small < 9; small++) { // go through entire list\r\n// Log.e(\"tile # \", Integer.toString(small));\r\n// Log.e(\"selected? \", allTilesInt[largeTile-1][small] == 0 ? \"no\" : \"yes\");\r\n if (allTilesInt[largeTile-1][small] == 0) { // if the tile was not selected\r\n buttonList[largeTile-1][small].setText(\"\"); // remove the letter from the button\r\n buttonList[largeTile-1][small].setClickable(false);\r\n }\r\n }\r\n\r\n // if word was not in the dictionary\r\n } else {\r\n mSoundPool.play(mSoundIncorrect, mVolume, mVolume, 1, 0, 1f); // quack when incorrect\r\n }\r\n }", "public static void main(String[] args) {\n ArrayList<Character> actual=new ArrayList<>();\n actual.add('R');\n actual.add('G');\n actual.add('B');\n actual.add('Y');\n ArrayList<Character> guess=new ArrayList<>();\n guess.add('G');\n guess.add('G');\n guess.add('R');\n guess.add('R');\n ArrayList<Character> hitLists=new ArrayList<>();\n ArrayList<Character> pseudoLists=new ArrayList<>();\n int hits=0;\n int pseudoHits=0;\n for(int i=0;i<4;i++)\n {\n \t if(actual.get(i)==guess.get(i))\n \t {\n \t\t hits++;\n \t\t hitLists.add(actual.get(i));\n \t }\n }\n for(int i=0;i<4;i++)\n {\n \t char g=guess.get(i);\n \t if(g!=actual.get(i)&&!hitLists.contains(g)&&actual.contains(g))\n { \n\t pseudoLists.add(g);\n }\n }\n for(int i=0;i<pseudoLists.size();i++)\n { char g=pseudoLists.get(i);\n \t int actualOccs=numOccurences(g,actual);\n \t int guessOccs=numOccurences(g,guess);\n \t \n\t\tif(guessOccs==actualOccs)\n \t {\n \t\t pseudoHits++; \n \t }\n\t\telse{\n\t\t\tpseudoHits+=Math.min(guessOccs,actualOccs);\n\t\t}\t \n System.out.println(g);\n }\n \n \n System.out.println(hits+\" hits \"+pseudoHits+\" pseudoHits\");\n\t}", "private void correctSpelling() {\n\t\tparent_frame.getFestival().speak(\"Correct\", false);\n\n\t\t//adds to respective arraylist based on which attempt they get it right\n\t\tif (current_attempt_number==1){\n\t\t\twords_mastered.add(words_to_spell.get(current_word_number));\n\t\t} else {//words is faulted\n\t\t\twords_faulted.add(words_to_spell.get(current_word_number));\n\t\t}\n\n\t\tcurrent_word_number+=1;\n\t\tcurrent_attempt_number=1;\n\t\tprogress_bar.setForeground(Color.GREEN);\n\t\tprogress_bar.setString(\"word \"+current_word_number +\" was CORRECT\");\n\t\tfeedback_display.setText(\"\");//clear display\n\t}", "public void scoreWord() {\n\t\t// check if valid word\n\t\tif (word.isWord(dictionary)) {\n\t\t\tscore += word.getScore();\n\t\t\tword.start = null;\n\t\t\tword.wordSize = 0;\n\t\t\t// check if word still possible\n\t\t} else if (!word.isPossibleWord(dictionary)) {\n\t\t\tword.start = null;\n\t\t\tword.wordSize = 0;\n\t\t}\n\n\t}", "public void resetScore();", "public static void guessWords(String guess) {\n String newEmptyString = \"\";\n for (int i = 0; i < CategorySelector.word.length(); i++) { // Grabbing word\n if (CategorySelector.word.charAt(i) == guess.charAt(0)) {\n newEmptyString += guess.charAt(0);\n } else if (emptyString.charAt(i) != '_') {\n newEmptyString += CategorySelector.word.charAt(i);\n } else {\n newEmptyString += \"_\";\n }\n }\n\n if (emptyString.equals(newEmptyString)) {\n count++;\n paintHangman();\n } else {\n emptyString = newEmptyString;\n }\n if (emptyString.equals(CategorySelector.word)) {\n System.out.println(\"Correct! You win! The word was \" + CategorySelector.word);\n }\n }", "public static int getScore (String word, int [] scoretable)\r\n {\r\n int wordScore = 0;\r\n char [] letters = word.toCharArray();\r\n String[] wordValues = word.split(\" \");\r\n for(int i = 0; i < letters.length; i++ )\r\n {\r\n int score = letters[i];\r\n wordScore = wordScore + scoretable[score - 97]; \r\n }\r\n //Gives word double score if consecutive double letters \r\n for (int j = 0; j < wordValues.length; j++)\r\n {\r\n for (int n = 0; n < (wordValues[j].length()-1); n++)\r\n {\r\n if(wordValues[j].charAt(n) == wordValues[j].charAt(n+1))\r\n {\r\n wordScore = wordScore * 2;\r\n }\r\n }\r\n }\r\n return wordScore;\r\n }", "private int checkMultiplier(String word, int index, int x, int y, boolean TotalisZero)\r\n {\r\n ScrabbleWord multiplyScrabbleWord = new ScrabbleWord(word);\r\n if((x < 0 )|| (y < 0))\r\n {\r\n return -1000;\r\n }\r\n if(TotalisZero){\r\n return multiplyScrabbleWord.getscore();\r\n }\r\n switch(board[y][x])\r\n {\r\n case 1:\r\n //2 times the letter score\r\n return 2*multiplyScrabbleWord.getscoreat(index);\r\n case 2:\r\n //3 times the letter score\r\n return 3*multiplyScrabbleWord.getscoreat(index);\r\n case 3:\r\n //2 times the word score\r\n return 2*multiplyScrabbleWord.getscore();\r\n case 4:\r\n //3 times the word score\r\n return 3*multiplyScrabbleWord.getscore();\r\n case 0:\r\n return 0;\r\n }\r\n return -1000;\r\n }", "public static void main(String[] args) {\n\t\tint score = 0;\n\n\t\t// 3. Ask the user a riddle. Here are some ideas: bit.ly/some-riddles\n\t\tString answer1 = JOptionPane.showInputDialog(\"What gets wetter and wetter the more it dries?\");\n\n\t\t// 4. If they got the answer right, pop up \"correct!\" and increase the score by one\n\t\t// 5. Otherwise, say \"wrong\" and tell them the answer\n\t\tif (answer1.equals(\"towel\")) {\n\t\t\tJOptionPane.showMessageDialog(null, \"Correct!\");\n\t\t\tscore++;\n\t\t} else {\n\t\t\tJOptionPane.showMessageDialog(null, \"Wrong! The correct answer is: towel.\");\n\t\t}\n\n\t\t// 6. Add some more riddles\n\n\t\tString answer2 = JOptionPane.showInputDialog(\"What kind of room has no doors or windows?\");\n\n\t\tif (answer2.equals(\"mushroom\")) {\n\t\t\tJOptionPane.showMessageDialog(null, \"Correct!\");\n\t\t\tscore++;\n\t\t} else {\n\t\t\tJOptionPane.showMessageDialog(null, \"Wrong! The correct answer is: mushroom.\");\n\t\t}\n\n\t\tString answer3 = JOptionPane.showInputDialog(\"Which word in the dictionary is spelled incorrectly?\");\n\n\t\tif (answer3.equals(\"incorrectly\")) {\n\t\t\tJOptionPane.showMessageDialog(null, \"Correct!\");\n\t\t\tscore++;\n\t\t} else {\n\t\t\tJOptionPane.showMessageDialog(null, \"Wrong! The correct answer is: incorrectly.\");\n\t\t}\n\n\t\tString answer4 = JOptionPane.showInputDialog(\"What invention lets you look right through a wall?\");\n\n\t\tif (answer4.equals(\"window\")) {\n\t\t\tJOptionPane.showMessageDialog(null, \"Correct!\");\n\t\t\tscore++;\n\t\t} else {\n\t\t\tJOptionPane.showMessageDialog(null, \"Wrong! The correct answer is: window.\");\n\t\t}\n\n\t\tString answer5 = JOptionPane.showInputDialog(\"What has a neck but no head?\");\n\n\t\tif (answer5.equals(\"bottle\")) {\n\t\t\tJOptionPane.showMessageDialog(null, \"Correct!\");\n\t\t\tscore++;\n\t\t} else {\n\t\t\tJOptionPane.showMessageDialog(null, \"Wrong! The correct answer is: bottle.\");\n\t\t}\n\n\t\t// 2. Make a pop up to show the score.\n\t\tJOptionPane.showMessageDialog(null, \"Your score is: \" + score);\n\n\t}", "public abstract String guessedWord();", "protected abstract void calcScores();", "public void score(){\n\t\tscores=new float[3];\n\t\ttop3=new String[3];\n\t\tfor(int i=0;i<3;i++){\n\t\t\ttop3[i]=new String();\n\t\t\tscores[i]=(float)0;\n\t\t}\n\t\t//System.out.println(doclist.size());\n\t\tfor(int i=0;i<doclist.size();i++){\n\t\t\ttry{\n\t\t\t\tDocProcessor dp=new DocProcessor(doclist.get(i));\n\t\t\t\tdp.tokenizing();\n\t\t\t\tdp.stem();\n\t\t\t\t//System.out.println(dp.getContent());\n\t\t\t\t/*for(int j=2;j>=0;j--){\n\t\t\t\t\tSystem.out.println(\"top\"+(3-j)+\": \"+scores[j]);\n\t\t\t\t\tSystem.out.println(top3[j]);\n\t\t\t\t}*/\n\t\t\t\tfloat score=dp.score(this.keywords);\n\t\t\t\tfor(int j=2;j>=0;j--){\n\t\t\t\t\tif(score>scores[j]){\n\t\t\t\t\t\tfor(int k=0;k<j;k++){\n\t\t\t\t\t\t\tscores[k]=scores[k+1];\n\t\t\t\t\t\t\ttop3[k]=top3[k+1];\n\t\t\t\t\t\t}\n\t\t\t\t\t\tscores[j]=score;\n\t\t\t\t\t\ttop3[j]=dp.getContent();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t/*for(int j=2;j>=0;j--){\n\t\t\t\t\tSystem.out.println(\"top\"+(3-j)+\": \"+scores[j]);\n\t\t\t\t\tSystem.out.println(top3[j]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"*******************************\");*/\n\t\t\t}catch(NullPointerException f){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}\n\t}", "public void hitAlienScore() {\r\n //Add 5 to the score\r\n score += 5;\r\n System.out.println(\"Current Score = \"+score);\r\n }", "@Test\n public void allStrikesExpected_300(){\n String input = \"XXXXXXXXXXXX\";\n assertEquals(game.scoreOfGame(input),300);\n }", "public void handleGuess(String s) {\n\n if (!word.contains(s)) {\n incorrectGuesses++;\n wrongList.add(s);\n if (incorrectGuesses == 8) {\n gameOver();\n }\n } else {\n correctList.add(s);\n updateWord(s.charAt(0));\n }\n }", "@Override\n public double makePrediction(ParsedText text) {\n double pr = 0.0;\n\n /* FILL IN HERE */\n double productSpam = 0;\n double productNoSpam = 0;\n \n int i, tempSpam,tempNoSpam;\n int minSpam, minNoSpam ;\n \n \n for (String ng: text.ngrams) {\n \tminSpam = Integer.MAX_VALUE;\n \tminNoSpam = Integer.MAX_VALUE;\n \n\n \tfor (int h = 0;h < nbOfHashes; h++) {\n \t\ti = hash(ng,h);\n\n \t\ttempSpam = counts[1][h][i];\n \t\ttempNoSpam = counts[0][h][i];\n \t\t\n \t\t//System.out.print(tempSpam + \" \");\n\n \t\tminSpam = minSpam<tempSpam?minSpam:tempSpam; \n \t\tminNoSpam = minNoSpam<tempNoSpam?minNoSpam:tempNoSpam; \n \t\t\n \t}\n\n \t//System.out.println(minSpam + \"\\n\");\n \tproductSpam += Math.log(minSpam);\n \tproductNoSpam += Math.log(minNoSpam);\n }\n \n // size of set minus 1\n int lm1 = text.ngrams.size() - 1;\n \n //System.out.println((productNoSpam - productSpam ));\n //System.out.println((lm1*Math.log(this.classCounts[1]) - lm1*Math.log(this.classCounts[0])));\n\n //\n pr = 1 + Math.exp(productNoSpam - productSpam + lm1*(Math.log(classCounts[1]) - Math.log(classCounts[0])));\n // System.out.print(1.0/pr + \"\\n\");\n \n return 1.0 / pr;\n\n }", "protected void constructNewQuestion(){\n arabicWordScoreItem = wordScoreTable.whatWordToLearn();\n arabicWord = arabicWordScoreItem.word;\n correctAnswer = dictionary.get(arabicWord);\n\n for (int i=0;i<wrongAnswers.length;i++){\n int wrongAnswerId;\n String randomArabicWord;\n String wrongAnswer;\n do {\n wrongAnswerId = constructQuestionRandom.nextInt(next_word_index);\n randomArabicWord = dictionary_key_list.get(wrongAnswerId);\n wrongAnswer = dictionary.get(randomArabicWord);\n } while (wrongAnswer.equals(correctAnswer));\n wrongAnswers[i] = wrongAnswer;\n }\n }", "protected void checkScore () {\n if (mCurrentIndex == questions.length-1) {\n NumberFormat pct = NumberFormat.getPercentInstance();\n double result = (double) correct/questions.length;\n Toast res = new Toast(getApplicationContext());\n res.makeText(QuizActivity.this, \"Your score: \" + pct.format(result), Toast.LENGTH_LONG).show();\n correct = 0; // resets the score when you go back to first question.\n }\n }", "public void resetScore(){\n Set<String> keys = CalcScore.keySet();\n for(String key: keys){\n CalcScore.replace(key,0.0);\n }\n\n\n\n }", "public static void main(String[] args){\n Scanner keyboard = new Scanner(System.in);\n //declare variables for the answer, user's guess, and number fo guesses\n int answer;\n int guess;\n int numOfGuess = 0;\n \n boolean done = false;\n answer = (int)(100*Math.random())+1;\n \n //print an introduction that tells the user how to play this game\n System.out.println(\"Hello user! I will generate a number between 1-100 inclusive and you will try to guess it! I will tell you if your answer is too low or too high after each incorrect guess!\");\n do \n {\n System.out.print(\"Please enter your guess:\");\n guess = keyboard.nextInt();\n if (guess > answer){\n System.out.println(\"Too high!\");\n }\n else if( guess < answer){\n System.out.println(\"Too low!\");\n }\n else{\n done = true;\n }\n numOfGuess += 1;\n } while (done == false);\n \n System.out.println(\"Congratulations! You're score is \" + numOfGuess);\n if (numOfGuess >= 20){\n System.out.println(\"Rating: You are terrible at this game!\");\n }\n else if (numOfGuess >= 10 && numOfGuess <=19){\n System.out.println(\"Rating: You need more practice!\");\n }\n else if (numOfGuess >= 5 && numOfGuess <= 9){\n System.out.println(\"Rating: Not too bad, But can you get it in fewer than 5 guesses?\");\n }\n else if (numOfGuess >= 2 && numOfGuess <= 4){\n System.out.println(\"Rating: AWESOME. You win a trip to Hawaii!\");\n }\n else{\n System.out.println(\"Rating: That was pure LUCK and you know it!\");\n }\n \n }", "public static void main(String[] args) \n\t{\n\t\tBoggleBoard.generateBoard();\n\t\tArrayList<String> usedWords = new ArrayList<String>();\n\t\tmyDictionary = new Dictionary(\"words.txt\"); //load the dictionary\n\t\tmyBoard = new BoggleBoard(\"board.txt\"); //load the board: board.txt for standard board, board2.txt for random board\n\t\tmyBoard.display(); //display the board\n\t\tint score = 0;\n\t\t\n\t\tSystem.out.println();\n\t\tSystem.out.print(\"\\nEnter a word (or enter nothing at any point to end the game): \");\n\t\tString input = scan.nextLine();\n\t\tinput = input.toLowerCase();\n\t\t\n\t\twhile(!input.equals(\"\")) //user inputs a word\n\t\t{\n\t\t\tif(input.length() < 3) //words less than 3 letters don't count\n\t\t\t\tSystem.out.println(\"That word is too short.\");\n\t\t\telse if(Dictionary.search(input, 0, myDictionary.size-1) < 0) //user made up a word\n\t\t\t\tSystem.out.println(\"That word is not in the dictionary.\");\n\t\t\telse if(!myBoard.findWord(input.toUpperCase())) //word not on the board\n\t\t\t\tSystem.out.println(\"That word is a valid word, but is not on the board.\");\n\t\t\telse // myDictionary.search() && myBoard.findWord(input)\n\t\t\t{\n\t\t\t\tif(!usedWords.contains(input))\n\t\t\t\t{\n\t\t\t\t\t//account for grammar\n\t\t\t\t\tif(myBoard.score(input) == 1)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(\"That is a good word! You score \" + myBoard.score(input) + \" point!\");\n\t\t\t\t\t\tscore += myBoard.score(input);\n\t\t\t\t\t\tusedWords.add(input); //add searched words to usedWords to make sure they cant be used again\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(\"That is a good word! You score \" + myBoard.score(input) + \" points!\");\n\t\t\t\t\t\tscore += myBoard.score(input);\n\t\t\t\t\t\tusedWords.add(input);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tSystem.out.println(\"That word was already used.\");\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println();\n\t\t\tmyBoard.display();\n\t\t\t\n\t\t\tSystem.out.print(\"Used words: \");\n\t\t\tfor(String d : usedWords)\n\t\t\t\tSystem.out.print(d + \", \");\n\t\t\t\n\t\t\tSystem.out.print(\"\\nEnter a word: \");\n\t\t\tinput = scan.nextLine();\n\t\t\tinput = input.toLowerCase();\n\t\t\t\n\t\t}\n\t\tSystem.out.println(\"Total score: \" + score); //end of the game.\n\t\tSystem.out.println(\"Thanks for playing!\");\n\t}", "public void countScore(TechnicalTest technicalTest)\n {\n long maxScore=0;\n long score=0;\n\n String scoreEachAnswer = \"\";\n List<Problem> problems = technicalTest.getProblems();\n\n String applicantAnswer = technicalTest.getApplicantAnswer();\n\n List<String> answerList = helper.parseAnswer(applicantAnswer);\n\n for(int i=0; i<problems.size();i++){\n long tmpScore;\n maxScore = maxScore + problems.get(i).getMaxScore();\n if(problems.get(i) instanceof MultipleChoices){\n tmpScore = getScoreMultipleChoices((MultipleChoices) problems.get(i), answerList.get(i));\n score = score + tmpScore;\n if(i!=problems.size()-1)\n scoreEachAnswer = scoreEachAnswer + String.valueOf(tmpScore) + \"|\";\n else scoreEachAnswer = scoreEachAnswer + String.valueOf(tmpScore);\n }\n else if(problems.get(i) instanceof ProblemGenerator){\n tmpScore = getScoreMultipleChoices((MultipleChoices) problems.get(i), answerList.get(i));\n score = score + tmpScore;\n if(i!=problems.size()-1)\n scoreEachAnswer = scoreEachAnswer + String.valueOf(tmpScore) + \"|\";\n else scoreEachAnswer = scoreEachAnswer + String.valueOf(tmpScore);\n }\n else{\n tmpScore = getScoreEssay((Essay) problems.get(i), answerList.get(i));\n score = score + tmpScore;\n if(i!=problems.size()-1)\n scoreEachAnswer = scoreEachAnswer + String.valueOf(tmpScore) + \"|\";\n else scoreEachAnswer = scoreEachAnswer + String.valueOf(tmpScore);\n }\n\n }\n\n long persen = score*100/maxScore;\n\n technicalTest.setScore(persen);\n technicalTest.setScoreEachAnswer(scoreEachAnswer);\n\n technicalTestRepository.save(technicalTest);\n\n }", "public static void wordsToGuess(String [] myWords){\n myWords[0] = \"tesseract\";\n myWords[1] = \"vibranium\";\n myWords[2] = \"mjolnir\";\n myWords[3] = \"jarvis\";\n myWords[4] = \"avengers\";\n myWords[5] = \"wakanda\";\n myWords[6] = \"mixtape\";\n myWords[7] = \"assemble\";\n myWords[8] = \"queens\";\n myWords[9] = \"inevitable\";\n }", "public void testScoreboardCaseTwo () throws Exception{\n \n // RunID TeamID Prob Time Result\n \n String [] runsData = {\n \"1,1,A,1,No\", // 20\n \"2,1,A,3,Yes\", // 3 (Minute points for 1st Yes count)\n \"3,1,A,5,No\", // 20 (a No on a solved problem)\n \"4,1,A,7,Yes\", // zero (only \"No's\" count)\n \"5,1,A,9,No\", // 20 (another No on the solved problem)\n \n \"6,1,B,11,No\", // zero (problem has not been solved)\n \"7,1,B,13,No\", // zero (problem has not been solved)\n \n \"8,2,A,30,Yes\", // 30 (Minute points for 1st Yes)\n \n \"9,2,B,35,No\", // zero -- not solved\n \"10,2,B,40,No\", // zero -- not solved\n \"11,2,B,45,No\", // zero -- not solved\n \"12,2,B,50,No\", // zero -- not solved\n \"13,2,B,55,No\", // zero -- not solved\n };\n \n\n // Rank TeamId Solved Penalty\n \n String [] rankData = {\n \"1,team1,1,23\",\n \"2,team2,1,30\",\n };\n \n // TODO when SA supports count all runs, replace rankData\n \n /**\n * Case 2 tests when all no runs are counted, the current SA\n * does not support this scoring method. The commented\n * rankData is the proper results\n */\n\n// Team 2 -- 30 <-- Team 2 is now winning with a lower score \n// Team 1 -- 63 (same database; different scoring method)\n \n// String [] rankData = {\n// \"1,team2,1,30\",\n// \"2,team1,1,63\",\n// };\n \n \n scoreboardTest (2, runsData, rankData);\n \n }", "@Test\r\n public void testGetCandidateWords() throws IOException {\r\n System.out.println(\"getCandidateWords\");\r\n String word = \"idabetes\";\r\n CorpusReader cr = new CorpusReader();\r\n ConfusionMatrixReader cmr = new ConfusionMatrixReader();\r\n SpellCorrector sc = new SpellCorrector(cr, cmr);\r\n Map<String, Double> result = sc.getCandidateWords(word);\r\n for (String key : result.keySet()) {\r\n System.out.println(key + \", \" + result.get(key));\r\n }\r\n\r\n /*assertEquals(expResult, result);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");*/\r\n }", "public int getScore() {\n System.out.println(\"testing getting store, cur word is:\");\n System.out.println(str);\n System.out.println(locations.size());\n for (Location loc : locations) {\n tileList.add(loc.getTile());\n this.score += loc.getTile().getValue();\n System.out.println(\"adding score\");\n System.out.println(loc.getTile().getLetter());\n System.out.println(loc.getTile().getValue());\n if (loc.getSquare() != null) {\n boolean incurlocations = false;\n for (Location loc2 : curlocations) {\n if (loc2.getX() == loc.getX() && loc2.getY() == loc.getY()) {\n incurlocations = true;\n }\n }\n Square s = loc.getSquare();\n if (s.getType().equals(\"LS\") && incurlocations == true) {\n System.out.println(\"get here score if you are ls\");\n score += (s.getTimer() - 1) * loc.getTileValue();\n }\n }\n }\n for (Location loc : locations) {\n if (loc.getSquare() != null) {\n boolean incurlocations = false;\n for (Location loc2 : curlocations) {\n if (loc2.getX() == loc.getX() && loc2.getY() == loc.getY()) {\n incurlocations = true;\n }\n }\n Square s = loc.getSquare();\n if (s.getType().equals(\"WS\") && incurlocations == true) {\n System.out.println(\"get here score if you are ws\");\n int newScore = loc.getSquare().calculateValue(score);\n System.out.println(newScore);\n score = newScore;\n }\n }\n }\n return this.score;\n }", "@Test\n void getSentimentScore() {\n NLPAnalyser np = new NLPAnalyser();\n List<CoreMap> sentences = np.nlpPipeline(\"RT This made my day; glad @JeremyKappell is standing up against #ROC’s disgusting mayor. \"\n + \"Former TV meteorologist Jeremy Kappell suing Mayor Lovely Warren\"\n + \"https://t.co/rJIV5SN9vB (Via NEWS 8 WROC)\");\n assertTrue(np.getSentimentScore(sentences) >= 0 && np.getSentimentScore(sentences) <=4);\n }", "@Test\n public void testWordGuessArray() {\n\n // If I make a new word\n Word word = new Word(\"Llama\", 10);\n\n // The guess array should be initialized to all '_' characters\n // but be of the same length as the number of letters in the word\n Assert.assertEquals(\"Llama\".length(), word.getGuesses().length);\n Assert.assertEquals('_', word.getGuesses()[0]);\n Assert.assertEquals('_', word.getGuesses()[1]);\n Assert.assertEquals('_', word.getGuesses()[2]);\n Assert.assertEquals('_', word.getGuesses()[3]);\n Assert.assertEquals('_', word.getGuesses()[4]);\n\n // If I guess the letter L (uppercase)\n // it should return true, because 'Llama' contains 2 Ls.\n Assert.assertTrue(word.guessLetter('L'));\n\n // It should update the 'guess' character array\n // to have all L's revealed regardless of casing\n // all other letters should stay hidden as '_'\n Assert.assertEquals('L', word.getGuesses()[0]);\n Assert.assertEquals('l', word.getGuesses()[1]);\n Assert.assertEquals('_', word.getGuesses()[2]);\n Assert.assertEquals('_', word.getGuesses()[3]);\n Assert.assertEquals('_', word.getGuesses()[4]);\n\n // If I guess an M, it should also be true\n Assert.assertTrue(word.guessLetter('M'));\n\n // and now the m should be revealed\n Assert.assertEquals('L', word.getGuesses()[0]);\n Assert.assertEquals('l', word.getGuesses()[1]);\n Assert.assertEquals('_', word.getGuesses()[2]);\n Assert.assertEquals('m', word.getGuesses()[3]);\n Assert.assertEquals('_', word.getGuesses()[4]);\n\n // And finally an A\n Assert.assertTrue(word.guessLetter('A'));\n\n // The whole word should be revealed\n Assert.assertEquals('L', word.getGuesses()[0]);\n Assert.assertEquals('l', word.getGuesses()[1]);\n Assert.assertEquals('a', word.getGuesses()[2]);\n Assert.assertEquals('m', word.getGuesses()[3]);\n Assert.assertEquals('a', word.getGuesses()[4]);\n\n // If I guess a bunch of other letters, they should all return false\n // because the word has already been completed, and revealed\n Assert.assertFalse(word.guessLetter('l'));\n Assert.assertFalse(word.guessLetter('m'));\n Assert.assertFalse(word.guessLetter('a'));\n Assert.assertFalse(word.guessLetter('c'));\n Assert.assertFalse(word.guessLetter('v'));\n Assert.assertFalse(word.guessLetter('b'));\n\n Assert.assertEquals('L', word.getGuesses()[0]);\n Assert.assertEquals('l', word.getGuesses()[1]);\n Assert.assertEquals('a', word.getGuesses()[2]);\n Assert.assertEquals('m', word.getGuesses()[3]);\n Assert.assertEquals('a', word.getGuesses()[4]);\n\n }", "abstract String getScoreString();", "protected void adjustScore() {\r\n scoreMultiplier = (int) (mineField.getDensity() * 100);\r\n maxScore = scoreMultiplier * (int) Math.pow( mineField.getFieldLength(), 2.0 );\r\n }", "public void shuffle () {\n this.lives = 6;\n this.attempts.clear();\n this.victory = false;\n this.lose = false;\n Random r = new Random ();\n this._word = _dictionary[r.nextInt(_dictionary.length)];\n // this._word = _dictionary[2]; // Testing purposes\n this.hint.setLength(0);\n for (int i = 0; i < _word.length(); i++) {\n this.hint.append(\"_ \");\n } \n }", "public static void main(String[] args) {\n\t\t\n\t\tint startGame;\n\n\n\t\t\n\t\tScanner numb = new Scanner(System.in);\n\t\tScanner str = new Scanner(System.in);\n\t\t\n\t\tSystem.out.println(\"Please to start enter a username: \");\n\t\tusername = str.nextLine();\n\t\tSystem.out.println(\"\\n\\n\\t\\t\"+username+\", You are welcome to....\\n\\t\\tWho Wins A Million!!\");\n\t\tSystem.out.println(\"\\n\\t\\tPress 1 to enter\\n\\t\\t(Or 0 to quit)\");\n\t\tstartGame = numb.nextInt();\n\t\t\n\t\t\n\t\tif (startGame == 1) {\n\t\t\t\n\t\t\t//if(totalScore >= 0) {\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"So how well do you know Cameroon ?\\n\\n\");\n\t\t\t\t\n\t\t\t\tquestionNo = 1;\n\t\t\t\tSystem.out.println(questionNo+\". Who is the President of Cameroon? \\n\\na. Maurice Kamto \\tb. Paul Biya \\nc. Cabral Libii \\td. Joshua Oshi\");\n\t\t\t\tuserAnswer = str.nextLine();\n\t\t\t\tanswerTest();\n\t\t\t\tquestionScores();\n\t\t\t\tSystem.out.println(\"\\t\\t\\tScore: \"+userScore()+\"\\n\\n\");\n\t\t\t\tquestionNo++;\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tSystem.out.println(questionNo+\". How many administrative divisions does Cameroon have ?\\n\\na. 15 \\t\\t\\tb. 12 \\nc. 8 \\t\\t\\td. 10\");\n\t\t\t\tuserAnswer = str.nextLine();\n\t\t\t\tanswerTest();\n\t\t\t\tquestionScores();\n\t\t\t\tSystem.out.println(\"\\t\\t\\tScore: \"+userScore()+\"\\n\\n\");\n\t\t\t\tquestionNo++;\n\t\t\t\t\n\t\t\t\tSystem.out.println(questionNo+\". Which of the following is the most populated town ?\\n\\na. Yaounde \\t\\tb. Bafoussam \\nc. Douala \\t\\td. Bamenda\");\n\t\t\t\tuserAnswer = str.nextLine();\n\t\t\t\tanswerTest();\n\t\t\t\tquestionScores();\n\t\t\t\tSystem.out.println(\"\\t\\t\\tScore: \"+userScore()+\"\\n\\n\");\n\t\t\t\tquestionNo++;\n\t\t\t\t\n\t\t\t\tSystem.out.println(questionNo+\". When did Cameroon gained its independence ?\\n\\na. 1950 \\t\\tb. 1960 \\nc. 1961 \\t\\td. 1951\");\n\t\t\t\tuserAnswer = str.nextLine();\n\t\t\t\tanswerTest();\n\t\t\t\tquestionScores();\n\t\t\t\tSystem.out.println(\"\\t\\t\\tScore: \"+userScore()+\"\\n\\n\");\n\t\t\t\tquestionNo++;\n\t\t\t\t\n\t\t\t\tSystem.out.println(questionNo+\". What is the total area of Cameroon in square kilometers ?\\n\\na. 475 441 \\t\\tb. 475 442 \\nc. 475 443 \\t\\td. 475 444\");\n\t\t\t\tuserAnswer = str.nextLine();\n\t\t\t\tanswerTest();\n\t\t\t\tquestionScores();\n\t\t\t\tSystem.out.println(\"\\t\\t\\tScore: \"+userScore()+\"\\n\\n\");\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tSystem.out.println(\".....................................\");\n\t\t\t\tSystem.out.println(username+\" Statistics\");\n\t\t\t\tSystem.out.println(\".....................................\\n\");\n\t\t\t\tSystem.out.println(\"Total Questions Attempted: \"+questionNo);\n\t\t\t\tSystem.out.println(\"Total Correct Answers: \"+correctQuestions);\n\t\t\t\tSystem.out.println(\"Total Score: \"+totalScore);\n\t\t\t\tSystem.out.println(\"Money obtained: \"+prizeMoney);\n\t\t\t\t\n\t\t\t//}\n\t\t\t\n\t\t\n\t\t}else System.out.println(\"Exiting\");\n\t\t\n\t\tSystem.out.println(\"\\nEnd of the game!\");\n\t}", "public double getBestScore();", "private static void ExplainRules() {\n System.out.printf(\"\\n %sWELCOME TO BOMB BLAST%s!!!!!!!!!!!!\\n\\n \", Styling.ANSI_BLUE, Styling.ANSI_RESET);\r\n System.out.printf(\"- Your object is to survive as long as possible, and accumlate the most points.\\n- You accumulate points by not triggering the bomb and therefore surviving the round.\\nWhere is the bomb? Within a random box\\n- All boxes are empty apart from ONE\\n- If you select the bomb ridden box you will receive NO POINTS!\\nAnd the survivors will receive points based on how long it took the group to find the bomb\\n- After a selected amount of rounds whoever has survived the most amount of attempts wins!!\\n\\n\");\r\n AnyKey.pressAnyKeyToContinue();\r\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 synchronized void resetScore() {\n score = 0;\n char2Type = -1;\n setScore();\n }", "public Score(){\n\t\tscore = 0;\n\t\tincrement = 0; //how many points for eating a kibble. Changed to zero here because adjustScoreIncrement's extra points begin at 1 anyway\n\t}", "public void testNoBeforeYesSameElapsed() throws Exception{\n \n // RunID TeamID Prob Time Result\n \n String [] runsData = {\n \"15,8,D,12,Yes\",\n \"16,8,D,12,No\",\n \n \"24,4,B,15,Yes\",\n \"25,4,B,15,No\",\n \"26,4,B,15,No\",\n \n \"28,2,C,22,Yes\",\n \"29,2,C,22,No\",\n \"30,2,C,22,Yes\",\n \"30,2,C,22,Yes\",\n };\n \n /**\n * \n * \n * \n */\n \n // Rank TeamId Solved Penalty\n \n String [] rankData = {\n \"1,team8,1,12\",\n \"2,team4,1,15\",\n \"3,team2,1,22\",\n \"4,team1,0,0\",\n \"4,team3,0,0\",\n \"4,team5,0,0\",\n \"4,team6,0,0\",\n \"4,team7,0,0\",\n };\n \n scoreboardTest (8, runsData, rankData);\n }", "public static void resultOfPlayAllCorrect() {\n\t\tString mark=\"null\";\n\t\ttry {\n\t\t\tmark=PlayTrivia.playAllRightAnswers();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} \n\t\tif(mark==\"Sucsses\") {\n\t\t\tSystem.out.println(\"Test end page has:\" + mark + \" Test pass\");\n\t\t}else{\n\t\t\tSystem.out.println(\"Test end page - failed\");\n\t\t}\n\t}", "private void setScoreText(){\n if(color != BLACK && color != WHITE){\n scoreLabel.setText(\"Score: Black - \" + calScore(BLACK) + \" White - \" + calScore(WHITE));\n }else {\n scoreLabel.setText(\"Score: \" + calScore(this.color));\n }\n }", "private void scoring(NameInfo name1Info, NameInfo name2Info, int flag) {\n\t\tString name1 = name1Info.getName();\n\t\tString name2 = name2Info.getName();\n\t\tString type1 = name1Info.getType();\n\t\tString type2 = name2Info.getType();\n\t\tif (name1.length() == 0 || name2.length() == 0) {\n\t\t\tscore = 0.0f;\n\t\t\tscoreShingle = 0.0f;\n\t\t\treason = \"There is an empty name.\";\n\t\t\treturn;\n\t\t}\n\t\tswitch (flag) {\n\t\t\n\t\tcase 1: // PER\n\t\t\tscoreShingle = (float)LSHUtils.dice(name1, name2);\n\t\t\tfloat scorePER = getPERScore(name1Info, name2Info);\n\t\t\treason = \"Type: \" + name1Info.getType() + \". metric\";\n\t\t\tif (score < scorePER) {\n\t\t\t\tscore = scorePER;\n\t\t\t}\n\t\t\tbreak;\n\t\t\t\n\t\tcase 2: // LOC\n\t\t\tscoreShingle = (float)LSHUtils.dice(name1, name2);\n\t\t\tscore = shortMan.scoring(name1, name2);\n\t\t\treason = \"Type: \" + name1Info.getType() + \". metric; Scored by JaroWinkler metric with Shortcut.\";\n\t\t\tfloat countryLangScore = countryMan.scoring(name1, name2);\n\t\t\tif (score < countryLangScore) {\n\t\t\t\tscore = countryLangScore;\n\t\t\t\treason = \"Type: \" + name1Info.getType() + \". metric; Scored by JaroWinkler metric with Country-Language list.\";\n\t\t\t\tif (score < scoreShingle) {\n\t\t\t\t\tscore = scoreShingle;\n\t\t\t\t\treason = \"Type: \" + name1Info.getType() + \". metric; Scored by Shingling\";\n\t\t\t\t}\n\t\t\t}\n\t\t\tbreak;\n\t\t\t\n\t\tcase 3: // ORG\n\t\t\tscoreShingle = (float)LSHUtils.dice(name1, name2);\n\t\t\tscore = acroMan.scoring(name1Info, name2Info);\n\t\t\treason = \"Type: \" + name1Info.getType() + \". metric; Scored by JaroWinkler metric with Acronym.\";\n\t\t\tif (scoreShingle > score) {\n\t\t\t\tscore = scoreShingle;\n\t\t\t\treason = \"Type: \" + name1Info.getType() + \". metric; Scored by Shingling\";\n\t\t\t}\n\t\t\tbreak;\n\t\t\t\n\t\tcase 4: // GEN\n\t\t\tscoreShingle = (float)LSHUtils.dice(name1, name2);\n\t\t\tfloat scorePer = getPERScore(name1Info, name2Info);\n\t\t\tfloat scoreShort = shortMan.scoring(name1, name2);\n\t\t\tfloat scoreCL = countryMan.scoring(name1, name2);\n\t\t\tfloat scoreAcro = acroMan.scoring(name1Info, name2Info);\n\t\t\tif (scoreAcro > score) {\n\t\t\t\tscore = scoreAcro;\n\t\t\t\treason = \"Type: \" + name1Info.getType() + \". metric; Scored by JaroWinkler metric with Acronym.\";\n\t\t\t}\n\t\t\tif (scoreCL > score) {\n\t\t\t\tscore = scoreCL;\n\t\t\t\treason = \"Type: \" + name1Info.getType() + \". metric; Scored by JaroWinkler metric with Country-Language list.\";\n\t\t\t}\n\t\t\tif (scoreShort > score) {\n\t\t\t\tscore = scoreShort;\n\t\t\t\treason = \"Type: \" + name1Info.getType() + \". metric; Scored by JaroWinkler metric with Shortcut.\";\n\t\t\t}\n\t\t\tif (scorePer > score) {\n\t\t\t\tscore = scorePer;\n\t\t\t\treason = \"Type: \" + name1Info.getType() + \". metric\";\n\t\t\t}\n\t\t\tif (scoreShingle > score) {\n\t\t\t\tscore = scoreShingle;\n\t\t\t\treason = \"Type: \" + name1Info.getType() + \". metric; Scored by Shingling\";\n\t\t\t}\n\t\t\tif (acroMan.isSpecificCase()) {\n\t\t\t\tscore = scoreAcro;\n\t\t\t\treason = \"Type: \" + name1Info.getType() + \". metric; Scored by JaroWinkler metric with Acronym.\";\n\t\t\t}\n\t\t\tbreak;\n\t\t\t\n\t\tcase 5: // Two different types\n\t\t\tif (type1.equals(\"PER\") || type2.equals(\"PER\")) {\n\t\t\t\tscore = 0.0f;\n\t\t\t\treason = \"Type: \" + type1 + \". and \" + type2 + \". cannot be compared\";\n\t\t\t} else if (type1.equals(\"LOC\") || type2.equals(\"LOC\")) {\n\t\t\t\tscore = shortMan.scoring(name1, name2);\n\t\t\t\treason = \"Type: LOC. metric; Scored by JaroWinkler metric with Shortcut.\";\n\t\t\t} else if (type1.equals(\"ORG\") || type2.equals(\"ORG\")) {\n\t\t\t\tfloat orgScore = acroMan.scoring(name1Info, name2Info);\n\t\t\t\tif (score < orgScore) {\n\t\t\t\t\tscore = orgScore;\n\t\t\t\t\treason = \"Type: ORG. metric; Scored by JaroWinkler metric with Acronym.\";\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tscore = 0.0f;\n\t\t\t\treason = \"Type: \" + type1 + \". and \" + type2 + \". cannot be compared\";\n\t\t\t}\n\t\t\tbreak;\n\t\t\t\n\t\tdefault:\n\t\t\tscore = 0.0f;\n\t\t\treason = \"#######SHOULD NOT HAPPEN#######\";\n\t\t}\n\t\tif (name1.equalsIgnoreCase(name2))\n\t\t\tscore = 1.0f;\n\t\tif (!name1Info.getType().equals(\"PER\") && !name2Info.getType().equals(\"PER\"))\n\t\t\thandleLargeRatio(name1, name2);\n\t}", "protected AnswerScore() {/* intentionally empty block */}", "public int scoreOf(String word) {\n\t\tString noU = stripU(word);\n\t\treturn tst.contains(noU) ? tst.get(noU) : 0;\n\t}", "public void testNoYes () throws Exception{\n\n // RunID TeamID Prob Time Result\n \n String [] runsData = {\n \"5,2,A,12,No\",\n \"6,2,A,12,Yes\",\n };\n \n // Rank TeamId Solved Penalty\n \n String [] rankData = {\n \"1,team2,1,32\",\n \"2,team1,0,0\",\n };\n \n scoreboardTest (2, runsData, rankData);\n }", "public void scoresForGameModes() {\r\n \tCalculateScore myScore = new CalculateScore();\r\n \tthis.score = myScore.giveScore();\r\n \tif (gamemode == 1) {\r\n \t\treturn;\r\n \t}\r\n \tif (gamemode ==2 ) {\r\n \t\tthis.score = this.score - (10 * (currentGraph.getCNumber() - set.size()));\r\n \t}\r\n \tif (gamemode ==3) {\r\n \t\tthis.score = this.score - (10 * (currentGraph.getCNumber() -set.size()));\r\n \t}\r\n }", "private static void init() {\n\t\tguess = 0;\n\t\ttries = 10;\n\t\tlen = Random.getRand(4, 8);\n\t\tcorrectGuesses = 0;\n\t\twordGen = new RandomWordGenerator(len);\n\t\twordGen.generate();\n\t\tword = wordGen.getWord();\n\t\tguessesResult = new boolean[word.length()];\n\n\t}", "int score();", "int score();", "public void give_score(int n){\n final_score=0.25*(n-m.get_m()+1)+0.2*(n-h.get_h()+1)+0.25*(n-l.get_l()+1)+0.3*(n-a.get_a()+1);\r\n }", "static String score(String agent1,String agent2)\n {\n int a1=random(s.length);\n int a2=random(s.length);\n if(a1==a2)\n a2++;\n if (a1 < a2)\n {\n allScores[in]=agent1+\" lose from \"+ agent2 + \" \" + a2 +\"-\"+ a1;\n JOptionPane.showMessageDialog(new JFrame(),allScores[in]);\n in++;\n return agent2;\n }\n else\n {\n allScores[in]=agent2+\" lose from \"+ agent1 +\" \" + a1 +\"-\"+ a2;\n JOptionPane.showMessageDialog(new JFrame(),allScores[in]);\n in++;\n return agent1;\n }\n\n }", "public void theDude() {\n\t\ttotal_targets = 0;\n\t\ttotal = 0;\n\t\tint target_count = 0;\n\t\tresult.clear();\n\t\t\n\t\tfor(int k=0; k<input.getWords().size();k++) {\n\t\t\tWord currentWordStat = input.getWordStatistics().get(k);\n\t\t\ttarget_count = 0;\n\t\t\t\n\t\t\tfor(int i=0;i<input.getWords().get(k).length();i++) {\n\t\t\t\tif(target.contains(input.getWords().get(k).charAt(i))) {\n\t\t\t\t\ttarget_count++;\n\t\t\t\t\ttotal_targets++;\n\t\t\t\t}\n\t\t\t\ttotal++;\n\t\t\t}\n\t\t\t\n\t\t\tif(result.containsKey(currentWordStat)) {\n\t\t\t\tresult.put(currentWordStat, result.get(currentWordStat)+target_count);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tresult.put(currentWordStat, target_count);\n\t\t\t}\n\t\t}\t\n\t}", "public void score(){\r\n\t\tint playerLocation = player.getLocationX();\r\n\t\tint obstacleX = obstacle.getLocationX();\r\n\t\tint obstacleY = obstacle.getLocationY();\r\n\r\n\r\n\t\tstr =\"\" + countCoins;\r\n\r\n\t\t//if you hit a coin, the number of points goes up by one.\r\n\t\tif(obstacleY == 280 && obstacleX==300 && playerLocation == 250){\r\n\t\t\tcountCoins++;\r\n\t\t}\r\n\t\tif(obstacleY== 450 && obstacleX==300 && playerLocation ==450){\r\n\t\t\tcountCoins++;\r\n\t\t}\r\n\r\n\t\t//if you hit the green monster, you lose one point.\r\n\t\tif((obstacleX-50) == 250 && (obstacleY-240) == 250 && playerLocation ==250){\r\n\t\t\tcountCoins--;\r\n\t\t}\r\n\r\n\t\t//if you hit the blue monster, you lose 3 points.\r\n\t\tif((obstacleX+180) == 480 && (obstacleY+180) == 250 && playerLocation ==450){\r\n\t\t\tcountCoins-=3;\r\n\t\t}\r\n\t}", "@LargeTest\n\tpublic void testScore_perfectEnding() {\n\t\tsolve();\n\t\tassertEquals((Integer) START_SCORE, Integer.valueOf(solo.getText(1).getText().toString()));\n\t}", "private int calculateScore() {\n int total;\n int score = getGameScore();\n int correct = getCorrectGuesses();\n int wrong = getWrongGuesses();\n GameDifficulty difficulty = Hangman.getGameDifficulty();\n\n // Calculate points\n switch (difficulty) {\n case EASY : total = score; break;\n case NORMAL : total = (2 * score) + correct - wrong; break;\n case HARD : total = (3 * score) + (2 * correct) - (2 * wrong); break;\n default : total = score;\n }\n\n return total;\n }", "float getScore();", "float getScore();", "public static void main(String[] args) {\r\n // TODO code application logic here\r\n String finalWord = stringGen(0); // Generate Random String to find words in\r\n \r\n String correctGuesses[];\r\n correctGuesses = new String[50];\r\n Boolean running = true;\r\n \r\n System.out.println(finalWord); \r\n \r\n Scanner s = new Scanner(System.in); // sets up user input\r\n \r\n while (running){ // while user still wants to play...\r\n System.out.print(\"Enter a word found in this puzzle (or QUIT to quit): \");\r\n String input = s.nextLine(); // Gets user input\r\n if(quit(input)){\r\n break;\r\n }\r\n if (input.equals(\"yarrimapirate\")) {\r\n yarrimapirate();\r\n }\r\n if(!compare(correctGuesses, input)) { // guessed word isnt in prev list\r\n if(checkWord(finalWord, input)) { // guessed word is found in string\r\n correctGuesses[correctCounter] = input;\r\n System.out.println(\"Yes,\" + input + \" is in the puzzle.\");\r\n correctCounter++;\r\n }\r\n else { // exactly what next line says o.O\r\n System.out.println(input + \" is NOT in the puzzle.\");\r\n }\r\n }\r\n else {\r\n System.out.println(\"Sorry, you have already found that word.\");\r\n }\r\n }\r\n \r\n System.out.println(\"You found the following \" + correctCounter + \" words in the puzzle:\");\r\n \r\n for(int x=0; x<correctCounter; x++) { // lets print out all Correct guesses!\r\n System.out.println(correctGuesses[x]);\r\n }\r\n \r\n }", "private static String test(double[][] test_data) {\n\n\t\t// Holds score for each word\n\t\tHashMap<Integer, Integer> scores = new HashMap<Integer, Integer>();\n\n\t\t// Euclidean distances hashamp for <Word, Distances> for each row\n\t\t// HashMap<String, double[]> distances = new HashMap<String,\n\t\t// double[]>();\n\t\tdouble[][] distances = new double[training_data.size()][test_data[0].length];\n\n\t\t// Just class names\n\t\tString[] classnames = training_data.keySet().toArray(new String[1]);\n\t\t// names = classnames;\n\t\t// System.out.println(Arrays.toString(classnames));\n\n\t\t// Initialize scores for each word to be 0\n\t\tfor (int i = 0; i < classnames.length; i++) {\n\t\t\tscores.put(i, 0);\n\t\t}\n\n\t\t// Convert MxN test data matrix to NxM for ease of use\n\t\ttest_data = Data.rotate(test_data);\n\n\t\t// Calculate scores for each row and populate the distances matrix\n\t\tfor (int i = 0; i < test_data.length; i++) {\n\t\t\tdouble min = Double.MAX_VALUE;\n\t\t\tint min_index = 0;\n\t\t\tint c = 0;\n\t\t\tfor (String name : training_data.keySet()) {\n\t\t\t\tdouble[][] train = training_data.get(name);\n\t\t\t\ttrain = Data.rotate(train);\n\t\t\t\t// System.out.println(\"Testing \" + name);\n\t\t\t\t// System.out.println(\"Calculating euc distance between: \" +\n\t\t\t\t// Arrays.toString(test_data[i]));\n\t\t\t\t// System.out.println(\" and: \" +\n\t\t\t\t// Arrays.toString(train[i]));\n\t\t\t\tdistances[c][i] = Data.calcEuclideanDistance(test_data[i],\n\t\t\t\t\t\ttrain[i]);\n\t\t\t\t// System.out.println(\"Distance: \" + distances[c][i]);\n\t\t\t\t// new Scanner(System.in).nextLine();\n\t\t\t\tif (min > distances[c][i]) {\n\t\t\t\t\tmin = distances[c][i];\n\t\t\t\t\tmin_index = c;\n\t\t\t\t}\n\t\t\t\tc++;\n\t\t\t}\n\t\t\t// System.out.print(\"\\n\"+classnames[min_index] + \" won with \" +\n\t\t\t// min);\n\t\t\tscores.put(min_index, scores.get(min_index) + 1);\n\t\t}\n\n\t\t// for (int i =0; i < distances.length; i++) {\n\t\t// for (int j = 0; j < distances[0].length; j++) {\n\t\t// System.out.print(distances[i][j] + \" \");\n\t\t// }\n\t\t// System.out.print(\"\\n\");\n\t\t// }\n\n\t\t// Word with the highest score wins\n\t\tdouble max = Double.MIN_VALUE;\n\t\tint index = 0;\n\t\tfor (Integer i : scores.keySet()) {\n\t\t\t// System.out.print(scores.get(i) + \",\");\n\t\t\tif (max < scores.get(i)) {\n\t\t\t\tmax = scores.get(i);\n\t\t\t\tindex = i;\n\t\t\t}\n\t\t}\n\t\tconfusion_matrix.add(scores);\n\t\treturn classnames[index];\n\t}", "public HangmanGame(List<String> wordsList, int numIncorrectGuessesAllowed) {\n\t\tthis.wordsList = wordsList;\n\t\tthis.numIncorrectGuessesAllowed = numIncorrectGuessesAllowed;\n wordToGuess = wordsList.get(new Random().nextInt(wordsList.size())); \n\t\tnumIncorrectGuessesMade = 0;\n\t\tguessesMade = new HashSet<>();\n\t}", "public static void postScores() {\r\n\t\t//Copies the scores for four handed team based play.\r\n\t\tif (Main.isFourHandedTeams) {\r\n\t\t\tMain.team1Score = Main.teamOne.score;\r\n\t\t\tMain.team2Score = Main.teamTwo.score;\r\n\t\t//Copies the scores for non four handed team based play.\r\n\t\t} else {\r\n\t\t\tMain.player1Score = Main.playerOne.score;\r\n\t\t\tMain.player2Score = Main.playerTwo.score;\r\n\t\t\tMain.player3Score = Main.playerThree.score;\r\n\r\n\t\t\t//Copies the scores for four handed single player game.\r\n\t\t\tif (!Main.isThreeHanded) {\r\n\t\t\t\tMain.player4Score = Main.playerFour.score;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Test(timeout = 4000)\n public void test50() throws Throwable {\n LovinsStemmer lovinsStemmer0 = new LovinsStemmer();\n String string0 = lovinsStemmer0.stemString(\"usu th addres of th publishes or other typ of institut. for major publish hous, van leun recommens omis th inform entir. for smal publishes, on th other hand, you can help th reader by giv th comples addres.\");\n assertEquals(\"usu th addr of th publish or other typ of institut. for major publ hous, van leun recommen om th inform entir. for smal publish, on th other hand, you can help th reader by giv th compl addr.\", string0);\n }", "@Test\n public void chiSquaredTest1() {\n long[] occs = new long[26];\n occs[0] = 43;\n occs[1] = 453;\n occs[2] = 42;\n occs[3] = 4;\n occs[4] = 1;\n occs[5] = 0;\n occs[6] = 27;\n occs[7] = 29;\n occs[8] = 301;\n occs[9] = 107;\n occs[10] = 79;\n occs[11] = 201;\n occs[12] = 3;\n occs[13] = 5;\n occs[14] = 82;\n occs[15] = 36;\n occs[16] = 47;\n occs[17] = 90;\n occs[18] = 68;\n occs[19] = 45;\n occs[20] = 9;\n occs[21] = 23;\n occs[22] = 42;\n occs[23] = 421;\n occs[24] = 26;\n occs[25] = 2;\n int textLen = 2186;\n assertEquals(64388.4292706625, this.ic.chiSquared(occs,\n this.freq.getExpectedLetterFrequencies(), textLen), 0.01);\n\n }", "@Test\n public void boggle(){\n BoggleBoard board = new BoggleBoard(\"datasets/board5x5.txt\");\n\n BogglePlayer player = new BogglePlayer(Permeate.textToStringAr(\"datasets/dictionary-yawl.txt\"));\n\n for (String word : player.getAllValidWords(board)) {\n System.out.println(word);\n }\n assertEquals(2911,player.getMaximumScore(board));\n }", "@Test\n public void testScoreUpdate() {\n try {\n final BestEvalScore score = new BestEvalScore(\"thjtrfwaw\");\n double expected = 0;\n assertEquals(\"Incorrect score!\", expected , score.get(), 1e-10);\n final Evaluation eval = new Evaluation(2);\n eval.eval(0,1);\n eval.eval(1,1);\n\n expected = eval.accuracy();\n score.accept(eval);\n assertEquals(\"Incorrect score!\", expected , score.get(), 1e-10);\n\n eval.eval(0,1);\n score.accept(eval);\n assertEquals(\"Incorrect score!\", expected , score.get(), 1e-10);\n\n eval.eval(1,1);\n eval.eval(1,1);\n expected = eval.accuracy();\n score.accept(eval);\n assertEquals(\"Incorrect score!\", expected , score.get(), 1e-10);\n\n\n\n } catch (IOException e) {\n throw new IllegalStateException(\"Failed to create instance!\", e);\n }\n\n\n }", "public void testScoreboardCaseThree () throws Exception {\n \n // RunID TeamID Prob Time Result\n \n String [] runsData = {\n\n \"1,1,A,1,No\", // 20\n \"2,1,A,3,Yes\", // 3 (first Yes counts only Min.Pts)\n \"3,1,A,5,No\", // 20\n \"4,1,A,7,Yes\", // 20 (all runs count!)\n \"5,1,A,9,No\", // 20\n\n \"6,1,B,11,No\", // zero (not solved)\n \"7,1,B,13,No\", // zero (not solved)\n\n \"8,2,A,30,Yes\", // 30\n\n \"9,2,B,35,No\", // zero -- not solved\n \"10,2,B,40,No\", // zero -- not solved\n \"11,2,B,45,No\", // zero -- not solved\n \"12,2,B,50,No\", // zero -- not solved\n \"13,2,B,55,No\", // zero -- not solved\n };\n \n // Rank TeamId Solved Penalty\n \n String [] rankData = {\n \"1,team1,1,23\",\n \"2,team2,1,30\"\n };\n \n // TODO when SA supports count all runs, replace rankData\n \n /**\n * Case 3 tests when all runs are counted, the current SA\n * does not support this scoring method. The commented\n * rankData is the proper results\n */\n \n// String [] rankData = {\n// \"1,team2,1,30\"\n// \"2,team1,1,83\",\n// };\n \n scoreboardTest (2, runsData, rankData);\n }", "private void resetGame() {\r\n SCORE = 0;\r\n defaultState();\r\n System.arraycopy(WordCollection.WORD, 0, tempWord, 0, WordCollection.WORD.length);\r\n }", "@Test\n\tpublic void testAddScoreAndGetWinner2() throws BattleshipException {\n\t\t\n\t\t//Play Julia\n\t\tinitScores(playerJulia);\n\t\t\t\n\t\t//Julia realiza 46 disparos a distintos Crafts y destruye 46 Destroyer, 10 Cruiser y 5 Bomber\n\t\tfor (int i=0; i<46; i++) {\n\t\t\thitScore.score(CellStatus.HIT);\n\t\t\tcraftScore.score(CraftFactory.createCraft(\"ship.Destroyer\", Orientation.NORTH));\n\t\t\tif (i<10) craftScore.score(CraftFactory.createCraft(\"ship.Cruiser\", Orientation.WEST));\n\t\t\tif (i<5) craftScore.score(CraftFactory.createCraft(\"aircraft.Bomber\", Orientation.EAST));\n\t\t}\n\t\tcraftRanking.addScore(craftScore);\n\t\thitRanking.addScore(hitScore);\n\t\tcompareScores(\"Julia(PlayerFile):263\",craftRanking.getWinner().toString());\t\n\t\tcompareScores(\"Julia(PlayerFile):46\",hitRanking.getWinner().toString());\n\t\t\n\t\t//Play Raul\n\t\tinitScores(playerRaul);\n\t\t//Raul realiza 45 disparos a distintos Crafts y destruye 10 Carrier, 30 Battleship y 5 Fighter\n\t\tfor (int i=0; i<45; i++) {\n\t\t\thitScore.score(CellStatus.HIT);\n\t\t\tif (i<30) craftScore.score(CraftFactory.createCraft(\"ship.Battleship\", Orientation.NORTH));\n\t\t\tif (i<10) craftScore.score(CraftFactory.createCraft(\"ship.Carrier\", Orientation.WEST));\n\t\t\tif (i<5) craftScore.score(CraftFactory.createCraft(\"aircraft.Fighter\", Orientation.EAST));\n\t\t}\n\t\t\n\t\tcraftRanking.addScore(craftScore);\n\t\thitRanking.addScore(hitScore);\n\t\tcompareScores(\"Raul(PlayerRandom):310\",craftRanking.getWinner().toString());\t\n\t\tcompareScores(\"Julia(PlayerFile):46\",hitRanking.getWinner().toString());\n\t\t\n\t\t//Play Laura\n\t\tinitScores(playerLaura);\n\t\t//Laura realiza 120 disparos a distintos Crafts y destruye 30 Battleship, 10 Cruiser y 5 Fighter\n\t\tfor (int i=0; i<120; i++) {\n\t\t\thitScore.score(CellStatus.HIT);\n\t\t\tif (i<30) craftScore.score(CraftFactory.createCraft(\"ship.Battleship\", Orientation.EAST));\n\t\t\tif (i<10) craftScore.score(CraftFactory.createCraft(\"ship.Cruiser\", Orientation.WEST));\n\t\t\tif (i<5) craftScore.score(CraftFactory.createCraft(\"aircraft.Fighter\", Orientation.SOUTH));\n\t\t}\n\t\tcraftRanking.addScore(craftScore);\n\t\thitRanking.addScore(hitScore);\n\t\tcompareScores(\"Raul(PlayerRandom):310\",craftRanking.getWinner().toString());\t\n\t\tcompareScores(\"Laura(PlayerRandom):120\",hitRanking.getWinner().toString());\n\t\t\n\t\t//Play Simon\n\t\tinitScores(playerSimon);\n\t\t//Simon realiza 100 disparos a distintos Crafts y destruye 40 Bomber, 15 Destroyer y 75 Transport\n\t\tfor (int i=0; i<100; i++) {\n\t\t\thitScore.score(CellStatus.DESTROYED);\n\t\t\tif (i<40) craftScore.score(CraftFactory.createCraft(\"aircraft.Bomber\", Orientation.NORTH));\n\t\t\tif (i<15) craftScore.score(CraftFactory.createCraft(\"ship.Destroyer\", Orientation.WEST));\n\t\t\tif (i<75) craftScore.score(CraftFactory.createCraft(\"aircraft.Transport\", Orientation.EAST));\n\t\t}\n\t\tcraftRanking.addScore(craftScore);\n\t\thitRanking.addScore(hitScore);\n\t\tcompareScores(\"Simon(PlayerFile):1995\",craftRanking.getWinner().toString());\t\n\t\tcompareScores(\"Laura(PlayerRandom):120\",hitRanking.getWinner().toString());\n\t\tcompareRankings(SRANKING4, rankingsToString());\n\t}", "public void run() {\n \t canvas.reset();\n \t rg = RandomGenerator.getInstance();\n int index = rg.nextInt(0,9);\n hang = new HangmanLexicon();\n \n //word = hang.getWord(index);\n try{\n BufferedReader br = new BufferedReader(new FileReader(\"HangmanLexicon.txt\"));\n \n while(true){\n \t String line = br.readLine();\n \t if(line == null)\n \t\t continue;\n \t ArrayList<String> kt = new ArrayList<String>();\n \t \n \t \n \t \n }\n for(int k = 0; k < word.length();k++){\n \t t = t + \"-\";\n \t \n }\n \n \twhile(counter >=0){\n \t\n \tsetup();\n \t\n \t\n \t\n \t\n \t}\n \t\n\t}\n\n \n private void setup(){\n \t\n \t\n \t\n \t\n \n int k = word.length();\n \n int i = 65;\n int temp = rg.nextInt(0,25);\n \tchar c = (char)(i + temp);\n \tboolean presentcharacter = false;\n \n \tcanvas.displayWord(t);\n \tSystem.out.println(\"you have only \" + counter + \" cases left\");\n System.out.println(\"Your Guess \"+ c);\n for(int j = 0; j<word.length();j++){\n \t\t\n \t\tif(word.charAt(j) == c){\n \t\t\tpresentcharacter = true;\n \t\t\tk--;\n \t\t}\n \t}\n \t\n \t\n \n \tif(presentcharacter){\n \t\tfor(int num = 0; num<word.length();num++){\n \t\t\tif(word.charAt(num) == c){\n \t\t\t\tSystem.out.println(\"you guessed it right\");\n \t\t\t\tt = t.substring(0,num) +c +t.substring(num+1,t.length());\n \t\t\t \t\n \t\t\t}\n \t\t\t\n \t\t}\n \t\t\n \t\t\n \t\t\n \t\t\n \t}\n \t\n \t\tcanvas.noteIncorrectGuess(c, counter);\n \t\t\n \t\t\n \t\n \tcounter--;\n \n \n \t if(k == 0){\n \t \t\n \t \tSystem.out.println(\"you have won this game\");\n \t \tSystem.out.println(\"Congratulations\");\n return; \t \t\n \t \t\n \t \t\n \t }\n \n }\n \n \n\n private String t = \"\" ;\n public String word;\npublic int counter = 8;\n private HangmanLexicon hang;\n private RandomGenerator rg;\n}", "long getScore();", "long getScore();", "long getScore();", "long getScore();", "private void checkScores(int expectP1, int expectP2) {\n\n\t\tassertTrue(p1ScoreLabel.getText().matches(\"[^\\\\d]*\" + expectP1 + \"[^\\\\d]*\"));\n\n\t\tassertTrue(p2ScoreLabel.getText().matches(\"[^\\\\d]*\" + expectP2 + \"[^\\\\d]*\"));\n\n\t}", "@Test(timeout = 4000)\n public void test68() throws Throwable {\n LovinsStemmer lovinsStemmer0 = new LovinsStemmer();\n String string0 = lovinsStemmer0.stemString(\"probToLogOdds: probability must be in [0,1] \");\n assertEquals(\"probtologod: prob must be in [0,1] \", string0);\n }", "static private int _score(\n UIXRenderingContext context,\n String lafName,\n LookAndFeelScorer scorer\n )\n {\n Score score = scorer.scoreLookAndFeel(context, lafName);\n\n // First, check for any NO_MATCH scores.\n int nameScore = score.getNameScore();\n int agentTypeScore = score.getAgentTypeScore();\n int agentApplicationScore = score.getAgentApplicationScore();\n int agentVersionScore = score.getAgentVersionScore();\n int agentOSScore = score.getAgentOSScore();\n int discriminantScore = score.getDiscriminantScore();\n\n // If any of the component scores are NO_MATCH, then we\n // don't have a match - return NO_MATCH.\n if ((nameScore == Score.NO_MATCH) ||\n (agentTypeScore == Score.NO_MATCH) ||\n (agentApplicationScore == Score.NO_MATCH) ||\n (agentVersionScore == Score.NO_MATCH) ||\n (agentOSScore == Score.NO_MATCH) ||\n (discriminantScore == Score.NO_MATCH))\n {\n return Score.NO_MATCH;\n }\n\n return (nameScore +\n agentTypeScore +\n agentApplicationScore +\n agentVersionScore +\n agentOSScore +\n discriminantScore);\n }", "public static void paintHangman() {\n if (count == 1) {\n System.out.println(\"Wrong guess, try again\");\n System.out.println(\" ______________\");\n System.out.println(\" | _|_\");\n System.out.println(\" | / 0 0 \\\\\");\n System.out.println(\" | | < |\");\n System.out.println(\" | | ~~ |\");\n System.out.println(\" | \\\\_____/\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\"____|____\");\n System.out.println(\"1 incorrect guess, 6 guesses left\");\n }\n if (count == 2) {\n System.out.println(\"Wrong guess, try again\");\n System.out.println(\" ______________\");\n System.out.println(\" | _|_\");\n System.out.println(\" | / 0 0 \\\\\");\n System.out.println(\" | | < |\");\n System.out.println(\" | | ~~ |\");\n System.out.println(\" | \\\\_____/\");\n System.out.println(\" | |\");\n System.out.println(\" | |\");\n System.out.println(\" | |\");\n System.out.println(\" | |\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\"____|____\");\n System.out.println(\"2 incorrect guesses, 5 guesses left\");\n }\n if (count == 3) {\n System.out.println(\"Wrong guess, try again\");\n System.out.println(\" ______________\");\n System.out.println(\" | _|_\");\n System.out.println(\" | / 0 0 \\\\\");\n System.out.println(\" | | < |\");\n System.out.println(\" | | ~~ |\");\n System.out.println(\" | \\\\_____/\");\n System.out.println(\" | |\");\n System.out.println(\" | __|\");\n System.out.println(\" | / |\");\n System.out.println(\" | / |\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\"____|____\");\n System.out.println(\"3 incorrect guesses, 4 guesses left\");\n }\n if (count == 4) {\n System.out.println(\"Wrong guess, try again\");\n System.out.println(\" ______________\");\n System.out.println(\" | _|_\");\n System.out.println(\" | / 0 0 \\\\\");\n System.out.println(\" | | < |\");\n System.out.println(\" | | ~~ |\");\n System.out.println(\" | \\\\_____/\");\n System.out.println(\" | |\");\n System.out.println(\" | __|__\");\n System.out.println(\" | / | \\\\\");\n System.out.println(\" | / | \\\\\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\"____|____\");\n System.out.println(\"4 incorrect guesses, 3 guesses left\");\n }\n if (count == 5) {\n System.out.println(\"Wrong guess, try again\");\n System.out.println(\" ______________\");\n System.out.println(\" | _|_\");\n System.out.println(\" | / 0 0 \\\\\");\n System.out.println(\" | | < |\");\n System.out.println(\" | | ~~ |\");\n System.out.println(\" | \\\\_____/\");\n System.out.println(\" | |\");\n System.out.println(\" | __|__\");\n System.out.println(\" | / | \\\\\");\n System.out.println(\" | / | \\\\\");\n System.out.println(\" | /\");\n System.out.println(\" | /\");\n System.out.println(\" | _/\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\"____|____\");\n System.out.println(\"5 incorrect guesses, 2 guesses left\");\n }\n if (count == 6) {\n System.out.println(\"Wrong guess, try again\");\n System.out.println(\" ______________\");\n System.out.println(\" | _|_\");\n System.out.println(\" | / 0 0 \\\\\");\n System.out.println(\" | | < ' |\");\n System.out.println(\" | | ~~ |\");\n System.out.println(\" | \\\\_____/\");\n System.out.println(\" | |\");\n System.out.println(\" | __|__\");\n System.out.println(\" | / | \\\\\");\n System.out.println(\" | / | \\\\\");\n System.out.println(\" | / \\\\\");\n System.out.println(\" | / \\\\\");\n System.out.println(\" | _/ \\\\_\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\"____|____\");\n System.out.println(\"6 incorrect guesses, only 1 guess left!\");\n }\n if (count == 7) {\n System.out.println(\"GAME OVER!\");\n System.out.println(\"7 incorrect guesses\");\n System.out.println(\"Wrong guess, try again\");\n System.out.println(\" ______________\");\n System.out.println(\" | _|_\");\n System.out.println(\" | / X X \\\\\");\n System.out.println(\" | | < |\");\n System.out.println(\" | | __ |\");\n System.out.println(\" | \\\\_____/\");\n System.out.println(\" | |\");\n System.out.println(\" | __|__\");\n System.out.println(\" | / | \\\\\");\n System.out.println(\" | / | \\\\\");\n System.out.println(\" | / \\\\\");\n System.out.println(\" | / \\\\\");\n System.out.println(\" | _/ \\\\_\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\"____|____\");\n System.out.println(\"RIP \" + UserName.getUserName());\n System.out.println(\"GAME OVER! The word was \" + CategorySelector.word);\n }\n }", "private void drawScore() {\n\t\tString score = myWorld.getScore() + \"\";\n\n\t\t// Draw shadow first\n\t\tAssetLoader.shadow.draw(batcher, \"\" + myWorld.getScore(), (136 / 2)\n\t\t\t\t- (3 * score.length()), 12);\n\t\t// Draw text\n\t\tAssetLoader.font.draw(batcher, \"\" + myWorld.getScore(), (136 / 2)\n\t\t\t\t- (3 * score.length() - 1), 11);\n\n\t}", "@Test\n public void powerScoreTest(){\n score = new PowerScore();\n\n try{\n score.calculateScore(0,2);\n Assert.fail();\n }\n catch(HangmanException e){\n Assert.assertEquals(e.getMessage(), HangmanException.PARAMETRO_LIMITE_PUNTUACION);\n }\n try{\n score.calculateScore(0,1);\n Assert.fail();\n }\n catch(HangmanException e){\n Assert.assertEquals(e.getMessage(), HangmanException.PARAMETRO_LIMITE_PUNTUACION);\n }\n\n\n\n try{\n score.calculateScore(4,14);\n Assert.fail();\n }\n catch(HangmanException e){\n Assert.assertEquals(e.getMessage(), HangmanException.PARAMETRO_LIMITE_PUNTUACION);\n }\n try{\n score.calculateScore(4,15);\n Assert.fail();\n }\n catch(HangmanException e){\n Assert.assertEquals(e.getMessage(), HangmanException.PARAMETRO_LIMITE_PUNTUACION);\n }\n\n\n\n try{\n score.calculateScore(-2,0);\n Assert.fail();\n }\n catch(HangmanException e){\n Assert.assertEquals(e.getMessage(), HangmanException.PARAMETROS_NEGATIVOS);\n }\n try{\n score.calculateScore(-1,-1);\n Assert.fail();\n }\n catch(HangmanException e){\n Assert.assertEquals(e.getMessage(), HangmanException.PARAMETROS_NEGATIVOS);\n }\n\n\n\n try{\n score.calculateScore(2,1) ;\n score.calculateScore(0,0) ;\n }\n catch(HangmanException e){\n Assert.fail();\n }\n\n\n }", "@Test\n public void testWordGuessCompletition() {\n Word word = new Word(\"Llama\", 10);\n\n // The guess array should be initialized to all '_' characters\n // but be of the same length as the number of letters in the word\n Assert.assertEquals(\"Llama\".length(), word.getGuesses().length);\n Assert.assertEquals('_', word.getGuesses()[0]);\n Assert.assertEquals('_', word.getGuesses()[1]);\n Assert.assertEquals('_', word.getGuesses()[2]);\n Assert.assertEquals('_', word.getGuesses()[3]);\n Assert.assertEquals('_', word.getGuesses()[4]);\n\n // The word shouldn't be marked as 'completed' until all the letters are guessed.\n Assert.assertFalse(word.getIsComplete());\n Assert.assertTrue(word.guessLetter('l'));\n Assert.assertFalse(word.getIsComplete());\n Assert.assertTrue(word.guessLetter('a'));\n Assert.assertFalse(word.getIsComplete());\n Assert.assertTrue(word.guessLetter('m'));\n // Now that it is entirely guessed it should be complete\n Assert.assertTrue(word.getIsComplete());\n\n // If you reset the guesses, it shouldn't be complete anymore\n word.resetGuesses();\n Assert.assertFalse(word.getIsComplete());\n }" ]
[ "0.6755761", "0.6731385", "0.6578039", "0.64654094", "0.6372327", "0.635692", "0.63107806", "0.6281164", "0.62320906", "0.6231934", "0.6227558", "0.6227513", "0.61913365", "0.61725754", "0.6171552", "0.61558634", "0.6150117", "0.6118667", "0.61162597", "0.6077487", "0.60719824", "0.60669184", "0.6063321", "0.6013699", "0.60050714", "0.6000453", "0.59943104", "0.5988283", "0.5981026", "0.5953579", "0.59487975", "0.5941233", "0.59410053", "0.5938643", "0.59352505", "0.59329826", "0.5928124", "0.591068", "0.5906589", "0.5905396", "0.5902881", "0.5895479", "0.58846444", "0.5878873", "0.5876929", "0.5864841", "0.58440095", "0.5839901", "0.58395165", "0.58390635", "0.5836521", "0.5817776", "0.5812703", "0.5810216", "0.5807188", "0.5806509", "0.5795668", "0.57870275", "0.578231", "0.57813776", "0.577798", "0.5769805", "0.57644105", "0.5761193", "0.57528865", "0.57493645", "0.5748922", "0.57456523", "0.57430965", "0.57430965", "0.5740484", "0.5735202", "0.57292336", "0.5728596", "0.57277393", "0.5724731", "0.57243687", "0.57243687", "0.57228094", "0.5721605", "0.5719516", "0.571931", "0.57127297", "0.571081", "0.57089573", "0.5705702", "0.5705234", "0.57042444", "0.57032627", "0.5702495", "0.5698593", "0.5698593", "0.5698593", "0.5698593", "0.569811", "0.56917787", "0.5689703", "0.56850594", "0.5682081", "0.5677547", "0.5673086" ]
0.0
-1
Can the scoreboard transform itself correctly into a List of StatisticsGetDTOs?
@Test void ScoreBoardIntoList() { //Should be List<StatisticsGetDTO> intended = new ArrayList<StatisticsGetDTO>(); StatisticsGetDTO statisticsGetDTO = new StatisticsGetDTO(); statisticsGetDTO.setScore(100); statisticsGetDTO.setPlayerName("A"); statisticsGetDTO.setNumberOfCorrectlyGuessedMysteryWords(1); intended.add(statisticsGetDTO); statisticsGetDTO.setScore(200); statisticsGetDTO.setPlayerName("B"); statisticsGetDTO.setNumberOfCorrectlyGuessedMysteryWords(2); intended.add(statisticsGetDTO); statisticsGetDTO.setScore(300); statisticsGetDTO.setPlayerName("C"); statisticsGetDTO.setNumberOfCorrectlyGuessedMysteryWords(3); intended.add(statisticsGetDTO); statisticsGetDTO.setScore(400); statisticsGetDTO.setPlayerName("D"); statisticsGetDTO.setNumberOfCorrectlyGuessedMysteryWords(4); intended.add(statisticsGetDTO); List<StatisticsGetDTO> actualList = scoreboard.transformIntoList(); List<Integer> scoresActualList = new ArrayList<Integer>(); List<String> namesActualList = new ArrayList<String>(); List<Integer> mysteryActualList = new ArrayList<Integer>(); for (StatisticsGetDTO element : actualList){ scoresActualList.add(element.getScore()); namesActualList.add(element.getPlayerName()); mysteryActualList.add(element.getNumberOfCorrectlyGuessedMysteryWords()); } assertTrue(scoresActualList.contains(intended.get(0).getScore())); assertTrue(scoresActualList.contains(intended.get(1).getScore())); assertTrue(scoresActualList.contains(intended.get(2).getScore())); assertTrue(scoresActualList.contains(intended.get(3).getScore())); assertTrue(namesActualList.contains(intended.get(0).getPlayerName())); assertTrue(namesActualList.contains(intended.get(1).getPlayerName())); assertTrue(namesActualList.contains(intended.get(2).getPlayerName())); assertTrue(namesActualList.contains(intended.get(3).getPlayerName())); assertTrue(mysteryActualList.contains(intended.get(0).getNumberOfCorrectlyGuessedMysteryWords())); assertTrue(mysteryActualList.contains(intended.get(1).getNumberOfCorrectlyGuessedMysteryWords())); assertTrue(mysteryActualList.contains(intended.get(2).getNumberOfCorrectlyGuessedMysteryWords())); assertTrue(mysteryActualList.contains(intended.get(3).getNumberOfCorrectlyGuessedMysteryWords())); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.util.List<org.tensorflow.proto.profiler.XStat> \n getStatsList();", "java.util.List<net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats> \n getStatsList();", "public abstract List<ScorePackage> getScores(List<T> observationList);", "public interface MetricsService {\n Map<Integer, MetricsDto> analyzeBoard(List<Integer> boardList);\n}", "public List<StatsObject> getData() {\n\t\tList<StatsObject> stats = new ArrayList<StatsObject>(data.values());\n\t\treturn stats;\n\n\t}", "Map<String, Object> getStats();", "java.util.List<? extends org.tensorflow.proto.profiler.XStatOrBuilder> \n getStatsOrBuilderList();", "public abstract List<Metric> getMetrics();", "List<ClassificationCostsDto> map(List<ClassificationCostsReport> classificationCostsReports);", "java.util.List<Score>\n getScoresList();", "@Override\n public List<CardHitDetail> getStats(int start, int limit) {\n List<CardHitDetail> cardList = cardRepository.findStats(limit, start - 1);\n return cardList;\n }", "ChartListDTO returnDashboardCharts();", "@SuppressWarnings(\"unchecked\")\n private ColumnStatsCollector<DataValueDescriptor>[] getCollectors() {\n DataValueDescriptor[] dvds = template.getRowArray();\n ColumnStatsCollector<DataValueDescriptor> [] collectors = new ColumnStatsCollector[dvds.length];\n populateCollectors(dvds, collectors);\n return collectors;\n }", "public void showStats() {\r\n List<String> list = new ArrayList();\r\n for (int i = 1; i < 31; i++) {\r\n switch (i) {\r\n case 4:\r\n list.add(name);\r\n break;\r\n case 6:\r\n list.add(String.valueOf(stats.get(\"name\")));\r\n break;\r\n case 7:\r\n list.add(String.valueOf(stats.get(\"score\").split(\":\")[0]));\r\n break;\r\n case 8:\r\n list.add(\"Score\");\r\n break;\r\n case 9:\r\n list.add(String.valueOf(stats.get(\"score\").split(\":\")[1]));\r\n break;\r\n case 10:\r\n list.add(String.valueOf(stats.get(\"break\").split(\":\")[0]));\r\n break;\r\n case 11:\r\n list.add(\"Max Break\");\r\n break;\r\n case 12:\r\n list.add(String.valueOf(stats.get(\"break\").split(\":\")[1]));\r\n break;\r\n case 13:\r\n list.add(String.valueOf(stats.get(\"fouls\").split(\":\")[0]));\r\n break;\r\n case 14:\r\n list.add(\"Fouls\");\r\n break;\r\n case 15:\r\n list.add(String.valueOf(stats.get(\"fouls\").split(\":\")[1]));\r\n break;\r\n case 16:\r\n list.add(String.valueOf(stats.get(\"misses\").split(\":\")[0]));\r\n break;\r\n case 17:\r\n list.add(\"Misses\");\r\n break;\r\n case 18:\r\n list.add(String.valueOf(stats.get(\"misses\").split(\":\")[1]));\r\n break;\r\n case 19:\r\n list.add(String.valueOf(stats.get(\"pots\").split(\":\")[0]));\r\n break;\r\n case 20:\r\n list.add(\"Pots\");\r\n break;\r\n case 21:\r\n list.add(String.valueOf(stats.get(\"pots\").split(\":\")[1]));\r\n break;\r\n case 22:\r\n list.add(String.valueOf(stats.get(\"shots\").split(\":\")[0]));\r\n break;\r\n case 23:\r\n list.add(\"Shots\");\r\n break;\r\n case 24:\r\n list.add(String.valueOf(stats.get(\"shots\").split(\":\")[1]));\r\n break;\r\n case 25:\r\n list.add(String.format(\"%.1f\", Double.parseDouble(stats.get(\"potPercentage\").split(\":\")[0])) + \"%\");\r\n break;\r\n case 26:\r\n list.add(\"Pot Percentage\");\r\n break;\r\n case 27:\r\n list.add(String.format(\"%.1f\", Double.parseDouble(stats.get(\"potPercentage\").split(\":\")[1])) + \"%\");\r\n break;\r\n case 28:\r\n list.add(String.format(\"%.1f\", Double.parseDouble(stats.get(\"safetyPercentage\").split(\":\")[0])) + \"%\");\r\n break;\r\n case 29:\r\n list.add(\"Safety Percentage\");\r\n break;\r\n case 30:\r\n list.add(String.format(\"%.1f\", Double.parseDouble(stats.get(\"safetyPercentage\").split(\":\")[1])) + \"%\");\r\n break;\r\n default:\r\n list.add(\"\");\r\n }\r\n }\r\n\r\n GridView grid = new GridView(context);\r\n grid.setAdapter(new ArrayAdapter(context, android.R.layout.simple_list_item_1, list));\r\n grid.setNumColumns(3);\r\n\r\n new AlertDialog.Builder(context)\r\n .setNegativeButton(\"Back\", null)\r\n .setTitle(\"Match Statistics\")\r\n .setView(grid)\r\n .show();\r\n }", "public List<Number> getStatistics() {\n return statistics;\n }", "MetricsCounterDTO getMetricsCounter(MetricsCounterCriteria dto);", "public void statistics(){\n System.out.println(this.scoreboard.toString());\n }", "java.util.List<com.demo.springprotobuff.Demoproto.Student> getStudentList();", "private AggregatedStats(List<MeanWithClusterProbAggregator> stats) {\n clusterProbs = VectorUtils.of(stats.stream()\n .mapToDouble(MeanWithClusterProbAggregator::clusterProb)\n .toArray()\n );\n\n means = stats.stream()\n .map(MeanWithClusterProbAggregator::mean)\n .collect(Collectors.toList());\n }", "private JsonArray statistics(List<JsonObject> datapoints,\n String targetName,\n List<Range> intervals,\n String statsLabel) {\n\n return intervals.stream()\n .map(range -> {\n\n DescriptiveStatistics stats = calculateStatsForRange(datapoints, targetName, range);\n switch (statsLabel) {\n case \"min\":\n return datapoint(stats.getMin(), range.getStart());\n case \"pcl50\":\n return datapoint(stats.getPercentile(50), range.getStart());\n case \"pcl80\":\n return datapoint(stats.getPercentile(80), range.getStart());\n case \"pcl90\":\n return datapoint(stats.getPercentile(90), range.getStart());\n case \"pcl95\":\n return datapoint(stats.getPercentile(95), range.getStart());\n case \"pcl99\":\n return datapoint(stats.getPercentile(99), range.getStart());\n case \"max\":\n return datapoint(stats.getMax(), range.getStart());\n default:\n return datapoint(0d, 0);\n }\n })\n .filter(a -> !a.isEmpty())\n .collect(toJsonArray());\n }", "private List<Map<StatusEnum, GraphPoint>> getTestsStat(List<Test> tests) {\n List<Map<StatusEnum, GraphPoint>> result = new ArrayList<>();\n Map<String, StatusEnum> testsResultMap = new HashMap<>();\n Date tmpEndTime = null;\n Calendar periodTime = new GregorianCalendar();\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd.MM.yyyy\");\n int testsSize = tests.size();\n int i = 0;\n for (Test test : tests) {\n i++;\n if (tmpEndTime == null) {\n tmpEndTime = test.getEndTime();\n periodTime.setTime(tmpEndTime);\n periodTime.add(Calendar.DAY_OF_YEAR, Config.GRAPH_ONE_PERIOD);\n }\n if (test.getFailReasonToTest() == null || !test.getFailReasonToTest().getFailReason().isStatsIgnored()) {\n if (test.getStatus() != null) {\n testsResultMap.put(test.getMethodName(), test.getStatus().getStatusEnum());\n } else {\n testsResultMap.put(test.getMethodName(), StatusEnum.UNFINISHED);\n }\n }\n if (testsSize == i || test.getEndTime().getTime() >= periodTime.getTimeInMillis()) {\n Map<StatusEnum, GraphPoint> onePeriodResult = new LinkedHashMap<>();\n Map<StatusEnum, Integer> stats = getStatsForResults(testsResultMap);\n String tmpXDate = dateFormat.format(periodTime.getTime());\n onePeriodResult.put(StatusEnum.TOTAL, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.TOTAL))));\n onePeriodResult.put(StatusEnum.PASSED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.PASSED))));\n onePeriodResult.put(StatusEnum.FAILED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.FAILED))));\n onePeriodResult.put(StatusEnum.SKIPPED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.SKIPPED))));\n onePeriodResult.put(StatusEnum.UNFINISHED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.UNFINISHED))));\n result.add(onePeriodResult);\n tmpEndTime = test.getEndTime();\n periodTime.add(Calendar.DAY_OF_YEAR, Config.GRAPH_ONE_PERIOD);\n testsResultMap.clear();\n }\n }\n return result;\n }", "java.util.List<proto.Achievement> \n getAchievementsList();", "List<KeyDevelopmentsStatsPerMonthVO> getGrossProductPerMonth(final StatisticalDTO dto);", "Map<String, Number> toStatsMap() {\n long s = successes.get();\n long r = responseTimes.get();\n long avg = s <= 0 ? -1 : r / s;\n\n Map<String, Number> stats = new HashMap<String, Number>();\n stats.put(\"successes\", (int) s);\n stats.put(\"averageResponseTime\", avg);\n stats.put(\"httpFailures\", httpFailures.get());\n stats.put(\"readTimeouts\", readTimeouts.get());\n stats.put(\"connectTimeouts\", connectTimeouts.get());\n stats.put(\"socketErrors\", socketErrors.get());\n stats.put(\"emptyResults\", emptyResults.get());\n return stats;\n }", "public List<Map<String, Object>> getStatisticsByStaff(String classify);", "List<ChargeSummary> value();", "private JsonWrapper convert(List<IMaterialStats> stats) {\n Map<ResourceLocation,IMaterialStats> wrappedStats = stats.stream()\n .collect(Collectors.toMap(\n IMaterialStats::getIdentifier,\n stat -> stat));\n return new JsonWrapper(wrappedStats);\n }", "private List<Map<Player, Integer>> collectBoardData() {\n List<Map<Player, Integer>> list = new ArrayList<>();\n\n for (int i = 0; i < board.length; i++) {\n list.add(collectLine(getRow(i)));\n list.add(collectLine(getColumn(i)));\n }\n\n list.add(collectLine(getMainDiagonal()));\n list.add(collectLine(getSecondDiagonal()));\n\n return list;\n }", "java.util.List<com.google.dataflow.v1beta3.MetricUpdate> getMetricsList();", "@Override\n\tpublic List<LearnStatsBo> findUserStats(LearnStatsInfoSearchForm form) {\n\t\tStringBuilder sql_ = new StringBuilder();\n\t\tsql_.append(\"SELECT tr.startDt,tr.endDt FROM train_class tr WHERE tr.tcId='\"+form.getTrainClassId()+\"'\");\n\t\tList<Map<String,Object>> tcmap = jdbcTemplate.queryForList(sql_.toString());\n\t\t\n\t\tStringBuilder sql = new StringBuilder();\n\t\tsql.append(\" select auuser.uid as userid , SUM(ls.times) as times , SUM(ls.percent) as percent , SUM(ls.duration) as duration \");\n\t\tsql.append(\" FROM train_class as tc \");\n\t\tsql.append(\" inner join n_train_class_resource as tr on tc.tcId = tr.trainClassId \");\n\t\tsql.append(\" inner join n_resource_bag as rb on tr.resourceBase_id = rb.id \");\n\t\tsql.append(\" inner join learn_stats_details as ls ON ls.course_cId = rb.cwId \");\n\t\tsql.append(\" inner join au_userinfo as auuser on ls.user_uid = auuser.uid \");\n\t\tsql.append(\" where 1=1 \");\n\n\t\tList<Object> list = new ArrayList<Object>();\n\t\tif (null != form.getResourceStatus()) {\n\t\t\tsql.append(\" and rb.res_status = ? \");\n\t\t\tlist.add(form.getResourceStatus());\n\t\t}\n\t\tif (null != form.getTrainClassId()) {\n\t\t\tsql.append(\" and tc.tcId = ? \");\n\t\t\tlist.add(form.getTrainClassId());\n\t\t}\n\t\tif (form.getUserId().length > 0) {\n\t\t\tsql.append(\" and (\");\n\t\t\tsql.append(\" ls.user_uid = ? \");\n\t\t\tlist.add(form.getUserId()[0]);\n\t\t\tfor (int i = 1; i < form.getUserId().length; i++) {\n\t\t\t\tsql.append(\" or ls.user_uid = ? \");\n\t\t\t\tlist.add(form.getUserId()[i]);\n\t\t\t}\n\t\t\tsql.append(\" )\");\n\t\t}\n\t\tsql.append(\" AND ls.lastTime <= '\"+tcmap.get(0).get(\"endDt\").toString()+\"'\");\n\t\tsql.append(\" AND ls.startTime >= '\"+tcmap.get(0).get(\"startDt\").toString()+\"'\");\n\t\tsql.append(\" GROUP BY ls.user_uid,ls.course_cId \");\n\t\treturn jdbcTemplate.query(sql.toString(), list.toArray(), new UserLearnStatsRowMapper());\n\t}", "List<T> getResults();", "@GetMapping(\"/bestplayers\")\n public String best(Map<String, Object> model) {\n\n Calendar calendar = Calendar.getInstance();\n calendar.add(Calendar.MINUTE, -5);\n Date date = calendar.getTime();\n System.out.println(date.toString());\n List<Match> matchs = matchRepo.findByMatchTimeAfter(date);\n\n\n Map<Chessplayer, Double> result = matchs.stream() //преобразуем в стрим\n // .map(Match::getMatchDetails) //мапа деталий матчей\n .flatMap(Match -> Match.getMatchDetails().stream()) //мапа деталей матча\n\n .collect(Collectors.groupingBy(MatchDetails::getChessplayer, Collectors.summingDouble(MatchDetails::getRatingChange)))\n\n .entrySet()\n .stream()\n .sorted(Map.Entry.<Chessplayer, Double>comparingByValue().reversed())\n .limit(5)\n .collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue));\n\n model.put(\"players\", result);\n\n return \"bestPlayers\";\n\n }", "List<OperatorDTO> getTimingOperators();", "public interface DataStats {\n \n // publicly accessible methods - replaces original properties\n \n /***************************************************************************\n * Gets the channel number for these stats\n *\n * @return the channel number\n **************************************************************************/\n public int GetChannel();\n \n /***************************************************************************\n * Sets the channel number for these stats\n *\n * @param channel The channel number\n **************************************************************************/\n public void SetChannel(int channel); \n \n /***************************************************************************\n * Gets the date for these stats\n *\n * @return the date\n **************************************************************************/ \n public Date GetDate();\n\n /***************************************************************************\n * Sets the date for these stats\n *\n * @param date The date\n **************************************************************************/ \n public void SetDate(Date date);\n \n /***************************************************************************\n * Gets time type\n *\n * @return time type - TRUE for hourly stats, FALSE for daily stats\n **************************************************************************/ \n public boolean GetHourly();\n \n /***************************************************************************\n * Sets time type \n *\n * @param hourly The time type - TRUE for hourly stats, FALSE for daily stats \n **************************************************************************/ \n public void SetHourly(boolean hourly); \n \n /***************************************************************************\n * Gets the number of points used to make these statistics\n *\n * @return the number of points\n **************************************************************************/ \n public int GetNPoints();\n \n /***************************************************************************\n * Sets the number of points used to make these statistics\n *\n * @param n_points The number of points\n **************************************************************************/ \n public void SetNPoints(int n_points);\n\n /***************************************************************************\n * Gets the number of points missing\n *\n * @return the number of points\n **************************************************************************/ \n public int GetNMissing();\n \n /***************************************************************************\n * Sets the number of points missing\n *\n * @param n_missing The number of points\n **************************************************************************/ \n public void SetNMissing(int n_missing);\n\n /***************************************************************************\n * Gets the minimum value \n *\n * @return the minimum value\n **************************************************************************/ \n public int GetMinVal();\n\n /***************************************************************************\n * Sets the minimum value\n *\n * @param min_val The minimum value\n **************************************************************************/ \n public void SetMinVal(int min_val);\n \n /***************************************************************************\n * Gets the maximum value\n *\n * @return the maximum value\n **************************************************************************/ \n public int GetMaxVal();\n\n /***************************************************************************\n * Sets the maximum value\n *\n * @param max_val The maximum value\n **************************************************************************/ \n public void SetMaxVal(int max_val);\n\n /***************************************************************************\n * Gets the average\n *\n * @return the average\n **************************************************************************/ \n public double GetAverage();\n\n /***************************************************************************\n * Sets the average\n *\n * @param average The average\n **************************************************************************/ \n public void SetAverage(double average);\n\n /***************************************************************************\n * Gets the standard deviation\n *\n * @return the standard deviation\n **************************************************************************/ \n public double GetStandardDev();\n\n /***************************************************************************\n * Sets the standard deviation\n *\n * @param standard_dev The standard deviation\n **************************************************************************/ \n public void SetStandardDev(double standard_dev);\n \n}", "public List<Map<String, Object>> ListStatistics(Timestamp start, Timestamp end) {\n\t\treturn statisticsMapper.ListStatistics(start,end);\n\t}", "List<Map<String, Object>> listGrades()throws BusinessException;", "public static ArrayList<String> getStatistics() {\n ArrayList<String> answer = new ArrayList<>();\n for (Map.Entry<String, HashMap<String, Integer>> entry1 : winStatistic.entrySet()) {\n for (Map.Entry<String, Integer> entry2 : entry1.getValue().entrySet()) {\n answer.add(entry1.getKey() + \" won \" + entry2.getKey() + \" \" + entry2.getValue() + \" times.\");\n }\n }\n for (Map.Entry<String, HashMap<String, Integer>> entry1 : drawStatistic.entrySet()) {\n for (Map.Entry<String, Integer> entry2 : entry1.getValue().entrySet()) {\n answer.add(entry1.getKey() + \" play in a draw with \" + entry2.getKey() + \" \" + entry2.getValue() + \" times.\");\n }\n }\n return answer;\n }", "public java.util.List<net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats> getStatsList() {\n return java.util.Collections.unmodifiableList(\n instance.getStatsList());\n }", "private List<Number> setStatistics() {\n // the total waiting time for customers who have been served\n double totalWatingTime = 0;\n // the average waiting time for customers who have been served\n double aveWaitingTime = 0;\n // the number of customers served\n int numOfCusServed = 0;\n // the number of customers who left without being served\n int numOfCusLeft = 0;\n\n for (Event newEvent : this.eventsList) {\n // update number Of customer served\n if (newEvent instanceof ServeEvent) {\n numOfCusServed++;\n }\n // update the total waiting time\n if (newEvent instanceof WaitEvent) {\n double nextAvailableTime = newEvent.getCurrentServer().getNextAvailableTime().get();\n double customerArrivalTime = newEvent.getCustomer().getArrivalTime();\n double startTime = this.eventsList.stream()\n .filter(x -> (x instanceof ServeEvent)\n && (x.getCustomer().getId() == newEvent.getCustomer().getId()))\n .findFirst().get().getStartTime();\n double waitTime = startTime - customerArrivalTime;\n totalWatingTime += waitTime;\n }\n // update the number of customer left\n if (newEvent instanceof LeaveEvent) {\n numOfCusLeft++;\n }\n }\n\n // calculate the average waiting time\n if (numOfCusServed != 0) {\n aveWaitingTime = totalWatingTime / numOfCusServed;\n }\n\n return new ArrayList<>(Arrays.asList(aveWaitingTime, numOfCusServed, numOfCusLeft));\n }", "Data<List<Boards>> getBoards();", "List<Pair<Member, BigDecimal>> getGrossProductPerMember(StatisticalDTO dto) throws DaoException;", "org.tensorflow.proto.profiler.XStat getStats(int index);", "List<StudentDTO> toStudentDTOs(List<Student> students);", "protected abstract List<Double> calcScores();", "private List<StringCountDto> getSortedStatistics() {\n return STRING_STATISTICS.entrySet()\n .stream()\n .sorted(Map.Entry.<String, CounterInfo>comparingByValue().reversed())\n .map(entry -> new StringCountDto(entry.getKey(), entry.getValue().getCount()))\n .collect(Collectors.toList());\n }", "List<DataGatherMoment> getDataGatherMoments();", "void populateReportInformation( Collection<ExpressionExperimentDetailsValueObject> vos );", "public void calculateScores(OutputCollector collector, List<T> observationList) {\n List<ScorePackage> packageList = getScores(observationList);\n for (ScorePackage scorePackage : packageList) {\n collector.emit(new Values(scorePackage.getId(), scorePackage.getScore(), scorePackage.getObj()));\n }\n }", "Score getScores(int index);", "@GetMapping(\"/activity\")\n Stats all() {\n Stats stats = new Stats();\n log.info(\"getting daily activity by default\");\n List<Activity> allActivity = repository.findAll();\n log.info(\"allActivity: \" + allActivity);\n Collections.sort(allActivity);\n Map<String, Integer> stepsByCategory = new TreeMap<String, Integer>();\n for (Activity activity : allActivity) {\n Calendar cal = Calendar.getInstance();\n cal.setTime(activity.getUntilTime());\n int day = cal.get(Calendar.DAY_OF_YEAR);\n int year = cal.get(Calendar.YEAR);\n String dayOfYear = DAY + day + OF_YEAR + year;\n Integer steps = stepsByCategory.get(dayOfYear);\n if (steps == null) {\n steps = activity.getSteps();\n } else {\n steps += activity.getSteps();\n }\n stepsByCategory.put(dayOfYear, steps);\n }\n stats.setCategory(StatsCategory.DAILY);\n List<Details> details = new ArrayList<Stats.Details>();\n if(stepsByCategory != null) {\n for (Entry entry : stepsByCategory.entrySet()) {\n Details stat = stats.new Details();\n stat.key = entry.getKey().toString();\n stat.steps = entry.getValue().toString();\n details.add(stat);\n }\n stats.setDetails(details);\n }\n //stats.setStepsByCategory(stepsByCategory);\n return stats;\n }", "public java.util.List<Score> getScoresList() {\n if (scoresBuilder_ == null) {\n return java.util.Collections.unmodifiableList(scores_);\n } else {\n return scoresBuilder_.getMessageList();\n }\n }", "private ArrayList<WobblyScore> getWobblyLeaderboard() {\n ArrayList<WobblyScore> wobblyScores = new ArrayList<>();\n String json = DiscordUser.getWobbliesLeaderboard(codManager.getGameId());\n if(json == null) {\n return wobblyScores;\n }\n JSONArray scores = new JSONArray(json);\n for(int i = 0; i < scores.length(); i++) {\n wobblyScores.add(WobblyScore.fromJSON(scores.getJSONObject(i), codManager));\n }\n WobblyScore.sortLeaderboard(wobblyScores, true);\n return wobblyScores;\n }", "public DescriptiveStatistics generateStatistics() {\n\t\tdouble[] sentimentValues = new double[this.sentimentValues.size()];\n\t\t\n\t\t//Casts each value in the sentimentValues array list to a double for processing with StatUtils package.\n\t\tfor (int i = 0; i < sentimentValues.length; i++) {\n\t\t\tsentimentValues[i] = (double) this.sentimentValues.get(i);\n\t\t}\n\t\t\n\t\tthis.statistics = new DescriptiveStatistics(sentimentValues);\n\t\treturn this.statistics;\n\t}", "public Map<Integer, ArrayList<Crop>> retrieveStatsCanYields() {\n CollectionReference colRef = dbClient.collection(\"statsCanYields\");\n ApiFuture<QuerySnapshot> future = colRef.get();\n List<QueryDocumentSnapshot> documents = null;\n try {\n documents = future.get().getDocuments();\n } catch (Exception e) {\n //TODO: Custom error here.\n System.out.println(e.getMessage());\n }\n return convertRecordsToMap(documents);\n }", "java.util.List<com.google.api.MetricDescriptor> getMetricDescriptorsList();", "@Override\r\n public List<Score> scofindAll() {\n return userMapper.scofindAll();\r\n }", "public java.util.List<net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats> getStatsList() {\n return stats_;\n }", "public java.util.Map<String, FieldStats> getStats() {\n if (stats == null) {\n stats = new com.amazonaws.internal.SdkInternalMap<String, FieldStats>();\n }\n return stats;\n }", "private void addStats(net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureStatsIsMutable();\n stats_.add(value);\n }", "List<Pair<Member, BigDecimal>> getPaymentsPerMember(StatisticalDTO dto) throws DaoException;", "List<GameResult> getAllGameResults();", "com.rpg.framework.database.Protocol.BonusStats getBonusStats();", "java.util.List<GoogleGRPC_08.proto.StudentResponse> \n getStudentResponseList();", "List<GameResult> getAllResults();", "public Statistics getCopyForTest() {\n Statistics statistics = new Statistics();\n statistics.sentMessageTypes.putAll(sentMessageTypes);\n statistics.receivedMessageTypes.putAll(receivedMessageTypes);\n statistics.incomingOperationTypes.putAll(incomingOperationTypes);\n statistics.listenerEventTypes.putAll(listenerEventTypes);\n statistics.clientErrorTypes.putAll(clientErrorTypes);\n return statistics;\n }", "public interface DataModel {\n\n /*\n Returns an ArrayList of all the Click Logs\n */\n// List<ClickLog> getClickData();\n\n /*\n Returns an ArrayList of all the Impression Logs\n */\n// List<ImpressionLog> getImpressionData();\n\n /*\n Returns an ArrayList of all the Server Logs\n */\n// List<ServerLog> getServerData();\n\n\n /**\n * Gets the name of the associated campaign\n * @return the name of the campaign\n */\n String getName();\n\n /**\n *\n * @return the total number of impressions in the campaign\n */\n int getImpressionsNumber() throws SQLException;\n\n /**\n * Gets all the impression data, grouped within a\n * specified interval\n * @param step the millisecond interval by which to group\n * @return A grouped map of Impression quantity and date\n */\n Map<Date, Integer> getFullImpressions(Step step) throws SQLException;\n\n //int getOverallImpressionsByInterval(Date startInterval, Date endInterval);\n\n /**\n * Get the total number of clicks in the campaign\n * @return Number of clicks\n */\n int getClicksNumber() throws SQLException;\n\n /**\n * get the number of clicks grouped by an interval\n * @param step the millisecond interval by which to group\n * @return A map of number of clicks within a date interval\n */\n Map<Date, Integer> getFullClicks(Step step) throws SQLException;\n\n //int getOverallClicksByInterval(Date startInterval, Date endInterval);\n\n /**\n * get the total number of uniques within the campaign\n * @return total uniques\n */\n int getUniquesNumber() throws SQLException;\n\n /**\n * The number of uniques grouped by a specified interval\n * @param step the millisecond interval by which to group\n * @return a map of uniques by date interval\n */\n Map<Date, Integer> getFullUniques(Step step) throws SQLException;\n\n// int getOverallUniquesByInterval(Date startInterval, Date endInterval);\n\n /**\n * get the total number of bounces across the campaign\n * @return total bounces\n */\n int getBouncesNumber() throws SQLException;\n\n// Map<Date, Integer> getBouncesByInterval(Date startInterval, Date endInterval);\n// Map<Date, Integer> getBouncesByInterval(Date startInterval, Date endInterval, Step step);\n\n /**\n * get the number of bounces grouped by the a step interval\n * @param step the millisecond interval by which to group\n * @return a map of the number of bounces in each time interval\n */\n Map<Date, Integer> getFullBounces(Step step) throws SQLException;\n\n// int getOverallBouncesByInterval(Date startInterval, Date endInterval);\n\n /**\n * get the total number of conversions across the campaign\n * @return number of conversions\n */\n int getConversionsNumber() throws SQLException;\n\n// Map<Date, Integer> getConversionsByInterval(Date startInterval, Date endInterval);\n// Map<Date, Integer> getConversionsByInterval(Date startInterval, Date endInterval, Step step);\n\n /**\n * get the number of conversions grouped by a step interval\n * @param step the millisecond interval by which to group\n * @return a mapping of conversion quantity and time interval\n */\n Map<Date, Integer> getFullConversions(Step step) throws SQLException;\n\n// int getOverallConversionsByInterval(Date startInterval, Date endInterval);\n\n /**\n * get the total cost of the campaign\n * @return campaign total cost\n */\n float getTotalCost() throws SQLException;\n\n// Map<Date, Float> getCostByInterval(Date startInterval, Date endInterval);\n// Map<Date, Float> getCostByInterval(Date startInterval, Date endInterval, Step step);\n\n /**\n * get the cost of the campaign grouped by a time step\n * @param step the millisecond interval by which to group\n * @return cost of the campaign within each time step\n */\n Map<Date, Float> getFullCost(Step step) throws SQLException;\n\n /**\n * get the Click Through Rate of the campaign\n * @return click through rate\n */\n float getCTR() throws SQLException;\n\n// Map<Date, Float> getCTRByInterval(Date startInterval, Date endInterval);\n// Map<Date, Float> getCTRByInterval(Date startInterval, Date endInterval, Step step);\n\n /**\n * get the Click Through Rate for the campaign grouped\n * by a specified step interval\n * @param step the millisecond interval by which to group\n * @return a mapping of the click through rate with its date interval\n */\n Map<Date, Float> getFullCTR(Step step) throws SQLException;\n\n// float getOverallCTRByInterval(Date startInterval, Date endInterval);\n\n /*\n The average amount of money spent on an advertising campaign.\n */\n\n /**\n * The Cost-Per-Acquisition of the whole campaign\n * @return cost-per-acquisition\n */\n float getCPA() throws SQLException;\n\n// Map<Date, Float> getCPAByInterval(Date startInterval, Date endInterval);\n// Map<Date, Float> getCPAByInterval(Date startInterval, Date endInterval, Step step);\n\n /**\n * get the cost-per-acquisition grouped by a specified time step\n * @param step the millisecond interval by which to group\n * @return map of date interval with corresponding cost-per-acquisition\n */\n Map<Date, Float> getFullCPA(Step step) throws SQLException;\n\n\n /**\n * get the average cost-per-click of the whole campaign\n * @return average cost-per-click\n */\n float getCPC() throws SQLException;\n\n /**\n * get the cost-per-click of time intervals within the campaign\n * @param step the millisecond interval by which to group\n * @return map of date interval with corresponding cost-per-click\n */\n Map<Date, Float> getFullCPC(Step step) throws SQLException;\n\n /**\n * get cost-per-thousand-impressions fot the whole campaign\n * @return cost-per-thousand-impressions\n */\n float getCPM() throws SQLException;\n\n// Map<Date, Float> getCPMByInterval(Date startInterval, Date endInterval);\n// Map<Date, Float> getCPMByInterval(Date startInterval, Date endInterval, Step step);\n\n /**\n * get the cost-per-thousand-impressions for intervals within the campaign\n * @param step millisecond interval by which to group\n * @return map of cost-per-thousand-impressions with date interval\n */\n Map<Date, Float> getFullCPM(Step step) throws SQLException;\n\n// float getOverallCPMByInterval(Date startInterval, Date endInterval);\n\n /*\n The average number of bounces per click.\n */\n\n /**\n * returns the average number of bounces per click\n * @return average bounces per click\n */\n float getBounceRate() throws SQLException;\n\n// Map<Date, Float> getBounceRateByInterval(Date startInterval, Date endInterval);\n// Map<Date, Float> getBounceRateByInterval(Date startInterval, Date endInterval, Step step);\n\n /**\n * returns a mapping of bounces per click grouped by a specified\n * time interval\n * @param step millisecond time interval by which to group\n * @return map of bounce rates within associated time intervals\n */\n Map<Date, Float> getFullBounceRate(Step step) throws SQLException;\n\n// float getOverallBounceRateByInterval(Date startInterval, Date endInterval);\n\n// Map<Date, Set<String>> getUsersByInterval(Date startInterval, Date endInterval);\n// Map<Date, Set<String>> getUsersByInterval(Date startInterval, Date endInterval, Step step);\n\n /**\n * return the names of users with registered activity grouped by\n * a specified time interval\n * @param step the millisecond interval by which to group\n * @return map of user sets within associated time intervals\n */\n Map<Date, Set<String>> getFullUsers(Step step) throws SQLException;\n\n LinkedHashMap<String, Integer> getHistogramData() throws SQLException;\n\n// Set<String> getOverallUsersRateByInterval(Date startInterval, Date endInterval);\n\n /**\n * gets the currently applied filter\n * @return currently applied filter\n */\n Filter getFilter();\n\n /**\n * sets the current filter for the campaign\n * @param f the filter that should be applied to the campaign\n */\n void setFilter(Filter f);\n}", "public List<AnswerStatistics> getStatisticsbySid(int sid);", "private DescriptiveStatistics calculateStatsForRange(List<JsonObject> datapoints, String targetName, Range range) {\n\n return datapoints.stream()\n .filter(js -> targetName.equals(js.getJsonObject(\"t\").getString(\"name\"))\n && range.contains(js.getJsonObject(\"n\").getLong(\"begin\")))\n .map(js -> js.getJsonObject(\"n\").getLong(\"value\"))\n .map(Long::doubleValue)\n .collect(descStatsCollector());\n }", "Stats<Double> stats();", "public List<Pair<String, Integer>> getScores() {\n if (!this.list.isPresent()) {\n this.readScores();\n }\n return new ArrayList<>(this.list.get());\n }", "List<SurveyQuestionDTO> getSortedDtos(List<SurveyQuestion> questions);", "org.tensorflow.proto.profiler.XStatOrBuilder getStatsOrBuilder(\n int index);", "private Collector<Double, DescriptiveStatistics, DescriptiveStatistics> descStatsCollector() {\n\n return Collector.of(DescriptiveStatistics::new,\n DescriptiveStatistics::addValue,\n (s1, s2) -> DoubleStream.concat(DoubleStream.of(s1.getValues()),\n DoubleStream.of(s1.getValues()))\n .collect(DescriptiveStatistics::new,\n DescriptiveStatistics::addValue,\n (ds1, ds2) -> DoubleStream.of(s2.getValues())\n .forEach(s1::addValue)));\n }", "public interface Statistics {\n\n int getBrowseCount();\n\n int getSalesCount();\n}", "public java.util.List<? extends net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.StatsOrBuilder> \n getStatsOrBuilderList() {\n return stats_;\n }", "public Stats2D statistics() {\n Stats2D stats = new Stats2D(data.values);\n stats.run();\n return stats;\n }", "private List<Map<String, Object>> writeStats(final Producer producer) {\n // Create json array for monthly stats\n List<Map<String, Object>> jsonMonthlyStats = new ArrayList<>();\n\n // Convert each of the producer's monthly stats to json objects\n for (int i = 1; i < producer.getMonthlyStats().size(); i++) {\n Map<String, Object> stat = new LinkedHashMap<>();\n ArrayList<Integer> ids = new ArrayList<>();\n\n for (Distributor distributor : producer.getMonthlyStats().get(i)) {\n ids.add(distributor.getId());\n }\n\n Collections.sort(ids);\n\n stat.put(Constants.MONTH, i);\n stat.put(Constants.DISTRIBUTORSID, ids);\n\n jsonMonthlyStats.add(stat);\n }\n return jsonMonthlyStats;\n }", "ch.crif_online.www.webservices.crifsoapservice.v1_00.ScoreAnalysis getScoreAnalysis();", "io.netifi.proteus.admin.om.Metrics getMetrics();", "@GetMapping(\"/scores/alltime\")\n\tpublic ResponseEntity<ArrayNode> getAllTimeTopScores() {\n\t\tArrayNode result = mapper.createArrayNode();\n\t\tList<Object[]> allScores = this.scoreRepo.findAllScores();\n\n\n\t\tfor (int i = 0; i < 10 && i < allScores.size(); i++) {\n\t\t\t// current userId and month score\n\t\t\tObject[] currScore = allScores.get(i);\n\t\t\t// One JSON object\n\t\t\tObjectNode score = mapper.createObjectNode();\n\t\t\t// Convert BigInteger to long and int\n\t\t\tlong userId = ((Number) currScore[0]).longValue();\n\t\t\tint monthScore = ((Number) currScore[1]).intValue();\n\t\t\tCustomUser user = this.userRepo.findById(userId);\n\t\t\tString username = user.getUsername();\n\n\t\t\tscore.put(\"rank\", i + 1);\n\t\t\tscore.put(\"username\", username);\n\t\t\tscore.put(\"user\", userId);\n\t\t\tscore.put(\"score\", monthScore);\n\t\t\tscore.put(\"picId\", user.getPicId());\n\t\t\t// add to result array of JSON objects\n\t\t\tresult.add(score);\n\t\t}\n\t\treturn ResponseEntity.ok().body(result);\n\t}", "public Collection<FrequencyDTO> getSchedulingFrequencies() throws Exception;", "public List<StudentDto> getAllStudents() {\n\t\tList<Student> studentList = studentRepository.findAll();\n\t\tif (ObjectUtils.isEmpty(studentList))\n\t\t\tthrow new ResourceNotFoundException(Constants.noDataFound);\n\n\t\tList<StudentDto> studentDtoList = studentList.stream()\n\t\t\t\t\t\t\t\t\t\t\t\t\t .map(converter::convert)\n\t\t\t\t\t\t\t\t\t\t\t\t\t .collect(Collectors.toList());\t\t\n\t\treturn studentDtoList;\n\t}", "@GetMapping\n public List<ScheduleDTO> getAllSchedules() {\n List<Schedule> scheduleList = scheduleService.getAllSchedules();\n\n List<ScheduleDTO> scheduleDTOList = scheduleList.stream()\n .map(ScheduleController::convertScheduleToScheduleDTO)\n .collect(Collectors.toList());\n return scheduleDTOList;\n }", "@BodyParser.Of(BodyParser.Json.class)\n public static Result getEFSStats(Long efsId, Long fromTimestamp, Long toTimestamp) {\n\n // Generate dates from the provided timestamps\n Date fromDate = new Date(fromTimestamp);\n Date toDate = new Date(toTimestamp);\n\n UserModel efs = UserModel.getById(efsId);\n if (efs == null || !efs.getRole().isGroupRole(UserRole.FA)) {\n return notFound(String.format(\"No EFS found matching ID %s\", efsId));\n }\n\n List<Long> userIds = UserModel.getChildUserModelsByParentAllLevels(efs).stream().map(model -> model.id).collect(Collectors.toList());\n\n userIds.add(efsId);\n List<Referral> referrals = Referral.getByCreatorIdsBetweenDates(userIds, fromDate, toDate);\n List<Referral> productiveReferrals = referrals.stream().filter(referral -> referral.wasProductive).collect(Collectors.toList());\n List<Referral> processingReferrals = referrals.stream().filter(referral -> referral.getStatus().equalsIgnoreCase(\"processing\")).collect(Collectors.toList());\n\n // Generate the models\n Referral totals = Referral.getTotalsBetweenDatesByCreatorIds(userIds, fromDate, toDate);\n EFSStats stats = new EFSStats();\n\n // Populate the data\n stats.setTotalReferrals(referrals.size());\n stats.setTotalProductiveReferrals(productiveReferrals.size());\n stats.setTotalProcessingReferrals(processingReferrals.size());\n stats.setTotalInsurance(totals.gettInsurance());\n stats.setTotalIPS(totals.gettIps());\n stats.setTotalPC(totals.gettPc());\n\n stats.setMostTotalClients(Referral.getByMostTotalClients(userIds, fromDate, toDate));\n stats.setMostProductiveReferrals(Referral.getByMostProductiveClients(userIds, fromDate, toDate));\n stats.setHighestPercentageProductiveReferrals(Referral.getByMostProductiveClientsPercentage(userIds, fromDate, toDate));\n\n // Fill the return data and send it back\n JsonNode referralJson = Json.toJson(stats);\n ObjectNode result = Json.newObject();\n result.put(\"data\", referralJson);\n return ok(result);\n }", "@Override\n public List<Score> getAll() {\n Session session = FACTORY.openSession();\n\n try {\n List<Score> scores = session.createQuery(\"FROM Score s ORDER BY s.value DESC\", Score.class)\n .setMaxResults(MAX_RESULTS)\n .list();\n\n session.close();\n\n return scores;\n } catch (ClassCastException e) {\n LOG.error(\"Error happened during casting query results.\");\n return ImmutableList.of();\n }\n }", "java.util.List<org.landxml.schema.landXML11.DecisionSightDistanceDocument.DecisionSightDistance> getDecisionSightDistanceList();", "@Override\n\tpublic DashboardDto getDashboard() {\t\n\t\t\n\t\tSupplier<DashboardDto> dd = () -> {\n\t\t\tDashboardDto dto = new DashboardDto();\t\t\n\t\t\tdto.setTotalMembers(memberRepository.count());\n\t\t\tdto.setTotalBoards(boardRepository.count());\n\t\t\tdto.setTotalMembers_Payout(bmRepository.countByStatus(\"PAYOUT\"));\n\t\t\tdto.setTotalBoards_Payout(boardRepository.countByBoardStatus(\"PAYOUT\"));\n\t\t\tdto.setTotalMembers_Created_Today(memberRepository.countByDateJoined(LocalDate.now()));\n\t\t\tdto.setTotalBoards_Created_Today(boardRepository.countByLoggedDate(LocalDate.now()));\n\t\t\tdto.setTotalBoards_Payout_Today(boardRepository.countByBoardStatusAndLoggedDate(\"PAYOUT\",LocalDate.now()));\n\t\t\tdto.setUnassigned_Members(memberRepository.countByBoardMemberNull());\n\t\t\treturn dto;\n\t\t};\n\t\t\n\t\treturn dd.get();\n\t}", "List<VoziloDto> sveVozila();", "List<SurveyQuestionDTO> getSurveyQuestionDtos(List<SurveyQuestion> surveyQuestions);", "public ScoreDTO getScore(String u) throws RemoteException {\n\t\tArrayList<Record> arrRecord=dao.getRecords(u);\n\t\treturn as.assemble(arrRecord);\n\t}", "public SPResponse getEngagementMatrix(User user, Object[] param) {\n \n final SPResponse response = new SPResponse();\n \n String startDateStr = (String) param[0];\n String endDateStr = (String) param[1];\n \n Set<String> allGroups = new HashSet<>();\n Set<String> allTags = new HashSet<>();\n LocalDate startDate = !StringUtils.isBlank(startDateStr) ? DateTimeUtil\n .getLocalDate(startDateStr) : LocalDate.now().minusMonths(3);\n LocalDate endDate = !StringUtils.isBlank(endDateStr) ? DateTimeUtil.getLocalDate(endDateStr)\n : LocalDate.now();\n List<UserActivityTracking> userActivity = trackingRepository.findUserActivityTracking(\n user.getCompanyId(), startDate, endDate);\n \n List<UserActivityTrackingDTO> collect = userActivity.stream().map(ua -> {\n User activityUser = userFactory.getUser(ua.getUserId());\n if (activityUser != null && !activityUser.isDeactivated()) {\n \n UserActivityTrackingDTO trackingDTO = new UserActivityTrackingDTO(activityUser, ua);\n trackingDTO.setGender(activityUser.getGender());\n List<String> groups = activityUser.getGroupAssociationList().stream().map(grp -> {\n String name = grp.getName();\n allGroups.add(name);\n return name;\n }).collect(Collectors.toList());\n trackingDTO.setGroups(groups);\n if (activityUser.getTagList() != null) {\n trackingDTO.setTags(activityUser.getTagList());\n allTags.addAll(activityUser.getTagList());\n }\n LocalDate dob = activityUser.getDob();\n LocalDate currentDate = LocalDate.now();\n if (dob != null) {\n int age = (int) dob.until(currentDate, ChronoUnit.YEARS);\n trackingDTO.setAge(age);\n }\n return trackingDTO;\n } else {\n return null;\n }\n \n }).filter(Objects::nonNull).collect(Collectors.toList());\n \n LocalDate localDate = LocalDate.now();\n \n List<TopPracticeTracking> findTopPracticeArea = trackingRepository.findTopPracticeAreaFromDate(\n user.getCompanyId(), localDate.minusMonths(12));\n \n List<TopPracticeAreaDTO> topDto = findTopPracticeArea.stream().map(top -> {\n \n TopPracticeAreaDTO areaDTO = new TopPracticeAreaDTO(top);\n top.getPracticeAreas().stream().forEach(prId -> {\n SPGoal goal = goalFactory.getGoal(prId, user.getUserLocale());\n PracticeAreaDetailsDTO baseGoalDto = new PracticeAreaDetailsDTO(goal);\n areaDTO.getPracticeAreasGoals().add(baseGoalDto);\n });\n return areaDTO;\n }).collect(Collectors.toList());\n \n SpectrumFilter spectrumFilter = new SpectrumFilter();\n spectrumFilter.getFilters().put(Constants.PARAM_GROUPS, allGroups);\n spectrumFilter.getFilters().put(Constants.PARAM_TAGS, allTags);\n spectrumFilter.getFilters().put(Constants.PARAM_AGE, AgeCategory.values());\n \n response.add(\"engagmentMatrixData\", collect);\n response.add(\"startDate\", startDate);\n response.add(\"endDate\", endDate);\n response.add(\"filter\", spectrumFilter);\n response.add(\"topPraticeArea\", topDto);\n \n return response;\n }", "NamedList<Object> getNamedList(boolean showDebugInfo) throws IOException {\n if (dataCollector.getCollectorType().equals(DataCollector.COLLECTOR_TYPE_LIST)) {\n SimpleOrderedMap<Object> mtasResponseList = new SimpleOrderedMap<>();\n // functions\n Map<String, SimpleOrderedMap<Object>> functionList = new HashMap<>();\n if (functionData != null && functionData.containsKey(dataCollector)) {\n HashMap<String, MtasSolrMtasResult> functionDataItem = functionData.get(dataCollector);\n for (Entry<String, MtasSolrMtasResult> entry : functionDataItem.entrySet()) {\n MtasSolrMtasResult functionResult = entry.getValue();\n if (functionResult.dataCollector.getCollectorType().equals(DataCollector.COLLECTOR_TYPE_LIST)) {\n NamedList<Object> functionNamedList = functionResult.getNamedList(showDebugInfo);\n for (int i = 0; i < functionNamedList.size(); i++) {\n if (functionList.containsKey(functionNamedList.getName(i))) {\n SimpleOrderedMap<Object> tmpMap = functionList.get(functionNamedList.getName(i));\n tmpMap.add(entry.getKey(), functionNamedList.getVal(i));\n } else {\n SimpleOrderedMap<Object> tmpMap = new SimpleOrderedMap<>();\n tmpMap.add(entry.getKey(), functionNamedList.getVal(i));\n functionList.put(functionNamedList.getName(i), tmpMap);\n }\n }\n } else {\n throw new IOException(\n \"unexpected function collectorType \" + functionResult.dataCollector.getCollectorType());\n }\n }\n }\n // main result\n Map<String, ?> dataList = dataCollector.getResult().getList();\n for (Entry<String, ?> entry : dataList.entrySet()) {\n SimpleOrderedMap<Object> mtasResponseListItem = new SimpleOrderedMap<>();\n MtasDataItem<?, ?> dataItem = (MtasDataItem<?, ?>) entry.getValue();\n if (this.distances != null && !this.distances.isEmpty()) {\n SimpleOrderedMap<Object> mtasResponseListItemDistance = new SimpleOrderedMap<>();\n for (SubComponentDistance item : this.distances) {\n mtasResponseListItemDistance.add(item.key, item.getDistance().compute(entry.getKey()));\n }\n mtasResponseListItem.add(Distance.NAME, mtasResponseListItemDistance);\n }\n mtasResponseListItem.addAll(dataItem.rewrite(showDebugInfo));\n if (functionList.containsKey(entry.getKey())) {\n mtasResponseListItem.add(\"functions\", functionList.get(entry.getKey()));\n }\n if ((subDataType != null) && (dataItem.getSub() != null)) {\n MtasSolrMtasResult css = new MtasSolrMtasResult(dataItem.getSub(), subDataType, subStatsType, subStatsItems,\n subDistances, subSortType, subSortDirection, subStart, subNumber, functionData);\n if (dataItem.getSub().getCollectorType().equals(DataCollector.COLLECTOR_TYPE_LIST)) {\n if (css.dataCollector.withTotal()) {\n mtasResponseListItem.add(DataCollector.COLLECTOR_TYPE_LIST + \"Total\", css.dataCollector.getSize());\n }\n mtasResponseListItem.add(DataCollector.COLLECTOR_TYPE_LIST, css.getNamedList(showDebugInfo));\n } else if (dataItem.getSub().getCollectorType().equals(DataCollector.COLLECTOR_TYPE_DATA)) {\n mtasResponseListItem.add(DataCollector.COLLECTOR_TYPE_DATA, css.getData(showDebugInfo));\n }\n }\n mtasResponseList.add(entry.getKey(), mtasResponseListItem);\n }\n return mtasResponseList;\n } else {\n throw new IOException(\"only allowed for \" + DataCollector.COLLECTOR_TYPE_LIST);\n }\n }", "List<NominatedStudentDto> showAll();", "@Override\n public Object build() {\n StatsAggregationBuilder stats = AggregationBuilders.stats(this.getName());\n\n for (ParamComposite param : this.getChildren().stream()\n .filter(child -> ParamComposite.class.isAssignableFrom(child.getClass()))\n .map(child -> (ParamComposite) child).collect(Collectors.toList())) {\n switch (param.getName().toLowerCase()) {\n case \"field\":\n stats.field((String)param.getValue());\n }\n }\n\n return stats;\n }", "List<ScoreEntity> findList(int studentId);", "java.util.List<? extends ScoreOrBuilder>\n getScoresOrBuilderList();", "@Embedded\n public Statistics getStatistics() {\n return statistics;\n }", "public void calculateMetrics(){\n //precision\n precisionFinal = precision.stream().mapToDouble(f -> f).sum()/precision.size();\n System.out.print(\"Precision: \");\n System.out.println(precisionFinal);\n //recall\n recallFinal = recall.stream().mapToDouble(f -> f).sum()/recall.size();\n System.out.print(\"Recall: \");\n System.out.println(recallFinal);\n //fMeasures\n fMeausureFinal = fMeasures.stream().mapToDouble(f -> f).sum()/fMeasures.size();\n System.out.print(\"Fmeasure: \");\n System.out.println(fMeausureFinal);\n\n //MAP\n mapFinal = apRes.stream().mapToDouble(d->d).sum()/apRes.size();\n System.out.print(\"Mean Avarage Precision: \");\n System.out.println(mapFinal);\n \n mapLimitedFinal = apResRankedTopLimited.stream().mapToDouble(d->d).sum()/apResRankedTopLimited.size();\n System.out.print(\"Mean Precision at rank 10: \");\n System.out.println(mapLimitedFinal);\n \n //NDCG\n ndcgResultsFinal =0;\n ndcgResults.stream().forEach(l-> {\n //it is always true, only added to ensure that doesnt' break with another examples where some queries doens't have results.\n if(l.size()>0){\n ndcgResultsFinal= l.get(l.size()-1)+ndcgResultsFinal;\n }\n });\n ndcgResultsFinal=ndcgResultsFinal/ndcgResults.size();\n \n System.out.print(\"NDCG: \");\n System.out.println(ndcgResultsFinal);\n }", "private void addStats(\n int index, net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureStatsIsMutable();\n stats_.add(index, value);\n }", "public java.util.List<Score> getScoresList() {\n return scores_;\n }" ]
[ "0.6330005", "0.6011878", "0.59305674", "0.59206724", "0.59177333", "0.5907586", "0.5899694", "0.58661234", "0.5841158", "0.5784846", "0.5781762", "0.57011586", "0.5679659", "0.5671435", "0.56084037", "0.558745", "0.55569094", "0.5535459", "0.55322677", "0.55113655", "0.5490227", "0.5463129", "0.5460055", "0.5450329", "0.5450125", "0.5435544", "0.5431793", "0.5390145", "0.5378382", "0.53601474", "0.53481394", "0.5338309", "0.5311962", "0.53106654", "0.53023463", "0.5283682", "0.5267883", "0.5262379", "0.5259827", "0.525824", "0.5257135", "0.5254992", "0.52510554", "0.52472615", "0.5238606", "0.5229881", "0.5228913", "0.5227497", "0.5221677", "0.5196979", "0.5194169", "0.5184311", "0.51829773", "0.5169588", "0.5165188", "0.5165003", "0.5163449", "0.5157466", "0.51564354", "0.5150762", "0.5148703", "0.51469743", "0.514377", "0.5127566", "0.5112591", "0.5107514", "0.51034725", "0.5100954", "0.5093632", "0.5079167", "0.50736344", "0.5065846", "0.50614417", "0.50608087", "0.5056994", "0.5056584", "0.5054262", "0.50513273", "0.5047395", "0.5042887", "0.5037246", "0.5035692", "0.50336826", "0.5026638", "0.50260633", "0.5025851", "0.5019573", "0.50163674", "0.5015832", "0.50138587", "0.49941015", "0.49937788", "0.4990291", "0.49854913", "0.4984349", "0.49823374", "0.49798954", "0.49633372", "0.4961332", "0.4960016" ]
0.6606773
0
When a player is removed due to inactivity before a game has ended, he or she should also be taken out of the scoreboard
@Test void removePlayersFromScoreBoardWhenRemovingSinglePlayer(){ //make sure map is not empty at beginning of game assertEquals(4, scoreboard.getScore().size()); //add player to the list of players that should be removed List<String> usersToBeRemoved=new ArrayList<>(); usersToBeRemoved.add("A"); //remove players in list scoreboard.removePlayersFromScoreBoard(usersToBeRemoved); //check that players were removed assertEquals(3, scoreboard.getScore().size()); assertEquals(3,scoreboard.getCorrectlyGuessedMysteryWordsPerPlayer().size()); assertFalse(scoreboard.getScore().containsKey("A")); assertFalse(scoreboard.getCorrectlyGuessedMysteryWordsPerPlayer().containsKey("A")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void endGame () {\n gameOver = true;\n System.out.println(\"Game over\");\n timer.cancel();\n }", "void gameOver() {\n if (!running.compareAndSet(true, false)) return;\n for (PlayerController controller : playerControllers) {\n if (controller == null) continue;\n controller.getClient().setPlayerController(null);\n try {\n controller.getClient().notifyGameOver();\n } catch (IOException e) {\n // no need to handle disconnection, game is over\n }\n }\n if (server != null) new Thread(() -> server.removeGame(this)).start();\n }", "public void Gamefinished()\n\t\t{\n\t\t\tplayers_in_game--;\n\t\t}", "public void removeFromGame(){\n this.isInGame = false;\n }", "private void endTurn(){\r\n String currentPlayer = cantStop.getGameBoard().getCurrentPlayer().getName();\r\n\t\tgameOver = cantStop.getGameBoard().endTurn(didBust);\r\n\t\t\r\n\t\tif(gameOver){\r\n\t\t\tstatusLabel.setText(currentPlayer + \r\n\t\t\t\t\t\" wins! Go again?\");\r\n\t\t\tupdate();\r\n\t\t} else {\r\n\t\t\tcantStop.getGameBoard().startNewTurn();\r\n\t\t\tallowNewRoll();\r\n\t\t}\r\n\t}", "public void endsGameAndSetsWinner(Player player) {\n this.winner = player.getId(); \n this.gameStarted = false; \n \n }", "private void gameTimerOnFinish() {\n if (currentScreenGameState == GameState.PLAYING) {\n stopGame();\n }\n }", "private void removePlayerFromLobby() {\n\n //Added Firebase functionality assuming var player is the player who wants to leave the game.\n }", "public void gameOver() {\n this.lives --;\n this.alive = false;\n }", "public void deadPlayer() {\r\n\t\tthis.nbPlayer --;\r\n\t}", "public void endGame() {\n \t\tisOver = true;\n \t\ttimeGameEnded = System.nanoTime();\n \t\tremoveAll();\n \t\trequestFocusInWindow();\n \t}", "@Override\n public void endGame(){\n gameOver = true;\n }", "@Override\n public void timerExpired() {\n //Inform the player they have failed\n if (isEnglish) {\n Toast.makeText(this, LOSS, Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(this, LOSS_CHINESE, Toast.LENGTH_SHORT).show();\n }\n\n //Set visibility for replay button to visible\n replayButton.setVisibility(View.VISIBLE);\n retryButton.setVisibility(View.VISIBLE);\n scoreboardButton.setVisibility(View.VISIBLE);\n }", "public void resign(){\n\t\tif(Main.getInstance().getScreen() instanceof GEngine){\r\n\t\t\tPlayer user = getUserPlayer();\r\n\t\t\tPlayer winner = state.players[user.playerId == 0 ? 1 : 0];\r\n\t\t\t\r\n\t\t\tnew Popup(\"Game over\", true,\r\n\t\t\t\tnew Label(String.format(\"Player %s has won the game!\", winner.getDisplayName()), Assets.SKIN), \r\n\t\t\t\tComponentFactory.createButton(\"OK\", new ClickListener() {\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void clicked(InputEvent event, float x, float y) {\r\n\t\t\t\t\t\tMain.getInstance().setScreen(MainMenu.getInstance());\r\n\t\t\t\t\t\tPopup.getCurrentPopup().close();\r\n\t\t\t\t\t}\r\n\t\t\t\t})).show();\r\n\t\t}\r\n\t\t\r\n\t\tMain.getInstance().games.endGame(this);\r\n\t}", "public void endGame(){\n updateHighscore();\n reset();\n }", "private void inGame() {\n\n if (!ingame) {\n timer.stop();\n\n }\n }", "public void endGame() {\n\t\twaitingPlayers.addAll(players);\n\t\tplayers.clear();\n\t\tfor(ClientThread player: waitingPlayers) {\n\t\t\tplayer.points = 0;\n\t\t\tplayer.clientCards.clear();\n\t\t}\n\t\twinners = 0;\n\t\tlosers = 0;\n\t\tpassCounter = 0;\n\t\tdeck.init();\n\t\tview.changeInAndWait(players.size(), waitingPlayers.size());\n\t\tview.writeLog(\"-------------GAME END--------------\");\n\t\tstatus = \"waiting\";\n\t\tstatusCheck();\n\t}", "public void endGame()\r\n {\r\n for (Cell c : gameBoard.bombList)\r\n {\r\n if (c.isBomb())\r\n {\r\n if (c.getText() == \"X\")\r\n {\r\n c.setId(\"correctFlag\");\r\n }\r\n else\r\n {\r\n c.setId(\"bombClicked\");\r\n }\r\n }\r\n else if (c.getText() == \"X\")\r\n {\r\n c.setId(\"incorrectFlag\");\r\n }\r\n c.setDisable(true);\r\n }\r\n if (gameBoard.emptyRemaining == 0)\r\n {\r\n win();\r\n }\r\n else\r\n {\r\n lose();\r\n }\r\n System.out.println(\"Game Over...\");\r\n scoreBoard.resetBtn.setDisable(false);\r\n }", "public void lose()\r\n {\r\n Alert inputConfirmation = new Alert(Alert.AlertType.INFORMATION);\r\n inputConfirmation.setTitle(\"Game Over!\");\r\n inputConfirmation.setHeaderText(\"You Lose!\");\r\n inputConfirmation.setGraphic(null);\r\n scoreBoard.gameTimer.gameTime.cancel();\r\n\r\n inputConfirmation.showAndWait();\r\n }", "public void endGame() {\n Player player = playerManager.getWinner();\n MainActivity mainActivity = (MainActivity) this.getContext();\n updateLiveComment(\"Winner : \" + player.getName());\n mainActivity.setAlertDialog(player.getName()+\" Wins !\", \"Congratulations\", true);\n }", "public void endTurnCurrent() {\n playerStatus.nActionsDone = 0;\n playerStatus.isActive = false;\n playerStatus.isFirstTurn = false;\n }", "private void endGame() {\n pauseTimer();\n if (!myGameOver && !myWelcome) {\n final int result = JOptionPane.showOptionDialog(null, \n \"Are you sure you want to end this game?\",\n \"End Current Game\", JOptionPane.YES_NO_OPTION,\n JOptionPane.QUESTION_MESSAGE, null, null,\n JOptionPane.NO_OPTION);\n if (result == JOptionPane.YES_OPTION) {\n myGameOver = true;\n repaint();\n } else {\n startTimer();\n }\n }\n }", "protected void quitGame() {\n gameOver = true;\n }", "public void lifeLost() {\n\n\t\tif (invincipleTimer <= currentTickCount) {\n\t\t\tSystem.out.println(\"Life Lost!\");\n\n\t\t\thealth--;\n\t\t\tinvincipleTimer = currentTickCount + invicibleLength;\n\t\t}\n\t}", "public void endGame(int winner){\n this.gameOver = true;\n JLabel statusScreen;\n \n if(winner == 1){\n this.remove(gameGrid);\n statusScreen = new JLabel(new ImageIcon(getClass().getResource(\"/win.jpg\")));\n this.add(statusScreen, BorderLayout.CENTER);\n statusBar.setText(\"You Win !!!\");\n }\n \n else if (winner == 2){\n this.remove(gameGrid);\n statusScreen = new JLabel(new ImageIcon(getClass().getResource(\"/loose.gif\")));\n this.add(statusScreen, BorderLayout.CENTER);\n statusBar.setText(\"You Loose ...\");\n }\n \n else if (winner == 3){\n statusBar.setText(\"Tie\");\n }\n \n else{ \n statusBar.setText(\"Your partner has forfeit!\");\n gameGrid.setEnabled(false);\n }\n }", "void removeFromGame() {\n\t\t// remove from game\n\t\t//only for multi-player\n\t}", "public void lose() {\n status.setText(\"You're finished\");\n gamegoing = false;\n }", "public boolean playerLoses(){\n return (curPlayerRow == curTrollRow && curPlayerCol == curTrollCol);\n }", "public void endGame(){\n\t\tgameRunning = false;\t// set gameRunning to false\n\t\tfinal SnakeGame thisGame = this;\t// store reference to the current game\n\t\tSwingUtilities.invokeLater(new Runnable() {\n public void run() {\n \t// remove our board and scoreboard\n \tgetContentPane().remove(board);\n \tgetContentPane().remove(scoreboard);\n \t// create a game over page\n \tgameOverPage = new GameOver(thisGame, scoreboard.getScore());\n \t// set our board and scoreboard to null\n \tboard = null;\n \tscoreboard = null;\n \t// add the game over page\n \tadd(gameOverPage);\n \t// validate and repaint\n \tvalidate();\n \trepaint();\n }\n\t\t});\t\n\t}", "public void endTurn() {\r\n\t\tSystem.out.println(\"[DEBUG LOG/Game.java] Started endTurn() for player \"+currentPlayer.getNumber());\r\n\t\tturnIsEnding = true;\r\n\r\n\t\t// End turn restrictions\r\n\t\tif (!currentPlayer.isDead() && !currentPlayer.isFree() && !currentPlayer.hasQuit()) {\r\n\t\t\tif (currentPlayer.getPlayArea().getNonPlayedSize() > 0) {\r\n\t\t\t\tgameChannel.sendMessage(\"**[ERROR]** Cannot end turn until all cards in play area are played\").queue();\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tif (mustChoose.size() > 0) {\r\n\t\t\t\tgameChannel.sendMessage(\"**[ERROR]** Cannot end turn until all choices are made\").queue();\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tif (mustTrash.size() > 0) {\r\n\t\t\t\tgameChannel.sendMessage(\"**[ERROR]** Cannot end turn until all trashes are made\").queue();\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t// Don't need to discard\r\n\t\t}\r\n\t\t\r\n\t\t// Mass deletes\r\n\t\tclearMessages();\r\n\t\t\r\n\t\t// If just escaped, send message after clearing\r\n\t\tif (currentPlayer.getCurrentRoom() == 0 && currentPlayer.getPiece().getX() == GlobalVars.playerCoordsPerRoom[39][0]) {\r\n\t\t\t// Update room\r\n\t\t\tcurrentPlayer.setCurrentRoom(39);\r\n\t\t\tif (firstEscapee == currentPlayer) {\r\n\t\t\t\tgameChannel.sendMessage(\":helicopter: **\"+currentName+\"** was the first to escape! They received a **20** :star: **Mastery Token**\\n:skull: Only **4** turn(s) left!\").queue();\r\n\t\t\t} else {\r\n\t\t\t\tgameChannel.sendMessage(\":helicopter: **\"+currentName+\"** escaped in time! They received a **20** :star: **Mastery Token**\");\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Set cards in PlayArea to not played for next time, Undos the Discarded tag\r\n\t\tfor (int i = 0; i < currentPlayer.getPlayArea().getSize(); i++) {\r\n\t\t\tcurrentPlayer.getPlayArea().getCard(i).setPlayed(false);\r\n\t\t\tif (currentPlayer.getPlayArea().getCard(i).toStringHand().contentEquals(\"*[Discarded]*\")) currentPlayer.getPlayArea().getCard(i).setStringInHand();\r\n\t\t}\r\n\t\t\r\n\t\t// Clear swords, skill, boots, etc\r\n\t\tcurrentPlayer.endOfTurnReset();\r\n\t\tmustDiscard.clear();\r\n\t\t\r\n\t\t// Replaces cards in dungeon row. Only one attack per turn\r\n\t\tif (!status.contentEquals(\"over\")) {\r\n\t\t\tboolean hasAttackedThisTurn = false;\r\n\t\t\tfor (int i = 0; i < 6; i++) {\r\n\t\t\t\t// Checks to see if it should replace card\r\n\t\t\t\tif (dungeonRow[i].isBought()) {\r\n\t\t\t\t\tdungeonRow[i] = mainDeck.getNext();\r\n\t\t\t\t\tif (dungeonRow[i].isDragonAttack() && !hasAttackedThisTurn) {\r\n\t\t\t\t\t\tdragonAttack(cubesPerLevel[attackLevel]);\r\n\t\t\t\t\t\thasAttackedThisTurn = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (dungeonRow[i].isHasArrive()) {\r\n\t\t\t\t\t\tdoArriveEffect(dungeonRow[i]);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tmainDeck.removeTop();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// Instantly go on to next player if no dragon attack\r\n\t\t\tif (!hasAttackedThisTurn) {\r\n\t\t\t\tdetermineNextPlayer();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "public abstract void userTurnEnds(long ms);", "public void endGame()\n\t{\n\t\tbuttonPanel.endGameButton.setEnabled(false);\n\t\tstopThreads();\n\t\tsendScore();\n\t}", "public void gameOver() \n {\n ScoreBoard endGame = new ScoreBoard(\"You Lose!\", scoreCounter.getValue());\n addObject(endGame, getWidth()/2, getHeight()/2);\n }", "public void death(){\n World w = getWorld();\n Level l = (Level)w;\n if(l.getPlayersLives().getValue() > 0){\n l.removeLife();\n l.respawn();\n }\n else{\n if(l.getPlayersLives().getValue() == 0){\n Label text = new Label(\"You lose\",50);\n getWorld().addObject(text,(getWorld().getWidth()/2),(getWorld().getHeight()/2));\n l.addScore();\n Scoring st = new Scoring(l.getScore());\n Greenfoot.delay(50);\n Greenfoot.setWorld(st);\n }\n }\n getWorld().removeObject(this);\n }", "void gameResumed();", "public void checkGameEndState() {\n\t\tfor(MapCharacter c : friendlyMissionCriticals) {\n\t\t\tif(!friendlies.contains(c))\n\t\t\t\tthrow new PlayerLosesException();\n\t\t}\n\t\tif(getEnemies().size() == 0)\n\t\t\tthrow new PlayerWinsException();\n\t}", "public void endTurn(){\n game.setNextActivePlayer();\n myTurn = false;\n\n stb.updateData(\"playerManager\", game.getPlayerManager());\n stb.updateData(\"aktivePlayer\", game.getPlayerManager().getAktivePlayer());\n stb.updateData(\"roomList\", game.getRoomManager().getRoomList());\n\n getIntent().putExtra(\"GAME\",game);\n getIntent().putExtra(\"myTurn\", false);\n finish();\n if(!game.getPlayerManager().getPlayerList().get(whoAmI).isDead())\n startActivity(getIntent());\n else\n fcm.unbindListeners();\n }", "@Override\n\tpublic boolean endGame() {\t\n\t\tif (playerScore[0] == MAX_SCORE || playerScore[1] == MAX_SCORE) return true;\n\t\treturn false;\n\t}", "@Override\n\tprotected void onPause() {\n\t\tsuper.onPause();\n\t\tif(typeOfGame==2)\n\t\t{\n\t\t\tmyTimer.cancel();\n\t\t\tisTimerOn = false;\n\t\t}\n\t \n\t}", "public void playerLost()\r\n {\r\n \r\n }", "public abstract void closeScoreboard(Player player);", "private void endGame() {\r\n\r\n m_state.setState(State.ENDING_GAME);\r\n\r\n /* find winner */\r\n for(KimTeam team : m_survivingTeams) {\r\n if(team != null) {\r\n if(!team.isOut()) {\r\n m_winner = team;\r\n }\r\n\r\n //remove survivors from m_teams so not to duplicate stats\r\n m_teams[team.m_freq] = null;\r\n }\r\n }\r\n\r\n /* end poll */\r\n if(m_poll != null) {\r\n m_poll.endPoll(m_winner, m_connectionName);\r\n m_poll = null;\r\n }\r\n\r\n /* display scoresheet */\r\n m_botAction.sendArenaMessage(\"--------Base1--------W--L --------Base2--------W--L --------Base3--------W--L --------Base4--------W--L\");\r\n\r\n if(!m_skipFirstRound) {\r\n printFormattedTeams(m_teams, m_numTeams);\r\n m_botAction.sendArenaMessage(\"------------------------- ------------------------- ------------------------- -------------------------\");\r\n }\r\n\r\n printFormattedTeams(m_survivingTeams, 4);\r\n m_botAction.sendArenaMessage(\"-------------------------------------------------------------------------------------------------------\");\r\n\r\n if(m_winner != null) {\r\n m_botAction.sendArenaMessage(\"Winner: \" + m_winner.toString(), 5);\r\n\r\n for(KimPlayer kp : m_winner) {\r\n Player p = m_botAction.getPlayer(kp.m_name);\r\n\r\n if(p != null && p.isPlaying()) {\r\n m_botAction.warpTo(p.getPlayerID(), 512, 277);\r\n }\r\n }\r\n } else {\r\n m_botAction.sendArenaMessage(\"No winner.\");\r\n }\r\n\r\n updateDB();\r\n\r\n /* announce mvp and clean up */\r\n m_botAction.scheduleTask(new TimerTask() {\r\n public void run() {\r\n m_botAction.sendArenaMessage(\"MVP: \" + m_mvp.m_name, 7);\r\n //refreshScoreboard();\r\n cleanUp();\r\n resetArena();\r\n m_state.setState(State.STOPPED);\r\n }\r\n }, 4000);\r\n }", "public void lose() {\n displayErrorMessage(\"You Lose!\");\n if(controller.aiGame && !controller.loggedIn()){\n controller.switchToLogin();\n } else\n controller.switchToLobby();\n }", "public boolean isGameOver ()\n\t{\n\t\t return lives <= 0;\n\t}", "public synchronized void gameOver(PlayerHandler playerHandler) {\n\n winner();\n\n if (temporaryGame) {\n for (Game game : Server.getGames().values()) {\n if (game.equals(this)) {\n Server.getGames().remove(playerHandler.getGameRoom());\n //return; //(if not commented, does not remove the !fixed game.\n System.out.println(\"game \" + this.name + \" removed from map\");\n }\n }\n }\n\n resetGameRoom();\n\n }", "void stopGame() {\n leader.disconnect();\n opponent.disconnect();\n }", "public void killedByPlayer() {\r\n\t\tscreen.enemiesKilled++;\r\n\t\tMazeCrawler mc = screen.mazeHandler.mazeCrawler;\r\n\t\tint n = 2; //if enemy is large do movement n+1 times\r\n\t\tswitch (enemyType) {\r\n\t\tcase DOWN:\r\n\t\t\tmc.moveDown();\r\n\t\t\tif(large) {for(int i = 0; i < n; i++) mc.moveDown();}\r\n\t\t\tbreak;\r\n\t\tcase LEFT:\r\n\t\t\tmc.moveLeft();\r\n\t\t\tif(large) {for(int i = 0; i < n; i++) mc.moveLeft();}\r\n\t\t\tbreak;\r\n\t\tcase RIGHT:\r\n\t\t\tmc.moveRight();\r\n\t\t\tif(large) {for(int i = 0; i < n; i++) mc.moveRight();}\r\n\t\t\tbreak;\r\n\t\tcase UP:\r\n\t\t\tmc.moveUp();\r\n\t\t\tif(large) {for(int i = 0; i < n; i++) mc.moveUp();}\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\tscreen.enemyDeath.play(.5f);\r\n\t\tdestroy();\r\n\t}", "@Override\n public boolean isGameOver() {\n //TODO Implement this method\n return false;\n }", "public void playerHasInvincibility() {\n\t\tthis.state = canBeKilled;\n\t}", "private void endTurn() {\n currentTurn = getNextPlayer();\n }", "public void endGame() {\n\t\t// If Avengers lose and Loki wins\n\t\tif (!avengersAlive()) {\n\t\t\tca_attack.setEnabled(false);\n\t\t\the_attack.setEnabled(false);\n\t\t\tbw_attack.setEnabled(false);\n\t\t\thulk_attack.setEnabled(false);\n\t\t\tthor_attack.setEnabled(false);\n\t\t\tloki_attack.setEnabled(false);\n\t\t\ttextArea.append(\"\\n G A M E O V E R \\n\");\n\t\t\ttextArea.append(\"Oh no! Avengers lost... Loki conquered earth...\");\n\t\t}\n\t\t\n\t\t// If Loki loses and Avengers win\n\t\telse if (!lokiAlive()) {\n\t\t\tca_attack.setEnabled(false);\n\t\t\the_attack.setEnabled(false);\n\t\t\tbw_attack.setEnabled(false);\n\t\t\thulk_attack.setEnabled(false);\n\t\t\tthor_attack.setEnabled(false);\n\t\t\tloki_attack.setEnabled(false);\n\t\t\ttextArea.append(\"\\n Y O U W O N \\n\");\n\t\t\ttextArea.append(\"Yay! Avengers saved the world from Loki! Nice work!\");\n\t\t}\n\t}", "public void PlayerLeavesGame(String user)\n\t\t{\n\t\t\tplayer_queue.remove(user);\n\t\t}", "public void isGameOver() { \r\n myGameOver = true;\r\n myGamePaused = true; \r\n }", "public void decLives()\n\t{\n\t\tlives--;\n\t\tshipSpawned = false;\t\n\t\tif(lives <= 0)\n\t\t{\n\t\t\tSystem.out.println(\"Game over\");\n\t\t\tif(isSound() && !isPaused())\n\t\t\t\tdeath.play();\n\t\t\tsetGameOver(true);\n\t\t\tnotifyObservers();\n\t\t\treturn;\n\t\t}\n\t\tthis.addPlayerShip();\n\t}", "public void gameEnded() {}", "private void scoreloss() {\n \tif (playerturn%2==0) {\n \tscoreplayer1 = scoreplayer1-1;}\n if(playerturn%2==1) {\n \tscoreplayer2 = scoreplayer2-1;\n }\n }", "boolean GameOver() {\n\t\treturn player.isDead();\n\t}", "private void HandleOnGameOver(Board board, State state, Piece winner){\n\t\tif(state == State.Stopped) {\n\t\t\tthis.setVisible(false);\n\t\t\tthis.dispose();\n\t\t}\n\t}", "public void triggerEndGame()\n\t{\n\t\tif(livesRemaining <= 0)\n\t\t{\n\t\t\tmP[0].stop();\n\t\t\tmP[1].stop();\n\t\t\tmP[2].stop();\n\t\t\tendGame = new Alert(AlertType.CONFIRMATION);\n\t\t\tendGame.setTitle(\"1942\");\n\t\t\tendGame.setHeaderText(null);\n\t\t\tendGame.getButtonTypes().clear();\n\t\t\tendGame.setContentText(\"You're dead! \\nYou finished with \" + p1Score + \" points. \\nWould you like to play again?\");\n\t\t\tendGame.getButtonTypes().addAll(ButtonType.YES, ButtonType.NO);\n\t\t\tendGame.setGraphic(new ImageView(new Image(\"file:images/gameOver.png\")));\n\t\t\tspawnTimerTL.stop();\n\t\t\tmainTimer.stop();\n\t\t\tp1.getNode().setImage(null); //Removes player from screen\n\t\t\tOptional<ButtonType> result = endGame.showAndWait();\n\n\t\t\tif(result.get() == ButtonType.YES)\n\t\t\t{\n\t\t\t\tlivesRemaining = 3;\n\t\t\t\thealthRemaining = 10;\n\t\t\t\tivHealthBar.setImage(imgHealth[healthRemaining]);\n\t\t\t\tivLives.setImage(imgLives[livesRemaining]);\t\n\n\t\t\t\tif (highScore < p1Score)\n\t\t\t\t\thighScore = p1Score;\n\t\t\t\ttry //Writes new high score and throws IO Exception\n\t\t\t\t{\n\t\t\t\tfileWriter = new FileWriter(highScoreSave);\n\t\t\t\tfileWriter.write(String.valueOf(highScore));\n\t\t\t\tfileWriter.close();\n\t\t\t\t}\n\t\t\t\tcatch(IOException e)\n\t\t\t\t{e.printStackTrace();}\n\t\t\t\t\n\t\t\t\tlblHighScore.setText(Integer.toString(highScore));\n\t\t\t\tp1Score = 0;\n\t\t\t\tlblp1score.setText(Integer.toString(p1Score));\n\n\t\t\t\tp1.setDead(false);\n\t\t\t\tmainTimer.start();\n\t\t\t\tspawnTimerTL.play();\n\t\t\t\t\n\t\t\t\tfor(int k = 0; k < enemyPlanes.length; k++)\n\t\t\t\t{\n\t\t\t\t\tenemyPlanes[k].toggleIsDead(true);\n\t\t\t\t\tenemyPlanes[k].setY(2000);\n\t\t\t\t\tenemyPlanes[k].getNode().setLayoutY(enemyPlanes[k].getY());\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif (highScore < p1Score)\n\t\t\t\t\thighScore = p1Score;\n\t\t\t\ttry //Writes new high score and throws IO Exception\n\t\t\t\t{\n\t\t\t\tfileWriter = new FileWriter(highScoreSave);\n\t\t\t\tfileWriter.write(String.valueOf(highScore));\n\t\t\t\tfileWriter.close();\n\t\t\t\t}\n\t\t\t\tcatch(IOException e)\n\t\t\t\t{e.printStackTrace();}\n\t\t\t\tthankYou = new Alert(AlertType.INFORMATION);\n\t\t\t\tthankYou.setTitle(\"1942\");\n\t\t\t\tthankYou.setHeaderText(null);\n\t\t\t\tthankYou.setGraphic(new ImageView(new Image(\"file:images/plane.png\")));\n\t\t\t\tthankYou.setContentText(\"Thank you for playing.\\nGoodbye!\");\n\t\t\t\tthankYou.show();\n\t\t\t\tPlatform.exit();\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\n\t\t}\n\t}", "@Override\n public void RageQuit() {\n //They won't have a score\n timer.stopTimer();\n\n if (view.confirmRageQuit()){\n // Punish them!\n DesktopAudio.getInstance().playPunish();\n grid = game.getSolved();\n for (int i = 0; i < 9; i++){\n for (int j = 0; j < 9; j++){\n view.setGiven(i, j, grid.getNumber(i, j));\n }\n }\n if (view.confirmNewGame()){\n setNextGame();\n }\n }else{\n timer.startTimer();\n }\n }", "public void endGame()\n\t{\n\t\tthis.opponent = null;\n\t\tthis.haveGame = false;\n\t\tthis.isTurn = false;\n\t\tfor(int i = 0; i < 3; i++)\n\t\t{\n\t\t\tfor(int j = 0; j < 3; j++)\n\t\t\t{\n\t\t\t\tboard[i][j] = 0;\n\t\t\t}\n\t\t}\n\t}", "@Override\n \tpublic boolean leave(ArenaPlayer p) {\n \t\treturn true;\n \t}", "public boolean gameEnd(){\r\n return !hasMovements(model.getCurrentPlayer().getColor());\r\n }", "public static void playerEffectivelyEndsBattlePhase() {\r\n for (int index = 1; index <= 5; index++){\r\n SummonedMonster MonsterCPU = SummonedMonster.getNthSummonedMonster(index, false);\r\n if (MonsterCPU.isExisting) {\r\n MonsterCPU.canStillAttackThisTurn = false;\r\n }\r\n }\r\n endAttack(false);\r\n }", "public void endGame(boolean victory)\n {\n timerDisplay.stop();\n if (victory)\n {\n gameWon = true;\n }\n else\n {\n gameLost = true;\n }\n resetButton.repaint();\n for (GameSquare[] row : grid)\n {\n for (GameSquare square : row)\n {\n square.repaint();\n }\n }\n }", "public void lostGame(){\n\t\tSystem.out.println(\"Schade, du hast verloren. Möchtest du es noch einmal versuchen?\");\n\t\tif(!singleplayer){\n\t\t\tif(player.getLifes() == 0){\n\t\t\t\tSystem.out.println(\"Spieler 2 gewinnt!\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"Spieler 1 gewinnt!\");\n\t\t\t}\n\t\t\n\t\t}\n\t\tstopGame();\n\t\tstarted = false;\n\t\tspiel_status = 0;\n\t\tpaintMenu();\n\t}", "private void loseCondition() {\n if (player.getHealth() <= 0) {\n lose();\n }\n }", "public void endGame(Player[] players) { \n int[] ret = calculateScore(players);\n int playerWinnerIdx = 0;\n \n int maxScore = 0;\n for(int i = 0; i < ret.length; i++){\n if(ret[i] > maxScore){\n playerWinnerIdx = i;\n maxScore = ret[i];\n }\n }\n board.setWinningIdx(playerWinnerIdx);\n board.setIsGameEnd(true);\n }", "public void endTurn() {\n \t\t// add new cards to the set of usable cards\n \t\tfor (int i = 0; i < newCards.size(); i++)\n \t\t\tcards[newCards.get(i).ordinal()] += 1;\n \n \t\tnewCards.clear();\n \t\tusedCard = false;\n \n \t\tappendAction(R.string.player_ended_turn);\n \t}", "private void pauseGame() {\n\t\ttimer.cancel();\n\t}", "@Override\n public void onAnimationEnd(Animator animator) {\n proclaimGameOver();\n\n\n }", "public void endTurn(){\n for (int i = 0; i<9; i++){\n if(bSquares.get(i).checkhasFocus()){//finds out which square user is playing in. \"i\" is that square\n for (int j = 0; j<9; j++){\n if (!bSquares.get(i).getSmallSquare(j).isCommitted()&&bSquares.get(i).getSmallSquare(j).getOwnership()>0){\n bSquares.get(i).getSmallSquare(j).setCommitted(true);\n stepsCompleted++;//user just finished his turn!\n updateDatabase(i,j, true); //updates the database with the player's move B4 the focus is changed\n for (int t = 0; t<9; t++){//removes focus everywhere else.\n bSquares.get(t).sethasFocus(false);\n }\n \n bSquares.get(j).sethasFocus(true);//tells which square has focus\n }\n }\n }\n }\n \n }", "public void endOfTurn();", "private void gameEnded() {\n\t\ttimer.stop();\n\t\tlevelStartTimer.stop();\n\n\t\tfinal String name = JOptionPane.showInputDialog(null,\n\t\t\t\t\"Please enter you name: \", \"The game has ended.\", 1);\n\t\tif (name != null) {\n\t\t\tThread thread = new Thread() {\n\t\t\t\tpublic void run() {\n\t\t\t\t\tHighScoreDAO highScoreDAO = HighScoreDAOImpl.getInstance();\n\t\t\t\t\tList<HighScore> highScores = highScoreDAO.getAllHighScore();\n\t\t\t\t\thighScore.setName(name);\n\t\t\t\t\thighScore.setDate(new Date());\n\t\t\t\t\thighScores.add(highScore);\n\t\t\t\t\tCollections.sort(highScores);\n\t\t\t\t\thighScoreDAO.deleteAllHighScore();\n\t\t\t\t\tif (highScores.size() > 10)\n\t\t\t\t\t\tfor (int i = 0; i < 10; ++i)\n\t\t\t\t\t\t\thighScoreDAO.addHighScore(highScores.get(i));\n\t\t\t\t\telse\n\t\t\t\t\t\tfor (HighScore hs : highScores)\n\t\t\t\t\t\t\thighScoreDAO.addHighScore(hs);\n\t\t\t\t}\n\t\t\t};\n\t\t\tthread.start();\n\t\t}\n\n\t\t// fires a new ActionEvent indicating that the game has ended\n\t\tlistener.actionPerformed(new ActionEvent(this,\n\t\t\t\tActionEvent.RESERVED_ID_MAX + 1, \"endgame\"));\n\t}", "@Override\n\tpublic void onGameOver(ReadOnlyBoard board, Counter winner) {\n\n\t}", "@EventHandler\n public void onLog(PlayerQuitEvent e) {\n lastAttack.remove(e.getPlayer());\n }", "@EventHandler(priority = EventPriority.MONITOR)\n public void PlayerQuit(PlayerQuitEvent e){\n plugin.playerIslands.remove(e.getPlayer().getName());\n }", "private void gameEnd(boolean win) {\n timer.stop();\n playing = false;\n if (win) {\n status.setText(\"You win!\");\n int score = (int) (Math.pow(boardWidth, 2) * Math.pow(boardHeight, 2) \n + Math.pow(mines, 3)) / timeElapsed;\n String nickname = JOptionPane\n .showInputDialog(\"Score: \" + Integer.toString(score) \n + \" Please input your nickname: \");\n try {\n BufferedWriter bw = new BufferedWriter(\n new FileWriter(\"files/highscores.txt\", true));\n bw.append(nickname + \",\" + Integer.toString(score) + \"\\n\");\n bw.close();\n } catch (IOException e) {\n System.out.println(\"An error has occurred\");\n }\n } else {\n status.setText(\"You lost.\");\n }\n }", "void playerHit() {\n if (lives == 0) {//if no lives left\n isDead = true;\n } else {//remove a life and reset positions\n lives -=1;\n immortalityTimer = 100;\n resetPositions();\n }\n }", "private void gameOver() {\r\n timer.stop();\r\n if (JOptionPane.showConfirmDialog(this, \r\n \"Game Over!\\nDo you want to play again?\",\r\n FORM_TITLE,JOptionPane.YES_NO_OPTION) == \r\n JOptionPane.YES_OPTION) {\r\n startGame();\r\n }\r\n else { \r\n close();\r\n }\r\n }", "public static void endGameSequence()\n\t{\n\t\ttfBet.setEnabled(false);\n\t\tbtnPlay.setEnabled(false);\n\t\tbtnHit.setEnabled(false);\n\t\tbtnStay.setEnabled(false);\n\t\tbtnDouble.setEnabled(false);\n\t\tlblUpdate.setText(\"Game over! You are out of money!\");\n\t}", "public void finishGame(){\r\n\t\t\t\tgameStarted = false;\r\n\t\t\t}", "public void gameOver() {\r\n\t\tgameFrame.gameOver();\r\n\t\tnotifyViews();\r\n\t}", "public boolean isGameOver() {\r\n\treturn false;\r\n }", "private void userDidLeave() {\n DeviceSingleton deviceSingleton = DeviceSingleton.getInstance();\n deviceSingleton.setImInARoom(false);\n deviceSingleton.setJoinedChat(false);\n\n SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);\n SharedPreferences.Editor editor = prefs.edit();\n editor.putBoolean(\"savedJoinedChat\", false);\n editor.commit();\n Intent intent2 = new Intent(ShowMapActivity.this, LoginActivity.class);\n startActivity(intent2);\n// break;\n\n }", "private GameResponse endGame() {\n if(gameResponse.getScore() > 0) {\n gameResponse.getPlayer().setHighScore(gameResponse.getScore());\n playerService.save(gameResponse.getPlayer());\n }\n gameResponse.setNewGame(true);\n return gameResponse;\n }", "@Override\n\tpublic boolean isGameTied() {\t\n\t\treturn false;\n\t}", "public void endTurn() {\n if (getActiveColor() == Piece.COLOR.RED) {\n setActivePlayer(Piece.COLOR.WHITE);\n } else {\n setActivePlayer(Piece.COLOR.RED);\n }\n }", "public boolean gameOver(){\n\t\treturn this.lives < 1;\n\t}", "private void gameEnd() {\n\tserver.publicMessage(\"The mafia were: \" + mafiaAtStart);\r\n\r\n\tgameInProgress = false;\r\n\tplayers.clear();\r\n\tmafia.clear();\r\n\tinnocentIDs.clear();\r\n\tserver.unMuteAllPlayers();\r\n }", "public void gameOver(){\n\t\tstatus.setGameStarted(false);\n\t\tstatus.setGameOver(true);\n\t\tgameScreen.doNewGame();\n\t\tsoundMan.StopMusic();\n\t\n\t\t// delay to display \"Game Over\" messa\tprivate Object rand;\n\n\t\tTimer timer = new Timer(3000, new ActionListener(){\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tstatus.setGameOver(false);\n\t\t\t}\n\t\t});\n\t\ttimer.setRepeats(false);\n\t\ttimer.start();\n\t}", "@Override\n public void onPeerDeclined(Room room, List<String> strings) {\n if (!mPlaying && shouldCancelGame(room)) {\n if (timer!= null)\n timer.cancel();\n if (mRoomId != null)\n Games.RealTimeMultiplayer.leave(getApiClient(), this, mRoomId);\n getWindow().clearFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);\n }\n }", "public void endTurn()\n {\n revealedCardsScreen.setVisible(false);\n accusationScreen.setVisible(false);\n\n this.played = false;\n\n //call client controller's end turn method\n clientController.endTurn();\n }", "@Override\r\n\tpublic void endTurn() {\n\t\t\r\n\t}", "private void loseLife() {\n\t\t--lives;\n\t\tupdateLives();\n\t\tcreatePlayerExplosion();\n\t\tplayer.show(false);\n\t\tif (lives <= 0) {\n\t\t\tgameOver();\n\t\t} else {\n\t\t\tplayerDead = true;\n\t\t\tplayerDeadTimeLeft = playerDeadTime;\n\t\t}\n\t}", "@Override\n\tprotected void onStop() {\n\t\tsuper.onStop();\n\t\tif(!gameOverBool){\n\t\t\ttry{\n\t\t\t\tsoundHandler.getSoundPool().autoPause();\n\t\t\t\tsoundHandler.getSoundPool().release();\n\t\t\t\tgarbagegame.stopGame();\n\t\t\t\tLog.d(\"On Stop\", \"Called cancel timers\");\n\t\t\t} catch(Exception e) {\n\t\t\t\tLog.d(\"On Stop\", \"exception caught\");\n\t\t\t}\n\t\t}else{\n\t\t\toverDialog.dismiss();\n\t\t}\n\t\tfinish();\n\t\t\n\t\t\n\t}", "private void endGame(){\n synchronized (lock){\n out.println(\"\\r\\n###GAME OVER###\\r\\n\");\n out.println(\"The winner(s) are:\");\n updatePlayersWorth();\n Collections.sort(playerList);\n out.println(playerList.get(0).getName() + \": £\" + playerList.get(0).getPlayerWorth());\n for (int i = 1; i < playerList.size(); i++) {\n if(playerList.get(0).getPlayerWorth() == playerList.get(i).getPlayerWorth()){\n out.println(playerList.get(i).getName() + \": £\" + playerList.get(i).getPlayerWorth());\n }\n }\n }\n }", "public boolean isGameOver();", "public boolean isGameOver();", "private void gameOver() {\n\t\t\n\t}", "public void gameOver() {\n tb.setState();\n Date finalDate = new Date();\n float currTime = (finalDate.getTime() - start) / 1000F;\n Intent intent = new Intent(getContext(), TrueBlueOverActivity.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);\n\n intent.putExtra(\"Score\", score);\n\n intent.putExtra(\"Time\", currTime);\n\n intent.putExtra(\"Level\", level);\n getContext().startActivity(intent);\n }" ]
[ "0.68625903", "0.6775544", "0.6703596", "0.6695829", "0.6665277", "0.6648259", "0.6630333", "0.6629944", "0.6555924", "0.65555704", "0.65310436", "0.65309244", "0.65199125", "0.65087044", "0.6481631", "0.64632946", "0.6442781", "0.6439549", "0.64323956", "0.6401361", "0.6399767", "0.63821554", "0.6361572", "0.6330584", "0.6305385", "0.6265407", "0.6250212", "0.62495345", "0.6243923", "0.6232667", "0.6232404", "0.6217756", "0.6213485", "0.6208063", "0.6196656", "0.6188491", "0.6169162", "0.6155114", "0.6153713", "0.615062", "0.6142397", "0.6135992", "0.6132431", "0.61313844", "0.6118373", "0.61122406", "0.6112024", "0.610431", "0.61013687", "0.6089227", "0.608785", "0.6080773", "0.6076875", "0.60694027", "0.6068869", "0.6066788", "0.6064244", "0.60611427", "0.60609627", "0.60564923", "0.6053387", "0.60516995", "0.6050481", "0.6045372", "0.60292274", "0.6009442", "0.6007671", "0.6003981", "0.60008687", "0.5999662", "0.5998339", "0.5996534", "0.5989904", "0.5988075", "0.59775585", "0.59672904", "0.5966791", "0.5954416", "0.5939981", "0.5930159", "0.592636", "0.59231466", "0.59205204", "0.5916444", "0.5914406", "0.5912897", "0.5911742", "0.59106016", "0.5905171", "0.58910483", "0.5890373", "0.5886771", "0.58837575", "0.5882618", "0.58791584", "0.58709425", "0.5858788", "0.58577263", "0.58577263", "0.5847107", "0.584377" ]
0.0
-1
make sure map is not empty at beginning of game
@Test void removePlayersFromScoreBoardWorksWhenAllPlayersAreRemovedAtOnce(){ assertEquals(4, scoreboard.getScore().size()); //add all players to the list of players that should be removed List<String> usersToBeRemoved=new ArrayList<>(); usersToBeRemoved.add("A"); usersToBeRemoved.add("B"); usersToBeRemoved.add("C"); usersToBeRemoved.add("D"); //remove players scoreboard.removePlayersFromScoreBoard(usersToBeRemoved); //check that players were removed assertTrue(scoreboard.getScore().isEmpty()); assertTrue(scoreboard.getCorrectlyGuessedMysteryWordsPerPlayer().isEmpty()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void mapCheck(){\n\t\tfor(int x = 0; x < Params.world_width; x = x + 1){\n\t\t\tfor(int y = 0; y < Params.world_height; y = y + 1){\n\t\t\t\tif(map[x][y] > 1){\n\t\t\t\t\t//System.out.println(\"Encounter Missing. Position: (\" + x + \",\" + y + \").\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public abstract void createEmptyMap(Game game, boolean[][] landMap);", "public abstract void createEmptyMap(Game game, boolean[][] landMap);", "private void begin(){\n for(int i = 0; i < height; i++){ //y\n for(int j = 0; j < width; j++){ //x\n for(int k = 0; k < ids.length; k++){\n if(m.getTileids()[j][i].equals(ids[k])){\n map[j][i] = Handler.memory.getTiles()[k];\n //Handler.debug(\"is tile null: \" + (Handler.memory.getTiles()[k] == null));\n \n k = ids.length;\n }else if(k == (ids.length - 1)){\n Handler.debug(\"something went wrong\", true);\n\n }\n }\n }\n }\n mt.setCleared(clear);\n mt.setMap(map);\n \n \n }", "@Test\n public void TEST_UR_MAP_LENGTH() {\n Object[] objects = loadSave(\"emptyRiver\");\n Map map = (Map) objects[0];\n Player player = (Player) objects[1];\n AI[] opponents = (AI[]) objects[2];\n boolean[] NO_KEYS_PRESSED = {false, false, false, false};\n\n for (int i = 0; i < 60*30; i++) {\n map.stepWorld(player, opponents);\n player.updatePlayer(NO_KEYS_PRESSED, Gdx.graphics.getDeltaTime());\n }\n assertFalse(player.hasFinished());\n\n for (int i = 0; i < 60*30; i++) {\n map.stepWorld(player, opponents);\n player.updatePlayer(NO_KEYS_PRESSED, Gdx.graphics.getDeltaTime());\n }\n assertTrue(player.hasFinished());\n }", "private void tryARender() {\n \t\tif (Minecraft.theMinecraft.thePlayer == null)\n \t\t\treturn;\n \t\ttry {\n \t\t\tif (MinimapConfig.getInstance().isEnabled() && map.isDirty(Minecraft.theMinecraft.thePlayer.posX, Minecraft.theMinecraft.thePlayer.posZ)) {\n \t\t\t\tmapCalc();\n \t\t\t\tmap.timer = 1;\n \t\t\t}\n \t\t} catch (RuntimeException e) {\n \t\t\tthrow e;\n \t\t} finally {\n \t\t\tmap.timer++;\n \t\t}\n \t}", "private void setUpMapIfNeeded() {\n if (map == null) {\n map = fragMap.getMap();\n if (map != null) {\n setUpMap();\n }\n }\n }", "@Override\n public boolean isEmpty() {\n return map.isEmpty();\n }", "public void loadMap() {\n\t\tchests.clear();\r\n\t\t// Load the chests for the map\r\n\t\tchestsLoaded = false;\r\n\t\t// Load data asynchronously\r\n\t\tg.p.getServer().getScheduler().runTaskAsynchronously(g.p, new AsyncLoad());\r\n\t}", "public void buildEmptyMap() {\n this.emptyMap = new BufferedImage(this.boulderDashModel.getArea().getDimensionWidth() * zoom, this.boulderDashModel.getArea().getDimensionHeight() * zoom, BufferedImage.TYPE_INT_RGB);\n final Graphics2D graphics = (Graphics2D) this.emptyMap.getGraphics();\n graphics.drawImage(this.boulderDashModel.getArea().getImage(), 0, 0, this.boulderDashModel.getArea().getDimensionWidth() * zoom, this.boulderDashModel.getArea().getDimensionHeight() * zoom, null);\n }", "private void refillMap()\n {\n List<Block> blocks = map.getAllBlocks();\n blocks.forEach(block ->\n {\n if(block.isSpawnPoint())\n {\n while(!block.isAllWeaponsPresent() && !weaponCardDeck.isEmpty())\n {\n block.addWeaponCard(weaponCardDeck.getFirstCard());\n }\n }\n else\n {\n if(!block.isAmmoCardPresent())block.setAmmoCard(ammoCardDeck.getFirstCard());\n }\n });\n }", "public void initializeMap() {\n\t\tgameMap = new GameMap(GameMap.MAP_HEIGHT, GameMap.MAP_WIDTH);\n\t\tgameMap.initializeFields();\n\t}", "public void loadMapGame(LoadedMap map)throws BadMapException{\n ArrayList<Boat> boats = createLoadedBoats(map);\n\n Board board = new Board(map.getInterMatrix().length, map.getInterMatrix()[0].length, 0);\n\n //CREATE A GAME\n GameData gameData = new GameData(board, boats, false);\n\n //POSITION BOATS INTO MATRIX\n loadPosBoats(gameData);\n Game.getInstance().setGameData(gameData);\n Game.getInstance().setEnded(false);\n }", "private void setUpMap() {\n if (points.size()>2) {\n drawCircle();\n }\n\n\n }", "public Map() {\n\t\t//intially empty\n\t}", "@Test\n public void initializeTest()\n {\n assertEquals(0, map.size());\n }", "public abstract void createMap(Game game) throws FreeColException;", "public abstract void createMap(Game game) throws FreeColException;", "private void setUpMapIfNeeded() {\n \tif (mMap == null) {\r\n \t\t//Instanciamos el objeto mMap a partir del MapFragment definido bajo el Id \"map\"\r\n \t\tmMap = ((MapFragment) getFragmentManager().findFragmentById(R.id.map)).getMap();\r\n \t\t// Chequeamos si se ha obtenido correctamente una referencia al objeto GoogleMap\r\n \t\tif (mMap != null) {\r\n \t\t\t// El objeto GoogleMap ha sido referenciado correctamente\r\n \t\t\t//ahora podemos manipular sus propiedades\r\n \t\t\t//Seteamos el tipo de mapa\r\n \t\t\tmMap.setMapType(GoogleMap.MAP_TYPE_NORMAL);\r\n \t\t\t//Activamos la capa o layer MyLocation\r\n \t\t\tmMap.setMyLocationEnabled(true);\r\n \t\t\t\r\n \t\t\tAgregarPuntos();\r\n \t\t\t\r\n \t\t\t\r\n \t\t}\r\n \t}\r\n }", "@Test\n\tpublic void testIllegalMapNoLimitsTest1() {\n\t\ttry {\n\t\t\tmapFactory.initializeGameState(\"./src/Mapfiles/NightlyTests/IllegalMapNoLimits1\", 1, rng, gs);\n\t\t} catch (IOException e) {\n\t\t\tfail(\"Expected IllegalArgumentException\");\n\t\t} catch (IllegalArgumentException e) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tfail(\"Expected IllegalArgumentException\");\n\t}", "private boolean checkReady() {\n if (mMap == null) {\n Toast.makeText(this, \"Map not ready!\", Toast.LENGTH_SHORT).show();\n return false;\n }\n return true;\n }", "@Override\r\n public void clear() {\r\n map.clear();\r\n }", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn map.isEmpty();\n\t}", "public void loadMap(Player player) {\r\n\tregionChucks = RegionBuilder.findEmptyChunkBound(8, 8); \r\n\tRegionBuilder.copyAllPlanesMap(235, 667, regionChucks[0], regionChucks[1], 8);\r\n\t\r\n\t}", "public void initMap() {\n\t\tmap = new Map();\n\t\tmap.clear();\n\t\tphase = new Phase();\n\t\tmap.setPhase(phase);\n\t\tmapView = new MapView();\n\t\tphaseView = new PhaseView();\n\t\tworldDomiView = new WorldDominationView();\n\t\tcardExchangeView = new CardExchangeView();\n\t\tphase.addObserver(phaseView);\n\t\tphase.addObserver(cardExchangeView);\n\t\tmap.addObserver(worldDomiView);\n\t\tmap.addObserver(mapView);\n\t}", "private void fillMap() {\n\t\tObject tile = new Object();\n\t\tfor(int x = 0; x < map.length; x++) {\n\t\t\tfor(int y = 0; y < map.length; y++) {\n\t\t\t\tmap[x][y] = tile;\n\t\t\t}\n\t\t}\n\t}", "private void setUpMapIfNeeded() {\n if (mMap == null) {\r\n // Try to obtain the map from the SupportMapFragment.\r\n mMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map))\r\n .getMap();\r\n // Check if we were successful in obtaining the map.\r\n if (mMap != null) {\r\n setUpMap();\r\n }\r\n }\r\n }", "private void setUpMapIfNeeded() {\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n mMap = ((MapFragment) getFragmentManager().findFragmentById(R.id.map))\n .getMap();\n // Check if we were successful in obtaining the map.\n if (mMap != null) {\n setUpMap();\n }\n }\n }", "private void generate()\r\n {\r\n mapPieces = myMap.Generate3();\r\n mapWidth = myMap.getMapWidth();\r\n mapHeight = myMap.getMapHeight();\r\n }", "private void setUpMapIfNeeded() {\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n \tmMap = ((com.google.android.gms.maps.MapFragment) getFragmentManager().findFragmentById(R.id.map)).getMap();\n \t// Check if we were successful in obtaining the map.\n \tif (mMap != null) {\n \t\tmakeMarkers();\n \t\tloadMarkersFromParse();\n \t}\n }\n \n }", "@Override\n\tpublic boolean isEmpty() \n\t{\n\t\treturn this.map.isEmpty();\n\t}", "public final void clear() { _map.clear(); }", "private void setUpMapIfNeeded() {\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n mMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map))\n .getMap();\n // Check if we were successful in obtaining the map.\n if (mMap != null) {\n mMap.setOnMapLoadedCallback(new GoogleMap.OnMapLoadedCallback() {\n @Override\n public void onMapLoaded() {\n\n setUpMap();\n\n }\n });\n }\n }\n }", "@Test\n\tpublic void testIllegalMapZeroCostsTest() {\n\t\ttry {\n\t\t\tmapFactory.initializeGameState(\"./src/Mapfiles/NightlyTests/IllegalMapZeroCostsTest\", 1, rng, gs);\n\t\t} catch (IOException e) {\n\t\t\tfail(\"Expected IllegalArgumentException\");\n\t\t} catch (IllegalArgumentException e) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tfail(\"Expected IllegalArgumentException\");\n\t}", "private void setUpMapIfNeeded() {\n // Do a null check to confirm that we have not already instantiated the map.\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n mMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map))\n .getMap();\n // Check if we were successful in obtaining the map.\n if (mMap != null) {\n setUpMap();\n }\n }\n }", "public void clear() {\n map.clear();\n }", "public void clear() {\n map.clear();\n }", "private void setUpMapIfNeeded() {\n\t\tif (mMap == null) {\n\t\t\t// Try to obtain the map from the SupportMapFragment.\n\t\t\tmMap = ((SupportMapFragment) getSupportFragmentManager()\n\t\t\t\t\t.findFragmentById(R.id.map1)).getMap();\n\t\t\t// Check if we were successful in obtaining the map.\n\t\t\tif (mMap != null) {\n\t\t\t\tsetUpMap();\n\t\t\t}\n\t\t}\n\t}", "private void setUpMapIfNeeded() {\n if ( googleMap == null) {\r\n\r\n // Try to obtain the map from the SupportMapFragment.\r\n googleMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.routesMap)).getMap();\r\n // Check if we were successful in obtaining the map.\r\n if (googleMap != null) {\r\n setUpMap();\r\n }\r\n }\r\n }", "private void setUpMapIfNeeded() {\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n mMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map))\n .getMap();\n // Check if we were successful in obtaining the map.\n if (mMap != null) {\n setUpMap();\n }\n }\n }", "private void setUpMapIfNeeded() {\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n mMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map))\n .getMap();\n // Check if we were successful in obtaining the map.\n if (mMap != null) {\n setUpMap();\n }\n }\n }", "private void setUpMapIfNeeded() {\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n mMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map))\n .getMap();\n // Check if we were successful in obtaining the map.\n if (mMap != null) {\n setUpMap();\n }\n }\n }", "public void clear() { \r\n\t\tmap.clear();\r\n\t}", "void willChooseGameMap() throws RemoteException;", "private boolean setUpMapIfNeeded() {\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n mMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map))\n .getMap();\n\n if (mMap == null) {\n Log.e(TAG, \"Can not find map\");\n return false;\n }\n\n // Check if we were successful in obtaining the map.\n if (mMap != null) {\n setUpMap();\n }\n }\n\n if (bCurrentPos!= null)\n bCurrentPos.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n goCurrentLocation(mMap);\n }\n });\n\n return true;\n\n }", "private void growMap() {\n\t\tshort chunkId;\n\n\t\t// Fill until full\n\t\twhile (end % STORED_CHUNKS != currChunk % STORED_CHUNKS || end == 0) {\n\t\t\tchunkId = (short) random.nextInt(chunks.length);\n\t\t\tmap[end % STORED_CHUNKS] = chunkId;\n\t\t\tchunks[chunkId].setupToStage(stage, end * MapChunk.WIDTH * tileSize, 0);\n\t\t\tend++;\n\t\t}\n\t}", "@Override\n\tpublic boolean clear() \n\t{\n\t\tthis.map.clear();\n\t\treturn true;\n\t}", "public boolean isEmpty() {\n return map.isEmpty();\n }", "private void setUpMapIfNeeded() {\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n mMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.mapView2))\n .getMap();\n // Check if we were successful in obtaining the map.\n if (mMap != null) {\n setUpMap( lat, longi, \"ISS/ NUS\");\n }\n }\n }", "public void clear()\n {\n getMap().clear();\n }", "public void clear() {\n\t\tmap.clear();\n\t}", "public void clearMap() {\n if (mMap != null) {\n mMap.clear();\n }\n }", "public void loadMap(){\n level= dataBase.getData(\"MAP\",\"PLAYER\");\n }", "public int[] updateMap() {\r\n\t\tint[] isObstacle = super.updateMap();\r\n\t\tsmap.setMap(map);\r\n\t\treturn isObstacle;\r\n\t}", "private void setUpMapIfNeeded() {\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n mMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map))\n .getMap();\n // Check if we were successful in obtaining the map.\n if (mMap != null) {\n try {\n\t\t\t\t\tsetUpMap();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n }\n }\n }", "private void generateMap() {\n\n\t\t//Used to ensure unique locations of each Gameboard element\n\t\tboolean[][] spaceUsed = new boolean[12][12];\n\n\t\t//A running total of fences generated\n\t\tint fencesGenerated = 0;\n\n\t\t//A running total of Mhos generated\n\t\tint mhosGenerated = 0;\n\n\t\t//Fill the board with spaces and spikes on the edge\n\t\tfor (int i = 0; i < 12; i++) {\n\t\t\tfor (int j = 0; j < 12; j++) {\n\t\t\t\tmap[i][j] = new BlankSpace(i, j, board);\n\t\t\t\tif (i == 0 || i == 11 || j ==0 || j == 11) {\n\t\t\t\t\tmap[i][j] = new Fence(i, j, board);\n\t\t\t\t\tspaceUsed[i][j] = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//Generate 20 spikes in unique locations\n\t\twhile (fencesGenerated < 20) {\n\t\t\tint x = 1+(int)(Math.random()*10);\n\t\t\tint y = 1+(int)(Math.random()*10);\n\n\t\t\tif(spaceUsed[x][y]==false) {\n\t\t\t\tmap[x][y] = new Fence(x, y, board);\n\t\t\t\tspaceUsed[x][y] = true;\n\t\t\t\tfencesGenerated++;\n\t\t\t}\n\t\t}\n\n\t\t//Generate 12 mhos in unique locations\n\t\twhile (mhosGenerated < 12) {\n\t\t\tint x = 1+(int)(Math.random()*10);\n\t\t\tint y = 1+(int)(Math.random()*10);\n\n\t\t\tif(spaceUsed[x][y]==false) {\n\t\t\t\tmap[x][y] = new Mho(x, y, board);\n\n\t\t\t\tmhoLocations.add(x);\n\t\t\t\tmhoLocations.add(y);\n\n\t\t\t\tspaceUsed[x][y] = true;\n\n\t\t\t\tmhosGenerated++;\n\t\t\t}\n\t\t}\n\n\t\t//Generate a player in a unique location\n\t\twhile (true) {\n\t\t\tint x = 1+(int)(Math.random()*10);\n\t\t\tint y = 1+(int)(Math.random()*10);\n\n\t\t\tif(spaceUsed[x][y]==false) {\n\t\t\t\tmap[x][y] = new Player(x, y, board);\n\t\t\t\tplayerLocation[0] = x;\n\t\t\t\tplayerLocation[1] = y;\n\t\t\t\tnewPlayerLocation[0] = x;\n\t\t\t\tnewPlayerLocation[1] = y;\n\t\t\t\tspaceUsed[x][y] = true;\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}", "private void setUpMapIfNeeded() {\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n mMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map))\n .getMap();\n // Check if we were successful in obtaining the map.\n if (mMap != null) {\n try {\n setUpMap();\n } catch (JSONException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n }", "public void clearStateToPureMapState() {\n for (int i = 0; i < cells.size(); i++) {\n if (cells.get(i) == CellState.Chosen || cells.get(i) == CellState.ToPlaceTower || cells.get(i) == CellState.Tower) {\n cells.set(i, CellState.Grass);\n }\n }\n }", "public void clear() {\r\n this.map.clear();\r\n }", "@Override\n\tpublic void onResume() {\n\t\tsuper.onResume();\n\t\tif(map!=null)\n\t\t{\n\t\t\tsetup();\n\t\t}\n\t}", "public void InitMap() {\n for (int i=0; i<m_mapSize; i++) {\n SetColour(i, null);\n }\n }", "@Test\n public void testFullMap() throws FactoryException {\n Game g = parser.parseMap(map);\n Board b = g.getBoard();\n\n // did we recognize the right sprites?\n assertEquals(SpriteType.EMPTY, b.spriteTypeAt(1, 4));\n assertEquals(SpriteType.PLAYER, b.spriteTypeAt(2, 2));\n assertEquals(SpriteType.GHOST, b.spriteTypeAt(1, 2));\n assertEquals(SpriteType.WALL, b.spriteTypeAt(0, 0));\n assertEquals(SpriteType.FOOD, b.spriteTypeAt(2, 1));\n assertEquals(SpriteType.SUPERGUM, b.spriteTypeAt(1,1));\n assertEquals(SpriteType.GHOSTBLINKY, b.spriteTypeAt(1,5));\n assertEquals(SpriteType.GHOSTCLYDE, b.spriteTypeAt(2,5));\n assertEquals(SpriteType.GHOSTINKY, b.spriteTypeAt(3,5));\n assertEquals(SpriteType.GHOSTPINKY, b.spriteTypeAt(4,5));\n\n // did we properly set the player?\n assertEquals(g.getPlayer(), b.spriteAt(2, 2));\n\n // were all ghosts added?\n assertEquals(5, g.getGhosts().size());\n\n // was the food actually added?\n final int cellsWithFoodCount = 3;\n final int cellsWithSuperGumCount = 4;\n assertEquals(cellsWithFoodCount * Food.DEFAULT_POINTS + cellsWithSuperGumCount* SuperGum.DEFAULT_POINTS,\n g.getPointManager().totalFoodInGame());\n }", "private void setUpMapIfNeeded() {\n if (mMap == null) {\n SupportMapFragment mapFragment = (SupportMapFragment) getSupportFragmentManager()\n .findFragmentById(R.id.map);\n mapFragment.getMapAsync(this);\n }\n }", "private void setUpMapIfNeeded() {\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n mMap = mMapFragment.getMap();\n // Check if we were successful in obtaining the map.\n if (mMap != null) {\n Log.i(TAG, \"Yes, we have a google map...\");\n setUpMap();\n } else {\n // means that Google Service is not available\n form.dispatchErrorOccurredEvent(this, \"setUpMapIfNeeded\",\n ErrorMessages.ERROR_GOOGLE_PLAY_NOT_INSTALLED);\n }\n\n }\n }", "public void resetMap() {\n for (int x = 0; x < cells; x++) {\n for (int y = 0; y < cells; y++) {\n Node current = map[x][y];\n if (current.getType() == 4 || current.getType() == 5)\n map[x][y] = new Node(3, x, y);\n }\n }\n\n if (startx > -1 && starty > -1) { //RESET THE START AND FINISH\n map[startx][starty] = new Node(0, startx, starty);\n map[startx][starty].setJumps(0);\n }\n\n if (finishx > -1 && finishy > -1)\n map[finishx][finishy] = new Node(1, finishx, finishy);\n\n reset(); //RESET SOME VARIABLES\n }", "private void setUpMapIfNeeded() {\n // Do a null check to confirm that we have not already instantiated the map.\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n mMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map))\n .getMap();\n mMap.setOnMarkerDragListener(this);\n // Check if we were successful in obtaining the map.\n if (mMap != null) {\n setUpMap();\n }\n }\n }", "private void startGame() {\r\n\t\tthis.gameMap.startGame();\r\n\t}", "private void setUpMapIfNeeded() {\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n mMapFragment = ((SupportMapFragment)getSupportFragmentManager().findFragmentById(R.id.fragment_show_place_info_map));\n mMap = mMapFragment.getMap();\n // Check if we were successful in obtaining the map.\n if (mMap != null) {\n setUpMap();\n }\n }\n }", "private void createMaps() {\r\n\t\tint SIZE = 100;\r\n\t\tint x = 0, y = -1;\r\n\t\tfor (int i = 0; i < SIZE; i++) {\r\n\t\t\tif (i % 10 == 0) {\r\n\t\t\t\tx = 0;\r\n\t\t\t\ty = y + 1;\r\n\t\t\t}\r\n\t\t\tshipStateMap.put(new Point(x, y), 0);\r\n\t\t\tshipTypeMap.put(new Point(x, y), 0);\r\n\t\t\tx++;\r\n\t\t}\r\n\t}", "public boolean isEmpty() {\n return map.isEmpty();\n }", "public MapGenerator(GameMap map) {\n\n gameMap = map;\n setGuiHashMap();\n firstCountryFlag=true;\n validator = new MapValidator(gameMap);\n }", "@Test\n\tpublic void mapBlackTest() {\n\t\ttry {\n\t\t\tmapFactory.initializeGameState(\"./src/TestScript/Maps/map-BLACK\", 1, rng, gs);\n\t\t} catch (IOException e) {\n\t\t\tfail(\"IllegalArgumentException expected\");\n\t\t} catch (IllegalArgumentException e) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tfail(\"IllegalArgumentException expected\");\n\t}", "private void setUpMapIfNeeded() {\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n mMap = ((MapFragment) getFragmentManager().findFragmentById(R.id.map))\n .getMap();\n // Check if we were successful in obtaining the map.\n if (mMap != null) {\n Intent info = getIntent();\n setUpMap(new LatLng(info.getDoubleExtra(\"latitude\", 0), info.getDoubleExtra(\"longitude\", 0)), info.getStringExtra(\"name\"));\n }\n }\n }", "private void setUpMapIfNeeded() {\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n SupportMapFragment mapFragment = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map));\n mapFragment.getMapAsync(this);\n mMap = mapFragment.getMap();\n\n }\n }", "public boolean isEmpty() {\r\n return this.map.isEmpty();\r\n }", "private void updateMap() {\n\t\tfor (int i = 0; i < 12; i++) {\n\t\t\tfor (int j = 0; j < 12; j++) {\n\t\t\t\tif (newMap[i][j] instanceof Player) {\n\t\t\t\t\tmap[i][j] = new Player(i, j, board);\n\t\t\t\t} else if (newMap[i][j] instanceof BlankSpace) {\n\t\t\t\t\tmap[i][j] = new BlankSpace(i, j, board);\n\t\t\t\t} else if (newMap[i][j] instanceof Mho) {\n\t\t\t\t\tmap[i][j] = new Mho(i, j, board);\n\t\t\t\t} else if (newMap[i][j] instanceof Fence) {\n\t\t\t\t\tmap[i][j] = new Fence(i, j, board);\n\t\t\t\t}\t\n\t\t\t}\n\t\t}\n\t}", "@Test\r\n\tpublic void testMapValidation() {\r\n\t\tAssert.assertEquals(true,mapdata.contains(worldmap.getContinents()));\r\n\t\t\n\t\tAssert.assertEquals(true,mapdata.contains(worldmap.getTerritories()));\r\n\t}", "private static void mineInitialization(){\n\t\tfor (int m = 0; m < BOARD_SIZE; m++)\n\t\t{\n\t\t\tmX = RNG.nextInt(BOARD_SIZE);\n\t\t\tmY = RNG.nextInt(BOARD_SIZE);\n\t\t\tif(gameBoard[mX][mY].equals(Spaces.Empty))\n\t\t\t{\n\t\t\t\tgameBoard[mX][mY] = Spaces.Mine;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tm--;\n\t\t\t}\n\t\t}\n\t}", "private static void initializeMaps()\n\t{\n\t\taddedPoints = new HashMap<String,String[][][]>();\n\t\tpopulatedList = new HashMap<String,Boolean>();\n\t\tloadedAndGenerated = new HashMap<String,Boolean>();\n\t}", "public void\tclear() {\n\t\tmap.clear();\n\t}", "private void initilizeMap() {\n\t\tif (googleMap == null) {\n\t\t\tgoogleMap = ((MapFragment) getFragmentManager().findFragmentById(\n\t\t\t\t\tR.id.map)).getMap();\n\n\t\t\tif (googleMap == null) {\n\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\"Sorry! unable to create maps\", Toast.LENGTH_SHORT)\n\t\t\t\t\t\t.show();\n\t\t\t}\n\t\t}\n\t}", "public void verifyMap() {\r\n // TODO: implement test to ensure that map is the same as confirmed if\r\n // its values were converted into collections.\r\n }", "public void setUp()\n {\n map = new Map(5, 5, null);\n }", "public boolean\tisEmpty() {\n\t\treturn map.isEmpty();\n\t}", "private void setMapPos()\r\n {\r\n try\r\n {\r\n Thread.sleep(1000);//so that you can see players move\r\n }\r\n catch(Exception e){}\r\n int currentPlayer = worldPanel.getCurrentPlayer();\r\n int currentUnit = worldPanel.getCurrentUnit();\r\n int unitPos = 0;\r\n int firstX = 0;\r\n int firstY = 0;\r\n if (currentPlayer == 1)\r\n {\r\n unitPos = worldPanel.player1.units[currentUnit - 1].getPosition();\r\n }\r\n if (currentPlayer == 2)\r\n {\r\n unitPos = worldPanel.player2.units[currentUnit - 1].getPosition();\r\n }\r\n int tempX = unitPos % mapWidth;\r\n int tempY = unitPos - tempX;\r\n if (tempY == 0) {}\r\n else\r\n tempY = tempY / mapHeight;\r\n tempX = tempX - 11;\r\n tempY = tempY - 7;\r\n if (tempX >= 0)\r\n firstX = tempX;\r\n else\r\n firstX = tempX + mapWidth;\r\n if (tempY >= 0)\r\n firstY = tempY;\r\n else\r\n firstY = tempY + mapWidth;\r\n\r\n int drawWidth = worldPanel.getDrawWidth();\r\n int drawHeight = worldPanel.getDrawHeight();\r\n worldPanel.setNewXYPos(firstX, firstY);\r\n miniMap.setNewXY(firstX, firstY, drawWidth, drawHeight);\r\n }", "public void loadStartingMap(int up_offset, int down_offset, int left_offset,\n int right_offset) {\n int counter = 0;\n for (int y = 0; y < MAP_HEIGHT; y++) {\n for (int x = 0; x < MAP_WIDTH; x++) {\n tiles[x][y] = new Tile(x * TILE_SIZE, y * TILE_SIZE,\n Constants.testMap[counter], true);\n backGroundTiles[x][y] = new Tile(x * TILE_SIZE, y * TILE_SIZE,\n Constants.testMap_base[counter], true);\n grassTiles[x][y] = new Tile(x * TILE_SIZE, y * TILE_SIZE,\n Constants.testMap_grass[counter], true);\n counter++;\n }\n }\n\n for (int i = 0; i < up_offset; i++) {\n for (int j = 0; j < 4; j++) {\n adjustUp();\n }\n }\n for (int i = 0; i < down_offset; i++) {\n for (int j = 0; j < 4; j++) {\n adjustDown();\n }\n }\n for (int i = 0; i < left_offset; i++) {\n for (int j = 0; j < 4; j++) {\n adjustLeft();\n }\n }\n for (int i = 0; i < right_offset; i++) {\n for (int j = 0; j < 4; j++) {\n adjustRight();\n }\n }\n\n this.setGrassTileRaw(Constants.testMap_grass); // used for IsInGrass\n this.id = 1;\n }", "@Test\n\tvoid testVerticesAndEdgesIntanceVariableNotNull() {\n\t\tAssertions.assertNotNull(map);\n\n\t}", "private void setUpMapIfNeeded() {\r\n if (map == null) {\r\n SupportMapFragment smf = null;\r\n smf = (SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map);\r\n\r\n if (smf != null) {\r\n map = smf.getMap();\r\n if (map != null) {\r\n map.setMyLocationEnabled(true);\r\n }\r\n }\r\n }\r\n }", "public boolean isEmpty() {\n\t\treturn map.isEmpty();\n\t}", "public void createWorldMap() {\r\n\t\tdo {\r\n\t\t\t//\t\t@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ Recursive map generation method over here@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\r\n\t\t\t//Generation loop 1 *ADDS VEIN STARTS AND GRASS*\r\n\r\n\t\t\tfor (int i = 0; i < tileMap.length; i++) {\r\n\t\t\t\tfor (int j = 0; j < tileMap[i].length; j++) {\r\n\r\n\t\t\t\t\tif (Math.random()*10000>9999) { //randomly spawn a conore vein start\r\n\t\t\t\t\t\ttileMap[i][j] = new ConoreTile (conore, true);\r\n\t\t\t\t\t\tconoreCount++;\r\n\t\t\t\t\t}else if (Math.random()*10000>9999){\r\n\t\t\t\t\t\ttileMap[i][j] = new KannaiteTile(kanna, true);\r\n\t\t\t\t\t\tkannaiteCount++;\r\n\t\t\t\t\t}else if(Math.random()*10000>9999){\r\n\t\t\t\t\t\ttileMap[i][j] = new FuelTile(fuel, true);\r\n\t\t\t\t\t\tfuelCount++;\r\n\t\t\t\t\t}else if(Math.random()*10000>9999) {\r\n\t\t\t\t\t\ttileMap[i][j] = new ForestTile(forest, true);\r\n\t\t\t\t\t\tforestCount++;\r\n\t\t\t\t\t}else if(Math.random()*10000>9999){\r\n\t\t\t\t\t\ttileMap[i][j] = new OilTile(oil,true);\r\n\t\t\t\t\t}else if(Math.random()*10000>9997) {\r\n\t\t\t\t\t\ttileMap[i][j] = new MountainTile(mountain, true);\r\n\t\t\t\t\t}else {\r\n\t\t\t\t\t\ttileMap[i][j] = new GrassTile(dirt);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t} // End for loop \r\n\t\t\t} // End for loop\r\n\t\t\t//End generation loop 1\r\n\r\n\t\t\t//Generation loop 2 *EXPANDS ON THE VEINS*\r\n\t\t\tdo {\r\n\t\t\t\tif (conoreCount<6) {\r\n\t\t\t\t\ttileMap[(int)Math.random()*200][(int)Math.random()*200] = new ConoreTile (conore,true);\r\n\t\t\t\t\tconoreCount++;\r\n\t\t\t\t}else {\r\n\t\t\t\t\tconorePass = true;\r\n\t\t\t\t}\r\n\t\t\t\tif (kannaiteCount<6) {\r\n\t\t\t\t\ttileMap[(int)Math.random()*200][(int)Math.random()*200] = new KannaiteTile (kanna,true);\r\n\t\t\t\t\tkannaiteCount++;\r\n\t\t\t\t}else {\r\n\t\t\t\t\tkannaitePass = true;\r\n\t\t\t\t}\r\n\t\t\t\tif (fuelCount<6) {\r\n\t\t\t\t\ttileMap[(int)Math.random()*200][(int)Math.random()*200] = new FuelTile (fuel,true);\r\n\t\t\t\t\tfuelCount++;\r\n\t\t\t\t}else {\r\n\t\t\t\t\tfuelPass = true;\r\n\t\t\t\t}\r\n\t\t\t\tif (forestCount<6) {\r\n\t\t\t\t\ttileMap[(int)Math.random()*200][(int)Math.random()*200] = new ForestTile (forest,true);\r\n\t\t\t\t\tforestCount++;\r\n\t\t\t\t}else {\r\n\t\t\t\t\tforestPass = true;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tSystem.out.println(\"Conore: \" + conoreCount + \" - \" + conorePass);\r\n\t\t\t\tSystem.out.println(\"Kannaite: \" + kannaiteCount + \" - \" + kannaitePass);\r\n\t\t\t\tSystem.out.println(\"Fuel: \" + fuelCount + \" - \" + fuelPass);\r\n\t\t\t\tSystem.out.println(\"Forest: \" + forestCount + \" - \" + forestPass);\r\n\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t}while(!conorePass || !kannaitePass || !fuelPass || !forestPass);\r\n\r\n\t\t\tfor (int i = 0; i < tileMap.length; i++) {\r\n\t\t\t\tfor (int j = 0; j < tileMap[i].length; j++) {\r\n\t\t\t\t\tbuildConore(i,j);\r\n\t\t\t\t\tbuildKannaite(i,j);\r\n\t\t\t\t\tbuildFuel(i,j);\r\n\t\t\t\t\tbuildForest(i,j);\r\n\t\t\t\t}//End of for loop\r\n\t\t\t}//End of for loop\r\n\t\t\t//End of generation loop 2\r\n\r\n\t\t\t//Generation loop 3 *COUNT ORES*\r\n\t\t\tint loop3Count = 0;\r\n\t\t\tconorePass = false;\r\n\t\t\tkannaitePass = false;\r\n\t\t\tfuelPass = false;\r\n\t\t\tforestPass = false;\r\n\t\t\tdo {\r\n\t\t\t\tconoreCount = 0;\r\n\t\t\t\tkannaiteCount = 0;\r\n\t\t\t\tfuelCount = 0;\r\n\t\t\t\tforestCount = 0;\r\n\t\t\t\tfor (int i = 0; i < tileMap.length; i++) {\r\n\t\t\t\t\tfor (int j = 0; j < tileMap[i].length; j++) {\r\n\t\t\t\t\t\tif (tileMap[i][j] instanceof ConoreTile) {\r\n\t\t\t\t\t\t\tconoreCount++;\r\n\t\t\t\t\t\t}else if(tileMap[i][j] instanceof KannaiteTile) {\r\n\t\t\t\t\t\t\tkannaiteCount++;\r\n\t\t\t\t\t\t}else if(tileMap[i][j] instanceof FuelTile) {\r\n\t\t\t\t\t\t\tfuelCount++;\r\n\t\t\t\t\t\t}else if(tileMap[i][j] instanceof ForestTile) {\r\n\t\t\t\t\t\t\tforestCount++;\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\tfor (int i = 0; i < tileMap.length; i++) {\r\n\t\t\t\t\tfor (int j = 0; j < tileMap[i].length; j++) {\r\n\t\t\t\t\t\tif (conoreCount < 220) {\r\n\t\t\t\t\t\t\tbuildConore(i,j);\r\n\t\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\tconorePass = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (kannaiteCount < 220) {\r\n\t\t\t\t\t\t\tbuildKannaite(i,j);\r\n\t\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\tkannaitePass = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (fuelCount< 220) {\r\n\t\t\t\t\t\t\tbuildFuel(i,j);\r\n\t\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\tfuelPass = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (forestCount < 220) {\r\n\t\t\t\t\t\t\tbuildForest(i,j);\r\n\t\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\tforestPass = true;\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\tSystem.out.println(\"Conore: \" + conoreCount + \" - \" + conorePass);\r\n\t\t\t\tSystem.out.println(\"Kannaite: \" + kannaiteCount + \" - \" + kannaitePass);\r\n\t\t\t\tSystem.out.println(\"Fuel: \" + fuelCount + \" - \" + fuelPass);\r\n\t\t\t\tSystem.out.println(\"Forest: \" + forestCount + \" - \" + forestPass);\r\n\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t\tloop3Count++;\r\n\t\t\t\tif (loop3Count > 100) {\r\n\t\t\t\t\tSystem.out.println(\"map generation failed! restarting\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}while(!conorePass || !kannaitePass || !fuelPass || !forestPass);\r\n\t\t\t//END OF LOOP 3\r\n\r\n\t\t\t//LOOP 4: THE MOUNTAIN & OIL LOOP\r\n\t\t\tfor (int i = 0; i < tileMap.length; i++) {\r\n\t\t\t\tfor (int j = 0; j < tileMap[i].length; j++) {\r\n\t\t\t\t\tbuildMountain(i,j);\r\n\t\t\t\t\tbuildOil(i,j);\r\n\t\t\t\t}\r\n\t\t\t}//End of THE Mountain & OIL LOOP\r\n\r\n\t\t\t//ADD MINIMUM AMOUNT OF ORES\r\n\r\n\t\t\t//Generation Loop 5 *FINAL SETUP*\r\n\t\t\tfor (int i = 0; i < tileMap.length; i++) {\r\n\t\t\t\tfor (int j = 0; j < tileMap[i].length; j++) {\r\n\r\n\t\t\t\t\tif(i == 1 || j == 1 || i == tileMap.length-2 || j == tileMap[i].length-2) {\r\n\t\t\t\t\t\ttileMap[i][j] = new DesertTile(desert);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (i == 0 || j == 0 || i == tileMap.length-1 || j == tileMap[i].length-1) {\r\n\t\t\t\t\t\ttileMap[i][j] = new WaterTile(water);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}//End of for loop\r\n\t\t\t}//End of for loop\r\n\t\t\t//End of generation loop 5\r\n\t\t\t//mapToString();//TEST RUN\r\n\t\t} while(!conorePass || !kannaitePass || !fuelPass || !forestPass); // End createWorldMap method\r\n\t}", "public static Boolean clearMap(){\n resultsMap.clear();\n return resultsMap.isEmpty();\n }", "private void startUpPhase()\n\t{\n\t\tmap.distributeCountries(); /* Randomly split the countries between the players */\n\t\tArrayList<Player> remainingPlayers = new ArrayList<Player>(map.players);\n\t\t\n\t\tdo \n\t\t{\n\t\t\tIterator<Player> i = remainingPlayers.iterator();\n\t\t\t\n\t\t\twhile (i.hasNext()) \n\t\t\t{\n\t\t\t\tPlayer p = i.next();\n\t\t\t\tif(p.getArmies() == 0) \n\t\t\t\t{\n\t\t\t\t\ti.remove();\n\t\t\t\t} \n\t\t\t\telse \n\t\t\t\t{\n\t\t\t\t\tp.placeOneArmy();\n\t\t\t\t}\n\t\t\t}\n\t\t}while(remainingPlayers.size() != 0);\n\t}", "public void resetMap() {\r\n\t\tfor(Block b: this.blockMap) {\r\n\t\t\tb.resetLives();\r\n\t\t}\r\n\t}", "public void pave() {\n if (!world[position.x][position.y].equals(Tileset.NOTHING)) {\n System.out.println(\"I cannot pave at this place.\");\n return;\n }\n world[position.x][position.y] = Tileset.FLOOR;\n }", "public boolean isEmpty( Map<?, ?> map ){\n if( map == null || map.isEmpty() ){\n return true;\n }\n return false;\n }", "public final synchronized boolean isEmpty() {\n\t\treturn map.isEmpty();\n\t}", "public Map(int r, int c){\r\n try {\r\n bomb = new Image(new FileInputStream(\"Minesweeper_Images/bomb.png\"));\r\n zero = new Image(new FileInputStream(\"Minesweeper_Images/zero.png\"));\r\n one = new Image(new FileInputStream(\"Minesweeper_Images/one.png\"));\r\n two = new Image(new FileInputStream(\"Minesweeper_Images/two.png\"));\r\n three = new Image(new FileInputStream(\"Minesweeper_Images/three.png\"));\r\n four = new Image(new FileInputStream(\"Minesweeper_Images/four.png\"));\r\n five = new Image(new FileInputStream(\"Minesweeper_Images/five.png\"));\r\n six = new Image(new FileInputStream(\"Minesweeper_Images/six.png\"));\r\n seven = new Image(new FileInputStream(\"Minesweeper_Images/seven.png\"));\r\n eight = new Image(new FileInputStream(\"Minesweeper_Images/eight.png\"));\r\n flag = new Image(new FileInputStream(\"Minesweeper_Images/flag.png\"));\r\n square = new Image(new FileInputStream(\"Minesweeper_Images/square.png\"));\r\n } catch (FileNotFoundException e) {\r\n e.printStackTrace();\r\n }\r\n map = new Square[r][c];\r\n for(int row = 0; row<map.length; row++){\r\n for(int col = 0; col<map[0].length; col++){\r\n map[row][col] = new Square();\r\n //map[row][col].setVisual(\" \");\r\n int x = row;\r\n int y = col;\r\n map[row][col].setVisual(square);\r\n map[row][col].getSquareButton().setOnMouseClicked(e->{\r\n if(e.getButton() == MouseButton.PRIMARY){\r\n revealArea(x, y);\r\n }\r\n if(e.getButton() == MouseButton.SECONDARY){\r\n flag(x, y);\r\n if(win() == true){\r\n System.out.println(\"WIN\");\r\n EndBox.end(\"Win\", \"YOU WIN!!!\");\r\n System.exit(0);\r\n }\r\n }\r\n });\r\n\r\n\r\n }\r\n\r\n }\r\n }", "void clearMap() {\n STRING_STATISTICS.clear();\n }", "public pacman(int size_of_map) {\n this.positionX = (this.positionY = 0);\n this.size_of_map = size_of_map;\n }", "public void resetGame() {\n frameRate(framerate);\n w = width;\n h = height;\n if (width % pixelSize != 0 || height % pixelSize != 0) {\n throw new IllegalArgumentException();\n }\n\n this.resetGrid();\n this.doRespawn = false;\n this.runGame = true;\n\n spawns = new HashMap();\n spawns.put(\"RIGHT\", new Location(50, (h - topHeight) / 2)); // LEFT SIDE\n spawns.put(\"LEFT\", new Location(w-50, (h - topHeight) / 2)); // RIGHT SIDE\n spawns.put(\"DOWN\", new Location(w/2, topHeight + 50)); // TOP SIDE\n spawns.put(\"UP\", new Location(w/2, h - 50)); // BOTTOM SIDE\n}", "public void clearMap() {\n\t\tfor (int i = 0; i < parkingsArray.size(); i++)\n\t\t\tparkingsArray.valueAt(i).removeMarker();\n\t\tparkingsArray.clear();\n\t\tmap.clear();\n\t}" ]
[ "0.7364409", "0.7251849", "0.7251849", "0.7129648", "0.69748056", "0.6853686", "0.6773751", "0.67520666", "0.6733387", "0.667469", "0.6668766", "0.66651124", "0.6651613", "0.66409814", "0.663893", "0.66095406", "0.66070575", "0.66070575", "0.65611535", "0.6540598", "0.6536538", "0.64955324", "0.64938396", "0.6487083", "0.647472", "0.64670664", "0.646048", "0.6456849", "0.6446355", "0.64274275", "0.642589", "0.6388103", "0.6373313", "0.63691145", "0.6365185", "0.6364371", "0.6350384", "0.63449407", "0.6335612", "0.63297725", "0.63297725", "0.63297725", "0.631556", "0.6313318", "0.6292288", "0.6278219", "0.6273591", "0.627323", "0.6265822", "0.6260178", "0.6254296", "0.6251045", "0.623825", "0.6235087", "0.62347245", "0.6227643", "0.6223806", "0.6222609", "0.62201", "0.6215433", "0.6206262", "0.6194985", "0.61939836", "0.61867964", "0.61773103", "0.6169188", "0.616675", "0.6163172", "0.6156124", "0.6152645", "0.61410165", "0.60967344", "0.6093054", "0.60870284", "0.6072391", "0.60633487", "0.605918", "0.6056317", "0.604704", "0.60446703", "0.6039565", "0.6036905", "0.60364485", "0.60359526", "0.603156", "0.6029193", "0.602808", "0.60244805", "0.602383", "0.60153353", "0.60024923", "0.5998813", "0.59947044", "0.59782064", "0.5965336", "0.5957018", "0.59410155", "0.5940855", "0.59311014", "0.59300834", "0.59261984" ]
0.0
-1
make sure map is not empty at beginning of game
@Test void removePlayersFromScoreBoardDoesNothingIfNoPlayerMarkedForRemoval(){ assertEquals(4, scoreboard.getScore().size()); //do not add players to the list of players that should be removed List<String> usersToBeRemoved=new ArrayList<>(); //remove players in list scoreboard.removePlayersFromScoreBoard(usersToBeRemoved); //check that players were removed assertEquals(4, scoreboard.getScore().size()); assertEquals(4,scoreboard.getCorrectlyGuessedMysteryWordsPerPlayer().size()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void mapCheck(){\n\t\tfor(int x = 0; x < Params.world_width; x = x + 1){\n\t\t\tfor(int y = 0; y < Params.world_height; y = y + 1){\n\t\t\t\tif(map[x][y] > 1){\n\t\t\t\t\t//System.out.println(\"Encounter Missing. Position: (\" + x + \",\" + y + \").\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public abstract void createEmptyMap(Game game, boolean[][] landMap);", "public abstract void createEmptyMap(Game game, boolean[][] landMap);", "private void begin(){\n for(int i = 0; i < height; i++){ //y\n for(int j = 0; j < width; j++){ //x\n for(int k = 0; k < ids.length; k++){\n if(m.getTileids()[j][i].equals(ids[k])){\n map[j][i] = Handler.memory.getTiles()[k];\n //Handler.debug(\"is tile null: \" + (Handler.memory.getTiles()[k] == null));\n \n k = ids.length;\n }else if(k == (ids.length - 1)){\n Handler.debug(\"something went wrong\", true);\n\n }\n }\n }\n }\n mt.setCleared(clear);\n mt.setMap(map);\n \n \n }", "@Test\n public void TEST_UR_MAP_LENGTH() {\n Object[] objects = loadSave(\"emptyRiver\");\n Map map = (Map) objects[0];\n Player player = (Player) objects[1];\n AI[] opponents = (AI[]) objects[2];\n boolean[] NO_KEYS_PRESSED = {false, false, false, false};\n\n for (int i = 0; i < 60*30; i++) {\n map.stepWorld(player, opponents);\n player.updatePlayer(NO_KEYS_PRESSED, Gdx.graphics.getDeltaTime());\n }\n assertFalse(player.hasFinished());\n\n for (int i = 0; i < 60*30; i++) {\n map.stepWorld(player, opponents);\n player.updatePlayer(NO_KEYS_PRESSED, Gdx.graphics.getDeltaTime());\n }\n assertTrue(player.hasFinished());\n }", "private void tryARender() {\n \t\tif (Minecraft.theMinecraft.thePlayer == null)\n \t\t\treturn;\n \t\ttry {\n \t\t\tif (MinimapConfig.getInstance().isEnabled() && map.isDirty(Minecraft.theMinecraft.thePlayer.posX, Minecraft.theMinecraft.thePlayer.posZ)) {\n \t\t\t\tmapCalc();\n \t\t\t\tmap.timer = 1;\n \t\t\t}\n \t\t} catch (RuntimeException e) {\n \t\t\tthrow e;\n \t\t} finally {\n \t\t\tmap.timer++;\n \t\t}\n \t}", "private void setUpMapIfNeeded() {\n if (map == null) {\n map = fragMap.getMap();\n if (map != null) {\n setUpMap();\n }\n }\n }", "@Override\n public boolean isEmpty() {\n return map.isEmpty();\n }", "public void loadMap() {\n\t\tchests.clear();\r\n\t\t// Load the chests for the map\r\n\t\tchestsLoaded = false;\r\n\t\t// Load data asynchronously\r\n\t\tg.p.getServer().getScheduler().runTaskAsynchronously(g.p, new AsyncLoad());\r\n\t}", "public void buildEmptyMap() {\n this.emptyMap = new BufferedImage(this.boulderDashModel.getArea().getDimensionWidth() * zoom, this.boulderDashModel.getArea().getDimensionHeight() * zoom, BufferedImage.TYPE_INT_RGB);\n final Graphics2D graphics = (Graphics2D) this.emptyMap.getGraphics();\n graphics.drawImage(this.boulderDashModel.getArea().getImage(), 0, 0, this.boulderDashModel.getArea().getDimensionWidth() * zoom, this.boulderDashModel.getArea().getDimensionHeight() * zoom, null);\n }", "private void refillMap()\n {\n List<Block> blocks = map.getAllBlocks();\n blocks.forEach(block ->\n {\n if(block.isSpawnPoint())\n {\n while(!block.isAllWeaponsPresent() && !weaponCardDeck.isEmpty())\n {\n block.addWeaponCard(weaponCardDeck.getFirstCard());\n }\n }\n else\n {\n if(!block.isAmmoCardPresent())block.setAmmoCard(ammoCardDeck.getFirstCard());\n }\n });\n }", "public void initializeMap() {\n\t\tgameMap = new GameMap(GameMap.MAP_HEIGHT, GameMap.MAP_WIDTH);\n\t\tgameMap.initializeFields();\n\t}", "public void loadMapGame(LoadedMap map)throws BadMapException{\n ArrayList<Boat> boats = createLoadedBoats(map);\n\n Board board = new Board(map.getInterMatrix().length, map.getInterMatrix()[0].length, 0);\n\n //CREATE A GAME\n GameData gameData = new GameData(board, boats, false);\n\n //POSITION BOATS INTO MATRIX\n loadPosBoats(gameData);\n Game.getInstance().setGameData(gameData);\n Game.getInstance().setEnded(false);\n }", "private void setUpMap() {\n if (points.size()>2) {\n drawCircle();\n }\n\n\n }", "public Map() {\n\t\t//intially empty\n\t}", "@Test\n public void initializeTest()\n {\n assertEquals(0, map.size());\n }", "public abstract void createMap(Game game) throws FreeColException;", "public abstract void createMap(Game game) throws FreeColException;", "private void setUpMapIfNeeded() {\n \tif (mMap == null) {\r\n \t\t//Instanciamos el objeto mMap a partir del MapFragment definido bajo el Id \"map\"\r\n \t\tmMap = ((MapFragment) getFragmentManager().findFragmentById(R.id.map)).getMap();\r\n \t\t// Chequeamos si se ha obtenido correctamente una referencia al objeto GoogleMap\r\n \t\tif (mMap != null) {\r\n \t\t\t// El objeto GoogleMap ha sido referenciado correctamente\r\n \t\t\t//ahora podemos manipular sus propiedades\r\n \t\t\t//Seteamos el tipo de mapa\r\n \t\t\tmMap.setMapType(GoogleMap.MAP_TYPE_NORMAL);\r\n \t\t\t//Activamos la capa o layer MyLocation\r\n \t\t\tmMap.setMyLocationEnabled(true);\r\n \t\t\t\r\n \t\t\tAgregarPuntos();\r\n \t\t\t\r\n \t\t\t\r\n \t\t}\r\n \t}\r\n }", "@Test\n\tpublic void testIllegalMapNoLimitsTest1() {\n\t\ttry {\n\t\t\tmapFactory.initializeGameState(\"./src/Mapfiles/NightlyTests/IllegalMapNoLimits1\", 1, rng, gs);\n\t\t} catch (IOException e) {\n\t\t\tfail(\"Expected IllegalArgumentException\");\n\t\t} catch (IllegalArgumentException e) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tfail(\"Expected IllegalArgumentException\");\n\t}", "private boolean checkReady() {\n if (mMap == null) {\n Toast.makeText(this, \"Map not ready!\", Toast.LENGTH_SHORT).show();\n return false;\n }\n return true;\n }", "@Override\r\n public void clear() {\r\n map.clear();\r\n }", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn map.isEmpty();\n\t}", "public void loadMap(Player player) {\r\n\tregionChucks = RegionBuilder.findEmptyChunkBound(8, 8); \r\n\tRegionBuilder.copyAllPlanesMap(235, 667, regionChucks[0], regionChucks[1], 8);\r\n\t\r\n\t}", "public void initMap() {\n\t\tmap = new Map();\n\t\tmap.clear();\n\t\tphase = new Phase();\n\t\tmap.setPhase(phase);\n\t\tmapView = new MapView();\n\t\tphaseView = new PhaseView();\n\t\tworldDomiView = new WorldDominationView();\n\t\tcardExchangeView = new CardExchangeView();\n\t\tphase.addObserver(phaseView);\n\t\tphase.addObserver(cardExchangeView);\n\t\tmap.addObserver(worldDomiView);\n\t\tmap.addObserver(mapView);\n\t}", "private void fillMap() {\n\t\tObject tile = new Object();\n\t\tfor(int x = 0; x < map.length; x++) {\n\t\t\tfor(int y = 0; y < map.length; y++) {\n\t\t\t\tmap[x][y] = tile;\n\t\t\t}\n\t\t}\n\t}", "private void setUpMapIfNeeded() {\n if (mMap == null) {\r\n // Try to obtain the map from the SupportMapFragment.\r\n mMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map))\r\n .getMap();\r\n // Check if we were successful in obtaining the map.\r\n if (mMap != null) {\r\n setUpMap();\r\n }\r\n }\r\n }", "private void setUpMapIfNeeded() {\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n mMap = ((MapFragment) getFragmentManager().findFragmentById(R.id.map))\n .getMap();\n // Check if we were successful in obtaining the map.\n if (mMap != null) {\n setUpMap();\n }\n }\n }", "private void generate()\r\n {\r\n mapPieces = myMap.Generate3();\r\n mapWidth = myMap.getMapWidth();\r\n mapHeight = myMap.getMapHeight();\r\n }", "private void setUpMapIfNeeded() {\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n \tmMap = ((com.google.android.gms.maps.MapFragment) getFragmentManager().findFragmentById(R.id.map)).getMap();\n \t// Check if we were successful in obtaining the map.\n \tif (mMap != null) {\n \t\tmakeMarkers();\n \t\tloadMarkersFromParse();\n \t}\n }\n \n }", "@Override\n\tpublic boolean isEmpty() \n\t{\n\t\treturn this.map.isEmpty();\n\t}", "public final void clear() { _map.clear(); }", "private void setUpMapIfNeeded() {\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n mMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map))\n .getMap();\n // Check if we were successful in obtaining the map.\n if (mMap != null) {\n mMap.setOnMapLoadedCallback(new GoogleMap.OnMapLoadedCallback() {\n @Override\n public void onMapLoaded() {\n\n setUpMap();\n\n }\n });\n }\n }\n }", "@Test\n\tpublic void testIllegalMapZeroCostsTest() {\n\t\ttry {\n\t\t\tmapFactory.initializeGameState(\"./src/Mapfiles/NightlyTests/IllegalMapZeroCostsTest\", 1, rng, gs);\n\t\t} catch (IOException e) {\n\t\t\tfail(\"Expected IllegalArgumentException\");\n\t\t} catch (IllegalArgumentException e) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tfail(\"Expected IllegalArgumentException\");\n\t}", "private void setUpMapIfNeeded() {\n // Do a null check to confirm that we have not already instantiated the map.\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n mMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map))\n .getMap();\n // Check if we were successful in obtaining the map.\n if (mMap != null) {\n setUpMap();\n }\n }\n }", "public void clear() {\n map.clear();\n }", "public void clear() {\n map.clear();\n }", "private void setUpMapIfNeeded() {\n\t\tif (mMap == null) {\n\t\t\t// Try to obtain the map from the SupportMapFragment.\n\t\t\tmMap = ((SupportMapFragment) getSupportFragmentManager()\n\t\t\t\t\t.findFragmentById(R.id.map1)).getMap();\n\t\t\t// Check if we were successful in obtaining the map.\n\t\t\tif (mMap != null) {\n\t\t\t\tsetUpMap();\n\t\t\t}\n\t\t}\n\t}", "private void setUpMapIfNeeded() {\n if ( googleMap == null) {\r\n\r\n // Try to obtain the map from the SupportMapFragment.\r\n googleMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.routesMap)).getMap();\r\n // Check if we were successful in obtaining the map.\r\n if (googleMap != null) {\r\n setUpMap();\r\n }\r\n }\r\n }", "private void setUpMapIfNeeded() {\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n mMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map))\n .getMap();\n // Check if we were successful in obtaining the map.\n if (mMap != null) {\n setUpMap();\n }\n }\n }", "private void setUpMapIfNeeded() {\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n mMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map))\n .getMap();\n // Check if we were successful in obtaining the map.\n if (mMap != null) {\n setUpMap();\n }\n }\n }", "private void setUpMapIfNeeded() {\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n mMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map))\n .getMap();\n // Check if we were successful in obtaining the map.\n if (mMap != null) {\n setUpMap();\n }\n }\n }", "public void clear() { \r\n\t\tmap.clear();\r\n\t}", "void willChooseGameMap() throws RemoteException;", "private boolean setUpMapIfNeeded() {\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n mMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map))\n .getMap();\n\n if (mMap == null) {\n Log.e(TAG, \"Can not find map\");\n return false;\n }\n\n // Check if we were successful in obtaining the map.\n if (mMap != null) {\n setUpMap();\n }\n }\n\n if (bCurrentPos!= null)\n bCurrentPos.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n goCurrentLocation(mMap);\n }\n });\n\n return true;\n\n }", "private void growMap() {\n\t\tshort chunkId;\n\n\t\t// Fill until full\n\t\twhile (end % STORED_CHUNKS != currChunk % STORED_CHUNKS || end == 0) {\n\t\t\tchunkId = (short) random.nextInt(chunks.length);\n\t\t\tmap[end % STORED_CHUNKS] = chunkId;\n\t\t\tchunks[chunkId].setupToStage(stage, end * MapChunk.WIDTH * tileSize, 0);\n\t\t\tend++;\n\t\t}\n\t}", "public boolean isEmpty() {\n return map.isEmpty();\n }", "@Override\n\tpublic boolean clear() \n\t{\n\t\tthis.map.clear();\n\t\treturn true;\n\t}", "private void setUpMapIfNeeded() {\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n mMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.mapView2))\n .getMap();\n // Check if we were successful in obtaining the map.\n if (mMap != null) {\n setUpMap( lat, longi, \"ISS/ NUS\");\n }\n }\n }", "public void clear()\n {\n getMap().clear();\n }", "public void clear() {\n\t\tmap.clear();\n\t}", "public void clearMap() {\n if (mMap != null) {\n mMap.clear();\n }\n }", "public void loadMap(){\n level= dataBase.getData(\"MAP\",\"PLAYER\");\n }", "public int[] updateMap() {\r\n\t\tint[] isObstacle = super.updateMap();\r\n\t\tsmap.setMap(map);\r\n\t\treturn isObstacle;\r\n\t}", "private void setUpMapIfNeeded() {\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n mMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map))\n .getMap();\n // Check if we were successful in obtaining the map.\n if (mMap != null) {\n try {\n\t\t\t\t\tsetUpMap();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n }\n }\n }", "private void generateMap() {\n\n\t\t//Used to ensure unique locations of each Gameboard element\n\t\tboolean[][] spaceUsed = new boolean[12][12];\n\n\t\t//A running total of fences generated\n\t\tint fencesGenerated = 0;\n\n\t\t//A running total of Mhos generated\n\t\tint mhosGenerated = 0;\n\n\t\t//Fill the board with spaces and spikes on the edge\n\t\tfor (int i = 0; i < 12; i++) {\n\t\t\tfor (int j = 0; j < 12; j++) {\n\t\t\t\tmap[i][j] = new BlankSpace(i, j, board);\n\t\t\t\tif (i == 0 || i == 11 || j ==0 || j == 11) {\n\t\t\t\t\tmap[i][j] = new Fence(i, j, board);\n\t\t\t\t\tspaceUsed[i][j] = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//Generate 20 spikes in unique locations\n\t\twhile (fencesGenerated < 20) {\n\t\t\tint x = 1+(int)(Math.random()*10);\n\t\t\tint y = 1+(int)(Math.random()*10);\n\n\t\t\tif(spaceUsed[x][y]==false) {\n\t\t\t\tmap[x][y] = new Fence(x, y, board);\n\t\t\t\tspaceUsed[x][y] = true;\n\t\t\t\tfencesGenerated++;\n\t\t\t}\n\t\t}\n\n\t\t//Generate 12 mhos in unique locations\n\t\twhile (mhosGenerated < 12) {\n\t\t\tint x = 1+(int)(Math.random()*10);\n\t\t\tint y = 1+(int)(Math.random()*10);\n\n\t\t\tif(spaceUsed[x][y]==false) {\n\t\t\t\tmap[x][y] = new Mho(x, y, board);\n\n\t\t\t\tmhoLocations.add(x);\n\t\t\t\tmhoLocations.add(y);\n\n\t\t\t\tspaceUsed[x][y] = true;\n\n\t\t\t\tmhosGenerated++;\n\t\t\t}\n\t\t}\n\n\t\t//Generate a player in a unique location\n\t\twhile (true) {\n\t\t\tint x = 1+(int)(Math.random()*10);\n\t\t\tint y = 1+(int)(Math.random()*10);\n\n\t\t\tif(spaceUsed[x][y]==false) {\n\t\t\t\tmap[x][y] = new Player(x, y, board);\n\t\t\t\tplayerLocation[0] = x;\n\t\t\t\tplayerLocation[1] = y;\n\t\t\t\tnewPlayerLocation[0] = x;\n\t\t\t\tnewPlayerLocation[1] = y;\n\t\t\t\tspaceUsed[x][y] = true;\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}", "public void clearStateToPureMapState() {\n for (int i = 0; i < cells.size(); i++) {\n if (cells.get(i) == CellState.Chosen || cells.get(i) == CellState.ToPlaceTower || cells.get(i) == CellState.Tower) {\n cells.set(i, CellState.Grass);\n }\n }\n }", "private void setUpMapIfNeeded() {\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n mMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map))\n .getMap();\n // Check if we were successful in obtaining the map.\n if (mMap != null) {\n try {\n setUpMap();\n } catch (JSONException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n }", "public void clear() {\r\n this.map.clear();\r\n }", "@Override\n\tpublic void onResume() {\n\t\tsuper.onResume();\n\t\tif(map!=null)\n\t\t{\n\t\t\tsetup();\n\t\t}\n\t}", "public void InitMap() {\n for (int i=0; i<m_mapSize; i++) {\n SetColour(i, null);\n }\n }", "@Test\n public void testFullMap() throws FactoryException {\n Game g = parser.parseMap(map);\n Board b = g.getBoard();\n\n // did we recognize the right sprites?\n assertEquals(SpriteType.EMPTY, b.spriteTypeAt(1, 4));\n assertEquals(SpriteType.PLAYER, b.spriteTypeAt(2, 2));\n assertEquals(SpriteType.GHOST, b.spriteTypeAt(1, 2));\n assertEquals(SpriteType.WALL, b.spriteTypeAt(0, 0));\n assertEquals(SpriteType.FOOD, b.spriteTypeAt(2, 1));\n assertEquals(SpriteType.SUPERGUM, b.spriteTypeAt(1,1));\n assertEquals(SpriteType.GHOSTBLINKY, b.spriteTypeAt(1,5));\n assertEquals(SpriteType.GHOSTCLYDE, b.spriteTypeAt(2,5));\n assertEquals(SpriteType.GHOSTINKY, b.spriteTypeAt(3,5));\n assertEquals(SpriteType.GHOSTPINKY, b.spriteTypeAt(4,5));\n\n // did we properly set the player?\n assertEquals(g.getPlayer(), b.spriteAt(2, 2));\n\n // were all ghosts added?\n assertEquals(5, g.getGhosts().size());\n\n // was the food actually added?\n final int cellsWithFoodCount = 3;\n final int cellsWithSuperGumCount = 4;\n assertEquals(cellsWithFoodCount * Food.DEFAULT_POINTS + cellsWithSuperGumCount* SuperGum.DEFAULT_POINTS,\n g.getPointManager().totalFoodInGame());\n }", "private void setUpMapIfNeeded() {\n if (mMap == null) {\n SupportMapFragment mapFragment = (SupportMapFragment) getSupportFragmentManager()\n .findFragmentById(R.id.map);\n mapFragment.getMapAsync(this);\n }\n }", "private void setUpMapIfNeeded() {\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n mMap = mMapFragment.getMap();\n // Check if we were successful in obtaining the map.\n if (mMap != null) {\n Log.i(TAG, \"Yes, we have a google map...\");\n setUpMap();\n } else {\n // means that Google Service is not available\n form.dispatchErrorOccurredEvent(this, \"setUpMapIfNeeded\",\n ErrorMessages.ERROR_GOOGLE_PLAY_NOT_INSTALLED);\n }\n\n }\n }", "public void resetMap() {\n for (int x = 0; x < cells; x++) {\n for (int y = 0; y < cells; y++) {\n Node current = map[x][y];\n if (current.getType() == 4 || current.getType() == 5)\n map[x][y] = new Node(3, x, y);\n }\n }\n\n if (startx > -1 && starty > -1) { //RESET THE START AND FINISH\n map[startx][starty] = new Node(0, startx, starty);\n map[startx][starty].setJumps(0);\n }\n\n if (finishx > -1 && finishy > -1)\n map[finishx][finishy] = new Node(1, finishx, finishy);\n\n reset(); //RESET SOME VARIABLES\n }", "private void setUpMapIfNeeded() {\n // Do a null check to confirm that we have not already instantiated the map.\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n mMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map))\n .getMap();\n mMap.setOnMarkerDragListener(this);\n // Check if we were successful in obtaining the map.\n if (mMap != null) {\n setUpMap();\n }\n }\n }", "private void startGame() {\r\n\t\tthis.gameMap.startGame();\r\n\t}", "private void setUpMapIfNeeded() {\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n mMapFragment = ((SupportMapFragment)getSupportFragmentManager().findFragmentById(R.id.fragment_show_place_info_map));\n mMap = mMapFragment.getMap();\n // Check if we were successful in obtaining the map.\n if (mMap != null) {\n setUpMap();\n }\n }\n }", "private void createMaps() {\r\n\t\tint SIZE = 100;\r\n\t\tint x = 0, y = -1;\r\n\t\tfor (int i = 0; i < SIZE; i++) {\r\n\t\t\tif (i % 10 == 0) {\r\n\t\t\t\tx = 0;\r\n\t\t\t\ty = y + 1;\r\n\t\t\t}\r\n\t\t\tshipStateMap.put(new Point(x, y), 0);\r\n\t\t\tshipTypeMap.put(new Point(x, y), 0);\r\n\t\t\tx++;\r\n\t\t}\r\n\t}", "public boolean isEmpty() {\n return map.isEmpty();\n }", "public MapGenerator(GameMap map) {\n\n gameMap = map;\n setGuiHashMap();\n firstCountryFlag=true;\n validator = new MapValidator(gameMap);\n }", "@Test\n\tpublic void mapBlackTest() {\n\t\ttry {\n\t\t\tmapFactory.initializeGameState(\"./src/TestScript/Maps/map-BLACK\", 1, rng, gs);\n\t\t} catch (IOException e) {\n\t\t\tfail(\"IllegalArgumentException expected\");\n\t\t} catch (IllegalArgumentException e) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tfail(\"IllegalArgumentException expected\");\n\t}", "private void setUpMapIfNeeded() {\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n mMap = ((MapFragment) getFragmentManager().findFragmentById(R.id.map))\n .getMap();\n // Check if we were successful in obtaining the map.\n if (mMap != null) {\n Intent info = getIntent();\n setUpMap(new LatLng(info.getDoubleExtra(\"latitude\", 0), info.getDoubleExtra(\"longitude\", 0)), info.getStringExtra(\"name\"));\n }\n }\n }", "private void setUpMapIfNeeded() {\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n SupportMapFragment mapFragment = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map));\n mapFragment.getMapAsync(this);\n mMap = mapFragment.getMap();\n\n }\n }", "public boolean isEmpty() {\r\n return this.map.isEmpty();\r\n }", "private void updateMap() {\n\t\tfor (int i = 0; i < 12; i++) {\n\t\t\tfor (int j = 0; j < 12; j++) {\n\t\t\t\tif (newMap[i][j] instanceof Player) {\n\t\t\t\t\tmap[i][j] = new Player(i, j, board);\n\t\t\t\t} else if (newMap[i][j] instanceof BlankSpace) {\n\t\t\t\t\tmap[i][j] = new BlankSpace(i, j, board);\n\t\t\t\t} else if (newMap[i][j] instanceof Mho) {\n\t\t\t\t\tmap[i][j] = new Mho(i, j, board);\n\t\t\t\t} else if (newMap[i][j] instanceof Fence) {\n\t\t\t\t\tmap[i][j] = new Fence(i, j, board);\n\t\t\t\t}\t\n\t\t\t}\n\t\t}\n\t}", "@Test\r\n\tpublic void testMapValidation() {\r\n\t\tAssert.assertEquals(true,mapdata.contains(worldmap.getContinents()));\r\n\t\t\n\t\tAssert.assertEquals(true,mapdata.contains(worldmap.getTerritories()));\r\n\t}", "private static void mineInitialization(){\n\t\tfor (int m = 0; m < BOARD_SIZE; m++)\n\t\t{\n\t\t\tmX = RNG.nextInt(BOARD_SIZE);\n\t\t\tmY = RNG.nextInt(BOARD_SIZE);\n\t\t\tif(gameBoard[mX][mY].equals(Spaces.Empty))\n\t\t\t{\n\t\t\t\tgameBoard[mX][mY] = Spaces.Mine;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tm--;\n\t\t\t}\n\t\t}\n\t}", "private static void initializeMaps()\n\t{\n\t\taddedPoints = new HashMap<String,String[][][]>();\n\t\tpopulatedList = new HashMap<String,Boolean>();\n\t\tloadedAndGenerated = new HashMap<String,Boolean>();\n\t}", "public void\tclear() {\n\t\tmap.clear();\n\t}", "private void initilizeMap() {\n\t\tif (googleMap == null) {\n\t\t\tgoogleMap = ((MapFragment) getFragmentManager().findFragmentById(\n\t\t\t\t\tR.id.map)).getMap();\n\n\t\t\tif (googleMap == null) {\n\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\"Sorry! unable to create maps\", Toast.LENGTH_SHORT)\n\t\t\t\t\t\t.show();\n\t\t\t}\n\t\t}\n\t}", "public void verifyMap() {\r\n // TODO: implement test to ensure that map is the same as confirmed if\r\n // its values were converted into collections.\r\n }", "public boolean\tisEmpty() {\n\t\treturn map.isEmpty();\n\t}", "public void setUp()\n {\n map = new Map(5, 5, null);\n }", "private void setMapPos()\r\n {\r\n try\r\n {\r\n Thread.sleep(1000);//so that you can see players move\r\n }\r\n catch(Exception e){}\r\n int currentPlayer = worldPanel.getCurrentPlayer();\r\n int currentUnit = worldPanel.getCurrentUnit();\r\n int unitPos = 0;\r\n int firstX = 0;\r\n int firstY = 0;\r\n if (currentPlayer == 1)\r\n {\r\n unitPos = worldPanel.player1.units[currentUnit - 1].getPosition();\r\n }\r\n if (currentPlayer == 2)\r\n {\r\n unitPos = worldPanel.player2.units[currentUnit - 1].getPosition();\r\n }\r\n int tempX = unitPos % mapWidth;\r\n int tempY = unitPos - tempX;\r\n if (tempY == 0) {}\r\n else\r\n tempY = tempY / mapHeight;\r\n tempX = tempX - 11;\r\n tempY = tempY - 7;\r\n if (tempX >= 0)\r\n firstX = tempX;\r\n else\r\n firstX = tempX + mapWidth;\r\n if (tempY >= 0)\r\n firstY = tempY;\r\n else\r\n firstY = tempY + mapWidth;\r\n\r\n int drawWidth = worldPanel.getDrawWidth();\r\n int drawHeight = worldPanel.getDrawHeight();\r\n worldPanel.setNewXYPos(firstX, firstY);\r\n miniMap.setNewXY(firstX, firstY, drawWidth, drawHeight);\r\n }", "public void loadStartingMap(int up_offset, int down_offset, int left_offset,\n int right_offset) {\n int counter = 0;\n for (int y = 0; y < MAP_HEIGHT; y++) {\n for (int x = 0; x < MAP_WIDTH; x++) {\n tiles[x][y] = new Tile(x * TILE_SIZE, y * TILE_SIZE,\n Constants.testMap[counter], true);\n backGroundTiles[x][y] = new Tile(x * TILE_SIZE, y * TILE_SIZE,\n Constants.testMap_base[counter], true);\n grassTiles[x][y] = new Tile(x * TILE_SIZE, y * TILE_SIZE,\n Constants.testMap_grass[counter], true);\n counter++;\n }\n }\n\n for (int i = 0; i < up_offset; i++) {\n for (int j = 0; j < 4; j++) {\n adjustUp();\n }\n }\n for (int i = 0; i < down_offset; i++) {\n for (int j = 0; j < 4; j++) {\n adjustDown();\n }\n }\n for (int i = 0; i < left_offset; i++) {\n for (int j = 0; j < 4; j++) {\n adjustLeft();\n }\n }\n for (int i = 0; i < right_offset; i++) {\n for (int j = 0; j < 4; j++) {\n adjustRight();\n }\n }\n\n this.setGrassTileRaw(Constants.testMap_grass); // used for IsInGrass\n this.id = 1;\n }", "@Test\n\tvoid testVerticesAndEdgesIntanceVariableNotNull() {\n\t\tAssertions.assertNotNull(map);\n\n\t}", "public boolean isEmpty() {\n\t\treturn map.isEmpty();\n\t}", "private void setUpMapIfNeeded() {\r\n if (map == null) {\r\n SupportMapFragment smf = null;\r\n smf = (SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map);\r\n\r\n if (smf != null) {\r\n map = smf.getMap();\r\n if (map != null) {\r\n map.setMyLocationEnabled(true);\r\n }\r\n }\r\n }\r\n }", "public void createWorldMap() {\r\n\t\tdo {\r\n\t\t\t//\t\t@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ Recursive map generation method over here@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\r\n\t\t\t//Generation loop 1 *ADDS VEIN STARTS AND GRASS*\r\n\r\n\t\t\tfor (int i = 0; i < tileMap.length; i++) {\r\n\t\t\t\tfor (int j = 0; j < tileMap[i].length; j++) {\r\n\r\n\t\t\t\t\tif (Math.random()*10000>9999) { //randomly spawn a conore vein start\r\n\t\t\t\t\t\ttileMap[i][j] = new ConoreTile (conore, true);\r\n\t\t\t\t\t\tconoreCount++;\r\n\t\t\t\t\t}else if (Math.random()*10000>9999){\r\n\t\t\t\t\t\ttileMap[i][j] = new KannaiteTile(kanna, true);\r\n\t\t\t\t\t\tkannaiteCount++;\r\n\t\t\t\t\t}else if(Math.random()*10000>9999){\r\n\t\t\t\t\t\ttileMap[i][j] = new FuelTile(fuel, true);\r\n\t\t\t\t\t\tfuelCount++;\r\n\t\t\t\t\t}else if(Math.random()*10000>9999) {\r\n\t\t\t\t\t\ttileMap[i][j] = new ForestTile(forest, true);\r\n\t\t\t\t\t\tforestCount++;\r\n\t\t\t\t\t}else if(Math.random()*10000>9999){\r\n\t\t\t\t\t\ttileMap[i][j] = new OilTile(oil,true);\r\n\t\t\t\t\t}else if(Math.random()*10000>9997) {\r\n\t\t\t\t\t\ttileMap[i][j] = new MountainTile(mountain, true);\r\n\t\t\t\t\t}else {\r\n\t\t\t\t\t\ttileMap[i][j] = new GrassTile(dirt);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t} // End for loop \r\n\t\t\t} // End for loop\r\n\t\t\t//End generation loop 1\r\n\r\n\t\t\t//Generation loop 2 *EXPANDS ON THE VEINS*\r\n\t\t\tdo {\r\n\t\t\t\tif (conoreCount<6) {\r\n\t\t\t\t\ttileMap[(int)Math.random()*200][(int)Math.random()*200] = new ConoreTile (conore,true);\r\n\t\t\t\t\tconoreCount++;\r\n\t\t\t\t}else {\r\n\t\t\t\t\tconorePass = true;\r\n\t\t\t\t}\r\n\t\t\t\tif (kannaiteCount<6) {\r\n\t\t\t\t\ttileMap[(int)Math.random()*200][(int)Math.random()*200] = new KannaiteTile (kanna,true);\r\n\t\t\t\t\tkannaiteCount++;\r\n\t\t\t\t}else {\r\n\t\t\t\t\tkannaitePass = true;\r\n\t\t\t\t}\r\n\t\t\t\tif (fuelCount<6) {\r\n\t\t\t\t\ttileMap[(int)Math.random()*200][(int)Math.random()*200] = new FuelTile (fuel,true);\r\n\t\t\t\t\tfuelCount++;\r\n\t\t\t\t}else {\r\n\t\t\t\t\tfuelPass = true;\r\n\t\t\t\t}\r\n\t\t\t\tif (forestCount<6) {\r\n\t\t\t\t\ttileMap[(int)Math.random()*200][(int)Math.random()*200] = new ForestTile (forest,true);\r\n\t\t\t\t\tforestCount++;\r\n\t\t\t\t}else {\r\n\t\t\t\t\tforestPass = true;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tSystem.out.println(\"Conore: \" + conoreCount + \" - \" + conorePass);\r\n\t\t\t\tSystem.out.println(\"Kannaite: \" + kannaiteCount + \" - \" + kannaitePass);\r\n\t\t\t\tSystem.out.println(\"Fuel: \" + fuelCount + \" - \" + fuelPass);\r\n\t\t\t\tSystem.out.println(\"Forest: \" + forestCount + \" - \" + forestPass);\r\n\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t}while(!conorePass || !kannaitePass || !fuelPass || !forestPass);\r\n\r\n\t\t\tfor (int i = 0; i < tileMap.length; i++) {\r\n\t\t\t\tfor (int j = 0; j < tileMap[i].length; j++) {\r\n\t\t\t\t\tbuildConore(i,j);\r\n\t\t\t\t\tbuildKannaite(i,j);\r\n\t\t\t\t\tbuildFuel(i,j);\r\n\t\t\t\t\tbuildForest(i,j);\r\n\t\t\t\t}//End of for loop\r\n\t\t\t}//End of for loop\r\n\t\t\t//End of generation loop 2\r\n\r\n\t\t\t//Generation loop 3 *COUNT ORES*\r\n\t\t\tint loop3Count = 0;\r\n\t\t\tconorePass = false;\r\n\t\t\tkannaitePass = false;\r\n\t\t\tfuelPass = false;\r\n\t\t\tforestPass = false;\r\n\t\t\tdo {\r\n\t\t\t\tconoreCount = 0;\r\n\t\t\t\tkannaiteCount = 0;\r\n\t\t\t\tfuelCount = 0;\r\n\t\t\t\tforestCount = 0;\r\n\t\t\t\tfor (int i = 0; i < tileMap.length; i++) {\r\n\t\t\t\t\tfor (int j = 0; j < tileMap[i].length; j++) {\r\n\t\t\t\t\t\tif (tileMap[i][j] instanceof ConoreTile) {\r\n\t\t\t\t\t\t\tconoreCount++;\r\n\t\t\t\t\t\t}else if(tileMap[i][j] instanceof KannaiteTile) {\r\n\t\t\t\t\t\t\tkannaiteCount++;\r\n\t\t\t\t\t\t}else if(tileMap[i][j] instanceof FuelTile) {\r\n\t\t\t\t\t\t\tfuelCount++;\r\n\t\t\t\t\t\t}else if(tileMap[i][j] instanceof ForestTile) {\r\n\t\t\t\t\t\t\tforestCount++;\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\tfor (int i = 0; i < tileMap.length; i++) {\r\n\t\t\t\t\tfor (int j = 0; j < tileMap[i].length; j++) {\r\n\t\t\t\t\t\tif (conoreCount < 220) {\r\n\t\t\t\t\t\t\tbuildConore(i,j);\r\n\t\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\tconorePass = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (kannaiteCount < 220) {\r\n\t\t\t\t\t\t\tbuildKannaite(i,j);\r\n\t\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\tkannaitePass = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (fuelCount< 220) {\r\n\t\t\t\t\t\t\tbuildFuel(i,j);\r\n\t\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\tfuelPass = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (forestCount < 220) {\r\n\t\t\t\t\t\t\tbuildForest(i,j);\r\n\t\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\tforestPass = true;\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\tSystem.out.println(\"Conore: \" + conoreCount + \" - \" + conorePass);\r\n\t\t\t\tSystem.out.println(\"Kannaite: \" + kannaiteCount + \" - \" + kannaitePass);\r\n\t\t\t\tSystem.out.println(\"Fuel: \" + fuelCount + \" - \" + fuelPass);\r\n\t\t\t\tSystem.out.println(\"Forest: \" + forestCount + \" - \" + forestPass);\r\n\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t\tloop3Count++;\r\n\t\t\t\tif (loop3Count > 100) {\r\n\t\t\t\t\tSystem.out.println(\"map generation failed! restarting\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}while(!conorePass || !kannaitePass || !fuelPass || !forestPass);\r\n\t\t\t//END OF LOOP 3\r\n\r\n\t\t\t//LOOP 4: THE MOUNTAIN & OIL LOOP\r\n\t\t\tfor (int i = 0; i < tileMap.length; i++) {\r\n\t\t\t\tfor (int j = 0; j < tileMap[i].length; j++) {\r\n\t\t\t\t\tbuildMountain(i,j);\r\n\t\t\t\t\tbuildOil(i,j);\r\n\t\t\t\t}\r\n\t\t\t}//End of THE Mountain & OIL LOOP\r\n\r\n\t\t\t//ADD MINIMUM AMOUNT OF ORES\r\n\r\n\t\t\t//Generation Loop 5 *FINAL SETUP*\r\n\t\t\tfor (int i = 0; i < tileMap.length; i++) {\r\n\t\t\t\tfor (int j = 0; j < tileMap[i].length; j++) {\r\n\r\n\t\t\t\t\tif(i == 1 || j == 1 || i == tileMap.length-2 || j == tileMap[i].length-2) {\r\n\t\t\t\t\t\ttileMap[i][j] = new DesertTile(desert);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (i == 0 || j == 0 || i == tileMap.length-1 || j == tileMap[i].length-1) {\r\n\t\t\t\t\t\ttileMap[i][j] = new WaterTile(water);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}//End of for loop\r\n\t\t\t}//End of for loop\r\n\t\t\t//End of generation loop 5\r\n\t\t\t//mapToString();//TEST RUN\r\n\t\t} while(!conorePass || !kannaitePass || !fuelPass || !forestPass); // End createWorldMap method\r\n\t}", "public static Boolean clearMap(){\n resultsMap.clear();\n return resultsMap.isEmpty();\n }", "private void startUpPhase()\n\t{\n\t\tmap.distributeCountries(); /* Randomly split the countries between the players */\n\t\tArrayList<Player> remainingPlayers = new ArrayList<Player>(map.players);\n\t\t\n\t\tdo \n\t\t{\n\t\t\tIterator<Player> i = remainingPlayers.iterator();\n\t\t\t\n\t\t\twhile (i.hasNext()) \n\t\t\t{\n\t\t\t\tPlayer p = i.next();\n\t\t\t\tif(p.getArmies() == 0) \n\t\t\t\t{\n\t\t\t\t\ti.remove();\n\t\t\t\t} \n\t\t\t\telse \n\t\t\t\t{\n\t\t\t\t\tp.placeOneArmy();\n\t\t\t\t}\n\t\t\t}\n\t\t}while(remainingPlayers.size() != 0);\n\t}", "public void resetMap() {\r\n\t\tfor(Block b: this.blockMap) {\r\n\t\t\tb.resetLives();\r\n\t\t}\r\n\t}", "public void pave() {\n if (!world[position.x][position.y].equals(Tileset.NOTHING)) {\n System.out.println(\"I cannot pave at this place.\");\n return;\n }\n world[position.x][position.y] = Tileset.FLOOR;\n }", "public boolean isEmpty( Map<?, ?> map ){\n if( map == null || map.isEmpty() ){\n return true;\n }\n return false;\n }", "public final synchronized boolean isEmpty() {\n\t\treturn map.isEmpty();\n\t}", "public Map(int r, int c){\r\n try {\r\n bomb = new Image(new FileInputStream(\"Minesweeper_Images/bomb.png\"));\r\n zero = new Image(new FileInputStream(\"Minesweeper_Images/zero.png\"));\r\n one = new Image(new FileInputStream(\"Minesweeper_Images/one.png\"));\r\n two = new Image(new FileInputStream(\"Minesweeper_Images/two.png\"));\r\n three = new Image(new FileInputStream(\"Minesweeper_Images/three.png\"));\r\n four = new Image(new FileInputStream(\"Minesweeper_Images/four.png\"));\r\n five = new Image(new FileInputStream(\"Minesweeper_Images/five.png\"));\r\n six = new Image(new FileInputStream(\"Minesweeper_Images/six.png\"));\r\n seven = new Image(new FileInputStream(\"Minesweeper_Images/seven.png\"));\r\n eight = new Image(new FileInputStream(\"Minesweeper_Images/eight.png\"));\r\n flag = new Image(new FileInputStream(\"Minesweeper_Images/flag.png\"));\r\n square = new Image(new FileInputStream(\"Minesweeper_Images/square.png\"));\r\n } catch (FileNotFoundException e) {\r\n e.printStackTrace();\r\n }\r\n map = new Square[r][c];\r\n for(int row = 0; row<map.length; row++){\r\n for(int col = 0; col<map[0].length; col++){\r\n map[row][col] = new Square();\r\n //map[row][col].setVisual(\" \");\r\n int x = row;\r\n int y = col;\r\n map[row][col].setVisual(square);\r\n map[row][col].getSquareButton().setOnMouseClicked(e->{\r\n if(e.getButton() == MouseButton.PRIMARY){\r\n revealArea(x, y);\r\n }\r\n if(e.getButton() == MouseButton.SECONDARY){\r\n flag(x, y);\r\n if(win() == true){\r\n System.out.println(\"WIN\");\r\n EndBox.end(\"Win\", \"YOU WIN!!!\");\r\n System.exit(0);\r\n }\r\n }\r\n });\r\n\r\n\r\n }\r\n\r\n }\r\n }", "void clearMap() {\n STRING_STATISTICS.clear();\n }", "public pacman(int size_of_map) {\n this.positionX = (this.positionY = 0);\n this.size_of_map = size_of_map;\n }", "public void resetGame() {\n frameRate(framerate);\n w = width;\n h = height;\n if (width % pixelSize != 0 || height % pixelSize != 0) {\n throw new IllegalArgumentException();\n }\n\n this.resetGrid();\n this.doRespawn = false;\n this.runGame = true;\n\n spawns = new HashMap();\n spawns.put(\"RIGHT\", new Location(50, (h - topHeight) / 2)); // LEFT SIDE\n spawns.put(\"LEFT\", new Location(w-50, (h - topHeight) / 2)); // RIGHT SIDE\n spawns.put(\"DOWN\", new Location(w/2, topHeight + 50)); // TOP SIDE\n spawns.put(\"UP\", new Location(w/2, h - 50)); // BOTTOM SIDE\n}", "public void clearMap() {\n\t\tfor (int i = 0; i < parkingsArray.size(); i++)\n\t\t\tparkingsArray.valueAt(i).removeMarker();\n\t\tparkingsArray.clear();\n\t\tmap.clear();\n\t}" ]
[ "0.73649895", "0.7251436", "0.7251436", "0.71295017", "0.6975052", "0.6853496", "0.6772152", "0.67515814", "0.67322505", "0.6674043", "0.6667867", "0.66639555", "0.6650887", "0.664012", "0.6637488", "0.6609667", "0.66064876", "0.66064876", "0.6559846", "0.6540566", "0.6536786", "0.6494079", "0.6493361", "0.6486111", "0.6473437", "0.6465494", "0.64589113", "0.64553624", "0.64462245", "0.6425973", "0.642544", "0.6386622", "0.63716716", "0.6369452", "0.63635296", "0.6362972", "0.63490504", "0.63432103", "0.6334011", "0.6328159", "0.6328159", "0.6328159", "0.63141346", "0.6313231", "0.6291002", "0.62775236", "0.6272711", "0.627222", "0.6264303", "0.625916", "0.6252895", "0.6249517", "0.6237771", "0.6234321", "0.6232991", "0.6226847", "0.62222433", "0.6222116", "0.62188554", "0.62139577", "0.6205141", "0.6194551", "0.61924857", "0.6185696", "0.6175728", "0.61679786", "0.6166241", "0.61615294", "0.61547935", "0.61521894", "0.6140039", "0.60966414", "0.6091459", "0.60852736", "0.6071982", "0.60619015", "0.6059223", "0.6057332", "0.604589", "0.6043232", "0.60382724", "0.6036159", "0.6035377", "0.6035037", "0.60315436", "0.6028384", "0.6027911", "0.6023362", "0.6022778", "0.6014544", "0.6001709", "0.5999482", "0.59932506", "0.5977989", "0.59648573", "0.5956648", "0.5941166", "0.5939972", "0.5930821", "0.59298706", "0.5924565" ]
0.0
-1
TODO Autogenerated method stub
@Override public void onAccuracyChanged(Sensor sensor, int accuracy) { }
{ "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
Java Program to Add Two Integers
public static void main(String args[]) { int a=10,b=20; int num1=10,num2=2; System.out.println(a); System.out.println(b); // Java Program to Compute Quotient(/) and Remainder(%) int quotient = num1 / num2; int remainder = num1 % num2; System.out.println("Quotient is: " + quotient); System.out.println("Remainder is: " + remainder); // Java Program to Swap Two Number int first = 12, second = 24; System.out.println("--Before swap--"); System.out.println("First number = " + first); System.out.println("Second number = " + second); first = first - second; second = first + second; first = second - first; System.out.println("--After swap--"); System.out.println("First number = " + first); System.out.println("Second number = " + second); // Java Program to Check Whether a Number is Even or Odd int x=3; if(x%2==0){ System.out.println("EVEN Number"); } else{ System.out.println("ODD Number"); } // Java Program to Check Whether an Alphabet is Vowel or Consonant char ch = 'i'; if(ch == 'a' || ch == 'e' || ch == 'i' || ch == 'o' || ch == 'u' ) System.out.println(ch + " is vowel"); else System.out.println(ch + " is consonant"); // Java Program to Find the Largest Among Three Numbers int nu1 = 10, nu2 = 20, nu3 = 7; if( nu1 >= nu2 && nu1 >= nu3) System.out.println(nu1+" is the largest Number"); else if (nu2 >= nu1 && nu2 >= nu3) System.out.println(nu2+" is the largest Number"); else System.out.println(nu3+" is the largest Number"); // Java Program to Check Whether a Character is Alphabet or Not char c = 'A'; if( (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z')) System.out.println(c + " is an alphabet."); else System.out.println(c + " is not an alphabet."); // Java Program to Find Factorial of a Number int i,fact=1; int number=5; for(i=1;i<=number;i++){ fact=fact*i; } System.out.println("Factorial of Loop using "+number+" is: "+fact); while(i<=number){ fact=fact*i; i++; } System.out.println("Factorial of While using"+number+" is: "+fact); // Java Program to Calculate the Sum of Natural Numbers int num=100,sum=0; for(i=1; i<=num; i++){ sum +=i; } System.out.println("Sum of using For Loop = " + sum); while(i<=num){ sum=sum+i; i++; } System.out.println("Sum of using While Loop = " + sum); // Java Program to Generate Multiplication Table using for or while loop int num11 = 5; for(i = 1; i <= 10; ++i) { System.out.printf("%d * %d = %d \n", num11, i, num11 * i); } int ii = 1,num12 = 9 ; while(ii <= 10) { System.out.printf("%d * %d = %d \n", num12, ii, num12 * ii); ii++; } // Find GCD of two numbers using for loop and if statement int n1 = 81, n2 = 153, gcd = 1; for(int f = 1; f <= n1 && f <= n2; ++f) { // Checks if i is factor of both integers if(n1 % f==0 && n2 % f==0) gcd = f; } System.out.printf("G.C.D of %d and %d is %d", n1, n2, gcd); // using while loop and if else statement int n11 = 81, n22 = 153; while(n11 != n22) { if(n11 > n22) n11 -= n22; else n22 -= n11; } System.out.println("G.C.D = " + n11); // LCM using while Loop and if Statement int n12 = 72, n23 = 120, lcm; lcm = (n12 > n23) ? n12 : n23; while(true) { if( lcm % n12 == 0 && lcm % n12 == 0 ) { System.out.printf("The LCM of %d and %d is %d.", n12, n23, lcm); break; } ++lcm; } // Java Program to Display Characters from A to Z using loop char z; for(z = 'A'; z <= 'Z'; ++z) System.out.print(z + " "); char y; for(y = 'a'; y <= 'z'; ++y) System.out.print(y + " "); //Prime Number Program in Java int ix =0; int numx =0; String primeNumbers = ""; for (ix = 1; ix <= 100; ix++) { int counter=0; for(numx =ix; numx>=1; numx--) { if(ix%numx==0) { counter = counter + 1; } } if (counter ==2) { primeNumbers = primeNumbers + ix + " "; } } System.out.println("Prime numbers from 1 to 100 are :"); System.out.println(primeNumbers); //⦁Palindrome Program in Java int n=1234521, rev=0, rem, temp; temp = n; for( ;n != 0; n /= 10 ) { rem = n % 10; rev= rev* 10 + rem; } if(temp== rev) System.out.println(temp + " is a palindrome."); else System.out.println(temp + " is not a palindrome."); //Right Pascal's Triangle int iii, j; System.out.print("Right Pascal's Triangle"); int row = 8; for (iii= 0; iii<= row-1; iii++) { for (j=0; j<=iii; j++) { System.out.print("*"+ " "); } System.out.println(""); } for (iii=row-1; iii>=0; iii--) { for(j=0; j <= iii-1;j++) { System.out.print("*"+ " "); } System.out.println(""); } //Left Pascal's Triangle int I, J, k; System.out.print("Left Pascal's Triangle"); int rows = 10; for (I= 1; I<= rows ; I++) { for (J=I; J <rows; J++) { System.out.print(" "); } for (k=1; k<=I;k++) { System.out.print("*"); } System.out.println(""); } for (I=rows; I>=1; I--) { for(J=I; J<=rows; J++) { System.out.print(" "); } for(k=1; k<I ;k++) { System.out.print("*"); } System.out.println(""); } //Sandglass Star Pattern int i1, j1, k1, N=10; System.out.print("Sandglass Star Pattern"); for (i1= 0; i1<= N-1 ; i1++) { for (j1=0; j1<i1; j1++) { System.out.print(" "); } for (k1=i1; k1<=N-1; k1++) { System.out.print("*" + " "); } System.out.println(""); } for (i1= N-1; i1>= 0; i1--) { for (j1=0; j1<i1; j1++) { System.out.print(" "); } for (k1=i1; k1<=N-1; k1++) { System.out.print("*" + " "); } System.out.println(""); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int addInt(int a, int b){\r\n\t\treturn a+b;\r\n\t}", "public int addTwoNumbers(int a, int b) {\n return a + b;\n }", "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 Integer add(Integer a, Integer b) {\n\t\treturn a + b;\n\t}", "public static int Add(int a, int b){\n\t\t\treturn (a+b);\n\t\t\t\n\t\t}", "public static int add(int a, int b)\n\t{\n\t\treturn a + b;\n\t}", "public int addition(int a, int b){\r\n\t\treturn a+b;\r\n\t}", "public int addition(int a, int b){\n return a + b;\n }", "public int addNum(int a, int b){\n return a+b;\n }", "@Override\n\tpublic int add(int a, int b) {\n\t\treturn a+b;\n\t}", "@Override\r\n\tpublic int add(int a,int b) {\n\t\treturn a+b;\r\n\t}", "public static int plus(int value1, int value2){\r\n return value1 + value2;\r\n }", "public Integer add(Integer first, Integer second){\n return first + second;\n }", "public static int addNums(int a, int b) {\n int result = a + b;\n return(result);\n }", "public int add(int a, int b) {\n return a + b;\n }", "public int add(int a, int b) {\n return a + b;\n }", "public double add(int a, int b){\r\n return a + b;\r\n }", "public int addition(int a, int b){\r\n int result = a+b;\r\n return result;\r\n }", "@Override\n\t\t\tpublic Integer apply(Integer num1, Integer num2) {\n\t\t\t\treturn num1+num2;\n\t\t\t}", "public static int sum (int a, int b) {\n\t\t\n\t\treturn a + b;\n\t}", "public int sum(int a, int b) {\n\t\treturn a + b;\n\t}", "public int add(int a, int b) {\n int sum = a+b;\n return sum;\n }", "private void addTwoNumbers() {\n\t\t\n\t}", "public Integer add();", "public static int sum(int a, int b) {\n return a + b;\n }", "static int soma2(int a, int b) {\n\t\tint s = a + b;\r\n\t\treturn s;\r\n\t}", "public static double add(int left, int right){\n return left + right;\n }", "static long add(long a, long b){\n\t\treturn a+b;\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}", "public void add (int a , int b) {\n\t\tint c=a+b;\r\n\t\tSystem.out.println(\"Sum of numbers is : \" + c);\r\n\t}", "public static int sum(int a,int b) {\n\t\tint c = a + b;\n\t\treturn c;\n\t}", "private long calcSum(int a, int b) {\n return (new Long(a) + new Long(b));\n }", "@Override\r\n\tpublic int plus(int x, int y) {\n\t\treturn x + y;\r\n\t}", "@Override\r\n\tprotected Integer add(Integer x1, Integer x2) {\n\t\treturn x2+x1;\r\n\t}", "@Override\r\n\tpublic int add(int a, int b) {\n\t\tSystem.out.println(a+b);\r\n\t\treturn a+b;\r\n\t}", "public int sum(Integer x, Integer y) {\n\t\treturn x+y;\n\t}", "static int add(int a, int b){\n int carry = 0;\n int result = 0;\n int i;\n for(i=0; a>0||b>0; i++){\n int ba = a&1;\n int bb = b&1;\n result = result|((carry^ba^bb)<<i);\n carry = (ba&bb) | (bb&carry) | (carry&ba);\n a = a>>1;\n b = b>>1;\n }\n return result|(carry<<i);\n }", "public static int suma(int num1, int num2){\r\n\t\treturn num1+num2;\r\n\t}", "public static NumberP Addition(NumberP first, NumberP second)\n {\n return OperationsManaged.PerformArithmeticOperation\n (\n first, second, ExistingOperations.Addition\n ); \t\n }", "int sum(int a, int b) {\n return a + b;\n }", "public static Digit plus(Digit first, Digit second){\n return Operations.plus(first.copy(), second.copy());\n }", "public void add( int a, int b) {\n\t\t\n\t\t\n\tint c = a + b;\n\t\t\n\t\t\n\t\tSystem.out.println(c);\n\t}", "public void add(int a, int b) {\n\n\t\tint sum = a + b;\n\t\tSystem.out.println(\"Sum = \" + sum);\n\n\t}", "public Integer call(Integer a, Integer b) throws Exception {\n\t\t\t\treturn a+b;\n\t\t\t}", "void add(int i, int j) {\r\n\t\tnum1 = i;\r\n\t\tnum2 = j;\r\n\t\tresult = i+j;\r\n\t\t}", "@Override\r\n\tpublic int addNo(int a, int b) {\n\t\treturn a+b;\r\n\t}", "public static int Sum(int a, int b)\r\n\t{\n\tint sum=a+b;\r\n\treturn sum;\r\n\t}", "@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}", "static int sum(int value1, int value2) {\n return value1 + value2;\n }", "public int sumTwo(int a, int b) {\n\t\twhile (b != 0) {\n\t\t\tint sum = a ^ b;\n\t\t\tint carry = (a & b) << 1;\n\t\t\ta = sum; \n\t\t\tb = carry; \n\t\t}\n\t\treturn a;\n\t}", "public int add(int x, int y) {\n int n1 = x;\n int n2 = y;\n int carry = x & y; //the AND operator returns a bit string representing the positions where addition carries over\n if (n2 == 0) {\n return n1;\n }\n return add(n1 ^ n2, carry << 1);\n }", "public int add(int number1, int number2)\n\t\tthrows CalculatorOperationException;", "public static String plusInt(String num1, String num2){\n\t\tString result =\"\";\n\t\tif(null != num1 && !\"\".equals(num1) && null != num2 && !\"\".equals(num2)){\n\t\t\tresult = String.valueOf((Integer.parseInt(num1)+Integer.parseInt(num2)));\n\t\t}\n\t\treturn result;\n\t}", "static int sum(int a, int b) {\n return a+b;\r\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\n\t\tpublic int add(int a, int b) throws RemoteException {\n\t\t\tLog.i(TAG, \"add a = \" + a + \", b = \" + b);\n\t\t\treturn a+b;\n\t\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 }", "void add(int a, int b) {\n\n\t\tint sum = a + b;\n\t\tSystem.out.println(\"Sum of a+b is \" + sum);\n\n\t}", "public int sum(int x, int y)\n\t{\n\t\treturn x+y;\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 }", "@Override\n\tpublic int add(int a, int b) {\n\t\treturn super.add(a, b);\n\t}", "BaseNumber add(BaseNumber operand);", "public void getSum(int a, int b) {\n\t\tSystem.out.println( a + b);\n\t}", "public static void sum(int a,int b) {\n\t\tSystem.out.println(a+b);\n\t}", "@Override\r\n\tpublic int calculate(int a, int b) {\n\t\treturn (a + b) * 2;\r\n\t}", "@Override\n\tpublic int add(int num1, int num2) throws TException {\n\t\treturn num1+num2;\n\t}", "static void add() {\r\n\t\t\r\n\t\tint a = 500;\r\n\t\tint b = 300;\r\n\t\t\r\n\t\tint s = a +b;\r\n\t\tSystem.out.println(s);\r\n\t}", "public int sum(int x, int y) {\r\n\t\treturn (x+y);\r\n\t}", "public static int getSum(int a, int b) {\n// Integer.toBinaryString(a) ^ Integer.toBinaryString(b);\n return a ^ b;\n }", "void add(int a,int b) {\r\n\t\tint c=a+b;\r\n\t\tSystem.out.print(c);\r\n\t}", "public static void add(int a,int b){ }", "@Override\n public long addlong(long o1, long o2) {\n return o1 + o2;\n }", "public static int suma (int x, int y){\n int s=x+y;\n return s;\n }", "void add(int a,int b){\r\n\t\tint c=a+b;\r\n\t\tSystem.out.println(\"Sum =\"+c);\r\n\t}", "public static int sum(int n1, int n2){\n return n1 + n2;\n }", "public static int sum(int first, int second) {\n\t\treturn first + second;\n\n\t}", "public int plusInt(int index0, int index1) {\n return elementIndex(plus((IntArray)getElement(index0), (IntArray)getElement(index1)));\n }", "int method01(int a, int b) {\n\n\t\ta = a + b;\n\t\treturn a;\n\t}", "public static void add(int[] n1, int[] n2, int[] sum) {\n\t\tint b = n1.length-1;\n\t\tint carry = 0;\n\t\twhile (b >= 0) {\n\t\t\tint s = n1[b] + n2[b] + carry;\n\t\t\tsum[b+1] = s % 10;\n\t\t\tif (s > 9) { carry = 1; } else { carry = 0; }\n\t\t\tb--;\n\t\t}\n\t\t\n\t\tsum[0] = carry;\n\t}", "public void add (double a , int b) {\n\t\tdouble c=a+b;\r\n\t\tSystem.out.println(\"Sum of numbers is : \" + c);\r\n\t}", "public static int addThem(int x, int y)\n {\n return x + y;\n }", "void add(int value);", "public void add(double a, int b)\n\t{\n\t\tdouble sum = a+b;\t\t\t\t\n\t\tSystem.out.println(\"Sum of numbers is \"+sum);\n\t}", "public int suma(int numero1, int numero2){\n //Estas variables solo tienen el alcance de este metodo\n return numero1 + numero2;\n }", "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}", "private int[] add(int[] a, int[] b)\n {\n int tI = a.length - 1;\n int vI = b.length - 1;\n long m = 0;\n\n while (vI >= 0)\n {\n m += (((long)a[tI]) & IMASK) + (((long)b[vI--]) & IMASK);\n a[tI--] = (int)m;\n m >>>= 32;\n }\n\n while (tI >= 0 && m != 0)\n {\n m += (((long)a[tI]) & IMASK);\n a[tI--] = (int)m;\n m >>>= 32;\n }\n\n return a;\n }", "private int[] add(int[] a, int[] b)\n {\n int tI = a.length - 1;\n int vI = b.length - 1;\n long m = 0;\n\n while (vI >= 0)\n {\n m += (((long)a[tI]) & IMASK) + (((long)b[vI--]) & IMASK);\n a[tI--] = (int)m;\n m >>>= 32;\n }\n\n while (tI >= 0 && m != 0)\n {\n m += (((long)a[tI]) & IMASK);\n a[tI--] = (int)m;\n m >>>= 32;\n }\n\n return a;\n }", "public void add() {\r\n\t\tint num1=5,num2=3,sum;\r\n\r\n\t\tsum=num1+num2;\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"Adding two numbers\" + sum);\r\n\t\r\n\t\t\r\n\t}", "public static int add(int a, int b, int c)\n\t{\n\t\treturn a + b + c;\n\t}", "void SumOfTwoNumbers()\n\t{\n\tSystem.out.println(\"sum is\"+(a+b));\n\t}", "private static int add(int x, int y) {\n\n\n while (y != 0) {\n // carry now contains common\n //set bits of x and y\n int carry = (x & y);\n\n\n // Sum of bits of x and y where at\n //least one of the bits is not set\n x = (x ^ y);\n\n\n // Carry is shifted by one so that adding\n // it to x gives the required sum\n y = (carry << 1);\n }\n\n if (x > 255)\n x = x - 255; //101011111\n\n return x;\n }", "void add(BigInt number);", "public static final ListNode<java.lang.Integer> Add (\n\t\tfinal ListNode<java.lang.Integer> headNode1,\n\t\tfinal ListNode<java.lang.Integer> headNode2)\n\t{\n\t\tint carry = 0;\n\t\tListNode<java.lang.Integer> node1 = headNode1;\n\t\tListNode<java.lang.Integer> node2 = headNode2;\n\t\tListNode<java.lang.Integer> additionHeadNode = null;\n\t\tListNode<java.lang.Integer> additionPrevNode = null;\n\n\t\twhile (null != node1 && null != node2) {\n\t\t\tint sum = carry + node1.value() + node2.value();\n\n\t\t\tListNode<java.lang.Integer> additionNode = new ListNode<java.lang.Integer> (sum % 10, null);\n\n\t\t\tif (null != additionPrevNode) additionPrevNode.setNext (additionNode);\n\n\t\t\tif (null == additionHeadNode) additionHeadNode = additionNode;\n\n\t\t\tadditionPrevNode = additionNode;\n\t\t\tcarry = sum / 10;\n\n\t\t\tnode1 = node1.next();\n\n\t\t\tnode2 = node2.next();\n\t\t}\n\n\t\twhile (null != node1) {\n\t\t\tint sum = carry + node1.value();\n\n\t\t\tListNode<java.lang.Integer> additionNode = new ListNode<java.lang.Integer> (sum % 10, null);\n\n\t\t\tif (null != additionPrevNode) additionPrevNode.setNext (additionNode);\n\n\t\t\tif (null == additionHeadNode) additionHeadNode = additionNode;\n\n\t\t\tadditionPrevNode = additionNode;\n\t\t\tcarry = sum / 10;\n\n\t\t\tnode1 = node1.next();\n\t\t}\n\n\t\twhile (null != node2) {\n\t\t\tint sum = carry + node2.value();\n\n\t\t\tListNode<java.lang.Integer> additionNode = new ListNode<java.lang.Integer> (sum % 10, null);\n\n\t\t\tif (null != additionPrevNode) additionPrevNode.setNext (additionNode);\n\n\t\t\tif (null == additionHeadNode) additionHeadNode = additionNode;\n\n\t\t\tadditionPrevNode = additionNode;\n\t\t\tcarry = sum / 10;\n\n\t\t\tnode2 = node2.next();\n\t\t}\n\n\t\treturn additionHeadNode;\n\t}", "public static void main(String[] args) {\n int[] digits = {1, 2, 3};\n int[] digits2 = {9, 9, 9};\n System.out.println(Arrays.toString(plusOne(digits)));\n System.out.println(Arrays.toString(plusOne(digits2)));\n }", "static int sumOfNumbers(int x, int y) {\n return x + y;\n }", "public int getSum(int x, int y){\n return x+y;\n }", "private void addition()\n {\n\tint tempSum = 0;\n\tint carryBit = 0;\n\tsum = new Stack<String>();\n\tStack<String> longerStack = pickLongerStack(number, otherNumber);\n\twhile(!longerStack.isEmpty())\n\t{\n\t tempSum = digitOf(number) + digitOf(otherNumber) + carryBit; //adding\n\t carryBit = tempSum / 10;\n\t sum.push((tempSum % 10) + \"\"); //store the digit which is not carryBit\n\t}\n\tif(carryBit == 1) sum.push(\"1\"); //the last carry bit need to be add as very first digit of sum if there is carry bit\n }", "public static int sum(int a, int b) {\n\t\tif (b <= 0) {\n\t\t\treturn a;\n\t\t} else {\n\t\t\treturn sum(a + 1, b - 1);\n\t\t}\n\t}", "public static void main (String[] args) {\n Scanner s = new Scanner(System.in);\n String input = s.nextLine();\n int result = Integer.parseInt(input);\n System.out.println(SimpleAdding(result));\n }", "public double add(double firstNumber, double secondNUmber){\n\t\treturn firstNumber + secondNUmber;\n\t}", "@Override\n\tpublic int add(int val1, int val2) {\n\t\tthis.test++;\n\t\tSystem.out.println(this.test);\n\t\treturn val1+val2;\n\t}" ]
[ "0.8049507", "0.7984676", "0.7671734", "0.76191175", "0.75826496", "0.7572599", "0.75486815", "0.75218123", "0.7492805", "0.7490608", "0.7482311", "0.7431278", "0.74215895", "0.7416054", "0.7391583", "0.7391583", "0.7319387", "0.7307583", "0.7277545", "0.7273798", "0.7221856", "0.7220247", "0.7194322", "0.7178974", "0.7173362", "0.71258724", "0.7085422", "0.70686936", "0.70650285", "0.70444006", "0.70389533", "0.70346785", "0.7017293", "0.7008532", "0.6998495", "0.69881505", "0.69805616", "0.6978258", "0.69702846", "0.6946885", "0.6935225", "0.69094896", "0.6884193", "0.6859122", "0.68526685", "0.6848264", "0.68378925", "0.6836275", "0.6833822", "0.6813862", "0.6813144", "0.6813004", "0.6812875", "0.6800629", "0.6797697", "0.67574996", "0.6752707", "0.67465055", "0.67385364", "0.6726638", "0.67216253", "0.66978055", "0.66967636", "0.6695948", "0.6694602", "0.66828847", "0.6674475", "0.66717213", "0.66646016", "0.6633293", "0.6628939", "0.6620319", "0.66198003", "0.66134936", "0.6608017", "0.660022", "0.65905637", "0.6554149", "0.65493435", "0.65367144", "0.65297437", "0.65270925", "0.65264666", "0.6522076", "0.65215564", "0.65133023", "0.65133023", "0.65108186", "0.6508734", "0.6505904", "0.6502735", "0.6499435", "0.6486969", "0.6479578", "0.64778847", "0.6470508", "0.64626336", "0.6452898", "0.6450934", "0.6439333", "0.643881" ]
0.0
-1
return SpringUtil.getOfferCacheBean().query return DBConfigInitBean.getCacheHouse().getCacheParser(CaBillingPeriod.class).getSingle(new CacheCondition(CaBillingPeriod.Field.periodId, periodId)); return querySingle(CaBillingPeriod.class, new DBCondition(CaBillingPeriod.Field.periodId, periodId));
protected CaBillingPeriod getCaBillingPeriod(Integer periodId) { List<CaBillingPeriod> periodList=getCaBillingPeriodList(periodId); if(CommonUtil.isNotEmpty(periodList)){ return periodList.get(0); }else{ return null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private BillingPeriod getBillingPeriod() {\n\t\treturn (BillingPeriod) this.getBean();\n\t}", "private static OfferDAO getOfferDAO() {\n DbConnection dbConnection = new DbConnection();\n DBI dbi = dbConnection.getDBConnection();\n OfferDAO offerDAO = dbi.onDemand(OfferDAO.class);\n return offerDAO;\n }", "@Override\n @Cacheable(value=AccountingPeriod.CACHE_NAME, key=\"'date='+#p0\")\n public AccountingPeriod getByDate(Date date) {\n Map<String,Object> primaryKeys = new HashMap<String, Object>();\n primaryKeys.put(OLEPropertyConstants.UNIVERSITY_DATE, date);\n UniversityDate universityDate = businessObjectService.findByPrimaryKey(UniversityDate.class, primaryKeys);\n primaryKeys.clear();\n primaryKeys.put(OLEPropertyConstants.UNIVERSITY_FISCAL_YEAR, universityDate.getUniversityFiscalYear());\n primaryKeys.put(OLEPropertyConstants.UNIVERSITY_FISCAL_PERIOD_CODE, universityDate.getUniversityFiscalAccountingPeriod());\n return businessObjectService.findByPrimaryKey(AccountingPeriod.class, primaryKeys);\n }", "@Override\n\tpublic String queryBillingByStore(String code) {\n\t\treturn null;\n\t}", "@Cacheable(value=\"netTest.questionCache\", key=\"'WareDao.selectByPK~ware:'+#pk\", unless=\"#result==null\")\n public Ware selectByPK(Long pk){\n \tif(pk==null)\n \t\treturn null;\n\t\tWare record = (Ware) this.queryForObject(\"Ware.selectByPK\", pk);\n\t\t// build assoic for cache\n\t\tif(record!=null){\n \t CacheSynchronizer.getInstance().buildAssoc(\"netTest.questionCache\", \n \t\t\t \"WareDao.selectByPK~\"+Ware.ObjectType+\":\"+pk);\n \t}\n\t\treturn record;\n }", "@Override\n @Cacheable(value=AccountingPeriod.CACHE_NAME, key=\"#p0+'-'+#p1\")\n public AccountingPeriod getByPeriod(String periodCode, Integer fiscalYear) {\n // build up the hashmap to find the accounting period\n HashMap<String,Object> keys = new HashMap<String,Object>();\n keys.put( OLEPropertyConstants.UNIVERSITY_FISCAL_PERIOD_CODE, periodCode);\n keys.put( OLEPropertyConstants.UNIVERSITY_FISCAL_YEAR, fiscalYear);\n AccountingPeriod acctPeriod = businessObjectService.findByPrimaryKey(AccountingPeriod.class, keys);\n return acctPeriod;\n }", "public DTOUnidadAdministrativa obtenerUAActiva(Long oidCliente, Long oidPeriodo) throws MareException {\n UtilidadesLog.info(\"DAOMAEMaestroClientes.obtenerUAActiva(Long oidCliente, Long oidPeriodo): Entrada\"); \n BelcorpService bs;\n RecordSet resultado = new RecordSet();\n bs = UtilidadesEJB.getBelcorpService();\n\n DTOUnidadAdministrativa dtoS = new DTOUnidadAdministrativa();\n\n StringBuffer query = new StringBuffer();\n\n try {\n query.append(\" SELECT distinct sub.PAIS_OID_PAIS, sub.MARC_OID_MARC, sub.CANA_OID_CANA, OID_SUBG_VENT, \");\n query.append(\" OID_REGI, OID_ZONA, OID_SECC, TERR_OID_TERR, t.COD_NSE1, t.COD_NSE2, t.COD_NSE3, \");\n query.append(\" OID_TERR_ADMI, pi.FEC_INIC, unid.PERD_OID_PERI_INI, unid.PERD_OID_PERI_FIN \");\n query.append(\" FROM MAE_CLIEN_UNIDA_ADMIN unid, \");\n query.append(\" ZON_TERRI_ADMIN tadm, \");\n query.append(\" \t ZON_TERRI t, \");\n query.append(\" \t ZON_SECCI, \");\n query.append(\" \t ZON_ZONA, \");\n query.append(\" \t ZON_REGIO, \");\n query.append(\" \t ZON_SUB_GEREN_VENTA sub, \");\n query.append(\" CRA_PERIO pi, \");\n query.append(\" \t CRA_PERIO pi2 \");\n query.append(\" WHERE unid.CLIE_OID_CLIE = \" + oidCliente);\n query.append(\" AND unid.IND_ACTI = 1 \"); // Unidad Administrativa \"Activa\" \n query.append(\" AND unid.PERD_OID_PERI_INI = pi.OID_PERI \");\n query.append(\" AND pi.FEC_INIC <= (SELECT FEC_INIC FROM CRA_PERIO WHERE OID_PERI = \" + oidPeriodo + \")\");\n query.append(\" AND ((unid.PERD_OID_PERI_FIN = pi2.OID_PERI \");\n query.append(\" AND pi2.FEC_FINA >= (SELECT FEC_FINA FROM CRA_PERIO WHERE OID_PERI = \" + oidPeriodo + \") )\");\n query.append(\" OR unid.PERD_OID_PERI_FIN is NULL) \");\n query.append(\" AND ZTAD_OID_TERR_ADMI = OID_TERR_ADMI \");\n query.append(\" AND TERR_OID_TERR = OID_TERR \");\n query.append(\" AND ZSCC_OID_SECC = OID_SECC \");\n query.append(\" AND ZZON_OID_ZONA = OID_ZONA \");\n query.append(\" AND ZORG_OID_REGI = OID_REGI \");\n query.append(\" AND ZSGV_OID_SUBG_VENT = OID_SUBG_VENT \"); \n query.append(\" order by pi.FEC_INIC desc \");\n\n bs = BelcorpService.getInstance();\n resultado = bs.dbService.executeStaticQuery(query.toString());\n } catch (Exception e) {\n throw new MareException(e, UtilidadesError.armarCodigoError(CodigosError.ERROR_DE_LECTURA_EN_BASE_DE_DATOS));\n }\n\n if (resultado.esVacio()) {\n UtilidadesLog.debug(\"...no hay registros de obtenerUAActiva\");\n UtilidadesLog.info(\"DAOMAEMaestroClientes.obtenerUAActiva(Long oidCliente, Long oidPeriodo): Salida\"); \n return null;\n } else {\n UtilidadesLog.debug(\"...resultado de obtenerUAActiva es: \" + resultado);\n dtoS.setNSE1(objToString(resultado.getValueAt(0, \"COD_NSE1\")));\n dtoS.setNSE2(objToString(resultado.getValueAt(0, \"COD_NSE2\")));\n dtoS.setNSE3(objToString(resultado.getValueAt(0, \"COD_NSE3\")));\n dtoS.setOidCanal(objToLong(resultado.getValueAt(0, \"CANA_OID_CANA\")));\n dtoS.setOidMarca(objToLong(resultado.getValueAt(0, \"MARC_OID_MARC\")));\n dtoS.setOidPais(objToLong(resultado.getValueAt(0, \"PAIS_OID_PAIS\")));\n dtoS.setOidRegion(objToLong(resultado.getValueAt(0, \"OID_REGI\")));\n dtoS.setOidSeccion(objToLong(resultado.getValueAt(0, \"OID_SECC\")));\n dtoS.setOidSGV(objToLong(resultado.getValueAt(0, \"OID_SUBG_VENT\")));\n dtoS.setOidTerritorio(objToLong(resultado.getValueAt(0, \"TERR_OID_TERR\")));\n dtoS.setOidTerritorioAdministrativo(objToLong(resultado.getValueAt(0, \"OID_TERR_ADMI\")));\n dtoS.setOidZona(objToLong(resultado.getValueAt(0, \"OID_ZONA\")));\n \n dtoS.setOidCliente(oidCliente);\n UtilidadesLog.info(\"DAOMAEMaestroClientes.obtenerUAActiva(Long oidCliente, Long oidPeriodo): Salida\"); \n return dtoS;\n }\n }", "public static ru.terralink.mvideo.sap.Orders findByPrimaryKey(java.lang.String IV_FO_TOR_ID\n ,java.lang.String IV_FU_TOR_ID)\n {\n String intervalName = null;\n if(com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.isEnabled)\n {\n intervalName = \"Orders.findByPrimaryKey\";\n com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.getInstance().startInterval(intervalName, com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.PersistenceRead);\n }\n try\n {\n \n \n String _selectSQL = \"SELECT x.\\\"a\\\",x.\\\"b\\\",x.\\\"c\\\",x.\\\"d\\\",x.\\\"e\\\",x.\\\"f\\\",x.\\\"g\\\",x.\\\"h\\\",x.\\\"i\\\",x.\\\"j\\\",x.\\\"l\\\",x.\\\"m\\\",x.\\\"n\\\",x.\\\"o\\\",x.\\\"p\\\",x.\\\"q\\\",x.\\\"r\\\",x.\\\"s\\\",x.\\\"t\\\",x.\\\"u\\\",x.\\\"v\\\",x.\\\"w\\\",x.\\\"x\\\",x.\\\"y\\\",x.\\\"z\\\",x.\\\"ba\\\",x.\\\"bb\\\",x.\\\"bc\\\",x.\\\"bd\\\",x.\\\"be\\\",x.\\\"bf\\\",x.\\\"bg\\\",x.\\\"bh\\\",x.\\\"bi\\\",x.\\\"bj\\\",x.\\\"bl\\\",x.\\\"bm\\\",x.\\\"pending\\\",x.\\\"_pc\\\",x.\\\"_rp\\\",x\"\n + \".\\\"_rf\\\",x.\\\"relationsFK\\\",x.\\\"bn\\\",x.\\\"_rc\\\",x.\\\"_ds\\\",x.\\\"cvpOperation_length\\\",x.\\\"cvpOperationLobs_length\\\" FROM \\\"mvideo5_1_0_orders\\\" x WHERE (((x.\\\"pending\\\" = 1 or not exists (select x_os.\\\"bn\\\" from \\\"mvideo5_1_0_orders_os\\\" x_os where x_os.\\\"bn\\\" = x.\\\"bn\\\")))) and ( x.\\\"bl\\\" = ? AND x.\\\"bm\\\" = ?)\";\n String[] ids = new String[0];\n com.sybase.reflection.DataType[] dts = new com.sybase.reflection.DataType[]{ \n com.sybase.reflection.DataType.forName(\"string\"),\n com.sybase.reflection.DataType.forName(\"string\"),\n };\n Object[] values = new Object[] { \n IV_FO_TOR_ID,\n IV_FU_TOR_ID,\n };\n Object res = DELEGATE.findWithSQL(_selectSQL, dts, values, ids, ru.terralink.mvideo.sap.Orders.class);\n return (ru.terralink.mvideo.sap.Orders)res;\n }\n finally\n {\n if(com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.isEnabled)\n {\n com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.getInstance().stopInterval(intervalName);\n }\n }\n }", "public Container<PosPay> findPosPay(PosPay posPay,int firstResult ,int maxResults)throws DataAccessException;", "public ResultSet Brus(Long broker_id) throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select * from broker where broker_id=\"+broker_id+\" \");\r\n\treturn rs;\r\n\t\r\n}", "@Override\n @Cacheable(value=AccountingPeriod.CACHE_NAME, key=\"'{getOpenAccountingPeriods}'\")\n public Collection<AccountingPeriod> getOpenAccountingPeriods() {\n HashMap<String,Object> map = new HashMap<String,Object>();\n map.put(OLEConstants.ACCOUNTING_PERIOD_ACTIVE_INDICATOR_FIELD, Boolean.TRUE);\n\n return businessObjectService.findMatchingOrderBy(AccountingPeriod.class, map, OLEPropertyConstants.ACCTING_PERIOD_UNIV_FISCAL_PERIOD_END_DATE, true);\n }", "@Repository\npublic interface DeliveryMethodDao extends JpaRepository<DeliveryMethod, Integer> {\n\n DeliveryMethod findById(int id);\n\n List<DeliveryMethod> findAll();\n\n @Query(\"from DeliveryMethod dm where dm.endDate >= current_date()\")\n List<DeliveryMethod> findAllAvailable();\n\n}", "public Periodo buscarPorId(Integer id)\r\n/* 32: */ {\r\n/* 33: 64 */ return (Periodo)this.periodoDao.buscarPorId(id);\r\n/* 34: */ }", "public DR getBillingPeriod() { \r\n\t\tDR retVal = this.getTypedField(26, 0);\r\n\t\treturn retVal;\r\n }", "List<BusinessTransaction> query(String tenantId, BusinessTransactionCriteria criteria);", "BillingSource billingSource();", "@Select(\"select * from deal_record where d_account=#{id} order by d_time desc\")\n List<Record> queryallRecord(Integer id);", "@Transactional(readOnly = true) \n public PtoPeriodDTO findOne(Long id) {\n log.debug(\"Request to get PtoPeriod : {}\", id);\n PtoPeriod ptoPeriod = ptoPeriodRepository.findOne(id);\n PtoPeriodDTO ptoPeriodDTO = ptoPeriodMapper.ptoPeriodToPtoPeriodDTO(ptoPeriod);\n return ptoPeriodDTO;\n }", "public DR getPsl26_BillingPeriod() { \r\n\t\tDR retVal = this.getTypedField(26, 0);\r\n\t\treturn retVal;\r\n }", "public interface PlanDao extends JpaRepository<Plan,Long> {\n Plan findByPrepodAndStartYear(Prepod prepod, int startYear);\n}", "@Override\n public CerereDePrietenie findOne(Long aLong) {\n// String SQL = \"SELECT id,id_1,id_2,status,datac\"\n// + \"FROM cereredeprietenie \"\n// + \"WHERE id = ?\";\n//\n// try (Connection conn = connect();\n// PreparedStatement pstmt = conn.prepareStatement(SQL)) {\n//\n// pstmt.setInt(1, Math.toIntExact(aLong));\n// ResultSet rs = pstmt.executeQuery();\n//\n// while(rs.next()) {\n// Long id = rs.getLong(\"id\");\n// Long id_1 = rs.getLong(\"id_1\");\n// Long id_2 = rs.getLong(\"id_2\");\n//\n// String status = rs.getString(\"status\");\n// LocalDateTime data = rs.getObject( 5,LocalDateTime.class);\n//\n// Utilizator u1=repository.findOne(id_1);\n// Utilizator u2=repository.findOne(id_2);\n//\n// CerereDePrietenie u =new CerereDePrietenie(u1,u2);\n// u.setId(id);\n// u.setStatus(status);\n// u.setData(data);\n// return u;\n// }\n//\n//\n// } catch (SQLException ex) {\n// System.out.println(ex.getMessage());\n// }\n//\n// return null;\n List<CerereDePrietenie> list=new ArrayList<>();\n findAll().forEach(list::add);\n for(CerereDePrietenie cerere: list){\n if(cerere.getId() == aLong)\n return cerere;\n }\n return null;\n }", "@Transactional\r\n\t@Override\r\n\tpublic List<Map<String, Object>> findbyperaccount(String peracId) {\n\t\tList<Map<String, Object>> list=dao.findbyperaccount(peracId);\r\n\t\treturn list;\r\n\t}", "public static ArrayList<BHP> getBHPsOnDemand(Resident resident, Date date) {\n\n List<Prescription> listPrescriptions = PrescriptionTools.getOnDemandPrescriptions(resident, date);\n LocalDate lDate = new LocalDate(date);\n long begin = System.currentTimeMillis();\n EntityManager em = OPDE.createEM();\n ArrayList<BHP> listBHP = new ArrayList<BHP>();\n\n try {\n Date now = new Date();\n\n String jpql = \" SELECT bhp \" +\n \" FROM BHP bhp \" +\n \" WHERE bhp.prescription = :prescription \" +\n \" AND bhp.soll >= :from AND bhp.soll <= :to AND bhp.dosis > 0 \";\n Query queryOnDemand = em.createQuery(jpql);\n\n for (Prescription prescription : listPrescriptions) {\n queryOnDemand.setParameter(\"prescription\", prescription);\n queryOnDemand.setParameter(\"from\", lDate.toDateTimeAtStartOfDay().toDate());\n queryOnDemand.setParameter(\"to\", SYSCalendar.eod(lDate).toDate());\n\n ArrayList<BHP> listBHP4ThisPrescription = new ArrayList<BHP>(queryOnDemand.getResultList());\n\n PrescriptionSchedule schedule = prescription.getPrescriptionSchedule().get(0);\n // On Demand prescriptions have exactly one schedule, hence the .get(0).\n // There may not be more than MaxAnzahl BHPs resulting from this prescription.\n if (listBHP4ThisPrescription.size() < schedule.getMaxAnzahl()) {\n // Still some BHPs to go ?\n for (int i = listBHP4ThisPrescription.size(); i < schedule.getMaxAnzahl(); i++) {\n BHP bhp = new BHP(schedule);\n bhp.setIst(now);\n bhp.setSoll(date);\n bhp.setSollZeit(SYSCalendar.BYTE_TIMEOFDAY);\n bhp.setDosis(schedule.getMaxEDosis());\n bhp.setState(BHPTools.STATE_OPEN);\n listBHP4ThisPrescription.add(bhp);\n }\n }\n listBHP.addAll(listBHP4ThisPrescription);\n // outcome BHPs\n// listBHP.addAll(new ArrayList<BHP>(queryOutcome.getResultList()));\n }\n\n Collections.sort(listBHP, getOnDemandComparator());\n } catch (Exception se) {\n OPDE.fatal(se);\n } finally {\n em.close();\n }\n SYSTools.showTimeDifference(begin);\n return listBHP;\n }", "@SqlQuery(\"select * from account\")\r\n public List<accountDB> get();", "public static String getBills(){\n return \"select * from current_bills\";\n }", "@Override\n public Optional<Quote> findById(String ticker) {\n String selectSql = \"SELECT * FROM \" + TABLE_NAME + \" where ticker = '\" + ticker + \"'\";\n List<Quote> quotes = jdbcTemplate\n .query(selectSql, BeanPropertyRowMapper.newInstance(Quote.class));\n if(quotes.size()==1){\n Quote outQuote = quotes.get(0);\n return Optional.ofNullable(outQuote);\n }else{\n throw new DataRetrievalFailureException(\"cannot Get data\");\n }\n\n }", "public interface QueryAllianceDao extends BaseMapper<Alliance> {\r\n//\r\n List<AllianceRecord> findAlliancePage(Page<AllianceRecord> page, @Param(\"record\") AllianceRecord record,\r\n @Param(\"search\") String search, @Param(\"orderBy\") String orderBy,\r\n @Param(\"startingCycleStartTime\") Date startingCycleStartTime,\r\n @Param(\"startingCycleEndTime\") Date startingCycleEndTime,\r\n @Param(\"leftNumber\") Integer leftNumber, @Param(\"rightNumber\") Integer rightNumber);\r\n //rpc分页列表\r\n List<AllianceRecord> findAlliancePageShip(Page<AllianceRecord> page, @Param(\"record\") AllianceRecord record,\r\n @Param(\"search\") String search, @Param(\"orderBy\") String orderBy,\r\n @Param(\"startingCycleStartTime\") Date startingCycleStartTime,\r\n @Param(\"startingCycleEndTime\") Date startingCycleEndTime);\r\n //根据userID查询当月的订单\r\n List<Map> getCurrentMonthOrderByUserId(@Param(\"id\") Long id);\r\n //根据userID 查询盟友信息\r\n AllianceRecord selectAllianceOneByUserId(@Param(\"id\") Long id);\r\n //查询自营商品\r\n public List<Map> getSelfProductByUserId(@Param(\"id\") Long id);\r\n //充值套餐\r\n @Select(\"select CONCAT('充值',value) as title,value from t_config_field where group_id=1\")\r\n List<JSONObject> getSetMeal();\r\n //查询邀请码\r\n Long selectUserIdByInvitationCode(@Param(\"invitationCode\") String invitationCode);\r\n\r\n //查询盟友详情\r\n AllianceRecord allianceDetails(@Param(\"id\") Long id);\r\n //查询电话号码是否存在\r\n @Select(\"select alliance_phone from t_alliance where alliance_phone=#{phone} \")\r\n String queryPhone(@Param(\"phone\") String phone);\r\n\r\n //查询自己的团队\r\n List<AllianceRecord> myTeam(Page<AllianceRecord> page,\r\n @Param(\"id\") Long id,\r\n @Param(\"record\") AllianceRecord record,\r\n @Param(\"search\") String search);\r\n //查询自己的订单总额\r\n @Select(\"select total_price as totalPrice,user_id as userId from t_order where id=#{orderId}\")\r\n public JSONObject queryOrderMoney(@Param(\"orderId\") Long orderId);\r\n\r\n //一周内加入的盟友\r\n @Select(\"select b.* from t_alliance a INNER JOIN t_alliance b ON b.invitor_alliance_id=a.id where a.user_id=#{userId} and DATE_SUB(CURDATE(), INTERVAL 7 DAY)<b.alliance_ship_time\")\r\n public List<Alliance> queryWeekAlliance(@Param(\"userId\")Long userId);\r\n\r\n //一周内发货订单\r\n @Select(\"select * from t_order where user_id = 11 and status='DELIVERED_CONFIRM_PENDING' and DATE_SUB(CURDATE(), INTERVAL 7 DAY) <= created_date\\n\")\r\n public List<JSONObject> queryWeekOrderDeliver(@Param(\"userId\") Long userId);\r\n\r\n //一周内盟友下单\r\n @Select(\"select a.alliance_name as allianceName,o.* from t_order o,(select b.user_id,b.alliance_name from t_alliance a INNER JOIN t_alliance b ON b.invitor_alliance_id=a.id where a.user_id=#{userId}\\n\" +\r\n \"and b.alliance_ship=0) as a where o.user_id = a.user_id and DATE_SUB(CURDATE(), INTERVAL 7 DAY) <= o.created_date and o.status='PAID_CONFIRM_PENDING'\")\r\n public List<JSONObject> queryWeekOrder(@Param(\"userId\") Long userId);\r\n\r\n //重置userID\r\n @Update(\"update t_alliance set user_id=null where id=#{id}\")\r\n Integer resetUserId(@Param(\"id\")Long id);\r\n\r\n //团队下单奖励\r\n\r\n //团队盟友升级\r\n\r\n //删除表的数据\r\n @Delete(\"delete from ${tableName}\")\r\n public Integer deleteTableData(@Param(\"tableName\") String tableName);\r\n //获取数据库json字段信息测试\r\n @Select(\"select JSON_EXTRACT(t_product_settlement_proportion.proportion, '$.value') from t_product_settlement_proportion\")\r\n public List<Float> getJson();\r\n\r\n //查询userid\r\n @Select(\"select id from t_user where phone=${phone}\")\r\n Long queryUserIdByPhone(@Param(\"phone\") String phone);\r\n //同步t_user real_name 和 alliance表 alliance_name\r\n @Update(\"update t_user set real_name=#{name} where phone=#{alliancePhone}\")\r\n Integer upUserRealNameByPhone(@Param(\"alliancePhone\") String alliancePhone,@Param(\"name\") String name);\r\n\r\n //获取所有盟友的id\r\n @Select(\"select id from t_alliance\")\r\n List<Long> getAllAllianceIds();\r\n}", "@Cacheable(value=\"cacheTest\")\n\tpublic DemoBean selectDemoBeanById(String id) {\n\t\tSystem.out.println(\"query from db\");\n\t\treturn demoDao.selectDemoBeanById(id);\n\t}", "public interface PremiumManager {\r\n /**\r\n * Retrieves all premium information\r\n *\r\n * @param policyHeader policy header\r\n * @param inputRecord input Record\r\n * @return RecordSet\r\n */\r\n RecordSet loadAllPremium(PolicyHeader policyHeader, Record inputRecord);\r\n\r\n /**\r\n * Retrieves all rating log information\r\n *\r\n * @param policyHeader policy header\r\n * @param inputRecord input Record\r\n * @return RecordSet\r\n */\r\n RecordSet loadAllRatingLog(PolicyHeader policyHeader, Record inputRecord);\r\n\r\n /**\r\n * Retrieves all member contribution info\r\n *\r\n * @param inputRecord (transactionId and riskId and termId)\r\n * @return RecordSet\r\n */\r\n RecordSet loadAllMemberContribution (Record inputRecord);\r\n\r\n /**\r\n * Retrieves all layer detail info\r\n *\r\n * @param inputRecord (transactionId and coverageId and termId)\r\n * @return RecordSet\r\n */\r\n RecordSet loadAllLayerDetail(Record inputRecord);\r\n \r\n /**\r\n * Retrieves all fund information\r\n *\r\n * @param policyHeader policy header\r\n * @param inputRecord input Record\r\n * @return RecordSet\r\n */\r\n RecordSet loadAllFund(PolicyHeader policyHeader, Record inputRecord);\r\n\r\n /**\r\n * Retrieves all payment information\r\n *\r\n * @param policyHeader policy header\r\n * @return RecordSet\r\n */\r\n RecordSet loadAllPayment(PolicyHeader policyHeader);\r\n\r\n /**\r\n * Validate if the term base id is the current term base id and whether the data is empty.\r\n *\r\n * @param inputRecord inputRecord\r\n * @param conn live JDBC Connection\r\n * @return boolean\r\n */\r\n void validateTransactionForPremiumWorksheet(Record inputRecord, Connection conn);\r\n\r\n /**\r\n * Get the default values for premium accounting date fields\r\n *\r\n * @param inputRecord input Record\r\n * @return RecordSet\r\n */\r\n RecordSet getInitialValuesForPremiumAccounting(Record inputRecord);\r\n\r\n /**\r\n * Generate the premium accounting data for selected transaction\r\n *\r\n * @param inputRecord input Record\r\n * @return RecordSet\r\n */\r\n RecordSet generatePremiumAccounting(Record inputRecord);\r\n}", "public synchronized String fetchAll(String admin_segment, String economic_segment, String budget_year_id) {\n List mtssCostingsList = null;\n String jsonList = \"\";\n\n final Session session = HibernateUtil.getSessionFactory().getCurrentSession();\n Transaction tx = null;\n try {\n //final Session session = HibernateUtil.getSessionFactory().getCurrentSession();\n //session.beginTransaction();\n tx = session.beginTransaction();\n if(budget_year_id.equals(\"\")){\n budget_year_id = \"0\";\n }\n int year = Integer.parseInt(budget_year_id) - 1;\n String sql = \" SELECT a.id, (select code from Economic_Segment where code=a.economic_segment) as code, (select name from Economic_Segment where code=a.economic_segment) as name, \" +\n \" (select ISNULL(sum(budget_amount),0) from MTSS_Costing where a.admin_segment=admin_segment and a.economic_segment=economic_segment and a.programme_segment=programme_segment \" +\n \" and a.functional_segment=functional_segment and a.fund_segment=fund_segment and a.geo_segment=geo_segment and budget_year_id=2015) as amount0, \" +\n \" (select ISNULL(sum(budget_amount),0) from MTSS_Costing where a.admin_segment=admin_segment and a.economic_segment=economic_segment and a.programme_segment=programme_segment \" +\n \" and a.functional_segment=functional_segment and a.fund_segment=fund_segment and a.geo_segment=geo_segment and budget_year_id=2016) as amount1, \" +\n \" (select ISNULL(sum(budget_amount),0) from MTSS_Costing where a.admin_segment=admin_segment and a.economic_segment=economic_segment and a.programme_segment=programme_segment \" +\n \" and a.functional_segment=functional_segment and a.fund_segment=fund_segment and a.geo_segment=geo_segment and budget_year_id=2017) as amount2, \" +\n \" (select ISNULL(sum(budget_amount),0) from MTSS_Costing where a.admin_segment=admin_segment and a.economic_segment=economic_segment and a.programme_segment=programme_segment \" +\n \" and a.functional_segment=functional_segment and a.fund_segment=fund_segment and a.geo_segment=geo_segment and budget_year_id=2018) as amount3, \" +\n \" (select ISNULL(sum(budget_amount),0) from MTSS_Costing where a.admin_segment=admin_segment and a.economic_segment=economic_segment and a.programme_segment=programme_segment \" +\n \" and a.functional_segment=functional_segment and a.fund_segment=fund_segment and a.geo_segment=geo_segment and budget_year_id=2019) as amount4, \" +\n \" (select ISNULL(sum(budget_amount),0) from MTSS_Costing where a.admin_segment=admin_segment and a.economic_segment=economic_segment and a.programme_segment=programme_segment \" +\n \" and a.functional_segment=functional_segment and a.fund_segment=fund_segment and a.geo_segment=geo_segment and budget_year_id=2020) as amount5, \" +\n \" (select ISNULL(sum(budget_amount),0) from MTSS_Costing where a.admin_segment=admin_segment and a.economic_segment=economic_segment and a.programme_segment=programme_segment \" +\n \" and a.functional_segment=functional_segment and a.fund_segment=fund_segment and a.geo_segment=geo_segment and budget_year_id=2021) as amount6 \" +\n \" FROM MTSS_Costing a where a.admin_segment='\"+admin_segment+\"' and a.economic_segment like '\"+economic_segment+\"%' and a.budget_year_id=\"+(year + 1);\n\n if(economic_segment.contains(\",\")){\n sql = \" SELECT a.id, (select code from Economic_Segment where code=a.economic_segment) as code, (select name from Economic_Segment where code=a.economic_segment) as name, \" +\n \" (select ISNULL(sum(budget_amount),0) from MTSS_Costing where a.admin_segment=admin_segment and a.economic_segment=economic_segment and a.programme_segment=programme_segment \" +\n \" and a.functional_segment=functional_segment and a.fund_segment=fund_segment and a.geo_segment=geo_segment and budget_year_id=2015) as amount0, \" +\n \" (select ISNULL(sum(budget_amount),0) from MTSS_Costing where a.admin_segment=admin_segment and a.economic_segment=economic_segment and a.programme_segment=programme_segment \" +\n \" and a.functional_segment=functional_segment and a.fund_segment=fund_segment and a.geo_segment=geo_segment and budget_year_id=2016) as amount1, \" +\n \" (select ISNULL(sum(budget_amount),0) from MTSS_Costing where a.admin_segment=admin_segment and a.economic_segment=economic_segment and a.programme_segment=programme_segment \" +\n \" and a.functional_segment=functional_segment and a.fund_segment=fund_segment and a.geo_segment=geo_segment and budget_year_id=2017) as amount2, \" +\n \" (select ISNULL(sum(budget_amount),0) from MTSS_Costing where a.admin_segment=admin_segment and a.economic_segment=economic_segment and a.programme_segment=programme_segment \" +\n \" and a.functional_segment=functional_segment and a.fund_segment=fund_segment and a.geo_segment=geo_segment and budget_year_id=2018) as amount3, \" +\n \" (select ISNULL(sum(budget_amount),0) from MTSS_Costing where a.admin_segment=admin_segment and a.economic_segment=economic_segment and a.programme_segment=programme_segment \" +\n \" and a.functional_segment=functional_segment and a.fund_segment=fund_segment and a.geo_segment=geo_segment and budget_year_id=2019) as amount4, \" +\n \" (select ISNULL(sum(budget_amount),0) from MTSS_Costing where a.admin_segment=admin_segment and a.economic_segment=economic_segment and a.programme_segment=programme_segment \" +\n \" and a.functional_segment=functional_segment and a.fund_segment=fund_segment and a.geo_segment=geo_segment and budget_year_id=2020) as amount5, \" +\n \" (select ISNULL(sum(budget_amount),0) from MTSS_Costing where a.admin_segment=admin_segment and a.economic_segment=economic_segment and a.programme_segment=programme_segment \" +\n \" and a.functional_segment=functional_segment and a.fund_segment=fund_segment and a.geo_segment=geo_segment and budget_year_id=2021) as amount6 \" +\n \" FROM MTSS_Costing a where a.admin_segment='\"+admin_segment+\"' and a.economic_segment in (\"+economic_segment+\") and a.budget_year_id=\"+(year + 1);\n \n }\n \n //System.out.println(\"fetchAll sql: \"+sql);\n SQLQuery q = session.createSQLQuery(sql);\n mtssCostingsList = q.list();\n// Query q = session.createQuery(\"from MtssCosting as a where a.name<>'' order by a.name\");\n// mtssCostingsList = q.list();\n //session.getTransaction().commit();\n Gson gson = new Gson();\n jsonList = gson.toJson(mtssCostingsList);\n tx.commit();\n } catch (HibernateException e) {\n if (tx != null) {\n tx.rollback();\n }\n e.printStackTrace();\n } finally {\n //session.close();\n }\n return jsonList;\n }", "public interface QueryCaller<A extends CachedData> {\n List<A> getList(SynchronizedEveAccount acct, long contid, int maxresults, boolean reverse, AttributeSelector at,\n AttributeSelector... others) throws IOException;\n\n long getExpiry(SynchronizedEveAccount acct);\n }", "BillingAccount getBillingAccount();", "@Override\n\tpublic StockAlarmBillPO searchStockAlarmBillByID(String id) throws RemoteException {\n\t\tStockAlarmBillPO bill = null;\n\t\tArrayList<StockAlarmBillItem> itemList = new ArrayList<StockAlarmBillItem>();\n\n\t\ttry {\n\t\t\tStatement statement_1 = con.createStatement();\t\n\t\t\tString sql_1 = \"select * from stockalarmbill where ID = \"+\"'\"+ id+\"'\";\t\t\n\t\t\tResultSet rs = statement_1.executeQuery(sql_1);\t\t\t \t\n\t\t\tStatement statement_2 = con.createStatement();\t\n\t \t//��ȡ�����ݱ���������idΪ������\n\t \tString sql_2 = \"select * from stock\" + id;\t\t\n\t\t \n\t \twhile(rs.next()) {\t \n\t \t\tBillState state = BillState.getStateByInt(rs.getInt(\"State\")); \t\n\t \t\tjava.sql.Date date = rs.getDate(\"Date\");\t \t\n\t \t\tString operatorID = rs.getString(\"OperatorID\");\n\t \t \tString wareID = rs.getString(\"wareID\");\n\t \t \t\n\t \t\tResultSet rs_2 = statement_2.executeQuery(sql_2);\t \n\t \t\tString number = null;\n\t\t String name = null;\n\t\t long amount = 0;\n\t\t long alarmAmount = 0;\n\t\t \n\t\t while(rs_2.next()) { \t\n\t\t \tnumber = rs_2.getString(\"Number\");\n\t\t \t name = rs_2.getString(\"Name\");\n\t\t \t amount = rs_2.getLong(\"Amount\");\n\t\t \t alarmAmount = rs_2.getLong(\"AlarmAmount\");\n\t\t \t\n\t\t \t StockAlarmBillItem item = new StockAlarmBillItem(number, name, amount, alarmAmount);\n\t\t \t itemList.add(item);\n\t\t }\t\t \t\t\t\n\t\t java.util.Date d = new java.util.Date(date.getTime());\n\t\t bill = new StockAlarmBillPO( id, itemList, state, d, operatorID, wareID);\n\t\t rs_2.close(); \t \n\t \t}\n\t\t rs.close();\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} \t\n\t\treturn bill;\n\t}", "@Override\n\tpublic List<ApartmentDetailsBean> getApartmentDetails(String emailId) {\n\t\tList<ApartmentDetailsBean> apartment = new ArrayList<ApartmentDetailsBean>();\n\t\tString query = \"Select * from Apartments where ownerId=(select ownerId from ApartmentOwner where oEmail=?)\";\n\t\t//Connection con = DatabaseConnection.connect();\n\t\t\n\t\tResultSet rs=null;\n//\t\tPreparedStatement pstmt=null;\n\t\tSystem.out.println(\"Inside AparmentDaoImpl\");\n\t\ttry {\n\t\t\n\t\t\t//pstmt = con.prepareStatement(query);\n\t\t\tPreparedStatement pstmt = dataSource.getConnection().prepareStatement(query);\n\t\t\tpstmt.setString(1, emailId);\n\t\t\trs = pstmt.executeQuery();\n\t\t\twhile (rs.next()) {\n\t\t\t\tApartmentDetailsBean apt = new ApartmentDetailsBean();\n\t\t\t\tapt.setApartmentId(rs.getInt(\"apartmentId\"));\n\t\t\t\tapt.setDepositAmt(rs.getInt(\"depositAmt\"));\n\t\t\t\tapt.setRent(rs.getInt(\"rent\"));\n\t\t\t\tapt.setAvailablityFrom(rs.getDate(\"availablityFrom\"));\n\t\t\t\tapt.setUtilities(rs.getString(\"utilities\"));\n\t\t\t\tapt.setArea(rs.getString(\"area\"));\n\t\t\t\tapt.setStreet(rs.getString(\"street\"));\n\t\t\t\tapt.setDoorNo(rs.getString(\"doorNo\"));\n\t\t\t\tapt.setCity(rs.getString(\"city\"));\n\t\t\t\tapt.setno_of_rooms(rs.getInt(\"no_of_rooms\"));\n\t\t\t\tapt.setno_of_bathroom(rs.getInt(\"no_of_bathroom\"));\n\t\t\t\tapt.setFlooring(rs.getString(\"flooring\"));\n\t\t\t\tapt.setType_bathroom(rs.getString(\"type_bathroom\"));\n\t\t\t\tapartment.add(apt);\n\t\t\t}\n\n\t\t} catch (SQLException e) {\n\n\t\t\te.printStackTrace();\n\t\t\t\n\t\t}\n\n\t\treturn apartment;\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic List<ConsumeRecord> findByInquiryCriteria(ConsumeInquiryCriteria criteria) throws ParseException {\n\t\tcriteria.initializeBegdaTime();\r\n\t\tcriteria.initializeEnddaTime();\r\n\r\n\t\tCriteria crt = currentSession().createCriteria(ConsumeRecord.class, \"cr\");\r\n\t\tcrt.createAlias(\"cr.employee\", \"employee\");\r\n\t\tcrt.createAlias(\"employee.department\", \"department\");\r\n\t\tcrt.createAlias(\"cr.vendorLine\", \"vendorLine\");\r\n\t\tcrt.createAlias(\"vendorLine.vendor\", \"vendor\");\r\n\r\n\t\tcrt.add(Restrictions.ge(\"cr.time\", criteria.getBegda()));\r\n\t\tcrt.add(Restrictions.le(\"cr.time\", criteria.getEndda()));\r\n\r\n\t\tif (TrimUtil.trimUtil(criteria.getCategoryKey())) {\r\n\t\t\tcrt.add(Restrictions.eq(\"cr.category\", criteria.getCategoryKey().trim()));\r\n\t\t}\r\n\t\tif (TrimUtil.trimUtil(criteria.getCosterCenterID())) {\r\n\t\t\tcrt.add(Restrictions.eq(\"department.id\", criteria.getCosterCenterID().trim()));\r\n\t\t}\r\n\t\tif (TrimUtil.trimUtil(criteria.getVendorID())) {\r\n\t\t\tcrt.add(Restrictions.eq(\"vendor.id\", Integer.parseInt(criteria.getVendorID().trim())));\r\n\t\t}\r\n\t\tif (TrimUtil.trimUtil(criteria.getEmployeeID())) {\r\n\t\t\tcrt.add(Restrictions.like(\"employee.id\", \"%\" + criteria.getEmployeeID().trim() + \"%\"));\r\n\t\t}\r\n\t\tif (TrimUtil.trimUtil(criteria.getFirstName())) {\r\n\t\t\tcrt.add(Restrictions.like(\"employee.firstName\", \"%\" + criteria.getFirstName().trim() + \"%\"));\r\n\t\t}\r\n\t\tif (TrimUtil.trimUtil(criteria.getLastName())) {\r\n\t\t\tcrt.add(Restrictions.like(\"employee.lastName\", \"%\" + criteria.getLastName().trim() + \"%\"));\r\n\t\t}\r\n\t\tif (TrimUtil.trimUtil(criteria.getStatusKey())) {\r\n\t\t\tcrt.add(Restrictions.eq(\"cr.status\", criteria.getStatusKey().trim()));\r\n\t\t}\r\n\t\tif (TrimUtil.trimUtil(criteria.getTransactionCode())) {\r\n\t\t\tcrt.add(Restrictions.like(\"cr.transactionCode\", \"%\" + criteria.getTransactionCode() + \"%\"));\r\n\t\t}\r\n\r\n\t\treturn crt.list();\r\n\t}", "@Override\n\tpublic FeesPayDispatchEntity queryOne(Map<String, Object> condition) {\n\t\treturn (FeesPayDispatchEntity)this.selectOne(\"com.jiuyescm.bms.fees.out.dispatch.mapper.FeesPayDispatchMapper.queryOne\", condition);\n\t}", "public void getSavedRecord(MealVoucherConfiguration mealVoucher) {\n\r\n\t\tString query = \" SELECT MEAL_CONFIG_CASH, MEAL_CONFIG_FREQUENCY, MEAL_CONFIG_COUPEN, MEAL_CONFIG_DEBIT \"\r\n\t\t\t\t+ \" ,CASH.CREDIT_NAME,COUPEN.CREDIT_NAME,DEBIT_NAME , \" +\r\n\t\t\t\t\" MEAL_CONFIG_FROM, MEAL_CONFIG_TO, MEAL_CONFIG_AMT_LIMIT, MEAL_CONFIG_AMT_DECLARE, MEAL_FROM_PERIOD, MEAL_TO_PERIOD \"\r\n\t\t\t\t+ \" FROM HRMS_MEAL_VOUCHER_CONFIG \"\r\n\t\t\t\t+ \" INNER JOIN HRMS_CREDIT_HEAD CASH ON(CASH.CREDIT_CODE=HRMS_MEAL_VOUCHER_CONFIG.MEAL_CONFIG_CASH) \"\r\n\t\t\t\t+ \" INNER JOIN HRMS_CREDIT_HEAD COUPEN ON(COUPEN.CREDIT_CODE=HRMS_MEAL_VOUCHER_CONFIG.MEAL_CONFIG_COUPEN) \"\r\n\t\t\t\t+ \" INNER JOIN HRMS_DEBIT_HEAD ON(HRMS_DEBIT_HEAD.DEBIT_CODE=HRMS_MEAL_VOUCHER_CONFIG.MEAL_CONFIG_DEBIT) \";\r\n\r\n\t\tObject dataObj[][] = getSqlModel().getSingleResult(query);\r\n\r\n\t\tif (dataObj != null && dataObj.length > 0) {\r\n\t\t\t\r\n\t\t\tmealVoucher.setCreditCode(String.valueOf(dataObj[0][0]));\r\n\t\t\tmealVoucher.setFreqencyOfChange(String.valueOf(dataObj[0][1]));\r\n\t\t\tmealVoucher.setCoupenCode(String.valueOf(dataObj[0][2]));\r\n\t\t\tmealVoucher.setDebitCode(String.valueOf(dataObj[0][3]));\r\n\t\t\tmealVoucher.setCreditHead(String.valueOf(dataObj[0][4]));\r\n\t\t\tmealVoucher.setCoupenHead(String.valueOf(dataObj[0][5]));\r\n\t\t\tmealVoucher.setDebitHead(String.valueOf(dataObj[0][6]));\r\n\t\t\t\r\n\t\t\tmealVoucher.setFromYear(String.valueOf(dataObj[0][7]));\r\n\t\t\tmealVoucher.setToYear(String.valueOf(dataObj[0][8]));\r\n\t\t\tmealVoucher.setMealVoucherAmtLimit(String.valueOf(dataObj[0][9]));\r\n\t\t\tmealVoucher.setMealVoucherAmtDeclare(String.valueOf(dataObj[0][10]));\r\n\t\t\tmealVoucher.setFromPeriod(checkNull(String.valueOf(dataObj[0][11])));\r\n\t\t\tmealVoucher.setToPeriod(checkNull(String.valueOf(dataObj[0][12])));\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t}\r\n\r\n\t}", "List<AccommodationModel> findAccommodationForAccommodationOffering(String accommodationOfferingCode);", "public interface DocumentTypeQueryService extends XmlLoader {\n\n @Cacheable(value= org.kuali.rice.kew.api.doctype.DocumentType.Cache.NAME, key=\"'{BO}' + 'documentTypeId=' + #p0\")\n public DocumentType findById(String documentTypeId);\n\n @Cacheable(value= org.kuali.rice.kew.api.doctype.DocumentType.Cache.NAME, key=\"'{BO}' + 'name=' + #p0\")\n public DocumentType findByName(String name);\n\n @Cacheable(value= org.kuali.rice.kew.api.doctype.DocumentType.Cache.NAME,\n key=\"'{BO}' + 'documentTypeId=' + #p0.getId() + '|' + 'name=' + #p0.getName() + '|' + 'label=' + #p0.getLabel() + '|' + 'active=' + #p0.isActive() +'docGroupName=' + #p1 + '|' + 'climbHierarchy=' + #p2\")\n public Collection<DocumentType> find(DocumentType documentType, String docGroupName, boolean climbHierarchy);\n\n @Cacheable(value= org.kuali.rice.kew.api.doctype.DocumentType.Cache.NAME, key=\"'{BO}{root}' + 'documentTypeId=' + #p0.getId()\")\n public DocumentType findRootDocumentType(DocumentType docType);\n \n /**\n * Returns the DocumentType of the Document with the given ID. \n * \n * @since 2.3\n */\n @Cacheable(value= org.kuali.rice.kew.api.doctype.DocumentType.Cache.NAME, key=\"'{BO}' + 'documentId=' + #p0\")\n public DocumentType findByDocumentId(String documentId);\n \n}", "public interface BACSSettlementDataService extends BaseDataService<BACSSettlement, BACSSettlementDTO> {\r\n\r\n List<BACSSettlementDTO> findByStatus(String status);\r\n\r\n BACSSettlementDTO findBySettlementNumber(Long settlementNumber);\r\n \r\n BACSSettlementDTO findByFinancialServicesReference(Long financialServicesReferenceNumber); \r\n \r\n List<BACSSettlementDTO> findByOrderNumber(Long orderNumber);\r\n \r\n}", "public interface ITradingPriceTrackingAutoPricing {\r\n void savePriceTrackingAutoPricing(TradingPriceTrackingAutoPricing tradingPriceTrackingAutoPricing) throws Exception;\r\n\r\n TradingPriceTrackingAutoPricing selectPriceTrackingAutoPricingByListingDateId(Long listingDateId);\r\n\r\n List<PriceTrackingAutoPricingQuery> selectPriceTrackingAutoPricingList(Map map,Page page);\r\n\r\n void deletePriceTrackingAutoPricing(TradingPriceTrackingAutoPricing tradingPriceTrackingAutoPricing) throws Exception;\r\n\r\n TradingPriceTrackingAutoPricing selectPriceTrackingAutoPricingById(Long id);\r\n\r\n List<TradingPriceTrackingAutoPricing> selectPriceTrackingAutoPricings();\r\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface EMContractRepository extends JpaRepository<EMContract, UUID>,EMContractRepositoryCustom {\n\n /**\n * add by namnh\n *\n * @return\n */\n @Override\n List<EMContract> findAll();\n\n List<EMContract> findAllByIsActiveTrue();\n @Query(value = \"select id from EMContract where UPPER(NoFBook) = UPPER (?1) and CompanyID = ?2 and isActive = 1\", nativeQuery = true)\n UUID findIdByNoFBook(String expenseItemCode, UUID companyId);\n\n @Query(value = \"select id from EMContract where UPPER(NoMBook) = UPPER (?1) and CompanyID = ?2 and isActive = 1\", nativeQuery = true)\n UUID findIdByNoMBook(String expenseItemCode, UUID companyId);\n}", "public ResultSet appcomp(Long comp_id)throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select * from company where comp_id=\"+comp_id+\"\");\r\n\treturn rs;\r\n}", "public List<Contract> getHealthContracts(){\n\t\ttry{\n\t\t\treturn jdbcTemplate.query(\"SELECT * FROM CONTRACT WHERE SERVICETYPE=1 AND \"\n\t\t\t\t\t+ \"(DATEENDING >= NOW() OR DATEENDING IS NULL)\", new ContractRowMapper());\n\t\t}catch (EmptyResultDataAccessException e){\n\t\t\treturn new ArrayList<Contract>();\n\t\t}\n\t}", "@Override\n\tpublic List<PersonmanagemarticleBo> selectPaperZaiTi(PersonmanagemarticleBo record, HttpServletRequest request) {\n\t\t ObjectMapper mapper = new ObjectMapper();\n\t\t ShardedJedis metaSearchRedis = null;\n\t\t if (metaSearchRedis == null) {\n\t\t\t\tmetaSearchRedis = RedisUtil.initialShardedPool(environment.getProperty(\"sessionredisip\"),\n\t\t\t\t\t\tInteger.parseInt(environment.getProperty(\"redisport\")), Integer.parseInt(environment.getProperty(\"db\")),environment.getProperty(\"redispassword\"));\n\t\t\t}\n\t\t String time = record.getUpdatetime();\n\t\t\tString userid = (String)request.getSession().getAttribute(\"userid\");\n\t\t\trecord.setUserid(userid);\n\t\t\tString persionid=record.getPersionid();\n\t\t\t//SimpleDateFormat df=new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\t Calendar c = Calendar.getInstance();\n\t\t List<Personmanagemarticle> list = new ArrayList<Personmanagemarticle>();\n\t\t List<PersonmanagemarticleBo> sBos = new ArrayList<PersonmanagemarticleBo>();\n\t\t\t//List<Personmanagemarticle> list = personmanagemarticleServiceImpl.selectMediazhexianByTime(personid, formats, time);\n\t\t String key=\"\";\n\t\t \n\t\t\t if(persionid!=null && !\"\".equals(persionid)){\n\t\t\t\t key = \"paper\"+userid+\"\"+time+\"\"+persionid;\n\t\t\t }else{\n\t\t\t\t key = \"paper\"+userid+\"\"+time;\n\t\t\t }\n\t\t\t String utime =\"\";\n\t\t\t try {\n\t\t\t\t utime = metaSearchRedis.hget(\"zaitipaperserchtime\", key);\n\t\t\t } catch (Exception e) {\n\t\t\t\t Log.error(e.getMessage(),e);\n\t\t\t\t // list= personmanagemarticleMapper.selectMediaByPerson(record);\n\t\t\t }\n\t\t\t \n\t\t\t boolean isout = true;// 是否过期true是已经过期\n\t\t\ttry {\n\t\t\t\tif(!CommonUtil.isEmpty(time)){\n\t\t\t\t\tif(time.equals(AppConstant.timetype.CURRENT)){\n\t\t\t\t\t\t//SimpleDateFormat dfn=new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\t\t\t\t\tString current = SimpleDate.formatDate(new Date());\n\t\t\t\t\t\trecord.setUpdatetime(current);\n\t\t\t\t\t\t if (!\"\".equals(utime) && utime != null) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tLong currtime = c.getTimeInMillis();\n\t\t\t\t\t\t\t\tLong outTime = new Long(utime);\n\t\t\t\t\t\t\t\tif (currtime < outTime) {\n\t\t\t\t\t\t\t\t\tisout = false;\n\t\t\t\t\t\t\t\t\tString redisDate = metaSearchRedis.hget(\"zaitipaperserchcurrent\", key);\n\t\t\t\t\t\t\t\t\tJavaType javaType = mapper.getTypeFactory().constructParametricType(ArrayList.class,\n\t\t\t\t\t\t\t\t\t\t\tPersonmanagemarticleBo.class);\n\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\tsBos = mapper.readValue(redisDate, javaType);\n\n\t\t\t\t\t\t\t\t\t} catch (JsonParseException e) {\n\t\t\t\t\t\t\t\t\t\tLog.error(e.getMessage(),e);\n\t\t\t\t\t\t\t\t\t\tsBos = this.selectTodayPaperqushi(record);\n\t\t\t\t\t\t\t\t\t}finally {\n\t\t\t\t\t\t\t\t\t\tmetaSearchRedis.disconnect();\n\t\t\t\t\t\t\t\t\t\tmetaSearchRedis.close();\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\t\t}\n\t\t\t\t\t\t\tif (isout) {\n\t\t\t\t\t\t\t\t// 将数据放到redis中\n\t\t\t\t\t\t\t\tsBos = this.selectTodayPaperqushi(record);\n\t\t\t\t\t\t\t\tc.add(Calendar.MINUTE, +10);\n\t\t\t\t\t\t\t\tString expiredDate = c.getTimeInMillis() + \"\";\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tString sttr = mapper.writeValueAsString(sBos);\n\t\t\t\t\t\t\t\t\tmetaSearchRedis.hset(\"zaitipaperserchcurrent\", key,sttr );\n\t\t\t\t\t\t\t\t\tmetaSearchRedis.hset(\"zaitipaperserchtime\", key, expiredDate);// 过期时间\n\t\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\t\t Log.info(e.getMessage());\n\t\t\t\t\t\t\t\t\t Log.error(e.getMessage(),e);\n\t\t\t\t\t\t\t\t}finally {\n\t\t\t\t\t\t\t\t\tmetaSearchRedis.disconnect();\n\t\t\t\t\t\t\t\t\tmetaSearchRedis.close();\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t \n\t\t\t\t\t\t\n\t\t\t\t\t}else if(time.equals(AppConstant.timetype.WEEK)){\n\t\t\t\t\t\t c.add(Calendar.DATE, -7);\n\t\t\t\t\t String current = SimpleDate.formatDate(c.getTime());\n\t\t\t\t\t record.setUpdatetime(current);\n\t\t\t\t\t \n\t\t\t\t\t if (!\"\".equals(utime) && utime != null) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tLong currtime = c.getTimeInMillis();\n\t\t\t\t\t\t\t\tLong outTime = new Long(utime);\n\t\t\t\t\t\t\t\tif (currtime < outTime) {\n\t\t\t\t\t\t\t\t\tisout = false;\n\t\t\t\t\t\t\t\t\tString redisDate = metaSearchRedis.hget(\"zaitipaperserchweek\", key);\n\t\t\t\t\t\t\t\t\tJavaType javaType = mapper.getTypeFactory().constructParametricType(ArrayList.class,\n\t\t\t\t\t\t\t\t\t\t\tPersonmanagemarticle.class);\n\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\tlist = mapper.readValue(redisDate, javaType);\n\n\t\t\t\t\t\t\t\t\t} catch (JsonParseException e) {\n\t\t\t\t\t\t\t\t\t\t list = this.selectPaperqushi(record);\n\t\t\t\t\t\t\t\t\t\t Log.error(e.getMessage(),e);\n\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\t\t//\tSystem.out.println(e.getMessage());\n\t\t\t\t\t\t\t\t\t\tLog.info(e.getMessage());\n\t\t\t\t\t\t\t\t\t}finally {\n\t\t\t\t\t\t\t\t\t\tmetaSearchRedis.disconnect();\n\t\t\t\t\t\t\t\t\t\tmetaSearchRedis.close();\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\t\t}\n\t\t\t\t\t\t\tif (isout) {\n\t\t\t\t\t\t\t\t// 将数据放到redis中\n\t\t\t\t\t\t\t\t list = this.selectPaperqushi(record);\n\t\t\t\t\t\t\t\tc.add(Calendar.MINUTE, +10);\n\t\t\t\t\t\t\t\tString expiredDate = c.getTimeInMillis() + \"\";\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tString sttr = mapper.writeValueAsString(list);\n\t\t\t\t\t\t\t\t\tmetaSearchRedis.hset(\"zaitipaperserchweek\", key,sttr );\n\t\t\t\t\t\t\t\t\tmetaSearchRedis.hset(\"zaitipaperserchtime\", key, expiredDate);// 过期时间\n\t\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\t\t//System.out.println(e.getMessage());\n\t\t\t\t\t\t\t\t\tLog.info(e.getMessage());\n\t\t\t\t\t\t\t\t\tLog.error(e.getMessage(),e);\n\t\t\t\t\t\t\t\t}finally {\n\t\t\t\t\t\t\t\t\tmetaSearchRedis.disconnect();\n\t\t\t\t\t\t\t\t\tmetaSearchRedis.close();\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t \n\t\t\t\t\t}else if(time.equals(AppConstant.timetype.MONTH)){\n\t\t\t\t\t\t c.add(Calendar.DATE, -30);\n\t\t\t\t\t String current = SimpleDate.formatDate(c.getTime());\n\t\t\t\t\t record.setUpdatetime(current);\n\t\t\t\t\t if (!\"\".equals(utime) && utime != null) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tLong currtime = c.getTimeInMillis();\n\t\t\t\t\t\t\t\tLong outTime = new Long(utime);\n\t\t\t\t\t\t\t\tif (currtime < outTime) {\n\t\t\t\t\t\t\t\t\tisout = false;\n\t\t\t\t\t\t\t\t\tString redisDate = metaSearchRedis.hget(\"zaitipaperserchmonth\", key);\n\t\t\t\t\t\t\t\t\tJavaType javaType = mapper.getTypeFactory().constructParametricType(ArrayList.class,\n\t\t\t\t\t\t\t\t\t\t\tPersonmanagemarticle.class);\n\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\tlist = mapper.readValue(redisDate, javaType);\n\t\t\t\t\t\t\t\t\t} catch (JsonParseException e) {\n\t\t\t\t\t\t\t\t\t\t list = this.selectPaperqushi(record);\n\t\t\t\t\t\t\t\t\t\t\tLog.error(e.getMessage(),e);\n\t\t\t\t\t\t\t\t\t\t Log.info(e.getMessage());\n\t\t\t\t\t\t\t\t\t}finally {\n\t\t\t\t\t\t\t\t\t\tmetaSearchRedis.disconnect();\n\t\t\t\t\t\t\t\t\t\tmetaSearchRedis.close();\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\t\t}\n\t\t\t\t\t\t\tif (isout) {\n\t\t\t\t\t\t\t\t// 将数据放到redis中\n\t\t\t\t\t\t\t\t list = this.selectPaperqushi(record);\n\t\t\t\t\t\t\t\tc.add(Calendar.MINUTE, +10);\n\t\t\t\t\t\t\t\tString expiredDate = c.getTimeInMillis() + \"\";\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tString sttr = mapper.writeValueAsString(list);\n\t\t\t\t\t\t\t\t\tmetaSearchRedis.hset(\"zaitipaperserchmonth\", key,sttr );\n\t\t\t\t\t\t\t\t\tmetaSearchRedis.hset(\"zaitipaperserchtime\", key, expiredDate);// 过期时间\n\t\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\t\tLog.info(e.getMessage());\n\t\t\t\t\t\t\t\t\tLog.error(e.getMessage(),e);\n\t\t\t\t\t\t\t\t}finally {\n\t\t\t\t\t\t\t\t\tmetaSearchRedis.disconnect();\n\t\t\t\t\t\t\t\t\tmetaSearchRedis.close();\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO: handle exception\n\t\t\t\tLog.info(e.getMessage());\n\t\t\t\t Log.error(e.getMessage(),e);\n\t\t\t}\n\t\t\t\n\t\t\t\t for (Personmanagemarticle personStatistical : list) {\n\t\t\t\t\t PersonmanagemarticleBo sBo = new PersonmanagemarticleBo();\n\t\t\t\t\t\tBeanUtils.copyProperties(personStatistical, sBo);\n\t\t\t\t\t\tif(personStatistical.getUpdatetime()!=null){\n\t\t\t\t\t\t\t\tsBo.setUpdatetime(DateFormatUtil.dateFormatString(personStatistical.getUpdatetime()));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tsBos.add(sBo);\n\t\t\t\t\t}\n\t\t\t\n\t\treturn sBos;\n\t}", "RecordSet loadAllPayment(PolicyHeader policyHeader);", "public BusinessConfig findBusiness(Connection conn, String trigger, String wechatId, QueueType queueType)\r\n/* 19: */ throws SQLException\r\n/* 20: */ {\r\n/* 21: 29 */ return this.dao.findBusiness(conn, trigger, wechatId, queueType);\r\n/* 22: */ }", "public interface CardRepository extends JpaRepository<HouseAccountCreditCardAccount,String> {\r\n HouseAccountCreditCardAccount findByBuyerIdAndServiceAccountNumberAndSourceSystem(String buyerId, Long serviceAccountNumber, String sourceSystem);\r\n}", "@Override\n\tpublic List<WxActJiugonggePrizes> queryRemainAwardsByActId(String actid) {\n\t\treturn (List)super.query(\"queryRemainAwardsByActId\",actid);\n\t}", "@Override\r\n\tpublic Account loadAccount(String accountNumber) {\n\t\tAccount account1=null;\r\n\t\ttry {\r\n\t\t\taccount1 = account.getclone(account);\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\tString sql = \"SELECT a.accountNumber, a.balance, a.accountType, b.name, b.email, c.street, c.city, c.zip, c.state \"+\r\n \"FROM customer b \"+\r\n \"INNER JOIN address c \"+\r\n \"ON b.addressID = c.ID \"+\r\n \"INNER JOIN account a \"+\r\n \"ON b.ID = a.CustomerID \"+\r\n\t\t\"WHERE a.accountNumber = \"+accountNumber+\";\" ;\r\n\t\tPreparedStatement preparedStatement;\r\n\r\n\r\n\r\ntry {\r\n\r\n\tpreparedStatement = con.prepareStatement(sql);\r\n\t\r\n\t\r\n ResultSet rs=preparedStatement.executeQuery();\r\n\r\n\r\n while ( rs.next() ) {\r\n \taccount1.setAccountNumber(Integer.toString(rs.getInt(1)));\r\n \taccount1.setBalance((double) rs.getInt(2));\r\n \tAccountType accty=BankAccountType.CHECKING;\r\n \tif(\"SAVING\".equalsIgnoreCase(rs.getString(3))){\r\n \t\taccty=BankAccountType.SAVING;\r\n \t}\r\n \taccount1.setAccountType(accty);\r\n \taccount1.getCustomer().setName(rs.getString(4));\r\n \taccount1.getCustomer().setEmail(rs.getString(5));\r\n \taccount1.getCustomer().getAddress().setStreet(rs.getString(6));\r\n \taccount1.getCustomer().getAddress().setCity(rs.getString(7));\r\n \taccount1.getCustomer().getAddress().setZip(rs.getString(8));\r\n \taccount1.getCustomer().getAddress().setState(rs.getString(9));\r\n \taccount1.setAccountEntries(getAccountEntry(accountNumber));\r\n \t\r\n System.out.println(account1);\r\n \r\n }\r\n} catch (SQLException e) {\r\n\t// TODO Auto-generated catch block\r\n\tSystem.out.println(\"Connection Failed! Check output console\");\r\n\te.printStackTrace();\r\n}\r\nlog();\r\n\r\n \r\nreturn account1;\r\n\t}", "@Cacheable(cacheNames = {\"emp\"}/*,keyGenerator = \"myKeyGenerator\"*/)\n public Employee getEmp(Integer id){\n Employee empById = employeeMapper.getEmpById(id);\n System.out.println(\"id\"+id+\"开始查询了\");\n return empById;\n }", "public void cacheableQuery() throws HibException;", "ArrayList<Bet> selectBetsOfCurrency(String currency) throws DAOException;", "public interface CouponRepository extends JpaRepository<Coupon, Long> {\n public Coupon findFirstByUid(Long uid);\n\n @Query(\"from Coupon c where c.uid = ?1 and c.expireDate>=?2 order by c.availableDate desc\")\n public List<Coupon> findAvailableCoupons(Long uid, Date date);\n\n @Query(\"from Coupon c where c.uid = ?1 and c.expireDate<?2 order by c.availableDate desc\")\n public List<Coupon> findExpiredCoupons(Long uid, Date date);\n\n @Query(\"from Coupon c where c.uid = ?1 and c.usageCondition <= ?2 and c.expireDate >?3 and c.hasUsed<>true and c.locked <> true order by c.amount desc, c.availableDate asc\")\n public List<Coupon> findFirstByAmountAndExpireDate(Long uid, Long price, Date date, Pageable pageable);\n}", "@SuppressWarnings(\"unchecked\")\n\tprivate static void secondLevelCacheWithPropertySetWithQueryCacheEnabled() {\n\t\ttry(Session session = HbUtil.getSession()) {\n\t\t\tList<Book> list = session.createQuery(\"from Book b where b.subject=:p_subject\")\n\t\t\t\t\t\t.setParameter(\"p_subject\", \"C\")\n\t\t\t\t\t\t.setCacheable(true)\n\t\t\t\t\t\t.getResultList();\n\t\t\tfor (Book b : list) \n\t\t\t\tSystem.out.println(b);\n\t\t}catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\ttry(Session session = HbUtil.getSession()) {\n\t\t\tList<Book> list = session.createQuery(\"from Book b where b.subject=:p_subject\")\n\t\t\t\t\t\t.setParameter(\"p_subject\", \"C\")\n\t\t\t\t\t\t.setCacheable(true)\n\t\t\t\t\t\t.getResultList();\n\t\t\tfor (Book b : list) \n\t\t\t\tSystem.out.println(b);\n\t\t}catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public ResultSet app(Long broker_id)throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select * from broker where broker_id=\"+broker_id+\"\");\r\n\treturn rs;\r\n}", "BusinessRepayment selectByPrimaryKey(String id);", "@Test\n\tpublic void testQueryCaching(){\n\t\tqueryCache();\n\t\tqueryCache2();\n\t}", "public PxProductInfo getDbCombo() {\n long __key = this.dbComboId;\n if (dbCombo__resolvedKey == null || !dbCombo__resolvedKey.equals(__key)) {\n if (daoSession == null) {\n throw new DaoException(\"Entity is detached from DAO context\");\n }\n PxProductInfoDao targetDao = daoSession.getPxProductInfoDao();\n PxProductInfo dbComboNew = targetDao.load(__key);\n synchronized (this) {\n dbCombo = dbComboNew;\n \tdbCombo__resolvedKey = __key;\n }\n }\n return dbCombo;\n }", "@SuppressWarnings(\"unchecked\")\n\tprivate static void secondLevelCacheWithPropertySetWithQueryCacheDisabled() {\n\t\ttry(Session session = HbUtil.getSession()) {\n\t\t\tList<Book> list = session.createQuery(\"from Book b where b.subject=:p_subject\")\n\t\t\t\t\t\t.setParameter(\"p_subject\", \"C\")\n\t\t\t\t\t\t// .setCacheable(true)\n\t\t\t\t\t\t.getResultList();\n\t\t\tfor (Book b : list) \n\t\t\t\tSystem.out.println(b);\n\t\t}catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\ttry(Session session = HbUtil.getSession()) {\n\t\t\tList<Book> list = session.createQuery(\"from Book b where b.subject=:p_subject\")\n\t\t\t\t\t\t.setParameter(\"p_subject\", \"C\")\n\t\t\t\t\t\t// .setCacheable(true)\n\t\t\t\t\t\t.getResultList();\n\t\t\tfor (Book b : list) \n\t\t\t\tSystem.out.println(b);\n\t\t}catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public interface PlanDao extends JpaRepository<Plan, Integer> {\n List<Plan> findByQrPass(String pass);\n}", "@SuppressWarnings(\"unchecked\")\n @Override\n @Transactional\n public List<BGPPeer> findAllPeersBySearchCriteria(String searchCriteria, String criteriaValue, Integer limit, Boolean withGeo, String where, String orderby){\n\n Object criteriaVal = criteriaValue;\n\n Session session = null;\n List<BGPPeer> peerList = new ArrayList<BGPPeer>();\n\n long fetchStartTime = 0;\n\n StringBuilder baseQuery = new StringBuilder();\n\n try{\n\n session = sessionFactory.openSession();\n\n baseQuery.append(\"from BGPPeer bp\");\n\n // append PathParam into query\n if(searchCriteria.equals(\"none\")){\n baseQuery.append(\" WHERE 1 = :criteriaVal\");\n criteriaVal = Integer.valueOf(criteriaValue);\n }\n if(searchCriteria.equals(\"peerHashId\")){\n baseQuery.append(\" WHERE bp.key.hash_id = :criteriaVal\");\n } else if(searchCriteria.equals(\"LocalIP\")){\n baseQuery.append(\" WHERE bp.local_ip LIKE :criteriaVal\");\n criteriaVal = criteriaValue + \"%\";\n } else if(searchCriteria.equals(\"peerIP\")){\n baseQuery.append(\" WHERE bp.peer_addr LIKE :criteriaVal\");\n criteriaVal = criteriaValue + \"%\";\n } else if(searchCriteria.equals(\"peerASN\")){\n baseQuery.append(\" WHERE bp.peer_as = :criteriaVal\");\n criteriaVal = Long.valueOf(criteriaValue);\n }\n\n\n // append remaining QueryParams into query\n\n if (where != null && !where.isEmpty()) {\n baseQuery.append(\" AND bp.\" + where);\n }\n\n if (orderby != null && !orderby.isEmpty()) {\n baseQuery.append(\" ORDER BY bp.\" + orderby);\n }\n\n if (withGeo == null) {\n\n if (limit != null) {\n\n System.out.println(\" scenario 1 executed \");\n fetchStartTime = System.currentTimeMillis();\n\n peerList = session.createQuery(baseQuery.toString()).setParameter(\"criteriaVal\",criteriaVal).setMaxResults(limit).list();\n\n System.out.println(\"The scenario 1 Fetch time is : \" + (System.currentTimeMillis() - fetchStartTime));\n } else {\n\n System.out.println(\"scenario 2 executed \");\n fetchStartTime = System.currentTimeMillis();\n\n peerList = session.createQuery(baseQuery.toString()).setParameter(\"criteriaVal\",criteriaVal).list();\n\n System.out.println(\"The scenario 2 Fetch time is : \" + (System.currentTimeMillis() - fetchStartTime));\n }\n\n } else {\n // todo change this query\n\n System.out.println(\"scenario 3 executed\");\n fetchStartTime = System.currentTimeMillis();\n\n peerList = session.createQuery(baseQuery.toString()).setParameter(\"criteriaVal\",criteriaVal).setMaxResults(limit).list();\n\n System.out.println(\"The scenario 3 Fetch time is : \" + (System.currentTimeMillis() - fetchStartTime));\n }\n\n\n }catch(Exception e){\n e.printStackTrace();\n }finally {\n if(session != null){\n session.close();\n }\n }\n\n\n return peerList;\n\n }", "@Override\n\tpublic JavaBean1 findB(String date) {\n\t\t\n\t\tArrayList<PaymentOrderPO> pos=new ArrayList<>();\n\t\tjb1=new JavaBean1();\n\t\tString sql=\"select * from paymentlist\";\n\t\tjb1.setResultMessage(ResultMessage.NotExist);\n\t\ttry {\n\t\t\tstmt=con.prepareStatement(sql);\n\t\t\tResultSet rs=stmt.executeQuery();\n\t\t\twhile(rs.next()){\n\t\t\t\tpo=new PaymentOrderPO();\n\t\t\t\tif(rs.getString(\"date\").equals(date)&&\n\t\t\t\t\t\trs.getString(\"approState\").equals(\"NotApprove\")){\n\t\t\t\t\tpo.setID(rs.getString(1));\n\t\t\t\t\tpo.setDate(rs.getString(2));\n\t\t\t\t\tpo.setAmount(rs.getDouble(3));\n\t\t\t\t\tpo.setPayer(rs.getString(4));\n\t\t\t\t\tpo.setBankAccount(rs.getString(5));\n\t\t\t\t\tpo.setEntry(rs.getString(6));\n\t\t\t\t\tpo.setNote(rs.getString(7));\n\t\t\t\t\tpo.setApproState(ApproState.valueOf(rs.getString(\"approState\")));\n\t\t\t\t\tpos.add(po);\n\t\t\t\t\tjb1.setResultMessage(ResultMessage.Success);\n\t\t\t\t}\n\t\t\t\tif(rs.getString(\"date\").equals(date)&&\n\t\t\t\t\t\trs.getString(\"approState\").equals(\"Approve\")){\n\t\t\t\t\tpo.setID(rs.getString(1));\n\t\t\t\t\tpo.setDate(rs.getString(2));\n\t\t\t\t\tpo.setAmount(rs.getDouble(3));\n\t\t\t\t\tpo.setPayer(rs.getString(4));\n\t\t\t\t\tpo.setBankAccount(rs.getString(5));\n\t\t\t\t\tpo.setEntry(rs.getString(6));\n\t\t\t\t\tpo.setNote(rs.getString(7));\n\t\t\t\t\tpo.setApproState(ApproState.valueOf(rs.getString(\"approState\")));\n\t\t\t\t\tpos.add(po);\n\t\t\t\t\tjb1.setResultMessage(ResultMessage.Success);\n\t\t\t\t}\n\t\t\t}\n\t\t\tjb1.setObject(pos);\n\t\t\t return jb1;\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn jb1;\n\t\t}\n\t}", "public interface HrDeptRescindDao extends GenericDao<HrDeptRescind, String> {\n\tpublic JQueryPager getHrDeptRescindCriteria(final JQueryPager paginatedList,List<PropertyFilter> filters);\n\n}", "public List<HrJBorrowcontract> findAll();", "@Override\n\tpublic String queryHtcDeptChargeFassetRela(Map<String, Object> entityMap)\n\t\t\tthrows DataAccessException {\n\t SysPage sysPage = new SysPage();\n\t\t\n\t\tsysPage = (SysPage) entityMap.get(\"sysPage\");\n\t\t\n\t\tif(sysPage.getTotal() == -1){\n\t\t\t\n\t\t\tList<HtcDeptChargeFassetRela> list = htcDeptChargeFassetRelaMapper.queryHtcDeptChargeFassetRela(entityMap);\n\t\t\t\n\t\t\treturn ChdJson.toJson(list);\n\t\t\t\n\t\t}else{\n\t\t\tRowBounds rowBounds = new RowBounds(sysPage.getPage(), sysPage.getPagesize());\n\t\t\t\n\t\t\tList<HtcDeptChargeFassetRela> list = htcDeptChargeFassetRelaMapper.queryHtcDeptChargeFassetRela(entityMap, rowBounds);\n\t\t\n\t\t\tPageInfo page = new PageInfo(list);\n\t\t\t\n\t\t\treturn ChdJson.toJson(list, page.getTotal());\n\t\t}\n\t}", "List<BalanceDTO> findAllBalancesByPeriodId(Long id);", "Booking getBookingById(BookingKey bookingKey);", "public interface IBuyDao extends Dao<Buy> {\n\n// /** Gets the appropriate List<Executor> by period */\n// public List<Buy> getExecutorsByPeriod(int first, int second) throws PersistException;\n//\n /** Gets all Items*/\n public List<Buy> getAll() throws PersistException;\n\n public String[] getBuysListNameArray() throws PersistException;\n\n /** Gets count Buys*/\n public int getCountBuys() throws PersistException;\n\n// /** Gets Executor by name*/\n// public Buy getExecutorByName(String name) throws PersistException;\n//\n// /** Gets Executors with status Active*/\n// public List<Buy> getActiveExecutors() throws PersistException;\n}", "@Cacheable(value = \"planet\", key = \"#id\", unless = \"#result == null\")\n public Planet findById(String id){\n try{\n Optional<Planet> planetOptional = planetRepository.findById(id);\n return planetOptional.orElse(null);\n }\n catch (Exception ex){\n throw ex;\n }\n }", "private ApartmentDetailsBean getApartmentInfo(String query, int id) {\n\t\tResultSet rs=null;\n\t\tApartmentDetailsBean apt = new ApartmentDetailsBean();\n\t\ttry {\n\t\t\t\n\t\t\t//pstmt = con.prepareStatement(query);\n\t\t\tPreparedStatement pstmt = dataSource.getConnection().prepareStatement(query);\n\t\t\tpstmt.setInt(1, id);\n\t\t\trs = pstmt.executeQuery();\n\t\t\twhile (rs.next()) {\n\t\t\t\t\n\t\t\t\tapt.setApartmentId(rs.getInt(\"apartmentId\"));\n\t\t\t\tapt.setDepositAmt(rs.getInt(\"depositAmt\"));\n\t\t\t\tapt.setRent(rs.getInt(\"rent\"));\n\t\t\t\tapt.setAvailablityFrom(rs.getDate(\"availablityFrom\"));\n\t\t\t\tapt.setUtilities(rs.getString(\"utilities\"));\n\t\t\t\tapt.setArea(rs.getString(\"area\"));\n\t\t\t\tapt.setStreet(rs.getString(\"street\"));\n\t\t\t\tapt.setDoorNo(rs.getString(\"doorNo\"));\n\t\t\t\tapt.setCity(rs.getString(\"city\"));\n\t\t\t\tapt.setno_of_rooms(rs.getInt(\"no_of_rooms\"));\n\t\t\t\tapt.setno_of_bathroom(rs.getInt(\"no_of_bathroom\"));\n\t\t\t\tapt.setFlooring(rs.getString(\"flooring\"));\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\n\t\t} catch (SQLException e) {\n\n\t\t\te.printStackTrace();\n\t\t\t\n\t\t}\n\t\treturn apt;\n\t}", "@Repository\npublic interface MedicationPlanRepository\n extends JpaRepository<MedicationPlan, Long> {\n\n /**\n * Gets all by patient id.\n *\n * @param id the id\n * @return the all by patient id\n */\n List<MedicationPlan> getAllByPatientId(Long id);\n\n List<MedicationPlan> getAllByPatientIdAndPeriodEndAfterAndPeriodStartBefore(\n Long patientId, Date date1, Date date2);\n}", "private void querys() {\n\t try {\r\n\t\tBoxYieldRptFactory.getRemoteInstance().SteDate();\r\n\t } catch (EASBizException e) {\r\n\t\t// TODO Auto-generated catch block\r\n\t\te.printStackTrace();\r\n\t } catch (BOSException e) {\r\n\t\t// TODO Auto-generated catch block\r\n\t\te.printStackTrace();\r\n\t }\r\n\t}", "private Map<Long, List<ObligacionCoactivoDTO>> consultaObligacionesComparendo() {\n logger.debug(\"CoactivoEJB::consultaObligacionesComparendo()\");\n Map<Long, List<ObligacionCoactivoDTO>> obligacionesDeudor = new HashMap<>();\n StringBuilder consulta = new StringBuilder();\n consulta.append(\"SELECT \");\n consulta.append(\"p.id_cartera, \");\n consulta.append(\"ca.saldo_capital, \");\n consulta.append(\"ca.saldo_interes, \");\n consulta.append(\"p.numero_obligacion, \");\n consulta.append(\"p.id_deudor, \");\n consulta.append(\"p.fecha_obligacion, \");\n consulta.append(\"p.id_funcionario, \");\n consulta.append(\"p.id_cargue_coactivo, \");\n consulta.append(\"p.id_precoactivo \");\n consulta.append(\"FROM precoactivo p \");\n consulta.append(\"JOIN cartera ca on ca.id_cartera = p.id_cartera \");\n consulta.append(\"WHERE p.id_estado_precoactivo = :estadoAprobado \");\n consulta.append(\"AND p.codigo_tipo_obligacion = :tipoComparendo \");\n\n Query query = em.createNativeQuery(consulta.toString());\n query.setParameter(\"estadoAprobado\", EnumEstadoPrecoactivo.AUTORIZADO.getValue());\n query.setParameter(\"tipoComparendo\", EnumTipoObligacion.COMPARENDO.getValue());\n @SuppressWarnings({ \"unchecked\" })\n List<Object[]> lsObligacionesComparendos = Utilidades.safeList(query.getResultList());\n\n for (Object[] obligacionComparendo : lsObligacionesComparendos) {\n int i = 0;\n BigInteger idCartera = (BigInteger) obligacionComparendo[i++];\n BigDecimal saldoCapital = (BigDecimal) obligacionComparendo[i++];\n BigDecimal saldoInteres = (BigDecimal) obligacionComparendo[i++];\n String numObligacion = (String) obligacionComparendo[i++];\n Long idDeudor = ((BigInteger) obligacionComparendo[i++]).longValue();\n Date fechaObligacion = (Date) obligacionComparendo[i++];\n Integer idFuncionario = (Integer) obligacionComparendo[i++];\n Long idCargue = ((BigInteger) obligacionComparendo[i++]).longValue();\n Long idPrecoactivo = ((BigInteger) obligacionComparendo[i++]).longValue();\n\n CoactivoDTO coactivo = new CoactivoDTO();\n coactivo.setCargueCoactivo(new CargueCoactivoDTO(idCargue));\n coactivo.setFuncionario(new FuncionarioDTO(idFuncionario));\n coactivo.setPersona(new PersonaDTO(idDeudor));\n // Arma obligacion que va a entrar a coactivo\n ObligacionCoactivoDTO obligacion = new ObligacionCoactivoDTO();\n obligacion.setCodigoTipoObligacion(EnumTipoObligacion.COMPARENDO.getValue());\n obligacion.setCartera(new CarteraDTO(idCartera.longValue()));\n obligacion.setNumeroObligacion(numObligacion);\n obligacion.setCoactivo(coactivo);\n obligacion.setFechaObligacion(fechaObligacion);\n obligacion.setValorObligacion(saldoCapital);\n obligacion.setValorInteresMoratorios(saldoInteres);\n obligacion.setIdPrecoativo(idPrecoactivo);\n if (!obligacionesDeudor.containsKey(idDeudor)) {\n obligacionesDeudor.put(idDeudor, new ArrayList<ObligacionCoactivoDTO>());\n }\n obligacionesDeudor.get(idDeudor).add(obligacion);\n }\n return obligacionesDeudor;\n }", "@Transactional(propagation = Propagation.REQUIRED, readOnly = true)\n\tpublic List<Record> listRecord(Record record, Timestamp startDate, Timestamp endDate){\n\t\tList<Record> result = null;\n\n\t\ttry{\n\n\t\t\tCriteria c = dao.getSession().createCriteria(Record.class,\"r\");\n\t\t\tc.createAlias(\"r.test\", \"t\").createAlias(\"r.test.project\", \"p\");\n\t\t\tc.add(Restrictions.ge(\"r.endTime\", startDate));\n\t\t\tc.add(Restrictions.le(\"r.endTime\", endDate));\n\t\t\t//Criteria c = tempC2.createCriteria(\"Test\");\n\n\t\t\t\t\t//.add(Restrictions.eqProperty(\"r.testId\",\"t.id\"))\n\t\t\t\t\t//.add(Restrictions.eqProperty(\"t.projectId\",\"p.id\"));\n\t\t\t//for project properties\n\t\t\tParamChecker pc = new ParamChecker();\n\t\t\tif (record!=null && record.getTest()!=null && record.getTest().getProject()!=null){\n\t\t\t\tProject project = record.getTest().getProject();\n\t\t\t\tif (pc.isFollowPattern(pc.UUID, project.getId())){\n\t\t\t\t\tc.add(Restrictions.eq(\"p.id\", project.getId()));\n\t\t\t\t}\n\t\t\t\tif (pc.isNotEmpty(project.getCategory())){\n\t\t\t\t\tc.add(Restrictions.eq(\"p.category\", project.getCategory()));\n\t\t\t\t}\n\t\t\t\tif (pc.isNotEmpty(project.getCountry())){\n\t\t\t\t\tc.add(Restrictions.eq(\"p.country\", project.getCountry()));\n\t\t\t\t}\n\t\t\t\tif (pc.isNotEmpty(project.getLeader())){\n\t\t\t\t\tc.add(Restrictions.eq(\"p.leader\", project.getLeader()));\n\t\t\t\t}\n\t\t\t\tif (pc.isNotEmpty(project.getProductCode())){\n\t\t\t\t\tc.add(Restrictions.eq(\"p.productCode\", project.getProductCode()));\n\t\t\t\t}\n\t\t\t\tif (pc.isNotEmpty(project.getProductName())){\n\t\t\t\t\tc.add(Restrictions.eq(\"p.productName\", project.getProductName()));\n\t\t\t\t}\n\t\t\t\tif (pc.isNotEmpty(project.getRegion())){\n\t\t\t\t\tc.add(Restrictions.eq(\"p.region\", project.getRegion()));\n\t\t\t\t}\n\t\t\t\tif (project.getStatus()!=null){\n\t\t\t\t\tc.add(Restrictions.eq(\"p.status\", project.getStatus()));\n\t\t\t\t}\n\t\t\t\tif (project.getTargetTestcaseNumber()!=null){\n\t\t\t\t\tc.add(Restrictions.eq(\"p.targetTestcaseNumber\", project.getTargetTestcaseNumber()));\n\t\t\t\t}\n\t\t\t\tif (pc.isNotEmpty(project.getPod())){\n\t\t\t\t\tc.add(Restrictions.eq(\"p.pod\", project.getPod()));\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (record!=null && record.getTest()!=null){\n\t\t\t\tTest t = record.getTest();\n\t\t\t\tif (pc.isFollowPattern(pc.UUID, t.getId())){\n\t\t\t\t\tc.add(Restrictions.eq(\"t.id\", t.getId()));\n\t\t\t\t}\n\t\t\t\tif (pc.isNotEmpty(t.getName())){\n\t\t\t\t\tc.add(Restrictions.eq(\"t.name\", t.getName()));\n\t\t\t\t}\n\t\t\t\tif (pc.isNotEmpty(t.getDescription())){\n\t\t\t\t\tc.add(Restrictions.eq(\"t.description\", t.getDescription()));\n\t\t\t\t}\n\t\t\t\tif (t.getManualExecutionTime()!=null){\n\t\t\t\t\tc.add(Restrictions.eq(\"t.manualExecutionTime\", t.getManualExecutionTime()));\n\t\t\t\t}\n\t\t\t}\n//\t\t\tc.add(Restrictions.isNull(\"endTime\"));\n//\t\t\tc.add(Restrictions.isNotNull(\"startTime\"));\n//\t\t\tc.addOrder(Order.desc(\"startTime\"));\n\t\t\t//criteria.setMaxResults(1);\n\n\t\t\tresult = c.list();\n\t\t\tif (result != null && result.size()>0){\n\t\t\t\treturn result;\n\t\t\t}\n\t\t} catch (Exception e){\n\t\t\te.printStackTrace();\n\t\t\tlog.error(\"Error searching for incomplete record \", e);\n\n\t\t}\n\t\treturn null;\n\t}", "public BookingInfoEntity getBookingById(int id, Transaction transaction) {\n BookingInfoEntity bookingInfoEntity = null;\n\n if (transaction.getPaymentMode().equalsIgnoreCase(\"UPI\") ||\n transaction.getPaymentMode().equalsIgnoreCase(\"CARD\") ) {\n Optional<BookingInfoEntity> optionalBookingInfoEntity = bookingRepository.findById(id);\n if (!optionalBookingInfoEntity.isPresent()) {\n throw new BookingIDNotFoundException(\"Invalid Booking Id\");\n } else {\n bookingInfoEntity = optionalBookingInfoEntity.get();\n transaction.setBookingId(bookingInfoEntity.getBookingId());\n\n //Call PaymentService Api\n transaction = callPaymentServiceApi(transaction);\n bookingInfoEntity.setTransactionId(transaction.getTransactionId());\n bookingInfoEntity = bookingRepository.save(bookingInfoEntity);\n try {\n \t\t\trunProducer(1, bookingInfoEntity.toString());\n \t\t} catch (InterruptedException e) {\n \t\t\te.printStackTrace(); //Internally throw 500 error\n \t\t}\n }\n } else {\n throw new InvalidPaymentModeException(\"Invalid mode of payment\");\n }\n return bookingInfoEntity;\n }", "public ResultSet Retshare()throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select * from company_share\");\r\n\treturn rs;\r\n}", "public interface PaymentRequestDao {\n\n /**\n * Get all the payment requests that need to be extracted that match a credit memo.\n *\n * @param campusCode - limit results to a single chart\n * @param paymentRequestIdentifier - Payment Request Identifier (can be null)\n * @param purchaseOrderIdentifier - PO Identifier (can be null)\n * @param vendorHeaderGeneratedIdentifier\n * - Vendor Header ID\n * @param vendorDetailAssignedIdentifier - Vendor Detail ID\n * @param currentSqlDateMidnight current SQL date midnight\n * @return - list of payment requests that need to be extracted\n */\n public List<PaymentRequestDocument> getPaymentRequestsToExtract(String campusCode, Integer paymentRequestIdentifier, Integer purchaseOrderIdentifier, Integer vendorHeaderGeneratedIdentifier, Integer vendorDetailAssignedIdentifier, Date currentSqlDateMidnight);\n\n /**\n * Get all the payment requests that need to be extracted that match a credit memo.\n *\n * @param campusCode - limit results to a single chart\n * @param vendor - Vendor Header ID, Vendor Detail ID, Country, Zip Code\n * @param onOrBeforePaymentRequestPayDate\n * only payment requests with a pay date on or before this value will be returned in the\n * iterator\n * @return - list of payment requests that need to be extracted\n */\n public Collection<PaymentRequestDocument> getPaymentRequestsToExtractForVendor(String campusCode, VendorGroupingHelper vendor, Date onOrBeforePaymentRequestPayDate);\n\n /**\n * Get all the payment requests that need to be extracted to PDP.\n *\n * @param onlySpecialPayments - true only include special payments, False - include all\n * @param chartCode - if not null, limit results to a single chart\n * @return - Collection of payment requests\n */\n public List<PaymentRequestDocument> getPaymentRequestsToExtract(boolean onlySpecialPayments, String chartCode, Date onOrBeforePaymentRequestPayDate);\n\n /**\n * Get all the payment requests that are marked immediate that need to be extracted to PDP.\n *\n * @param chartCode - chart of accounts code\n * @return - Collection of payment requests\n */\n public List<PaymentRequestDocument> getImmediatePaymentRequestsToExtract(String chartCode);\n\n /**\n * Get all payment request documents that are eligible for auto-approval. Whether or not a document is eligible for\n * auto-approval is determined according to whether or not the document total is below a pre-determined minimum amount. This\n * amount is derived from the accounts, charts and/or organizations associated with a given document. If no minimum amount can\n * be determined from chart associations a default minimum specified as a system parameter is used to determine the minimum\n * amount threshold.\n *\n * @param todayAtMidnight\n * @return - an Iterator over all payment request documents eligible for automatic approval\n */\n public List<String> getEligibleForAutoApproval(Date todayAtMidnight);\n\n public List<String> getEligibleForAutoApproval();\n\n /**\n * Get a payment request document number by id.\n *\n * @param id - PaymentRequest Id\n * @return - PaymentRequest or null if not found\n */\n public String getDocumentNumberByPaymentRequestId(Integer id);\n\n /**\n * Retrieves a list of document numbers by purchase order id.\n *\n * @param id - purchase order id\n * @return - list of document numbers\n */\n public List<String> getDocumentNumbersByPurchaseOrderId(Integer id);\n\n\n /**\n * Retrieves a list of Payment Requests with the given vendor id and invoice number.\n *\n * @param vendorHeaderGeneratedId - header id of the vendor id\n * @param vendorDetailAssignedId - detail id of the vendor id\n * @param invoiceNumber - invoice number as entered by AP\n * @return - List of Payment Requests.\n */\n public List getActivePaymentRequestsByVendorNumberInvoiceNumber(Integer vendorHeaderGeneratedId, Integer vendorDetailAssignedId, String invoiceNumber);\n\n /**\n * Retrieves a list of Payment Requests with the given vendor id and invoice number.\n *\n * @param vendorHeaderGeneratedId - header id of the vendor id\n * @param vendorDetailAssignedId - detail id of the vendor id\n * @return - List of Payment Requests.\n */\n public List getActivePaymentRequestsByVendorNumber(Integer vendorHeaderGeneratedId, Integer vendorDetailAssignedId);\n\n /**\n * Retrieves a list of Payment Requests with the given PO Id, invoice amount, and invoice date.\n *\n * @param poId - purchase order ID\n * @param invoiceAmount - amount of the invoice as entered by AP\n * @param invoiceDate - date of the invoice as entered by AP\n * @return - List of Pay Reqs.\n */\n public List getActivePaymentRequestsByPOIdInvoiceAmountInvoiceDate(Integer poId, KualiDecimal invoiceAmount, Date invoiceDate);\n\n /**\n * Retrieves a list of potentially active payment requests for a purchase order by status code. Active being defined as being\n * enroute and before final. The issue is that a status of vendor_tax_review may not mean that it's in review, but could be in\n * final (as there isn't a final status code for payment request). Workflow status must be checked further after retrieval.\n *\n * @param purchaseOrderId\n * @return\n */\n public List<String> getActivePaymentRequestDocumentNumbersForPurchaseOrder(Integer purchaseOrderId);\n\n /**\n * Get all payment request which are waiting in receiving status queue\n *\n * @return\n */\n public List<String> getPaymentRequestInReceivingStatus();\n\n}", "@Override\n\tpublic String queryHtcDeptChargeFassetRelaFasset(\n\t\t\tMap<String, Object> entityMap) throws DataAccessException {\n\t\t SysPage sysPage = new SysPage();\n\t\t\t\n\t\tsysPage = (SysPage) entityMap.get(\"sysPage\");\n\t\t\n\t\tif(sysPage.getTotal() == -1){\n\t\t\t\n\t\t\tList<HtcDeptChargeFassetRela> list = htcDeptChargeFassetRelaMapper.queryHtcDeptChargeFassetRelaFasset(entityMap);\n\t\t\t\n\t\t\treturn ChdJson.toJson(list);\n\t\t\t\n\t\t}else{\n\t\t\tRowBounds rowBounds = new RowBounds(sysPage.getPage(), sysPage.getPagesize());\n\t\t\t\n\t\t\tList<HtcDeptChargeFassetRela> list = htcDeptChargeFassetRelaMapper.queryHtcDeptChargeFassetRelaFasset(entityMap, rowBounds);\n\t\t\n\t\t\tPageInfo page = new PageInfo(list);\n\t\t\t\n\t\t\treturn ChdJson.toJson(list, page.getTotal());\n\t\t}\n\t}", "public List<ReporteRetencionesResumido> getRetencionSRIResumido(int mes, int anio, int idOrganizacion)\r\n/* 27: */ {\r\n/* 28: 58 */ String sql = \"SELECT new ReporteRetencionesResumido(f.fechaEmisionRetencion,f.fechaRegistro,f.fechaEmision, CONCAT(f.establecimiento,'-',f.puntoEmision,'-',f.numero),\\tf.identificacionProveedor,c.descripcion,CASE WHEN c.tipoConceptoRetencion = :tipoConceptoFUENTE then (SUM(COALESCE(dfp.baseImponibleRetencion, 0)+COALESCE(dfp.baseImponibleTarifaCero, 0) +COALESCE(dfp.baseImponibleDiferenteCero, 0)+COALESCE(dfp.baseImponibleNoObjetoIva, 0))) else COALESCE(dfp.baseImponibleRetencion, 0) end,dfp.porcentajeRetencion,dfp.valorRetencion,\\tc.codigo,CASE WHEN c.tipoConceptoRetencion = :tipoConceptoIVA then 'IVA' WHEN c.tipoConceptoRetencion = :tipoConceptoFUENTE then 'FUENTE' WHEN c.tipoConceptoRetencion = :tipoConceptoISD then 'ISD' else '' end,f.numeroRetencion) FROM DetalleFacturaProveedorSRI dfp INNER JOIN dfp.facturaProveedorSRI f INNER JOIN dfp.conceptoRetencionSRI c WHERE MONTH(f.fechaRegistro) =:mes\\tAND YEAR(f.fechaRegistro) =:anio AND f.estado!=:estadoAnulado AND f.indicadorSaldoInicial!=true AND f.idOrganizacion = :idOrganizacion\\tGROUP BY c.codigo,f.numero,f.puntoEmision,\\tf.establecimiento, f.identificacionProveedor,\\tc.descripcion,dfp.baseImponibleRetencion,dfp.porcentajeRetencion,dfp.valorRetencion,f.fechaEmisionRetencion,f.fechaRegistro,f.fechaEmision,f.numeroRetencion, c.tipoConceptoRetencion ORDER BY c.tipoConceptoRetencion, c.codigo \";\r\n/* 29: */ \r\n/* 30: */ \r\n/* 31: */ \r\n/* 32: */ \r\n/* 33: */ \r\n/* 34: */ \r\n/* 35: */ \r\n/* 36: */ \r\n/* 37: */ \r\n/* 38: */ \r\n/* 39: */ \r\n/* 40: */ \r\n/* 41: */ \r\n/* 42: */ \r\n/* 43: */ \r\n/* 44: */ \r\n/* 45: 75 */ Query query = this.em.createQuery(sql);\r\n/* 46: 76 */ query.setParameter(\"mes\", Integer.valueOf(mes));\r\n/* 47: 77 */ query.setParameter(\"anio\", Integer.valueOf(anio));\r\n/* 48: 78 */ query.setParameter(\"estadoAnulado\", Estado.ANULADO);\r\n/* 49: 79 */ query.setParameter(\"idOrganizacion\", Integer.valueOf(idOrganizacion));\r\n/* 50: 80 */ query.setParameter(\"tipoConceptoIVA\", TipoConceptoRetencion.IVA);\r\n/* 51: 81 */ query.setParameter(\"tipoConceptoFUENTE\", TipoConceptoRetencion.FUENTE);\r\n/* 52: 82 */ query.setParameter(\"tipoConceptoISD\", TipoConceptoRetencion.ISD);\r\n/* 53: 83 */ List<ReporteRetencionesResumido> lista = query.getResultList();\r\n/* 54: */ \r\n/* 55: 85 */ return lista;\r\n/* 56: */ }", "private void fetchBusinessGoalFromDB() \r\n\t{\r\n\t\tthis.showLoadingStatusBar();\r\n\t\tServiceDefTarget endpoint = (ServiceDefTarget) service; \t\t// get the business goal and associated subgoals and assets\r\n\t\tendpoint.setServiceEntryPoint(GWT.getModuleBaseURL() + \"identifyGoalAssetService.rpc\");\r\n\t\tservice.loadBusinessGoalInfo(getCurrentState().getProjectID(), new AsyncCallback<GwtBusinessGoal>()\r\n\t\t{\r\n\t\t\tpublic void onFailure(Throwable caught)\r\n\t\t\t{\r\n\t\t\t\tWindow.alert(caught.getMessage());\r\n\t\t\t}\r\n\r\n\t\t\tpublic void onSuccess(GwtBusinessGoal result)\r\n\t\t\t{\t\t\r\n\t\t\t\t\tbusinessGoal = result;\r\n\t\t\t\t\tsummaryPageCommand.execute();\r\n\t\t\t}\r\n\t\t});\r\n\t}", "@Dao\r\npublic interface IPointBusDAO {\r\n @Insert\r\n void save(PointBus pointBus);\r\n\r\n @Delete\r\n void delete(PointBus pointBus);\r\n\r\n @Query(\"SELECT * FROM pointBus\")\r\n List<PointBus> findAll();\r\n\r\n @Query(\"SELECT * FROM pointBus WHERE `key` like :key\")\r\n PointBus get(String key);\r\n}", "Payment find(int paymentID);", "public List<Bill> getBill() {\n\tString sql =\"SELECT * FROM bills JOIN employees e on bills.Id_employees = e.Id_employees JOIN food f on bills.Id_food = f.Id_food\";\n\tList<Bill> list = new ArrayList<Bill>();\n\ttry {\n\t\tPreparedStatement preparedStatement = ConnectionToTheBase.getConnectionToTheBase().getConnection().prepareStatement(sql);\n\t\tResultSet resultSet = preparedStatement.executeQuery();\n\t\t\n\t\twhile(resultSet.next()) {\n\t\t\tBill getBill = new Bill();\n\t\t\tgetBill.setId(resultSet.getInt(\"Id_bills\"));\n\t\t\tgetBill.setFood(resultSet.getString(\"Name\"));\n\t\t\tgetBill.setEmployyes(resultSet.getString(\"Name_and_surname\"));\n\t\t\tgetBill.setPrice(resultSet.getDouble(\"Price\"));\n\t\t\tgetBill.setSerialNumber(resultSet.getString(\"Serial_Number_Bill\"));\n\t\t\tgetBill.setTotal(resultSet.getDouble(\"TOTAL\"));\n\t\t\tlist.add(getBill);\n\t\t}\n\t\t\n\t} catch (SQLException e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t}\n\t\n\treturn list;\n}", "@Override\n\tpublic String queryHtcDeptChargeFassetRelaCharge(\n\t\t\tMap<String, Object> entityMap) throws DataAccessException {\n\t SysPage sysPage = new SysPage();\n\t\t\n\t\tsysPage = (SysPage) entityMap.get(\"sysPage\");\n\t\t\n\t\tif(sysPage.getTotal() == -1){\n\t\t\t\n\t\t\tList<HtcDeptChargeFassetRela> list = htcDeptChargeFassetRelaMapper.queryHtcDeptChargeFassetRelaCharge(entityMap);\n\t\t\t\n\t\t\treturn ChdJson.toJson(list);\n\t\t\t\n\t\t}else{\n\t\t\tRowBounds rowBounds = new RowBounds(sysPage.getPage(), sysPage.getPagesize());\n\t\t\t\n\t\t\tList<HtcDeptChargeFassetRela> list = htcDeptChargeFassetRelaMapper.queryHtcDeptChargeFassetRelaCharge(entityMap, rowBounds);\n\t\t\n\t\t\tPageInfo page = new PageInfo(list);\n\t\t\t\n\t\t\treturn ChdJson.toJson(list, page.getTotal());\n\t\t}\n\t}", "public List<GLJournalApprovalVO> getAllPeriod(String ClientId, String FromDate, String ToDate) {\n String sqlQuery = \"\";\n PreparedStatement st = null;\n ResultSet rs = null;\n List<GLJournalApprovalVO> list = null;\n try {\n list = new ArrayList<GLJournalApprovalVO>();\n sqlQuery = \" SELECT c_period.c_period_id AS ID,to_char(c_period.startdate,'dd-MM-YYYY'),c_period.name,c_period.periodno FROM c_period WHERE \"\n + \" AD_CLIENT_ID IN (\" + ClientId\n + \") and c_period.startdate>=TO_DATE(?) and c_period.enddate<=TO_DATE(?) order by c_period.startdate \";\n st = conn.prepareStatement(sqlQuery);\n st.setString(1, FromDate);\n st.setString(2, ToDate);\n log4j.debug(\"period:\" + st.toString());\n rs = st.executeQuery();\n while (rs.next()) {\n GLJournalApprovalVO VO = new GLJournalApprovalVO();\n VO.setId(rs.getString(1));\n VO.setStartdate(rs.getString(2));\n VO.setName(rs.getString(3));\n VO.setPeriod(rs.getString(4));\n list.add(VO);\n\n }\n } catch (Exception e) {\n log4j.error(\"Exception in getOrgs()\", e);\n }\n return list;\n }", "public DTOSalida obtenerAccesosPlantilla(DTOOID dto) throws MareException\n { \n UtilidadesLog.info(\"DAOGestionComisiones.obtenerAccesosPlantilla(DTOOID dto): Entrada\"); \n StringBuffer query = new StringBuffer();\n RecordSet rs = new RecordSet(); \n DTOSalida dtos = new DTOSalida();\n BelcorpService bs = UtilidadesEJB.getBelcorpService(); \n query.append(\" SELECT DISTINCT A.ACCE_OID_ACCE OID, B.VAL_I18N DESCRIPCION \");\n query.append(\" FROM COM_PLANT_COMIS_ACCES A, V_GEN_I18N_SICC B, COM_PLANT_COMIS C \"); \n query.append(\" WHERE \");\n if(dto.getOid() != null) {\n query.append(\" A.PLCO_OID_PLAN_COMI = \" + dto.getOid() + \" AND \");\n }\n query.append(\" A.PLCO_OID_PLAN_COMI = C.OID_PLAN_COMI AND \"); \n query.append(\" C.CEST_OID_ESTA = \" + ConstantesCOM.ESTADO_ACTIVO + \" AND \"); \n \n query.append(\" B.ATTR_ENTI = 'SEG_ACCES' AND \"); \n query.append(\" B.ATTR_NUM_ATRI = 1 AND \");\n query.append(\" B.IDIO_OID_IDIO = \" + dto.getOidIdioma() + \" AND \");\n query.append(\" B.VAL_OID = A.ACCE_OID_ACCE \");\n query.append(\" ORDER BY DESCRIPCION \"); \n UtilidadesLog.debug(query.toString()); \n try {\n rs = bs.dbService.executeStaticQuery(query.toString());\n if(rs != null)\n dtos.setResultado(rs);\n }catch (Exception e) {\n UtilidadesLog.error(e);\n throw new MareException(e, UtilidadesError.armarCodigoError(CodigosError.ERROR_DE_ACCESO_A_BASE_DE_DATOS));\n } \n UtilidadesLog.info(\"DAOGestionComisiones.obtenerAccesosPlantilla(DTOOID dto): Salida\"); \n return dtos;\n }", "@Transactional(readOnly = true) \n public List<PtoPeriodDTO> findAll() {\n log.debug(\"Request to get all PtoPeriods\");\n List<PtoPeriodDTO> result = ptoPeriodRepository.findAll().stream()\n .map(ptoPeriodMapper::ptoPeriodToPtoPeriodDTO)\n .collect(Collectors.toCollection(LinkedList::new));\n\n if(result.isEmpty()){\n \tresult.add(initialPtoPeriod());\n }\n \n return result;\n }", "ReportingPeriod getReportingPeriod(Long reportingPeriodId);", "private static InternalCacheConfig defaultQueryCacheConfig() {\n InternalCacheConfig cacheConfig = new InternalCacheConfig();\n cacheConfig.maxIdle = Duration.ofSeconds(100);\n cacheConfig.objectCount = 10_000;\n return cacheConfig;\n }", "@Repository\npublic interface RateDAO {\n\tString JSON_FORMAT = \"?format=json\";\n\tString NBP_API_URL = \"http://api.nbp.pl/api/exchangerates/\";\n\tString HTTP_RESPONSE_ERROR = \"HTTP response error errorCode:\";\n\tint MAX_RESULTS_PER_QUERY = 255;\n\n\tRateWrapper findByCode(String code, LocalDate fromDate, LocalDate toDate);\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface BonusPriceRepository extends JpaRepository<BonusPrice, Long> {\n\n Optional<BonusPrice> findByActive(boolean b);\n}", "private LeaveBalanceEntity findLeaveCurrentLeaveBalanceByEmpId(String empid) {\n\t\t String currentMonth=DateUtils.getCurrentDateSQLDB();\n\t\t currentMonth=currentMonth.substring(0,currentMonth.length()-2);\n\t\t String lsql=\"select * from emp_leave_balance where empid=\"+empid+\" and leaveMonth like '%\"+currentMonth+\"%'\";\n\t\t LeaveBalanceEntity leaveBalance=(LeaveBalanceEntity)super.getJdbcTemplate().queryForObject(lsql, new BeanPropertyRowMapper(LeaveBalanceEntity.class));\n\t\t return leaveBalance;\n\t}", "public interface ResourceDAO {\n //通过资源信息获取id\n @Select(\" SELECT r.resourceId \" +\n \" FROM btl_resource r \" +\n \" WHERE r.resourceURL = #{resourceURL} \" +\n \" AND r.resourceMethodType = #{resourceMethodType} \" +\n \" AND r.systemId = #{systemId} \")\n public List<Long> findIdByResourceInfo(@Param(\"resourceURL\") String resourceURL,\n @Param(\"resourceMethodType\") int resourceMethodType,\n @Param(\"systemId\") int systemId) ;\n\n //通过资源信息和可用性获取可用id\n @Select(\" SELECT r.resourceId \" +\n \" FROM btl_resource r \" +\n \" WHERE r.resourceURL = #{resourceURL} \" +\n \" AND r.resourceMethodType = #{resourceMethodType} \" +\n \" AND r.systemId = #{systemId} \" +\n \" AND r.state = #{state} \")\n public List<Long> findIdByResourceInfoAndState(@Param(\"resourceURL\") String resourceURL,\n @Param(\"resourceMethodType\") int resourceMethodType,\n @Param(\"systemId\") int systemId,\n @Param(\"state\") int state) ;\n\n //通过ids获取资源记录\n @Select({\"<script>\" ,\n \" SELECT * \",\n \" FROM btl_resource r \",\n \" WHERE r.resourceId IN \",\n \"<foreach item='id' index='index' collection='ids' open='(' separator=',' close=')'>\",\n \"#{id}\",\n \"</foreach>\",\n \"</script>\"})\n public List<ResourceRecord> findByIds(@Param(\"ids\") List<Long> ids) ;\n\n //通过ids获取可用的资源记录\n @Select({\"<script>\" ,\n \" SELECT * \",\n \" FROM btl_resource r \",\n \" WHERE r.state = #{state} \",\n \" AND r.resourceId IN \",\n \"<foreach item='id' index='index' collection='ids' open='(' separator=',' close=')'>\",\n \"#{id}\",\n \"</foreach>\",\n \"</script>\"})\n public List<ResourceRecord> findByIdsAndState(@Param(\"ids\") List<Long> ids , @Param(\"state\") int state) ;\n\n //通过ids获取资源信息\n @Select({\"<script>\" ,\n \" SELECT r.resourceId , r.resourceURL , r.resourceMethodType , r.systemId \",\n \" FROM btl_resource r \",\n \" WHERE r.resourceId IN \",\n \"<foreach item='id' index='index' collection='ids' open='(' separator=',' close=')'>\",\n \"#{id}\",\n \"</foreach>\",\n \"</script>\"})\n public List<ResourceRecord> findIdsWithResourceInfosByIds(@Param(\"ids\") List<Long> ids) ;\n\n //通过ids获取资源名称\n @Select({\"<script>\" ,\n \" SELECT r.resourceId , r.resourceName \",\n \" FROM btl_resource r \",\n \" WHERE r.resourceId IN \",\n \"<foreach item='id' index='index' collection='ids' open='(' separator=',' close=')'>\",\n \"#{id}\",\n \"</foreach>\",\n \"</script>\"})\n public List<ResourceRecord> findIdsWithResourceNameByIds(@Param(\"ids\") List<Long> ids) ;\n\n //通过ids获取资源可用信息\n @Select({\"<script>\" ,\n \" SELECT r.resourceId , r.state \",\n \" FROM btl_resource r \",\n \" WHERE r.resourceId IN \",\n \"<foreach item='id' index='index' collection='ids' open='(' separator=',' close=')'>\",\n \"#{id}\",\n \"</foreach>\",\n \"</script>\"})\n public List<ResourceRecord> findIdsWithStateByIds(@Param(\"ids\") List<Long> ids) ;\n\n\n //获取所有处于某种状态下的资源信息\n @Select(\" SELECT r.resourceId , r.resourceURL , r.resourceMethodType , r.systemId \" +\n \" FROM btl_resource r \" +\n \" WHERE r.state = #{state} \")\n public List<ResourceRecord> findIdsWithResourceInfoByState(@Param(\"state\") int state) ;\n\n //通过名字获取资源记录(分页)\n @Select(\" SELECT * \" +\n \" FROM btl_resource r \" +\n \" WHERE r.resourceName LIKE CONCAT('%' , #{name} , '%') \" +\n \" LIMIT ${skip},${size} \")\n public List<ResourceRecord> findByNameInPage(@Param(\"name\") String name,\n @Param(\"skip\") int skip,\n @Param(\"size\") int size);\n //通过名字获取资源数\n @Select(\" SELECT count(1) \" +\n \" FROM btl_resource r \" +\n \" WHERE r.resourceName LIKE CONCAT('%' , #{name} , '%') \")\n long getCountByName(@Param(\"name\") String name);\n\n\n //获取资源树信息\n @Select(\"SELECT r.resourceId , r.resourceName , r.parentId , r.state FROM btl_resource r\")\n public List<ResourceRecord> findAllRoleIdsWithRoleNameAndParentIdAndState() ;\n\n //添加资源\n @Insert(\" INSERT IGNORE INTO btl_resource(createTime , resourceCode , resourceName , resourceURL , resourceMethodType , systemId , state , parentId , resourceMemo) \" +\n \" VALUES(now() , #{re.resourceCode} , #{re.resourceName} , #{re.resourceURL} , #{re.resourceMethodType} , #{re.systemId} , #{re.state} , #{re.parentId} , #{re.resourceMemo}) \")\n public int insertResource(@Param(\"re\") ResourceRecord re);\n\n //删除资源\n @Delete(\"DELETE FROM btl_resource WHERE resourceId=#{resourceId}\")\n public int deleteById(@Param(\"resourceId\") long resourceId);\n\n //更新资源\n @Update(\"UPDATE btl_resource SET \" +\n \" resourceCode = #{re.resourceCode} , \" +\n \" resourceName = #{re.resourceName} , \" +\n \" resourceURL = #{re.resourceURL} , \" +\n \" resourceMethodType = #{re.resourceMethodType} , \" +\n \" systemId = #{re.systemId} , \" +\n \" state = #{re.state} , \" +\n \" parentId = #{re.parentId} , \" +\n \" resourceMemo = #{re.resourceMemo} \" +\n \" WHERE resourceId = #{re.resourceId}\")\n public int updateResource(@Param(\"re\") ResourceRecord re);\n\n}", "public List<GLJournalApprovalVO> selectInitialBal(String acctId, String resultFromDt,\n String FrmPerDate, String FrmFCDate, String acctType, int resultpos, String RoleId) {\n String sqlQuery = \"\";\n PreparedStatement st = null;\n ResultSet rs = null;\n List<GLJournalApprovalVO> list = null;\n try {\n list = new ArrayList<GLJournalApprovalVO>();\n if ((acctType.equals(\"E\") || acctType.equals(\"R\"))) {\n sqlQuery = \" SELECT sum(case when (DATEACCT > TO_DATE(?) and DATEACCT < TO_DATE(?) )\"\n + \" then F.AMTACCTDR - F.AMTACCTCR else 0 end )as initialamt,\"\n + \"\tsum(case when(DATEACCT > TO_DATE(?) and DATEACCT < TO_DATE(?) ) then F.AMTACCTDR else 0 end ) as initialdr ,\"\n + \"sum(case when (DATEACCT > TO_DATE(?) and DATEACCT < TO_DATE(?) ) then F.AMTACCTCR else 0 end ) as initialcr\"\n + \" FROM FACT_ACCT f WHERE 1=1 AND ( f.EM_EFIN_UNIQUECODE = ? or f.acctvalue=? ) \"\n + \" AND F.ACCOUNT_ID IN (select act.c_elementvalue_id from efin_security_rules_act act \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=act.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_Salesregion_ID in (select dep.C_Salesregion_ID from Efin_Security_Rules_Dept dep \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=dep.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_Project_ID in (select proj.c_project_id from efin_security_rules_proj proj \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=proj.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_CAMPAIGN_ID IN(select bud.C_campaign_ID from efin_security_rules_budtype bud \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=bud.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_Activity_ID in (select act.C_Activity_ID from efin_security_rules_activ act \"\n + \" join efin_security_rules ru on ru.efin_security_rules_id=act.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.User1_ID in (select fut1.User1_ID from efin_security_rules_fut1 fut1 \"\n + \" join efin_security_rules ru on ru.efin_security_rules_id=fut1.efin_security_rules_id \"\n + \" where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.User2_ID in (select fut2.User2_ID from efin_security_rules_fut2 fut2 \"\n + \" join efin_security_rules ru on ru.efin_security_rules_id=fut2.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \" + \" \";\n st = conn.prepareStatement(sqlQuery);\n st.setString(1, FrmPerDate);\n st.setString(2, resultFromDt);\n st.setString(3, FrmPerDate);\n st.setString(4, resultFromDt);\n st.setString(5, FrmPerDate);\n st.setString(6, resultFromDt);\n st.setString(7, acctId);\n st.setString(8, acctId);\n log4j.debug(\"st:\" + st.toString());\n\n rs = st.executeQuery();\n\n } else if (acctType.equals(\"A\") || acctType.equals(\"L\") || acctType.equals(\"O\")\n || acctType.equals(\"M\")) {\n sqlQuery = \" SELECT sum(\"\n + \"case when ((DATEACCT > TO_DATE(?) and DATEACCT < TO_DATE(?) \"\n + \"AND f.FACTACCTTYPE not in('O', 'R', 'C') \"\n + \") or (dateacct = To_date(?) AND f.factaccttype = 'O' )) \"\n + \"then F.AMTACCTDR - F.AMTACCTCR else 0 end \" + \")as initialamt,\"\n + \"\tsum(case when( (DATEACCT > TO_DATE(?) and DATEACCT < TO_DATE(?) \"\n + \" AND f.FACTACCTTYPE not in('O', 'R', 'C')) or (dateacct = To_date(?) AND f.factaccttype = 'O' ) ) then F.AMTACCTDR else 0 end )\"\n + \" as initialdr , \" + \"sum(case when ((DATEACCT > TO_DATE(?) and DATEACCT < TO_DATE(?)\"\n + \"AND f.FACTACCTTYPE not in('O', 'R', 'C') ) or (dateacct = To_date(?) AND f.factaccttype = 'O' ) ) then F.AMTACCTCR else 0 end \"\n + \") as initialcr\"\n + \" FROM FACT_ACCT f WHERE 1=1 AND (f.EM_EFIN_UNIQUECODE = ? or f.acctvalue=? ) \"\n + \" AND F.ACCOUNT_ID IN (select act.c_elementvalue_id from efin_security_rules_act act \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=act.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_Salesregion_ID in (select dep.C_Salesregion_ID from Efin_Security_Rules_Dept dep \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=dep.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_Project_ID in (select proj.c_project_id from efin_security_rules_proj proj \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=proj.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_CAMPAIGN_ID IN(select bud.C_campaign_ID from efin_security_rules_budtype bud \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=bud.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_Activity_ID in (select act.C_Activity_ID from efin_security_rules_activ act \"\n + \" join efin_security_rules ru on ru.efin_security_rules_id=act.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.User1_ID in (select fut1.User1_ID from efin_security_rules_fut1 fut1 \"\n + \" join efin_security_rules ru on ru.efin_security_rules_id=fut1.efin_security_rules_id \"\n + \" where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.User2_ID in (select fut2.User2_ID from efin_security_rules_fut2 fut2 \"\n + \" join efin_security_rules ru on ru.efin_security_rules_id=fut2.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \";\n st = conn.prepareStatement(sqlQuery);\n st.setString(1, FrmFCDate);\n st.setString(2, resultFromDt);\n st.setString(3, FrmFCDate);\n st.setString(4, FrmFCDate);\n st.setString(5, resultFromDt);\n st.setString(6, FrmFCDate);\n st.setString(7, FrmFCDate);\n st.setString(8, resultFromDt);\n st.setString(9, FrmFCDate);\n st.setString(10, acctId);\n st.setString(11, acctId);\n log4j.debug(\"assst:\" + st.toString());\n rs = st.executeQuery();\n }\n\n while (rs.next()) {\n GLJournalApprovalVO VO = new GLJournalApprovalVO();\n VO.setInitNet(rs.getBigDecimal(1));\n VO.setInitDr(rs.getBigDecimal(2));\n VO.setInitCr(rs.getBigDecimal(3));\n list.add(VO);\n\n }\n } catch (Exception e) {\n log4j.error(\"Exception in getOrgs()\", e);\n }\n return list;\n }", "NeeqCompanyAccountingFirmOnline selectByPrimaryKey(Integer id);", "public List<GLJournalApprovalVO> getPeriod(String OrgId, String ClientId, String PeriodId) {\n String sqlQuery = \"\";\n PreparedStatement st = null;\n ResultSet rs = null;\n List<GLJournalApprovalVO> list = null;\n try {\n list = new ArrayList<GLJournalApprovalVO>();\n sqlQuery = \" SELECT C_PERIOD_ID as id, ((CASE C_PERIOD.isActive WHEN 'N' THEN '**' ELSE '' END) || C_PERIOD.Name) as name FROM C_PERIOD \"\n + \" left join c_year yr on yr.c_year_id = C_PERIOD.c_year_id \"\n + \"\t WHERE C_PERIOD.AD_Org_ID IN (\" + OrgId + \") AND C_PERIOD.AD_Client_ID IN(\"\n + ClientId + \") AND (C_PERIOD.isActive = 'Y' OR C_PERIOD.C_PERIOD_ID = ? )\"\n + \" ORDER BY yr.year , periodno \";\n st = conn.prepareStatement(sqlQuery);\n st.setString(1, PeriodId);\n rs = st.executeQuery();\n while (rs.next()) {\n GLJournalApprovalVO VO = new GLJournalApprovalVO();\n VO.setPeriod(rs.getString(1));\n VO.setPeriodName(rs.getString(2));\n list.add(VO);\n\n }\n } catch (Exception e) {\n log4j.error(\"Exception in getOrgs()\", e);\n return list;\n }\n return list;\n }", "List<OfferPrice> findByCustomer(Customer customer);", "public ResultSet broker1()throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select b.broker_id,b.first_name,b.last_name from broker b,login l where l.login_id=b.login_id and l.usertype='broker' and l.status='approved'\");\r\n\treturn rs;\r\n}", "@Override\r\npublic List<Order> getallorders() {\n\treturn productdao.getalloderds();\r\n}" ]
[ "0.59920317", "0.56368554", "0.56308246", "0.550532", "0.54826504", "0.5467216", "0.54630506", "0.5459572", "0.54434776", "0.54004574", "0.5367278", "0.53517735", "0.53514355", "0.53510684", "0.53407544", "0.5332399", "0.5329892", "0.53015924", "0.5294903", "0.52863246", "0.527789", "0.5274671", "0.5249104", "0.5215748", "0.5214064", "0.52094537", "0.5208916", "0.51790696", "0.5164726", "0.51624835", "0.5160504", "0.514241", "0.5139427", "0.51308393", "0.5124837", "0.51095426", "0.50902206", "0.50727457", "0.5069548", "0.5067114", "0.5065343", "0.5061039", "0.50565904", "0.5050665", "0.5047821", "0.50447214", "0.5029959", "0.50235516", "0.5022271", "0.502104", "0.5020611", "0.5014612", "0.5013886", "0.5008812", "0.5008218", "0.50064945", "0.49995062", "0.4993725", "0.4988679", "0.49815643", "0.4976439", "0.49757183", "0.49750176", "0.4971125", "0.49653596", "0.4963696", "0.49537644", "0.49513468", "0.49457505", "0.4944535", "0.49445012", "0.49410594", "0.49336153", "0.4927372", "0.49247053", "0.4917105", "0.49154246", "0.49092314", "0.49085936", "0.4906349", "0.49044973", "0.49044153", "0.49013403", "0.48982993", "0.48958948", "0.4892107", "0.4889388", "0.4888671", "0.48850197", "0.48848522", "0.48847717", "0.4881699", "0.48809645", "0.48808545", "0.4880748", "0.48757055", "0.48742685", "0.48679304", "0.48656937", "0.48643282" ]
0.6306813
0
return return DBConfigInitBean.getCacheHouse().getCacheParser(CaBillingCycleSpec.class).getSingle(new CacheCondition(CaBillingCycleSpec.Field.cycleSpecId, cycleSpecId)); return querySingle(CaBillingCycleSpec.class, new DBCondition(CaBillingCycleSpec.Field.cycleSpecId, cycleSpecId));
protected CaBillingCycleSpec getCaBillingCycleSpec(Long cycleSpecId) { List<CaBillingCycleSpec> specList=getCaBillingCycleSpecList(cycleSpecId); if(CommonUtil.isNotEmpty(specList)){ return specList.get(0); }else{ return null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public LifeCardItem getLifeCardItem(String ctry, int zid, int cid, int pid) {\n LifeCardItem lcItem = null;\n LcMain lcMain;\n //Query query = em.createNamedQuery(\"LcMain.findByNumber\", LcMain.class);\n //Query query = em.createQuery(\"SELECT l FROM LcMain l WHERE UPPER(l.country)=:ctry AND l.zoneid=:zid AND l.centerid=:cid AND l.patid=:pid\", LcMain.class);\n Query query = em.createNativeQuery(\"SELECT l.* FROM Lc_Main l WHERE UPPER(l.country)=:ctry AND l.zoneid=:zid AND l.centerid=:cid AND l.patid=:pid\", LcMain.class);\n query.setParameter(\"ctry\", ctry.toUpperCase());\n query.setParameter(\"zid\", zid);\n query.setParameter(\"cid\", cid);\n query.setParameter(\"pid\", pid);\n try {\n lcMain = (LcMain) JPAUtils.getSingleResult(query.getResultList());\n } catch (PersistenceException pe) {\n Log.warning(LifeCARDAdmin.class.getName() + \":getLifeCardItem():\" + pe.getMessage());\n return null;\n }\n if (lcMain != null) {\n if (lcMain.getItem() != null) {\n try {\n lcItem = (LifeCardItem) DeSerializer.deserialize(lcMain.getItem());\n } catch (ObjectHandlerException ex) {\n Log.warning(LifeCARDAdmin.class.getName() + \":getLifeCardItem():\" + ex.getMessage());\n }\n }\n //try to build item object\n if (lcItem == null) {\n //LcItem not yet stored...? DB record seems to be inconsistent\n LifeCARDProcessor lcProc = LifeCARDProcessor.getInstance(this.sco, this.em.getEntityManagerFactory());\n lcItem = lcProc.createLifeCardItem(lcMain);\n }\n } else {\n String printNumber = \"\";\n try {\n printNumber = LifeCARDObjectHandler.buildNumber(null, ctry, zid, cid, pid);\n } catch (GenericSEHRException ex) {\n //Logger.getLogger(LifeCARDAdmin.class.getName()).log(Level.SEVERE, null, ex);\n }\n Log.warning(LifeCARDAdmin.class.getName() + \":getLifeCardItem():No LcMain record for \" + printNumber);\n }\n return lcItem;\n }", "public Cycle loadCycle(long _cycleId) throws PersistenceResourceAccessException, CycleManagerException;", "public Cycle loadCycle(String _cycleCode, Date _cycleDate) throws PersistenceResourceAccessException, CycleManagerException;", "@Override\n// @Cacheable(value = CacheStatement.ACTIVITY_VALUE,key = \"'ActivityGoodsServiceImpl_findByGoodsId_'+#goodsId\")\n public List<ActivityGoods> findByGoodsId(String goodsId) {\n GoodsMirroring goodsMirroring = new GoodsMirroring();\n goodsMirroring.setGoodsId(goodsId);\n return activityGoodsDao.findByGoods(goodsId);\n }", "public static BillCycle getDefBillingCycle(final Context ctx, final int spid) throws HomeException\r\n {\r\n final BillCycle bc = HomeSupportHelper.get(ctx).findBean(ctx, BillCycle.class, new EQ(BillCycleXInfo.SPID, spid));\r\n return bc;\r\n }", "public Container<PosPay> findPosPay(PosPay posPay,int firstResult ,int maxResults)throws DataAccessException;", "public Cache.Entry get(String param1) {\n }", "public ResultSet Brus(Long broker_id) throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select * from broker where broker_id=\"+broker_id+\" \");\r\n\treturn rs;\r\n\t\r\n}", "@Override\n public Optional<Quote> findById(String ticker) {\n String selectSql = \"SELECT * FROM \" + TABLE_NAME + \" where ticker = '\" + ticker + \"'\";\n List<Quote> quotes = jdbcTemplate\n .query(selectSql, BeanPropertyRowMapper.newInstance(Quote.class));\n if(quotes.size()==1){\n Quote outQuote = quotes.get(0);\n return Optional.ofNullable(outQuote);\n }else{\n throw new DataRetrievalFailureException(\"cannot Get data\");\n }\n\n }", "public AccesorioBicicletaEntity getAccesorioBici(Long id){\r\n LOGGER.info(\"Inicica proceso de consulta a una bicicleta\");\r\n AccesorioBicicletaEntity acc = persistence.find(id);\r\n LOGGER.info(\"Termina el proceso de consulta a una bicicleta\");\r\n return acc;\r\n }", "@Cacheable(value=\"cacheTest\")\n\tpublic DemoBean selectDemoBeanById(String id) {\n\t\tSystem.out.println(\"query from db\");\n\t\treturn demoDao.selectDemoBeanById(id);\n\t}", "public Collection loadCycleHistory(String _cycleCode) throws PersistenceResourceAccessException, CycleManagerException;", "@Cacheable(cacheNames = {\"emp\"}/*,keyGenerator = \"myKeyGenerator\"*/)\n public Employee getEmp(Integer id){\n Employee empById = employeeMapper.getEmpById(id);\n System.out.println(\"id\"+id+\"开始查询了\");\n return empById;\n }", "@Override\n\tpublic Cache getCacheInstance(CacheType cacheType) {\n\t\tCache cache = null;\n\t\tif (cacheType.equals(CacheType.ConcurrentCache)) {\n\t\t\tcache = cacheManager.getCache(\"concurrentBatchScheduleCache\");\n\t\t}\n\t\tif (cacheType.equals(CacheType.HistroicalCache)) {\n\t\t\tcache = cacheManager.getCache(\"concurrentBatchScheduleCache\");\n\t\t}\n\t\treturn cache;\n\t}", "public interface CourseRepository extends CrudRepository<Course, Long>, CourseRepositoryCustom {\n// @Cacheable(value = \"find_course_by_grade\")\n Course[] findByGrade(Grade grade);\n}", "@Override\n\tpublic Contract get(String id) {\n\t\treturn contractDao.findOne(id);\n\t}", "CGcontractCredit selectByPrimaryKey(Integer id);", "public Cd getById(int id) {\n\t\tString sql = \" from Cd where id=:id\";\n\t\tQuery query = HibernateUtil.getSession().createQuery(sql).setParameter(\"id\", id);\n\t\treturn (Cd)findOne(query);\n\t\t\n\t}", "public MotorCycle findId(String id){\r\n\t\treturn motorCycleDao.findId(id);\r\n\t}", "@Test\r\n public void testGetTcgaCenterIdFromBcrId() {\n assertEquals(new Long(6), queries.getTcgaCenterIdFromBcrId(\"02\"));\r\n\r\n getSimpleJdbcTemplate().update(\"delete from center_to_bcr_center where bcr_center_id = '02'\");\r\n //make sure the entry is not in the database\r\n assertEquals(0, (getSimpleJdbcTemplate().queryForList(\" select * from center_to_bcr_center where bcr_center_id = '02'\")).size());\r\n // Read it from cache\r\n assertEquals(new Long(6), queries.getTcgaCenterIdFromBcrId(\"02\"));\r\n }", "List<CGcontractCredit> selectByExample(CGcontractCreditExample example);", "public String dynLookupDependency() \r\n {\r\n\tSessionCO sessionCO = returnSessionObject();\r\n\tString elementId=null,colName =null, colDesc = null,colType =null,colTechName= null,elemId = null, colValue=null;\r\n\tDynCommonLookupSC dynCommonLookupSC =new DynCommonLookupSC ();\r\n\r\n\ttry\r\n\t{\r\n\t List<String> elemIds = new ArrayList<String>();\r\n\t for(Map.Entry<String, Object> entry : criteria.getElemHm().entrySet())\r\n\t {\r\n\t\tString entryKey = (String)entry.getKey();\r\n\t\telemIds.add(entryKey);\r\n\t\t//get column name\r\n\t\tif(\"colName\".equals(entryKey))\r\n\t\t{\r\n\t\t String[] val = (String[])entry.getValue();\r\n\t\t colName= val[0];\r\n\t\t}\r\n\t\t//get column description\r\n\t\telse if(\"colDesc\".equals(entryKey))\r\n\t\t{\r\n\t\t String[] val = (String[])entry.getValue();\r\n\t\t colDesc= val[0];\r\n\t\t}\r\n\t\t//get column technical name\r\n\t\telse if(\"colTechName\".equals(entryKey))\r\n\t\t{\r\n\t\t String[] val = (String[])entry.getValue();\r\n\t\t colTechName= val[0];\r\n\t\t}\r\n\t\telse if(\"elementId\".equals(entryKey))\r\n\t\t{\r\n\t\t String[] val = (String[])entry.getValue();\r\n\t\t elementId = val[0]; \r\n\t\t String[] arr = val[0].split(\"_\");\r\n\t\t elemId= arr[0];\r\n\r\n\t\t}\r\n\t\telse if(\"colValue\".equals(entryKey))\r\n\t\t{\r\n\t\t String[] val = (String[])entry.getValue();\r\n\t\t colValue= val[0];\r\n\t\t}\r\n\t\t//get Column Type\r\n\t\telse if(\"colType\".equals(entryKey))\r\n\t\t{\r\n\t\t String[] val = (String[])entry.getValue();\r\n\t\t colType= val[0];\r\n\t\t}\r\n\t }\r\n\t if(colValue.isEmpty())\r\n\t {\r\n\t\tcolValue=\"NULL\";\r\n\t }\r\n\t else {\r\n\t\t//check column type\r\n\t\tif(!colType.isEmpty())\r\n\t\t{\r\n\r\n\t\t switch(colType) {\r\n\t\t\tcase \"1\"://String\r\n\r\n\t\t\t //Escape single quotes\r\n\t\t\t if(colValue.indexOf(\"'\")!=-1)\r\n\t\t\t {\r\n\t\t\t\tcolValue = colValue.replaceAll(\"'\", \"''\"); \r\n\t\t\t }\r\n\t\t\t colValue= \"'\"+colValue+\"'\";\r\n\t\t\t break;\r\n\t\t\tcase \"2\"://Date\r\n\r\n\t\t\t //Escape single quotes\r\n\t\t\t if(colValue.indexOf(\"'\")!=-1)\r\n\t\t\t {\r\n\t\t\t\tcolValue = colValue.replaceAll(\"'\", \"''\"); \r\n\t\t\t }\r\n\t\t\t if(criteria.getIsOracle() == 1)\r\n\t\t\t {\r\n\t\t\t\tcolValue = \"TO_DATE(TO_CHAR('\" + colValue + \"','dd/mm/yyyy'),'dd/mm/yyyy')\";\r\n\t\t\t }\r\n\t\t\t else\r\n\t\t\t {\r\n\t\t\t\tcolValue = \"CONVERT(DATE,CONVERT(VARCHAR,'\" + colValue + \"',103),103))\";\r\n\t\t\t }\r\n\t\t\t break;\r\n\t\t\tcase \"3\"://NUMERIC\r\n\t\t\t if(!NumberUtil.isNumber(colValue))\r\n\t\t\t {\r\n\t\t\t\tcolValue=\"NULL\";\r\n\t\t\t }\r\n\r\n\t\t\t break;\r\n\t\t\tcase \"4\"://BOOLEAN\r\n\t\t\t //Escape single quotes\r\n\t\t\t if(colValue.indexOf(\"'\")!=-1)\r\n\t\t\t {\r\n\t\t\t\tcolValue = colValue.replaceAll(\"'\", \"''\"); \r\n\t\t\t }\r\n\t\t\t colValue= \"'\"+colValue+\"'\";\r\n\t\t\t break;\r\n\r\n\t\t\tdefault:\r\n\t\t\t colValue=\"NULL\";\r\n\t\t\t break;\r\n\t\t }\r\n\r\n\t\t}\r\n\t }\r\n\t //get session values\r\n\t RequiredFieldsSC requiredFieldsSC = new RequiredFieldsSC(); \r\n\t requiredFieldsSC.setLoginUserId(sessionCO.getUserName());\r\n\t requiredFieldsSC.setCompCode(sessionCO.getCompanyCode());\r\n\t requiredFieldsSC.setCompanyName(sessionCO.getCompanyName());\r\n\t requiredFieldsSC.setBranchCode(sessionCO.getBranchCode());\r\n\t requiredFieldsSC.setBranchName(sessionCO.getBranchName());\r\n\t requiredFieldsSC.setUserFirstName(sessionCO.getUserFirstName());\r\n\t requiredFieldsSC.setUserLastName(sessionCO.getUserLastName());\r\n\t requiredFieldsSC.setBaseCurrencyName(sessionCO.getBaseCurrencyName());\r\n\t requiredFieldsSC.setIsTeller((sessionCO.getCtsTellerVO() != null ? BigDecimal.ONE : BigDecimal.ZERO));\r\n\t requiredFieldsSC.setRunningDate(sessionCO.getRunningDateRET());\r\n\t //get query result\r\n\t ArrayList<LinkedHashMap> result = null;\r\n\t if(elemId!=null && colTechName!=null && colValue!=null )\r\n\t {\r\n\t\t//escape single quote\r\n\t\tif(elemId.indexOf(\"'\")!=-1)\r\n\t\t{\r\n\t\t elemId = elemId.replaceAll(\"'\", \"''\"); \r\n\t\t}\r\n\t\telse if(colTechName.indexOf(\"'\")!=-1)\r\n\t\t{\r\n\t\t colTechName = colTechName.replaceAll(\"'\", \"''\");\r\n\t\t}\r\n\t\telse if(StringUtil.isNotEmpty(colDesc)&& colDesc.indexOf(\"'\")!=-1)\r\n\t\t{\r\n\t\t colDesc = colDesc.replaceAll(\"'\", \"''\");\r\n\t\t}\r\n\t\tdynCommonLookupSC.setElementId(new BigDecimal(elemId));\r\n\t\tdynCommonLookupSC.setColName(colTechName);\r\n\t\tdynCommonLookupSC.setColumnCode(colName);\r\n\t\tdynCommonLookupSC.setColValue(colValue);\r\n\t\tdynCommonLookupSC.setColDesc(colDesc);\r\n\t\tresult = dynamicScreenBO.validateColPropLookupQuery(requiredFieldsSC,dynCommonLookupSC,criteria.getElemHm()) ;\r\n\t }\r\n\r\n\t //TP#1053821 Additional lookup description for colProp\r\n\t if(result!=null && result.size()>0)\r\n\t {\r\n\t\tHashMap<String, Object> lookUpRow = (HashMap<String, Object>) result.get(0);\r\n\t\t\r\n\t\tif(StringUtil.isNotEmpty(colDesc) )\r\n\t\t{\r\n\t\t\tObject descStr = lookUpRow.get(colDesc) == null? \"\":lookUpRow.get(colDesc) ;\r\n\t\t\tcriteria.getElemHm().put(\"colDescValue\", descStr);\r\n\t\t\t//set lookupDesc to readonly\r\n\t\t\tcriteria.getElemHm().put(\"colDescReadOnly\", \"true\");\r\n\t\t}\r\n\t\tif(criteria.getElemHm().get(\"addLkpDesc\")!=null)\r\n\t\t{\r\n\t\t String[] val = (String[]) criteria.getElemHm().get(\"addLkpDesc\");\r\n\t\t String addLkpDesc = val[0];\r\n\t\t addLkpDesc = addLkpDesc.substring(0, addLkpDesc.length());\r\n\t\t \r\n\t\t if(StringUtil.isNotEmpty(addLkpDesc))\r\n\t\t {\r\n\t\t\tString[] addlkpArr = addLkpDesc.split(\";\");\r\n\t\t\tfor(int k=0;k<addlkpArr.length;k++) \r\n\t\t\t{\r\n\t\t\t String[] depElem = addlkpArr[k].split(\"~VALUE_\");\r\n\t\t\t colDesc = depElem[1];\r\n\t\t\t String elId = depElem[0];\r\n\t\t\t Object descStr = lookUpRow.get(colDesc) == null? lookUpRow.get(colDesc.toUpperCase()):lookUpRow.get(colDesc) ;\r\n\t\t\t criteria.getElemHm().put(elId, descStr);\r\n\t\t\t}\r\n\t\t }\r\n\t\t}\r\n\t }\r\n\t else \r\n\t {\r\n\t\tcriteria.getElemHm().put(\"colDescValue\", \"\");\r\n\t\tcriteria.getElemHm().put(\"colValue\", \"\");\r\n\t\tthrow new BOException(MessageCodes.INVALID_ENTRY);\r\n\t }\r\n\t return SUCCESS;\r\n\t}\r\n\r\n\tcatch(Exception e)\r\n\t{\r\n\t // TODO Auto-generated catch block\r\n\t handleException(e, null, null);\r\n\t return SUCCESS;\r\n\t}\r\n }", "public Medium getDisc(String barcode) {\n Session session = getSessionFactory().openSession();\n session.beginTransaction();\n Disc disc = null;\n try {\n disc = session.createQuery(\"from Disc where barcode = :barcode\", Disc.class).setParameter(\"barcode\", barcode).getSingleResult();\n } catch (NoResultException nre) {\n // disc is already null. so nothing to do\n }\n session.getTransaction().commit();\n session.close();\n\n return disc;\n //return discList.stream().filter(i -> ((Disc) i).getBarcode().equals(barcode)).findFirst().orElse(null);\n }", "@Cacheable(value=\"netTest.questionCache\", key=\"'WareDao.selectByPK~ware:'+#pk\", unless=\"#result==null\")\n public Ware selectByPK(Long pk){\n \tif(pk==null)\n \t\treturn null;\n\t\tWare record = (Ware) this.queryForObject(\"Ware.selectByPK\", pk);\n\t\t// build assoic for cache\n\t\tif(record!=null){\n \t CacheSynchronizer.getInstance().buildAssoc(\"netTest.questionCache\", \n \t\t\t \"WareDao.selectByPK~\"+Ware.ObjectType+\":\"+pk);\n \t}\n\t\treturn record;\n }", "@SuppressWarnings(\"unchecked\")\n\tprivate static void secondLevelCacheWithPropertySetWithQueryCacheEnabled() {\n\t\ttry(Session session = HbUtil.getSession()) {\n\t\t\tList<Book> list = session.createQuery(\"from Book b where b.subject=:p_subject\")\n\t\t\t\t\t\t.setParameter(\"p_subject\", \"C\")\n\t\t\t\t\t\t.setCacheable(true)\n\t\t\t\t\t\t.getResultList();\n\t\t\tfor (Book b : list) \n\t\t\t\tSystem.out.println(b);\n\t\t}catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\ttry(Session session = HbUtil.getSession()) {\n\t\t\tList<Book> list = session.createQuery(\"from Book b where b.subject=:p_subject\")\n\t\t\t\t\t\t.setParameter(\"p_subject\", \"C\")\n\t\t\t\t\t\t.setCacheable(true)\n\t\t\t\t\t\t.getResultList();\n\t\t\tfor (Book b : list) \n\t\t\t\tSystem.out.println(b);\n\t\t}catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public Cache getCache(String name)\r\n/* 39: */ {\r\n/* 40:64 */ return (Cache)this.cacheMap.get(name);\r\n/* 41: */ }", "@Test\n @Tag(\"CREATE\")\n @Tag(\"RESOURCE\")\n @DisplayName(\"Test Second Level Query Cache With configuration With Address 05\")\n public void testSecondLevelQueryCacheWithConfigurationWithAddress05()\n {\n System.out.println(\"Programme Start\");\n long startTime = System.nanoTime();\n\n List<SBAddress05> address2List = null;\n\n\n Transaction transaction = null;\n try (Session session = HibernateUtil.getSessionFactory().openSession();) {\n try{\n System.out.println(\"Session Start\");\n\n CriteriaBuilder criteriaBuilder = session.getCriteriaBuilder();\n CriteriaQuery<SBAddress05> criteriaQuery = criteriaBuilder.createQuery(SBAddress05.class);\n Root<SBAddress05> root = criteriaQuery.from(SBAddress05.class);\n\n criteriaQuery.select(root);\n\n Query query = session.createQuery(criteriaQuery);\n query.setCacheable(true);\n\n address2List = query.list();\n\n System.out.println(\"Address 1 : \" + address2List.size());\n\n// transaction.commit(); // second level cash enabled for CacheConcurrencyStrategy.READ_WRITE\n System.out.println(\"Session Closed\");\n } catch (Exception e) {\n if (transaction != null) {\n transaction.rollback();\n }\n LOGGER.error(ExceptionUtils.getFullStackTrace(e));\n e.printStackTrace();\n }\n\n } catch (Throwable throwable) {\n LOGGER.error(ExceptionUtils.getFullStackTrace(throwable));\n throwable.printStackTrace();\n }\n\n try (Session session = HibernateUtil.getSessionFactory().openSession();) {\n try{\n System.out.println(\"Session Start\");\n\n CriteriaBuilder criteriaBuilder = session.getCriteriaBuilder();\n CriteriaQuery<SBAddress05> criteriaQuery = criteriaBuilder.createQuery(SBAddress05.class);\n Root<SBAddress05> root = criteriaQuery.from(SBAddress05.class);\n\n criteriaQuery.select(root);\n\n Query query = session.createQuery(criteriaQuery);\n query.setCacheable(true);\n\n address2List = query.list();\n\n System.out.println(\"Address 2 : \" + address2List.size());\n\n// transaction.commit(); // second level cash enabled for CacheConcurrencyStrategy.READ_WRITE\n System.out.println(\"Session Closed\");\n } catch (Exception e) {\n if (transaction != null) {\n transaction.rollback();\n }\n LOGGER.error(ExceptionUtils.getFullStackTrace(e));\n e.printStackTrace();\n }\n\n } catch (Throwable throwable) {\n LOGGER.error(ExceptionUtils.getFullStackTrace(throwable));\n throwable.printStackTrace();\n }\n\n long endTime = System.nanoTime();\n ELAPSED_TIME = endTime - startTime;\n System.out.println(\"Programme End\");\n }", "@SuppressWarnings(\"unchecked\")\n\tprivate static void secondLevelCacheWithPropertySetWithQueryCacheDisabled() {\n\t\ttry(Session session = HbUtil.getSession()) {\n\t\t\tList<Book> list = session.createQuery(\"from Book b where b.subject=:p_subject\")\n\t\t\t\t\t\t.setParameter(\"p_subject\", \"C\")\n\t\t\t\t\t\t// .setCacheable(true)\n\t\t\t\t\t\t.getResultList();\n\t\t\tfor (Book b : list) \n\t\t\t\tSystem.out.println(b);\n\t\t}catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\ttry(Session session = HbUtil.getSession()) {\n\t\t\tList<Book> list = session.createQuery(\"from Book b where b.subject=:p_subject\")\n\t\t\t\t\t\t.setParameter(\"p_subject\", \"C\")\n\t\t\t\t\t\t// .setCacheable(true)\n\t\t\t\t\t\t.getResultList();\n\t\t\tfor (Book b : list) \n\t\t\t\tSystem.out.println(b);\n\t\t}catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public interface StorylineCachedDao extends BaseCachedDao{\n /**\n * 存储故事线\n * @param storylineEntity 故事线持久化对象\n * @return 存储后的持久化对象(如果没有存储成功会返回null)\n */\n StorylineEntity save(StorylineEntity storylineEntity);\n\n /**\n * 改\n * @param storylineEntity 故事线持久化对象\n * @return 是否成功\n */\n Boolean update(StorylineEntity storylineEntity);\n\n /**\n * 根据条件查询出故事线列表。按更新时间从新到旧排序\n * @param limit_begin 起始查询条数\n * @param rule 1表示全部。2表示二万字以下。3表示二万字到十万字。4表示十万字以上\n * @param show_num 查询条数\n * @return 故事线列表\n */\n List<StorylineEntity> findMoreByOrderNews(int limit_begin, Integer rule, int show_num);\n\n /**\n * 根据条件查询出故事线列表。按更新时间从新到旧排序\n * @param limit_begin 起始查询条数\n * @param rule 1表示全部。2表示二万字以下。3表示二万字到十万字。4表示十万字以上\n * @param show_num 查询条数\n * @param tag 按标签查询的“标签”\n * @return 故事线列表\n */\n List<StorylineEntity> findMoreByOrderNews(int limit_begin, Integer rule, int show_num, String tag);\n\n /**\n * 根据用户id查询该用户发布的故事线列表\n * @param user_id 用户id\n * @param limit_begin 起始查询条数\n * @param show_num 查询数量\n * @return\n */\n List<StorylineEntity> findMoreByOrderNews(Integer user_id, int limit_begin, int show_num);\n\n /**\n * 根据条件查询出故事线列表。按观看次数由大到小排序\n * @param limit_begin 起始查询条数\n * @param rule 1表示全部。2表示二万字以下。3表示二万字到十万字。4表示十万字以上\n * @param show_num 查询条数\n * @return 故事线列表\n */\n List<StorylineEntity> findMoreByOrderHot(int limit_begin, Integer rule, int show_num);\n\n /**\n * 根据条件查询出故事线列表。按观看次数由大到小排序\n * @param limit_begin 起始查询条数\n * @param rule 1表示全部。2表示二万字以下。3表示二万字到十万字。4表示十万字以上\n * @param show_num 查询条数\n * @param tag 按标签查询的“标签”\n * @return 故事线列表\n */\n List<StorylineEntity> findMoreByOrderHot(int limit_begin, Integer rule, int show_num, String tag);\n\n /**\n * 根据条件查询出故事线列表。按观看次数由大到小排序\n * @param storyline_commend_show_num 查找条数\n * @return 故事线文章列表\n */\n List<StorylineEntity> findMoreByOrderHot(int storyline_commend_show_num);\n\n /**\n * 通过count查询总条数\n * @return 总数\n */\n int findSumByCount();\n\n /**\n * 根据用户id查询该用户发布的故事线列表总数\n * @param user_id 用户id\n * @return 总数\n */\n int findSumByCount(Integer user_id);\n\n /**\n * 根据故事线id查询具体某故事线详情\n * @param storyline_id 故事线id\n * @return 某一个故事线详情\n */\n StorylineEntity findOneById(Integer storyline_id);\n}", "@Override\n public CerereDePrietenie findOne(Long aLong) {\n// String SQL = \"SELECT id,id_1,id_2,status,datac\"\n// + \"FROM cereredeprietenie \"\n// + \"WHERE id = ?\";\n//\n// try (Connection conn = connect();\n// PreparedStatement pstmt = conn.prepareStatement(SQL)) {\n//\n// pstmt.setInt(1, Math.toIntExact(aLong));\n// ResultSet rs = pstmt.executeQuery();\n//\n// while(rs.next()) {\n// Long id = rs.getLong(\"id\");\n// Long id_1 = rs.getLong(\"id_1\");\n// Long id_2 = rs.getLong(\"id_2\");\n//\n// String status = rs.getString(\"status\");\n// LocalDateTime data = rs.getObject( 5,LocalDateTime.class);\n//\n// Utilizator u1=repository.findOne(id_1);\n// Utilizator u2=repository.findOne(id_2);\n//\n// CerereDePrietenie u =new CerereDePrietenie(u1,u2);\n// u.setId(id);\n// u.setStatus(status);\n// u.setData(data);\n// return u;\n// }\n//\n//\n// } catch (SQLException ex) {\n// System.out.println(ex.getMessage());\n// }\n//\n// return null;\n List<CerereDePrietenie> list=new ArrayList<>();\n findAll().forEach(list::add);\n for(CerereDePrietenie cerere: list){\n if(cerere.getId() == aLong)\n return cerere;\n }\n return null;\n }", "public List<LookUpDetailJson> getPayCycleList() {\r\n\t\tList<LookUpDetailJson> lookUpDetailJsonList = null;\r\n\t\ttry {\r\n\t\t\tCalendar cal = Calendar.getInstance();\r\n\t\t\tInteger currentMonth = cal.get(Calendar.MONTH);\r\n\t\t\tList<Integer> monthsRange = new ArrayList<Integer>();\r\n\t\t\tfor (int i = currentMonth, j = 0; j < 3; j++) {\r\n\t\t\t\tmonthsRange.add(i--);\r\n\t\t\t\tif (i < 0) {\r\n\t\t\t\t\ti = 11;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tmonthsRange.add(currentMonth + 1);\r\n\r\n\t\t\tList<LookUpDetails> lookUpDetailList = lookUpRepository.getPayCycleList(monthsRange);\r\n\t\t\tif (lookUpDetailList != null && lookUpDetailList.size() > 0) {\r\n\t\t\t\tlookUpDetailJsonList = new ArrayList<LookUpDetailJson>();\r\n\t\t\t\tfor (LookUpDetails lookUpDetails : lookUpDetailList) {\r\n\t\t\t\t\tlookUpDetailJsonList.add(TransformDomainToJson.getLookUpDetailJson(lookUpDetails));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tLOG.error(\"Error at getPayCycleList() in LookUpService:\" + e.getMessage());\r\n\t\t}\r\n\t\treturn lookUpDetailJsonList;\r\n\t}", "public EntityAisle getByMatricule(int matricule ){\n\n\n DatabaseHelper databaseHelper = DatabaseHelper.getInstance(this.mExecutionContext);\n SQLiteDatabase sqLiteDatabase = databaseHelper.getReadableDatabase();\n\n EntityAisle result = null;\n\n Cursor cursor = null;\n try {\n\n cursor = sqLiteDatabase.query(ConfigDAO.TABLE_AISLE, null, ConfigDAO.COLUMN_RAYON_ID +\" = \" + matricule , null, null, null, null, null);\n\n /**\n // If you want to execute raw query then uncomment below 2 lines. And comment out above line.\n\n String SELECT_QUERY = String.format(\"SELECT %s, %s, %s, %s, %s FROM %s\", Config.COLUMN_Employee_ID, Config.COLUMN_Employee_NAME, Config.COLUMN_Employee_REGISTRATION, Config.COLUMN_Employee_EMAIL, Config.COLUMN_Employee_PHONE, Config.TABLE_Employee);\n cursor = sqLiteDatabase.rawQuery(SELECT_QUERY, null);\n */\n\n if(cursor!=null)\n if(cursor.moveToFirst()){\n List<EntityAisle> AisleList = new ArrayList<>();\n do {\n int id = cursor.getInt(cursor.getColumnIndex(ConfigDAO.COLUMN_RAYON_ID));\n String name = cursor.getString(cursor.getColumnIndex(ConfigDAO.COLUMN_RAYON_NAME));\n\n\n\n AisleList.add(new EntityAisle(id, name));\n } while (cursor.moveToNext());\n result = AisleList.get(0);\n return result;\n }\n } catch (Exception e){\n Log.i(TAG, \"getAllAisle: \"+e.getMessage());\n Toast.makeText(this.mExecutionContext, \"Operation failed\", Toast.LENGTH_SHORT).show();\n } finally {\n if(cursor!=null)\n cursor.close();\n sqLiteDatabase.close();\n }\n\n return result;\n }", "public interface DicMapper {\n \n @InvalidateSingleCache(namespace = \"DicValues\")\n int deleteByPrimaryKey(@ParameterValueKeyProvider DicValues key) throws DataAccessException;\n\n @CachePut(value = \"DicValues\")\n int insertSelective(DicValues record) throws DataAccessException;\n\n @ReadThroughSingleCache(namespace =\"DicValues\", expiration = 30)\n DicValues selectByPrimaryKey(DicValues key) throws DataAccessException;\n\n @UpdateSingleCache(namespace = \"DicValues\", expiration = 30)\n int updateByPrimaryKeySelective(DicValues record) throws DataAccessException;\n\n\n @ReadThroughMultiCache(namespace =\"DicValues\", expiration = 30)\n List<DicValues> selectAll(DicValues record) throws DataAccessException;\n\n @ReadThroughMultiCache(namespace =\"DicValues\", expiration = 30)\n List<DicValues> selectAllByPage(Map<String, Object> map) throws DataAccessException;\n /**\n * \n * @param 张宇超\n * @return\n * @throws DataAccessException\n */\n @ReadThroughMultiCache(namespace =\"DicValues\", expiration = 30)\n List<DicValues> selectAllByPageAndType(Map<String, Object> map) throws DataAccessException;\n \n @ReadThroughMultiCache(namespace =\"DicValues\", expiration = 30)\n List<DicValues> searchAll(DicValues record) throws DataAccessException;\n\n \n @ReadThroughMultiCache(namespace =\"DicValues\", expiration = 30)\n List<DicValues> searchAllByPage(Map<String, Object> map) throws DataAccessException;\n\n @ReadThroughMultiCache(namespace =\"DicValues\", expiration = 30)\n List<DicTypes> selectAllDicTypes(Map<String, Object> map) throws DataAccessException;\n \n int selectCount(DicValues record) throws DataAccessException;\n \n DicTypes selectDicTypesByKey(String dicType);\n //批量插入\n int insertBatch(List<DicValues> list);\n\n}", "public static ru.terralink.mvideo.sap.Orders findByPrimaryKey(java.lang.String IV_FO_TOR_ID\n ,java.lang.String IV_FU_TOR_ID)\n {\n String intervalName = null;\n if(com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.isEnabled)\n {\n intervalName = \"Orders.findByPrimaryKey\";\n com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.getInstance().startInterval(intervalName, com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.PersistenceRead);\n }\n try\n {\n \n \n String _selectSQL = \"SELECT x.\\\"a\\\",x.\\\"b\\\",x.\\\"c\\\",x.\\\"d\\\",x.\\\"e\\\",x.\\\"f\\\",x.\\\"g\\\",x.\\\"h\\\",x.\\\"i\\\",x.\\\"j\\\",x.\\\"l\\\",x.\\\"m\\\",x.\\\"n\\\",x.\\\"o\\\",x.\\\"p\\\",x.\\\"q\\\",x.\\\"r\\\",x.\\\"s\\\",x.\\\"t\\\",x.\\\"u\\\",x.\\\"v\\\",x.\\\"w\\\",x.\\\"x\\\",x.\\\"y\\\",x.\\\"z\\\",x.\\\"ba\\\",x.\\\"bb\\\",x.\\\"bc\\\",x.\\\"bd\\\",x.\\\"be\\\",x.\\\"bf\\\",x.\\\"bg\\\",x.\\\"bh\\\",x.\\\"bi\\\",x.\\\"bj\\\",x.\\\"bl\\\",x.\\\"bm\\\",x.\\\"pending\\\",x.\\\"_pc\\\",x.\\\"_rp\\\",x\"\n + \".\\\"_rf\\\",x.\\\"relationsFK\\\",x.\\\"bn\\\",x.\\\"_rc\\\",x.\\\"_ds\\\",x.\\\"cvpOperation_length\\\",x.\\\"cvpOperationLobs_length\\\" FROM \\\"mvideo5_1_0_orders\\\" x WHERE (((x.\\\"pending\\\" = 1 or not exists (select x_os.\\\"bn\\\" from \\\"mvideo5_1_0_orders_os\\\" x_os where x_os.\\\"bn\\\" = x.\\\"bn\\\")))) and ( x.\\\"bl\\\" = ? AND x.\\\"bm\\\" = ?)\";\n String[] ids = new String[0];\n com.sybase.reflection.DataType[] dts = new com.sybase.reflection.DataType[]{ \n com.sybase.reflection.DataType.forName(\"string\"),\n com.sybase.reflection.DataType.forName(\"string\"),\n };\n Object[] values = new Object[] { \n IV_FO_TOR_ID,\n IV_FU_TOR_ID,\n };\n Object res = DELEGATE.findWithSQL(_selectSQL, dts, values, ids, ru.terralink.mvideo.sap.Orders.class);\n return (ru.terralink.mvideo.sap.Orders)res;\n }\n finally\n {\n if(com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.isEnabled)\n {\n com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.getInstance().stopInterval(intervalName);\n }\n }\n }", "public So_cdVO getById(String so_cd);", "@Override\n\tpublic ActualFreightEntity queryAcfByWaybillNo(String waybillNo) {\n\t\treturn null;\n\t}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface CourseCartBridgeRepository extends JpaRepository<CourseCartBridge, Long>, JpaSpecificationExecutor<CourseCartBridge> {\n List<CourseCartBridge> findCourseCartBridgesByCartId(Long id);\n Optional<CourseCartBridge> findCourseCartBridgeByCartIdAndCourseId(Long cartid, Long courseid);\n}", "@Override\n @Cacheable(\"application-cache\")\n public List<Comment> getCommentByIdTvShow(Long idTvShow) {\n Session session = sessionFactory.getCurrentSession();\n String hql = \"from Comment s where s.tvShow.id = :idtv\";\n return session.createQuery(hql, Comment.class)\n .setParameter(\"idtv\", idTvShow)\n .getResultList();\n }", "@Cacheable(value = \"planet\", key = \"#id\", unless = \"#result == null\")\n public Planet findById(String id){\n try{\n Optional<Planet> planetOptional = planetRepository.findById(id);\n return planetOptional.orElse(null);\n }\n catch (Exception ex){\n throw ex;\n }\n }", "@Query(\"select d from DeliveryBoy d join DeliveryBoyCurrentStatus dbcs on d.id=dbcs.deliveryBoy.id join UserLogin ul on d.id=ul.entityId join DeviceDetail dd on ul.id=dd.userLogin.id where dbcs.isLogin='true' and dbcs.isAvailable='true' and d.id not in (select COALESCE(dbsh.deliveryBoy.id,0) from DeliveryBoySendNotificationHistory dbsh where dbsh.orderId=:orderId) and ul.entityType='DELIVERY_BOY'\")\n\tList<DeliveryBoy> getAllNextAvailableDeliveryBoysOnBusyTime(Long orderId);", "@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic List<ConsumeRecord> findByInquiryCriteria(ConsumeInquiryCriteria criteria) throws ParseException {\n\t\tcriteria.initializeBegdaTime();\r\n\t\tcriteria.initializeEnddaTime();\r\n\r\n\t\tCriteria crt = currentSession().createCriteria(ConsumeRecord.class, \"cr\");\r\n\t\tcrt.createAlias(\"cr.employee\", \"employee\");\r\n\t\tcrt.createAlias(\"employee.department\", \"department\");\r\n\t\tcrt.createAlias(\"cr.vendorLine\", \"vendorLine\");\r\n\t\tcrt.createAlias(\"vendorLine.vendor\", \"vendor\");\r\n\r\n\t\tcrt.add(Restrictions.ge(\"cr.time\", criteria.getBegda()));\r\n\t\tcrt.add(Restrictions.le(\"cr.time\", criteria.getEndda()));\r\n\r\n\t\tif (TrimUtil.trimUtil(criteria.getCategoryKey())) {\r\n\t\t\tcrt.add(Restrictions.eq(\"cr.category\", criteria.getCategoryKey().trim()));\r\n\t\t}\r\n\t\tif (TrimUtil.trimUtil(criteria.getCosterCenterID())) {\r\n\t\t\tcrt.add(Restrictions.eq(\"department.id\", criteria.getCosterCenterID().trim()));\r\n\t\t}\r\n\t\tif (TrimUtil.trimUtil(criteria.getVendorID())) {\r\n\t\t\tcrt.add(Restrictions.eq(\"vendor.id\", Integer.parseInt(criteria.getVendorID().trim())));\r\n\t\t}\r\n\t\tif (TrimUtil.trimUtil(criteria.getEmployeeID())) {\r\n\t\t\tcrt.add(Restrictions.like(\"employee.id\", \"%\" + criteria.getEmployeeID().trim() + \"%\"));\r\n\t\t}\r\n\t\tif (TrimUtil.trimUtil(criteria.getFirstName())) {\r\n\t\t\tcrt.add(Restrictions.like(\"employee.firstName\", \"%\" + criteria.getFirstName().trim() + \"%\"));\r\n\t\t}\r\n\t\tif (TrimUtil.trimUtil(criteria.getLastName())) {\r\n\t\t\tcrt.add(Restrictions.like(\"employee.lastName\", \"%\" + criteria.getLastName().trim() + \"%\"));\r\n\t\t}\r\n\t\tif (TrimUtil.trimUtil(criteria.getStatusKey())) {\r\n\t\t\tcrt.add(Restrictions.eq(\"cr.status\", criteria.getStatusKey().trim()));\r\n\t\t}\r\n\t\tif (TrimUtil.trimUtil(criteria.getTransactionCode())) {\r\n\t\t\tcrt.add(Restrictions.like(\"cr.transactionCode\", \"%\" + criteria.getTransactionCode() + \"%\"));\r\n\t\t}\r\n\r\n\t\treturn crt.list();\r\n\t}", "public Contract find_Contract(Integer contract_id, Integer branch_id) {\n return contract_dao.find(contract_id, branch_id);\n }", "List<TbaDeliveryinfo> selectByExample(TbaDeliveryinfoCriteria example);", "public PxProductInfo getDbCombo() {\n long __key = this.dbComboId;\n if (dbCombo__resolvedKey == null || !dbCombo__resolvedKey.equals(__key)) {\n if (daoSession == null) {\n throw new DaoException(\"Entity is detached from DAO context\");\n }\n PxProductInfoDao targetDao = daoSession.getPxProductInfoDao();\n PxProductInfo dbComboNew = targetDao.load(__key);\n synchronized (this) {\n dbCombo = dbComboNew;\n \tdbCombo__resolvedKey = __key;\n }\n }\n return dbCombo;\n }", "@Override\n\tpublic Legacydb fetchByPrimaryKey(Serializable primaryKey)\n\t\tthrows SystemException {\n\t\tLegacydb legacydb = (Legacydb)EntityCacheUtil.getResult(LegacydbModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\tLegacydbImpl.class, primaryKey);\n\n\t\tif (legacydb == _nullLegacydb) {\n\t\t\treturn null;\n\t\t}\n\n\t\tif (legacydb == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tlegacydb = (Legacydb)session.get(LegacydbImpl.class, primaryKey);\n\n\t\t\t\tif (legacydb != null) {\n\t\t\t\t\tcacheResult(legacydb);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tEntityCacheUtil.putResult(LegacydbModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tLegacydbImpl.class, primaryKey, _nullLegacydb);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tEntityCacheUtil.removeResult(LegacydbModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\tLegacydbImpl.class, primaryKey);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn legacydb;\n\t}", "OcCustContract selectByPrimaryKey(String contractNo);", "@Test\r\n public void testsetUpDiseaseCache() {\r\n String omimDiseaseId = \"OMIM:101600\";\r\n CurationStatus expectedResult = new CurationStatus();\r\n expectedResult.setIsAssociatedInHuman(true);\r\n expectedResult.setHasMgiLiteratureEvidence(true);\r\n expectedResult.setHasMgiPhenotypeEvidence(true);\r\n expectedResult.setHasImpcPhenotypeEvidence(false);\r\n Disease result = instance.getDiseaseByDiseaseId(omimDiseaseId);\r\n assertEquals(expectedResult, result.getCurationStatus());\r\n\r\n }", "public Item getVsLoad(){\n\t\tItem item = null;\n\t\tSession session = HibernateUtil.getSession();\n\t\tTransaction tx = null;\n\t\t\n\t\ttry{\n\t\t\ttx = session.beginTransaction();\n\t\t\tSystem.out.println(\"------Get------\");\n\t\t\titem = (Item)session.get(Item.class, 1);\n\t\t\tSystem.out.println(\"yo\");\n\t\t\tSystem.out.println(item);\n\t\t\t\n\t\t\tSystem.out.println(\"----Load----\");\n\t\t\titem = (Item)session.load(Item.class, 1);\n\t\t\tSystem.out.println(\"yo\");\n\t\t\tSystem.out.println(item);\n\t\t\t\n\t\t\tSystem.out.println(\"====getvsload no data=====\");\n\t\t\tSystem.out.println(\"------Get------\");\n\t\t\titem = (Item)session.get(Item.class, 1000);\n\t\t\tSystem.out.println(\"yo\");\n\t\t\tSystem.out.println(item);\n\t\t\t\n\t\t\tSystem.out.println(\"----Load----\");\n\t\t\t//item = (Item)session.load(Item.class, 2000);\n\t\t\tSystem.out.println(\"yo\");\n\t\t\tSystem.out.println(item);\n\t\t\t\n\t\t\tSystem.out.println(\"=====lvl1 caching====\");\n\t\t\titem = (Item)session.load(Item.class, 4);\n\t\t\tSystem.out.println(item);\n\t\t\titem = (Item)session.load(Item.class, 4);\n\t\t\tSystem.out.println(item);\n\t\t\ttx.commit();\n\t\t}catch(HibernateException e){\n\t\t\tif(tx!=null){\n\t\t\t\ttx.rollback();\n\t\t\t}\n\t\t\te.printStackTrace();\n\t\t}finally{\n\t\t\tsession.close(); \n\t\t}\n\t\treturn item;\n\t}", "public List<Contract> getHealthContracts(){\n\t\ttry{\n\t\t\treturn jdbcTemplate.query(\"SELECT * FROM CONTRACT WHERE SERVICETYPE=1 AND \"\n\t\t\t\t\t+ \"(DATEENDING >= NOW() OR DATEENDING IS NULL)\", new ContractRowMapper());\n\t\t}catch (EmptyResultDataAccessException e){\n\t\t\treturn new ArrayList<Contract>();\n\t\t}\n\t}", "@Test\n public void testCoh3710_get()\n {\n doExpiryOpTest(new Runnable()\n {\n public void run()\n {\n assertNull(getNamedCache(getCacheName0()).get(Integer.valueOf(1)));\n }\n });\n }", "@Test\n\tpublic void testQueryCaching(){\n\t\tqueryCache();\n\t\tqueryCache2();\n\t}", "@Override\n @Transactional(readOnly = true)\n @Cacheable\n public Category findOne(Long id) {\n log.debug(\"Request to get Category : {}\", id);\n return categoryRepository.findOne(id);\n }", "public List<CMCourse> getCMCourses(String startsWith) {\r\n\tlong start = System.currentTimeMillis();\r\n\tlog.debug(\"getCMCourses that starts with \" + startsWith);\r\n\tList<CMCourse> cmCourses = new ArrayList<CMCourse>();\r\n\tSet<CourseSet> courseSets = courseManagementService.getCourseSets();\r\n\tSet<CourseOffering> courseOffs = null;\r\n\tSet<Section> sections = null;\r\n\tCourseSet courseSet = null;\r\n\tCourseOffering courseOff = null;\r\n\tString courseOffEid = null;\r\n\tSection courseS = null;\r\n\tif (courseSets == null)\r\n\t return null;\r\n\tList<AcademicSession> acadSessions =\r\n\t\tcourseManagementService.getCurrentAcademicSessions();\r\n\tDate endDate = null;\r\n\tDate startDate = null;\r\n\r\n\tfor (AcademicSession acadSession : acadSessions) {\r\n\r\n\t for (Iterator<CourseSet> cSets = courseSets.iterator(); cSets\r\n\t\t .hasNext();) {\r\n\t\tcourseSet = cSets.next();\r\n\t\tcourseOffs =\r\n\t\t\tcourseManagementService.findCourseOfferings(\r\n\t\t\t\tcourseSet.getEid(), acadSession.getEid());\r\n\t\tfor (Iterator<CourseOffering> cOffs = courseOffs.iterator(); cOffs\r\n\t\t\t.hasNext();) {\r\n\t\t courseOff = cOffs.next();\r\n\t\t courseOffEid = courseOff.getEid();\r\n\t\t sections =\r\n\t\t\t courseManagementService.getSections(courseOffEid);\r\n\t\t if (courseOffEid.startsWith(startsWith)) {\r\n\t\t\tfor (Iterator<Section> cSs = sections.iterator(); cSs\r\n\t\t\t\t.hasNext();) {\r\n\t\t\t courseS = cSs.next();\r\n\t\t\t String courseTitle =\r\n\t\t\t\t courseManagementService.getCanonicalCourse(\r\n\t\t\t\t\t courseOff.getCanonicalCourseEid())\r\n\t\t\t\t\t .getTitle();\r\n\t\t\t String courseSId = courseS.getEid();\r\n\t\t\t String session =\r\n\t\t\t\t courseOff.getAcademicSession().getTitle();\r\n\t\t\t String sigle = courseOff.getCanonicalCourseEid();\r\n\t\t\t String section =\r\n\t\t\t\t (SHARABLE_SECTION.equals(courseSId\r\n\t\t\t\t\t .substring(courseSId.length() - 2,\r\n\t\t\t\t\t\t courseSId.length()))) ? SHARABLE_SECTION\r\n\t\t\t\t\t : courseSId.substring(\r\n\t\t\t\t\t\t courseSId.length() - 3,\r\n\t\t\t\t\t\t courseSId.length());\r\n\r\n\t\t\t String instructorsString = \"\";\r\n\t\t\t int studentNumber = -1;\r\n\t\t\t EnrollmentSet enrollmentSet =\r\n\t\t\t\t courseS.getEnrollmentSet();\r\n\t\t\t if (enrollmentSet != null) {\r\n\t\t\t\t// Retrieve official instructors\r\n\t\t\t\tSet<String> instructors =\r\n\t\t\t\t\tenrollmentSet.getOfficialInstructors();\r\n\t\t\t\tUser user = null;\r\n\t\t\t\tString name = null;\r\n\t\t\t\tfor (String instructor : instructors) {\r\n\t\t\t\t try {\r\n\t\t\t\t\tuser =\r\n\t\t\t\t\t\tuserDirectoryService\r\n\t\t\t\t\t\t\t.getUserByEid(instructor);\r\n\t\t\t\t\tname = user.getDisplayName();\r\n\t\t\t\t\tinstructorsString += name + \" & \";\r\n\t\t\t\t } catch (UserNotDefinedException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t }\r\n\t\t\t\t}\r\n\t\t\t\t// retrieve student number\r\n\t\t\t\tSet<Enrollment> enrollments =\r\n\t\t\t\t\tcourseManagementService\r\n\t\t\t\t\t\t.getEnrollments(enrollmentSet\r\n\t\t\t\t\t\t\t.getEid());\r\n\t\t\t\tif (enrollments != null)\r\n\t\t\t\t studentNumber = enrollments.size();\r\n\t\t\t }\r\n\t\t\t if (!instructorsString.equals(\"\"))\r\n\t\t\t\tinstructorsString =\r\n\t\t\t\t\tinstructorsString.substring(0,\r\n\t\t\t\t\t\tinstructorsString.length() - 3);\r\n\r\n\t\t\t CMCourse cmCourse = new CMCourse();\r\n\t\t\t cmCourse.setId(courseS.getEid());\r\n\t\t\t cmCourse.setSession(session);\r\n\t\t\t cmCourse.setName(courseTitle);\r\n\t\t\t cmCourse.setSigle(sigle);\r\n\t\t\t cmCourse.setSection(section);\r\n\t\t\t cmCourse.setInstructor(instructorsString);\r\n\t\t\t cmCourse.setStudentNumber(studentNumber);\r\n\t\t\t cmCourses.add(cmCourse);\r\n\t\t\t}\r\n\t\t }\r\n\t\t}\r\n\t }\r\n\t}\r\n\tlog.debug(\"getCMCourses \" + elapsed(start) + \" for \" + cmCourses.size()\r\n\t\t+ \" courses\");\r\n\treturn cmCourses;\r\n }", "public interface QueryAllianceDao extends BaseMapper<Alliance> {\r\n//\r\n List<AllianceRecord> findAlliancePage(Page<AllianceRecord> page, @Param(\"record\") AllianceRecord record,\r\n @Param(\"search\") String search, @Param(\"orderBy\") String orderBy,\r\n @Param(\"startingCycleStartTime\") Date startingCycleStartTime,\r\n @Param(\"startingCycleEndTime\") Date startingCycleEndTime,\r\n @Param(\"leftNumber\") Integer leftNumber, @Param(\"rightNumber\") Integer rightNumber);\r\n //rpc分页列表\r\n List<AllianceRecord> findAlliancePageShip(Page<AllianceRecord> page, @Param(\"record\") AllianceRecord record,\r\n @Param(\"search\") String search, @Param(\"orderBy\") String orderBy,\r\n @Param(\"startingCycleStartTime\") Date startingCycleStartTime,\r\n @Param(\"startingCycleEndTime\") Date startingCycleEndTime);\r\n //根据userID查询当月的订单\r\n List<Map> getCurrentMonthOrderByUserId(@Param(\"id\") Long id);\r\n //根据userID 查询盟友信息\r\n AllianceRecord selectAllianceOneByUserId(@Param(\"id\") Long id);\r\n //查询自营商品\r\n public List<Map> getSelfProductByUserId(@Param(\"id\") Long id);\r\n //充值套餐\r\n @Select(\"select CONCAT('充值',value) as title,value from t_config_field where group_id=1\")\r\n List<JSONObject> getSetMeal();\r\n //查询邀请码\r\n Long selectUserIdByInvitationCode(@Param(\"invitationCode\") String invitationCode);\r\n\r\n //查询盟友详情\r\n AllianceRecord allianceDetails(@Param(\"id\") Long id);\r\n //查询电话号码是否存在\r\n @Select(\"select alliance_phone from t_alliance where alliance_phone=#{phone} \")\r\n String queryPhone(@Param(\"phone\") String phone);\r\n\r\n //查询自己的团队\r\n List<AllianceRecord> myTeam(Page<AllianceRecord> page,\r\n @Param(\"id\") Long id,\r\n @Param(\"record\") AllianceRecord record,\r\n @Param(\"search\") String search);\r\n //查询自己的订单总额\r\n @Select(\"select total_price as totalPrice,user_id as userId from t_order where id=#{orderId}\")\r\n public JSONObject queryOrderMoney(@Param(\"orderId\") Long orderId);\r\n\r\n //一周内加入的盟友\r\n @Select(\"select b.* from t_alliance a INNER JOIN t_alliance b ON b.invitor_alliance_id=a.id where a.user_id=#{userId} and DATE_SUB(CURDATE(), INTERVAL 7 DAY)<b.alliance_ship_time\")\r\n public List<Alliance> queryWeekAlliance(@Param(\"userId\")Long userId);\r\n\r\n //一周内发货订单\r\n @Select(\"select * from t_order where user_id = 11 and status='DELIVERED_CONFIRM_PENDING' and DATE_SUB(CURDATE(), INTERVAL 7 DAY) <= created_date\\n\")\r\n public List<JSONObject> queryWeekOrderDeliver(@Param(\"userId\") Long userId);\r\n\r\n //一周内盟友下单\r\n @Select(\"select a.alliance_name as allianceName,o.* from t_order o,(select b.user_id,b.alliance_name from t_alliance a INNER JOIN t_alliance b ON b.invitor_alliance_id=a.id where a.user_id=#{userId}\\n\" +\r\n \"and b.alliance_ship=0) as a where o.user_id = a.user_id and DATE_SUB(CURDATE(), INTERVAL 7 DAY) <= o.created_date and o.status='PAID_CONFIRM_PENDING'\")\r\n public List<JSONObject> queryWeekOrder(@Param(\"userId\") Long userId);\r\n\r\n //重置userID\r\n @Update(\"update t_alliance set user_id=null where id=#{id}\")\r\n Integer resetUserId(@Param(\"id\")Long id);\r\n\r\n //团队下单奖励\r\n\r\n //团队盟友升级\r\n\r\n //删除表的数据\r\n @Delete(\"delete from ${tableName}\")\r\n public Integer deleteTableData(@Param(\"tableName\") String tableName);\r\n //获取数据库json字段信息测试\r\n @Select(\"select JSON_EXTRACT(t_product_settlement_proportion.proportion, '$.value') from t_product_settlement_proportion\")\r\n public List<Float> getJson();\r\n\r\n //查询userid\r\n @Select(\"select id from t_user where phone=${phone}\")\r\n Long queryUserIdByPhone(@Param(\"phone\") String phone);\r\n //同步t_user real_name 和 alliance表 alliance_name\r\n @Update(\"update t_user set real_name=#{name} where phone=#{alliancePhone}\")\r\n Integer upUserRealNameByPhone(@Param(\"alliancePhone\") String alliancePhone,@Param(\"name\") String name);\r\n\r\n //获取所有盟友的id\r\n @Select(\"select id from t_alliance\")\r\n List<Long> getAllAllianceIds();\r\n}", "@Override\n\tpublic String queryBillingByStore(String code) {\n\t\treturn null;\n\t}", "protected CaBillingPeriod getCaBillingPeriod(Integer periodId)\n {\n List<CaBillingPeriod> periodList=getCaBillingPeriodList(periodId);\n if(CommonUtil.isNotEmpty(periodList)){\n return periodList.get(0);\n }else{\n return null;\n }\n }", "public interface DeliverDetailDao extends JpaRepository<DeliverDetail, Serializable> , JpaSpecificationExecutor<DeliverDetail>{\n\n DeliverDetail findByDeliverDetailNo(String deliverDetailNo);\n\n @Query(value = \"select t.deliver_detail_no from deliver_detail t order by t.deliver_detail_no desc LIMIT 1\",nativeQuery = true)\n String findDeliverDetailNo();\n}", "public Cursor fetchCourse(long rowId) throws SQLException\r\n{\r\nCursor mCursor = database.query(true, DATABASE_TABLE, new String[] { KEY_ROWID, KEY_CATEGORY, KEY_COURSENAME, KEY_ASSIGNMENTNAME, KEY_DESCRIPTION, KEY_DUEDATE, KEY_COMPLETED }, null, null, null,\r\nnull, null, null);\r\nif (mCursor != null)\r\n{\r\nmCursor.moveToFirst();\r\n}\r\nreturn mCursor;\r\n}", "@Transactional\r\n\tpublic Car getCarById(String id) {\n\t\tOptional<Car> c=cr.findById(id);\r\n\t\tif(!c.isPresent())\r\n\t\t{\r\n\t\t\tthrow new NotFoundRes(\"Car with ID : \"+id+\" does not exist\");\r\n\t\t}\r\n\t\treturn c.get();\r\n\t}", "DrpCommissionRule selectByPrimaryKey(Long id);", "@Query(\"select * from Timetable where id=:busId\")\n LiveData<Bus> getBusDetail(int busId);", "OrgIntegralDeductRule selectByPrimaryKey(Long id);", "public List<Doc> getMaintenanceCreditAP(MaintenanceRequest mrq){\n\t\tList<Doc> creditAPDocs = new ArrayList<Doc>();\n\t\ttry{\n\t\t\tList<Long> creditAPDocIds = maintenanceInvoiceDAO.getMaintenanceCreditAPDocIds(mrq);\n\t\t\tfor(Long creditAPDocId : creditAPDocIds){\n\t\t\t\tcreditAPDocs.add(docDAO.findById(creditAPDocId).orElse(null));\n\t\t\t}\n\t\t\treturn creditAPDocs;\n\t\t}catch(Exception ex){\n\t\t\tthrow new MalException(\"generic.error.occured.while\", \n\t\t\t\t\tnew String[] { \"retrieving creditAP for po: \" + mrq.getJobNo()}, ex);\n\t\t}\n\t}", "public Zclass selectByCid(String xandc) {\n\t\tZclassExample example=new ZclassExample();\r\n\t\tcom.pdsu.stuManage.bean.ZclassExample.Criteria criteria=example.createCriteria();\r\n\t\tcriteria.andZcidEqualTo(xandc);\r\n\t\tList<Zclass>list=zclassMapper.selectByExample(example);\r\n\t\tif(list.size()!=0)\r\n\t\treturn list.get(0);\r\n\t\telse\r\n\t\t\treturn null;\r\n\t}", "HrHBscCpuQos selectByPrimaryKey(String bscid, Date day, Integer hour);", "public static ArrayList<BHP> getBHPsOnDemand(Resident resident, Date date) {\n\n List<Prescription> listPrescriptions = PrescriptionTools.getOnDemandPrescriptions(resident, date);\n LocalDate lDate = new LocalDate(date);\n long begin = System.currentTimeMillis();\n EntityManager em = OPDE.createEM();\n ArrayList<BHP> listBHP = new ArrayList<BHP>();\n\n try {\n Date now = new Date();\n\n String jpql = \" SELECT bhp \" +\n \" FROM BHP bhp \" +\n \" WHERE bhp.prescription = :prescription \" +\n \" AND bhp.soll >= :from AND bhp.soll <= :to AND bhp.dosis > 0 \";\n Query queryOnDemand = em.createQuery(jpql);\n\n for (Prescription prescription : listPrescriptions) {\n queryOnDemand.setParameter(\"prescription\", prescription);\n queryOnDemand.setParameter(\"from\", lDate.toDateTimeAtStartOfDay().toDate());\n queryOnDemand.setParameter(\"to\", SYSCalendar.eod(lDate).toDate());\n\n ArrayList<BHP> listBHP4ThisPrescription = new ArrayList<BHP>(queryOnDemand.getResultList());\n\n PrescriptionSchedule schedule = prescription.getPrescriptionSchedule().get(0);\n // On Demand prescriptions have exactly one schedule, hence the .get(0).\n // There may not be more than MaxAnzahl BHPs resulting from this prescription.\n if (listBHP4ThisPrescription.size() < schedule.getMaxAnzahl()) {\n // Still some BHPs to go ?\n for (int i = listBHP4ThisPrescription.size(); i < schedule.getMaxAnzahl(); i++) {\n BHP bhp = new BHP(schedule);\n bhp.setIst(now);\n bhp.setSoll(date);\n bhp.setSollZeit(SYSCalendar.BYTE_TIMEOFDAY);\n bhp.setDosis(schedule.getMaxEDosis());\n bhp.setState(BHPTools.STATE_OPEN);\n listBHP4ThisPrescription.add(bhp);\n }\n }\n listBHP.addAll(listBHP4ThisPrescription);\n // outcome BHPs\n// listBHP.addAll(new ArrayList<BHP>(queryOutcome.getResultList()));\n }\n\n Collections.sort(listBHP, getOnDemandComparator());\n } catch (Exception se) {\n OPDE.fatal(se);\n } finally {\n em.close();\n }\n SYSTools.showTimeDifference(begin);\n return listBHP;\n }", "private Bike getBikeFromRS(ResultSet rs){ //Help method to get a bike from a ResultSet query\n try{\n int bID = rs.getInt(cBikeID);\n LocalDate date = rs.getDate(cDate).toLocalDate();\n Double price = rs.getDouble(cPrice);\n String make = rs.getString(cMake);\n int typeId = rs.getInt(cTypeId);\n String typeName = rs.getString(cTypeName);\n double rentalPrice = rs.getDouble(cRentalPrice);\n int stationId = rs.getInt(cStationId);\n LocalDateTime dateTime = rs.getTimestamp(cDateTime).toLocalDateTime();\n double lat = rs.getDouble(cLatitude);\n double lng = rs.getDouble(cLongitude);\n double chargingLvl = rs.getDouble(cChargingLevel);\n\n BikeData bd = new BikeData(bID, dateTime, lat, lng, chargingLvl);\n BikeType t = new BikeType(typeName,rentalPrice);\n t.setTypeId(typeId);\n Bike bike = new Bike(date, price, make, t, stationId);\n bike.setBikeId(bID);\n bike.setBikeData(bd);\n return bike;\n }catch(Exception e){\n System.out.println(\"Exception \" + e);\n }\n return null;\n }", "protected DomainObject findOne( StatementSource stmt ) {\n\t\tDomainObject obj = null;\n\t\tSQLiteDatabase db;\n\t\tCursor c = null;\n\t\ttry {\n\t\t\tUtils.Log( \"opening the database for read.\" );\n\t\t\tdb = Repository.getInstance( mContext ).getReadableDatabase();\n\t\t\tUtils.Log( stmt.sql() );\n\t\t\tc = db.rawQuery( stmt.sql(), stmt.parameters() );\n\t\t\tif ( c != null ) {\n\t\t\t\tc.moveToFirst();\n\t\t\t\tobj = load( c );\n\t\t\t}\n\t\t} catch ( SQLiteException e ) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tif ( c != null ) {\n\t\t\t\tc.close();\n\t\t\t}\n\t\t}\n\t\treturn obj;\n\t}", "public void testFetch() throws HibernateException{\r\n ItemPriceChange ipc = (ItemPriceChange)session.createQuery(\"select ipc \" +\r\n \"from ItemPriceChange as ipc \" +\r\n \"where ipc.key.style.id = 986628\")\r\n .setMaxResults(1)\r\n .uniqueResult();\r\n assertNotNull(ipc);\r\n }", "private static OfferDAO getOfferDAO() {\n DbConnection dbConnection = new DbConnection();\n DBI dbi = dbConnection.getDBConnection();\n OfferDAO offerDAO = dbi.onDemand(OfferDAO.class);\n return offerDAO;\n }", "@Override\n\tpublic Banner getBanner(Long id) throws WynkServiceException{\n\t\tBooleanExpression expression = QBanner.banner.id.eq(id);\n\t\treturn bannerRepository.findOne(expression)\n\t\t\t\t.orElseThrow(()-> new com.wynk.exceptions.EntityNotFoundException(messageByLocaleService.getMessage(\"err.banner.notmatch\", String.valueOf(id))));\n\t}", "public ResultSet Cmus(Long comp_id) throws SQLException {\n\tjava.util.Date d=new java.util.Date();\r\n\tSimpleDateFormat sd=new SimpleDateFormat(\"dd-MMM-yy\");\r\n\tString sdate=sd.format(d);\r\n\tSystem.out.println(comp_id);\r\n\t//String sql=\"select c.compname,s.shareprice,s.no_share from company c,share_details s where c.comp_id=s.comp_id and c.comp_id=\"+comp_id+\" and s.DATEOFTRANS='\"+sdate+\"'\";\r\n\t//System.out.println(sql);\r\n\trs=DbConnect.getStatement().executeQuery(\"select c.comp_id,c.compname,s.shareprice,s.no_share from company c,share_details s where c.comp_id=s.comp_id and c.comp_id=\"+comp_id+\" and s.DATEOFTRANS='\"+sdate+\"'\");\r\n\treturn rs;\r\n}", "ChronicCheck selectByPrimaryKey(Integer chroniccheckId);", "public static List<HealthCheckVO> getSurveillerDetailsOfComponent(boolean isDummyHealth) {\n\t\tHashMap<Long,HealthCheckVO> healthCheckVOMap = new HashMap<Long,HealthCheckVO>();\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\t\t\n\t\tTransaction txn = session.beginTransaction();\n\t\tCriteria healthCheckCriteria = session.createCriteria(HealthCheckEntity.class);\n\t\thealthCheckCriteria.add(Restrictions.eq(\"delInd\", 0));\n\t\tif(isDummyHealth){\n\t\t\thealthCheckCriteria.add(Restrictions.eq(\"healthCheckType.healthCheckTypeId\", HealthCheckType.DUMMY.getHealthCheckTypeId()));\n\t\t}else{\n\t\t\thealthCheckCriteria.add(Restrictions.ne(\"healthCheckType.healthCheckTypeId\", HealthCheckType.DUMMY.getHealthCheckTypeId()));\n\t\t}\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<HealthCheckEntity> checkEntities = healthCheckCriteria.list();\n\t\tfor(HealthCheckEntity entity : checkEntities) {\n\t\t\tHealthCheckVO hcVO = new HealthCheckVO();\n\t\t\thcVO.setHealthCheckId(entity.getHealthCheckId());\n\t\t\thcVO.setHealthCheckComponentId((long) entity.getComponent().getComponentId());\n\t\t\thcVO.setHealthCheckRegionId(entity.getRegion().getRegionId());\n\t\t\thcVO.setHealthCheckTypeClassName(entity.getHealthCheckType().getHealthCheckTypeClass());\n\t\t\thcVO.setHealthCheckTypeName(entity.getHealthCheckType().getHealthCheckTypeName());\n\t\t\thcVO.setHealthCheckRetryCurrentCount(entity.getFailedCount());\n\t\t\thcVO.setHealthCheckRetryMaxCount(entity.getMaxRetryCount());\n\t\t\tif(entity.getCurrentStatus() != null){\n\t\t\t\thcVO.setCurrentStatus(entity.getCurrentStatus().getStatusId());\n\t\t\t}\n\t\t\thcVO.setEnvironmentId(entity.getEnvironment().getEnvironmentId());\n\t\t\thcVO.setEnvironmentName(entity.getEnvironment().getEnvironmentName());\n\t\t\thcVO.setRegionName(entity.getRegion().getRegionName());\n\t\t\tComponentEntity component = entity.getComponent();\n\t\t\tint compTypeId = component.getComponentType().getComponentTypeId();\n\t\t\thcVO.setComponentType(ComponentType.INFRA.getComponentTypeId() == compTypeId ? ComponentType.INFRA: ComponentType.APP);\n\t\t\tComponentVO cVo = new ComponentVO();\n\t\t\tcVo.setComponentId(component.getComponentId());\n\t\t\tcVo.setComponentName(component.getComponentName());\n\t\t\tif(component.getParentComponent() != null) {\n\t\t\t\tcVo.setParentComponentId(component.getParentComponent().getComponentId());\n\t\t\t\tcVo.setParentComponentName(component.getParentComponent().getComponentName());\n\t\t\t}\n\t\t\thcVO.setComponent(cVo);\n\t\t\t\n if(entity.getHealthCheckParams() !=null && entity.getHealthCheckParams().size() > 0) {\n Map<String,String> paramDetails = new HashMap<String,String>();\n for(HealthCheckParamEntity hcp: entity.getHealthCheckParams()){\n paramDetails.put(hcp.getHealthCheckParamKey(), hcp.getHealthCheckParamVal());\n }\n hcVO.setParamDetails(paramDetails);\n\t\t\t}\n\t\t\thealthCheckVOMap.put(hcVO.getHealthCheckId(), hcVO);\n\t\t}\n\t\ttxn.commit();\n\t\treturn new ArrayList<HealthCheckVO>(healthCheckVOMap.values());\n\t}", "@Cacheable(\"lastRunInfo\")\n private GeobatchRunInfo getLastRunInfoCache(String id) {\n List<GeobatchRunInfo> search = search(id);\n \n return search != null && !search.isEmpty() ? search.get(0) : null;\n }", "CE findById(ID id);", "public static List<CartInfo> getCart(long mobNo) throws DBException {\r\n\t\tList<CartInfo> cart = new ArrayList<>();\r\n\t\tConnection con = null;\r\n\t\tPreparedStatement pst = null;\r\n\t\tResultSet rs = null;\r\n\t\ttry {\r\n\r\n\t\t\t// Step 1: Get the connection\r\n\t\t\tcon = DBConnection.getConnection();\r\n\r\n\t\t\t// Step 2: Query\r\n\t\t\tString sql = \"select id,check_in,suite_Type,ac_choice,pool_choice,transport_choice,bill_amount_estimation from \"\r\n\t\t\t\t\t+ \"bookRoom where status='true' and mobile_no=\" + mobNo;\r\n\t\t\tpst = con.prepareStatement(sql);\r\n\r\n\t\t\t// Step 3: execute query\r\n\t\t\trs = pst.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tint id = rs.getInt(\"id\");\r\n\t\t\t\tTimestamp checkin = rs.getTimestamp(\"check_in\");\r\n\t\t\t\tLocalDateTime checkIn = checkin.toLocalDateTime();\r\n\t\t\t\tString suiteType = rs.getString(\"suite_Type\");\r\n\t\t\t\tString acChoice = rs.getString(\"ac_choice\");\r\n\t\t\t\tString poolChoice = rs.getString(\"pool_choice\");\r\n\t\t\t\tString tansport = rs.getString(\"transport_choice\");\r\n\t\t\t\tdouble amount = rs.getDouble(\"bill_amount_estimation\");\r\n\r\n\t\t\t\tCartInfo cartDetail = new CartInfo(id, checkIn, suiteType, acChoice, poolChoice, tansport, amount);\r\n\t\t\t\tcart.add(cartDetail);\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tthrow new DBException(\"Unable to fetch Booking Details\");\r\n\t\t} finally {\r\n\t\t\tDBClose.close(rs, pst, con);\r\n\t\t}\r\n\t\treturn cart;\r\n\t}", "@Override\n\tpublic StockAlarmBillPO searchStockAlarmBillByID(String id) throws RemoteException {\n\t\tStockAlarmBillPO bill = null;\n\t\tArrayList<StockAlarmBillItem> itemList = new ArrayList<StockAlarmBillItem>();\n\n\t\ttry {\n\t\t\tStatement statement_1 = con.createStatement();\t\n\t\t\tString sql_1 = \"select * from stockalarmbill where ID = \"+\"'\"+ id+\"'\";\t\t\n\t\t\tResultSet rs = statement_1.executeQuery(sql_1);\t\t\t \t\n\t\t\tStatement statement_2 = con.createStatement();\t\n\t \t//��ȡ�����ݱ���������idΪ������\n\t \tString sql_2 = \"select * from stock\" + id;\t\t\n\t\t \n\t \twhile(rs.next()) {\t \n\t \t\tBillState state = BillState.getStateByInt(rs.getInt(\"State\")); \t\n\t \t\tjava.sql.Date date = rs.getDate(\"Date\");\t \t\n\t \t\tString operatorID = rs.getString(\"OperatorID\");\n\t \t \tString wareID = rs.getString(\"wareID\");\n\t \t \t\n\t \t\tResultSet rs_2 = statement_2.executeQuery(sql_2);\t \n\t \t\tString number = null;\n\t\t String name = null;\n\t\t long amount = 0;\n\t\t long alarmAmount = 0;\n\t\t \n\t\t while(rs_2.next()) { \t\n\t\t \tnumber = rs_2.getString(\"Number\");\n\t\t \t name = rs_2.getString(\"Name\");\n\t\t \t amount = rs_2.getLong(\"Amount\");\n\t\t \t alarmAmount = rs_2.getLong(\"AlarmAmount\");\n\t\t \t\n\t\t \t StockAlarmBillItem item = new StockAlarmBillItem(number, name, amount, alarmAmount);\n\t\t \t itemList.add(item);\n\t\t }\t\t \t\t\t\n\t\t java.util.Date d = new java.util.Date(date.getTime());\n\t\t bill = new StockAlarmBillPO( id, itemList, state, d, operatorID, wareID);\n\t\t rs_2.close(); \t \n\t \t}\n\t\t rs.close();\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} \t\n\t\treturn bill;\n\t}", "@Override\n\tpublic ExWarehouseDetail fetchByDetailId(int dw,String detailId,String ckdh) throws Exception {\n\t\treturn exWarehouseDetailMapper.fetchByDetailId(String.valueOf(dw),detailId,ckdh);\n\t}", "public Seckill getSeckill(long seckillId){\n //redis 操作逻辑\n try {\n Jedis jedis = jedisPool.getResource();\n try {\n String key = getCacheKey(seckillId);\n //并没有实现内部序列化操作\n //采用自定义序列化\n byte[] data = jedis.get(key.getBytes());\n if(data != null){\n Seckill seckill = SerializationUtil.deserializer(data,Seckill.class);\n //seckill 反序列化完成\n return seckill;\n }\n }finally {\n jedis.close();\n }\n }catch (Exception e){\n logger.error(e.getMessage(),e);\n }finally {\n\n }\n return null;\n }", "public List<Activity_checkwork> getByactid(Activity_checkwork che) {\n\treturn mapper.getByactid(che);\r\n}", "@Override\n\tpublic BnsCash get(String arg0) {\n\t\treturn cashRepository.findOne(arg0);\n\t}", "@Override\r\n\tpublic CustVO findByPrimaryKey(String cust_ID) {\n\t\tCustVO custVO = null;\r\n\t\tConnection con = null;\r\n\t\tPreparedStatement pstmt = null;\r\n\t\tResultSet rs = null;\r\n\r\n\t\ttry {\r\n\t\t\tcon = ds.getConnection();\r\n\t\t\tpstmt = con.prepareStatement(GET_ONE_STMT);\r\n\r\n\t\t\tpstmt.setString(1, cust_ID);\r\n\r\n\t\t\trs = pstmt.executeQuery();\r\n\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tcustVO = new CustVO();\r\n\t\t\t\tcustVO.setCust_ID(rs.getString(\"CUST_ID\"));\r\n\t\t\t\tcustVO.setCust_acc(rs.getString(\"CUST_ACC\"));\r\n\t\t\t\tcustVO.setCust_pwd(rs.getString(\"CUST_PWD\"));\r\n\t\t\t\tcustVO.setCust_name(rs.getString(\"CUST_NAME\"));\r\n\t\t\t\tcustVO.setCust_sex(rs.getString(\"CUST_SEX\"));\r\n\t\t\t\tcustVO.setCust_tel(rs.getString(\"CUST_TEL\"));\r\n\t\t\t\tcustVO.setCust_addr(rs.getString(\"CUST_ADDR\"));\r\n\t\t\t\tcustVO.setCust_pid(rs.getString(\"CUST_PID\"));\r\n\t\t\t\tcustVO.setCust_mail(rs.getString(\"CUST_MAIL\"));\r\n\t\t\t\tcustVO.setCust_brd(rs.getDate(\"CUST_BRD\"));\r\n\t\t\t\tcustVO.setCust_reg(rs.getDate(\"CUST_REG\"));\r\n\t\t\t\tcustVO.setCust_pic(rs.getBytes(\"CUST_PIC\"));\r\n\t\t\t\tcustVO.setCust_status(rs.getString(\"CUST_STATUS\"));\r\n\t\t\t\tcustVO.setCust_niname(rs.getString(\"CUST_NINAME\"));\r\n\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException se) {\r\n\t\t\tthrow new RuntimeException(\"A database error occured. \" + se.getMessage());\r\n\t\t} finally {\r\n\t\t\tif (rs != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\trs.close();\r\n\t\t\t\t} catch (SQLException se) {\r\n\t\t\t\t\tse.printStackTrace(System.err);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (pstmt != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tpstmt.close();\r\n\t\t\t\t} catch (SQLException se) {\r\n\t\t\t\t\tse.printStackTrace(System.err);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (con != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tcon.close();\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\te.printStackTrace(System.err);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn custVO;\r\n\t}", "public interface SysConfigDao extends BaseDao<SysConfig, String> {\n\t//SysConfig findByCfPlazaNoAndCfConfigNameAndCfPCNo(String cfPlazaNo, String cfConfigName, String cfPCNo);\n\n SysConfig findByCfConfigName(String cfConfigName);\n}", "public static Map<String,String> getAgenciesFromCache(){\n\t\tlog.info(\"getAgenciesFromCache..\");\n\t\tMap<String,String> agencyMap=null; \t\n \tif(memcache !=null && memcache.contains(MEDIA_PLAN_AGENCIES_KEY)){\n \t\tagencyMap=(Map<String,String>) memcache.get(MEDIA_PLAN_AGENCIES_KEY);\n \t} \t\n \treturn agencyMap;\n\t}", "@Override\n public Course getById(int id) {\n Course result = null;\n String statement = FINDBYID;\n ResultSet rs = data.makePreparedStatement(statement,new Object[]{(Object)id});\n try {\n while(rs.next()){\n result = new Course(rs.getInt(\"id\"),rs.getString(\"title\"),rs.getString(\"stream\"),\n rs.getString(\"type\"),rs.getDate(\"start_date\").toLocalDate(),rs.getDate(\"end_date\").toLocalDate());\n }\n } catch (SQLException ex) {\n System.out.println(\"Problem with CourseDao.getById()\");\n }finally{\n data.closeConnections(rs,data.ps, data.conn);\n }\n return result;\n }", "@Override\n\tpublic Commodity findByid(String cid) {\n\t\tCommodity commodity=new Commodity();\n\t\tcommodity=this.getHibernateTemplate().get(Commodity.class,cid);\n\t return commodity;\n\t}", "public interface ComponentDAO {\r\n /**\r\n * Retrieves all coverage components\r\n *\r\n * @param record input record\r\n * @param recordLoadProcessor an instance of the load processor to set page entitlements\r\n * @return\r\n */\r\n RecordSet loadAllComponents(Record record, RecordLoadProcessor recordLoadProcessor);\r\n\r\n /**\r\n * Retrieves all pending prior act coverage components\r\n *\r\n * @param record input record\r\n * @param recordLoadProcessor an instance of the load processor to set page entitlements\r\n * @return\r\n */\r\n RecordSet loadAllPendPriorActComp(Record record, RecordLoadProcessor recordLoadProcessor);\r\n\r\n /**\r\n * Save all input component records with the Pm_Nb_End.Save_Covg_Component stored procedure.\r\n * Set the rowStatus field to NEW for records that are newly added in this request.\r\n * Set the rowStatus field to MODIFIED for records that have already been saved in this WIP transaction,\r\n * and are just being updated.\r\n *\r\n * @param inputRecords a set of Records, each with the PolicyHeader, PolicyIdentifier,\r\n * and Component Detail info matching the fields returned from the loadAllComponents method.\r\n * @return the number of rows updated.\r\n */\r\n int addAllComponents(RecordSet inputRecords);\r\n\r\n /**\r\n * Update all given input records with the Pm_Endorse.Change_Covg_Component stored procedure.\r\n *\r\n * @param inputRecords a set of Records, each with the PolicyHeader, PolicyIdentifier,\r\n * and Component Detail info matching the fields returned from the loadAllComponents method.\r\n * @return the number of rows updated.\r\n */\r\n int updateAllComponents(RecordSet inputRecords);\r\n\r\n /**\r\n * Delete all given input records with the Pm_Nb_Del.Del_Covg_Component stored procedure.\r\n *\r\n * @param inputRecords a set of Records, each with the PolicyHeader, PolicyIdentifier,\r\n * and Component Detail info matching the fields returned from the loadAllComponents method.\r\n * @return the number of rows updated.\r\n */\r\n int deleteAllComponents(RecordSet inputRecords);\r\n\r\n /**\r\n * Get the Cancel WIP rule\r\n *\r\n * @param record\r\n * @return\r\n */\r\n public Record getCancelWipRule(Record record);\r\n\r\n /**\r\n * Get the component cycle years\r\n *\r\n * @param record\r\n * @return\r\n */\r\n public int getCycleYearsForComponent(Record record);\r\n\r\n /**\r\n * Get the component num days\r\n *\r\n * @param record\r\n * @return\r\n */\r\n public int getNumDaysForComponent(Record record);\r\n\r\n /**\r\n * To load all dependent components\r\n *\r\n * @param record\r\n * @param recordLoadProcessor\r\n * @return\r\n */\r\n public RecordSet loadAllAvailableComponent(Record record, RecordLoadProcessor recordLoadProcessor);\r\n\r\n /**\r\n * Get the earliest contiguous coverage effective date with the function Pm_Dates.Nb_Covg_Startdt(coverage_fk, check_dt)\r\n *\r\n * @param record\r\n * @return\r\n */\r\n public Record getCoverageContiguousEffectiveDate(Record record);\r\n\r\n /**\r\n * Get component PK and base record FK\r\n *\r\n * @param record\r\n * @return\r\n */\r\n public Record getComponentIdAndBaseId(Record record);\r\n\r\n /**\r\n * Load Cycle Detail\r\n *\r\n * @param inputRecord\r\n * @return RecordSet\r\n */\r\n public RecordSet loadAllCycleDetail(Record inputRecord);\r\n\r\n /**\r\n * Load Surcharge Points\r\n *\r\n * @param inputRecord\r\n * @return RecordSet\r\n */\r\n public RecordSet loadAllSurchargePoint(Record inputRecord);\r\n\r\n /**\r\n * Save all surcharge points data.\r\n *\r\n * @param inputRecords intput record\r\n * @return the number of row updateds\r\n */\r\n public int saveAllSurchargePoint(RecordSet inputRecords);\r\n\r\n /**\r\n * validate component copy\r\n * @param inputRecord\r\n * @return validate status code statusCode\r\n */\r\n String validateCopyAllComponent(Record inputRecord);\r\n\r\n /**\r\n * delete all component from coverage for delete risk all\r\n * @param compRs\r\n */\r\n void deleteAllCopiedComponent(RecordSet compRs);\r\n\r\n /**\r\n * Load all processing event.\r\n *\r\n * @param inputRecord\r\n * @return RecordSet\r\n */\r\n public RecordSet loadAllProcessingEvent(Record inputRecord, RecordLoadProcessor entitlementRLP);\r\n\r\n /**\r\n * Load all processing detail.\r\n *\r\n * @param inputRecord\r\n * @return RecordSet\r\n */\r\n public RecordSet loadAllProcessingDetail(Record inputRecord);\r\n\r\n /**\r\n * Save all processing event.\r\n *\r\n * @param inputRecords\r\n * @return the number of row updated\r\n */\r\n public int saveAllProcessingEvent(RecordSet inputRecords);\r\n\r\n /**\r\n * Set RMT Classification indicator.\r\n *\r\n * @param inputRecord\r\n */\r\n public void setRMTIndicator(Record inputRecord);\r\n\r\n /**\r\n * Process RM Discount\r\n *\r\n * @param inputRecord\r\n * @return Record\r\n */\r\n public Record processRmDiscount(Record inputRecord);\r\n\r\n /**\r\n * Load all Corp/Org discount member.\r\n *\r\n * @param inputRecord\r\n * @param entitlementRLP\r\n * @return RecordSet\r\n */\r\n public RecordSet loadAllCorpOrgDiscountMember(Record inputRecord, RecordLoadProcessor entitlementRLP);\r\n\r\n /**\r\n * Process Corp/Org discount\r\n *\r\n * @param inputRecord\r\n * @return Record\r\n */\r\n public Record processCorpOrgDiscount(Record inputRecord);\r\n\r\n /**\r\n * Load all processing event history\r\n *\r\n * @param inputRecord\r\n * @return RecordSet\r\n */\r\n public RecordSet loadAllProcessEventHistory(Record inputRecord);\r\n\r\n /**\r\n * Load all processing detail history\r\n *\r\n * @param inputRecord\r\n * @return RecordSet\r\n */\r\n public RecordSet loadAllProcessDetailHistory(Record inputRecord);\r\n\r\n /**\r\n * Apply the component\r\n *\r\n * @param inputRecord\r\n * @return Record\r\n */\r\n public Record applyMassComponet(Record inputRecord);\r\n\r\n /**\r\n * Check if it is a problem policy\r\n *\r\n * @param inputRecord\r\n * @return String\r\n */\r\n public String isProblemPolicy(Record inputRecord);\r\n\r\n /**\r\n * Check if add component allowed\r\n *\r\n * @param inputRecord\r\n * @return\r\n */\r\n String isAddComponentAllowed(Record inputRecord);\r\n\r\n /**\r\n * Get short term component's effective from and effective to date\r\n *\r\n * @param inputRecord Input record containing risk and coverage level details\r\n * @return Record that contains component effective from date and effective to date.\r\n */\r\n Record getShortTermCompEffAndExpDates(Record inputRecord);\r\n\r\n /**\r\n * Check if the official component record has a temp record exists for the specific transaction.\r\n *\r\n * @param inputRecord include component base record id and transaction id\r\n * @return true if component temp record exists\r\n * false if component temp record does not exist\r\n */\r\n boolean isComponentTempRecordExist(Record inputRecord);\r\n\r\n /**\r\n * Check if changing component expiring date in OOSE is allowed\r\n *\r\n * @param inputRecord\r\n * @return\r\n */\r\n String isOoseChangeDateAllowed(Record inputRecord);\r\n\r\n /**\r\n * Load effective to date with PM_Dates.NB_Covg_ExpDt stored procedure.\r\n * <p/>\r\n *\r\n * @param inputRecord a Record with information to load the effective to date.\r\n * @return Coverage effective to date.\r\n */\r\n String getCoverageExpirationDate(Record inputRecord);\r\n\r\n /**\r\n * Validate component duplicate.\r\n * @param inputRecord\r\n * @return\r\n */\r\n Record validateComponentDuplicate(Record inputRecord);\r\n\r\n /**\r\n * Check if the NDD expiration date is configured for the component.\r\n *\r\n * @param inputRecord include component base record id and transaction id\r\n * @return true if configured\r\n * false if not configured\r\n */\r\n boolean getNddSkipValidateB(Record inputRecord);\r\n\r\n /**\r\n * Load experience discount history information.\r\n *\r\n * @param inputRecord\r\n * @return RecordSet\r\n */\r\n public RecordSet loadExpHistoryInfo(Record inputRecord);\r\n\r\n /**\r\n * Load claim information for a specific period of the risk.\r\n *\r\n * @param inputRecord\r\n * @return RecordSet\r\n */\r\n public RecordSet loadClaimInfo(Record inputRecord);\r\n}", "@Test\n\tpublic void testGet() {\n\t\tWellRegistryKey well = new WellRegistryKey(\"USGS\", \"402734087033401\"); // was 007\n\t\tWellDataType type = WellDataType.WATERLEVEL;\n\t\tCacheMetaData cmd = dao.get(well, type);\n\t\t\n\t\tassertNotNull(\"expected some meta data\",cmd);\n\t\tSystem.out.printf(\"Got successCt=%d, failCt=%d, last attempt=%s\\n\", cmd.getSuccessCt(), cmd.getFailCt(), cmd.getMostRecentAttemptDt());\n\t\tassertEquals(\"Agency code\", \"USGS\", cmd.getAgencyCd());\n\t\tassertEquals(\"Site no\", \"402734087033401\", cmd.getSiteNo());\n\t\tassertTrue(\"non-negative fail count\", cmd.getFailCt() >= 0);\n\t\tassertTrue(\"non-negative success count\", cmd.getSuccessCt() >= 0);\n\t\t\n\t}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface EMContractRepository extends JpaRepository<EMContract, UUID>,EMContractRepositoryCustom {\n\n /**\n * add by namnh\n *\n * @return\n */\n @Override\n List<EMContract> findAll();\n\n List<EMContract> findAllByIsActiveTrue();\n @Query(value = \"select id from EMContract where UPPER(NoFBook) = UPPER (?1) and CompanyID = ?2 and isActive = 1\", nativeQuery = true)\n UUID findIdByNoFBook(String expenseItemCode, UUID companyId);\n\n @Query(value = \"select id from EMContract where UPPER(NoMBook) = UPPER (?1) and CompanyID = ?2 and isActive = 1\", nativeQuery = true)\n UUID findIdByNoMBook(String expenseItemCode, UUID companyId);\n}", "List<CustomerOrderBroadbandASID> selectCustomerOrderBroadbandASID(CustomerOrderBroadbandASID cobasid);", "public static QualityResultDAOImplEx getInstance()\n {\n if ( instance == null )\n {\n instance = new QualityResultDAOImplEx();\n }\n return instance;\n }", "@Transactional\n @Query(\"SELECT e FROM #{#entityName} e WHERE e.deleteFlag=true\")\n public List<AdHoc> recycleBin();", "public IC8RecordDao getC8Dao(EquationStandardSession session, AbsRecord record)\n\t{\n\t\tApplicationContextManager applicationContextManager = ApplicationContextManager.getInstance();\n\t\tIC8RecordDao dao = (IC8RecordDao) applicationContextManager.getDao(c8RecordDaoName, session);\n\t\tdao.setRecord(record);\n\t\treturn dao;\n\t}", "public interface MerchantSettlementCycleService extends BaseService<MerchantSettlementCycle> {\n\n\n public MerchantSettlementCycle findByMscId(Long mscId) throws InspireNetzException;\n public List<MerchantSettlementCycle> findByMscMerchantNoAndMscRedemptionMerchantAndMscMerchantLocationAndMscStartDateAfterAndMscEndDateBefore(Long mscMerchantNo, Long mscRedemptionMerchant, Long mscMerchantLocation, java.sql.Date mscStartDate, java.sql.Date mscEndDate);\n\n List<MerchantSettlementCycle> findByMscMerchantNoAndMscRedemptionMerchantAndMscStartDateAfterAndMscEndDateBefore(Long mscMerchantNo, Long mscRedemptionMerchant, java.sql.Date mscStartDate, java.sql.Date mscEndDate);\n\n public List<MerchantSettlementCycle> findByMscRedemptionMerchantAndMscMerchantLocationAndMscStartDateAfterAndMscEndDateBefore(Long mscRedemptionMerchant, Long mscMerchantLocation, java.sql.Date mscStartDate, java.sql.Date mscEndDate);\n\n List<MerchantSettlementCycle> findByMscRedemptionMerchantAndMscStartDateAfterAndMscEndDateBefore(Long mscRedemptionMerchant, java.sql.Date mscStartDate, java.sql.Date mscEndDate);\n\n public List<MerchantSettlementCycle> findByMscMerchantNoAndMscMerchantLocationAndMscStartDateAfterAndMscEndDateBefore(Long mscMerchantNo, Long mscMerchantLocation, java.sql.Date mscStartDate, java.sql.Date mscEndDate);\n\n\n List<MerchantSettlementCycle> findByMscMerchantNoAndMscStartDateAfterAndMscEndDateBefore(Long mscMerchantNo, java.sql.Date mscStartDate, java.sql.Date mscEndDate);\n\n public MerchantSettlementCycle validateAndSaveMerchantSettlementCycle(MerchantSettlementCycle merchantSettlementCycle) throws InspireNetzException;\n public MerchantSettlementCycle saveMerchantSettlementCycle(MerchantSettlementCycle merchantSettlementCycle);\n public boolean deleteMerchantSettlementCycle(Long rvrId);\n\n public Date getLastCycleGeneratedDate(Long mscMerchantNo, Long mscRedemptionMerchant, Long mscMerchantLocation);\n\n public boolean generateMerchantSettlementCycle(RedemptionMerchant redemptionMerchant, Long merchantNo);\n\n public boolean generateMerchantSettlementCycleFromMerchant(Long merchantNo,Long redemptionMerchantNo) throws InspireNetzException;\n\n public List<MerchantSettlementCycle> searchMerchantSettlementCycle(Long mscMerchantNo, Long mscRedemptionMerchant, Long mscMerchantLocation, java.sql.Date mscStartDate, java.sql.Date mscEndDate);\n\n boolean markCycleAsSettled(Long mscId) throws InspireNetzException;\n}", "public void cacheResult(CsclAppointeeMaster csclAppointeeMaster);", "T getInstrument(String ticker) throws DaoException, InstrumentNotFoundException;", "Contract findById(int id);", "public CurrencyHibernateDAO getCurrencyDAO() {\n\t\treturn (CurrencyHibernateDAO)instantiateDAO(CurrencyHibernateDAO.class);\n\t}", "static public Abc getObject() //Double Chcked Locking\n {\n if(obj1==null) {\n synchronized (Abc.class) {\n if (obj1 == null) {\n obj1 = new Abc();\n }\n }\n\n }\n return obj1;\n }" ]
[ "0.5559583", "0.54437923", "0.5402585", "0.5187277", "0.51736784", "0.51490927", "0.51490486", "0.5118049", "0.50993717", "0.5085456", "0.5079341", "0.50472444", "0.50382346", "0.50161475", "0.49930254", "0.4988334", "0.49765185", "0.49710652", "0.49537337", "0.49355453", "0.49340945", "0.49268624", "0.49164093", "0.49128178", "0.49104172", "0.49085417", "0.49077642", "0.48682448", "0.48579672", "0.48422986", "0.48415223", "0.48357597", "0.48267803", "0.4824472", "0.48158026", "0.47881377", "0.47850797", "0.47840065", "0.4770076", "0.47648427", "0.4762233", "0.47620752", "0.47568613", "0.47506705", "0.47497794", "0.47439322", "0.4742209", "0.4741158", "0.47411078", "0.47407272", "0.47379047", "0.47375152", "0.47356653", "0.4730457", "0.47268435", "0.47249717", "0.4721951", "0.47202855", "0.47155613", "0.4714619", "0.4713087", "0.4705749", "0.4701328", "0.46982723", "0.4695977", "0.46894336", "0.4688186", "0.46879324", "0.46873435", "0.4687127", "0.4686568", "0.4676785", "0.46747693", "0.46700588", "0.4668005", "0.46669644", "0.46665388", "0.466376", "0.46626952", "0.46501786", "0.4648535", "0.46446234", "0.46422416", "0.464061", "0.46400267", "0.463183", "0.46316728", "0.46308002", "0.46289545", "0.46276513", "0.4623515", "0.46231386", "0.46203783", "0.46174896", "0.46171093", "0.46152458", "0.4611902", "0.4611846", "0.46101898", "0.46091732" ]
0.66596353
0
Resets the array to its original configuration and return it.
public int[] reset() { System.out.println(Arrays.toString(soluzioneIniziale)); return soluzioneIniziale; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int[] reset() {\n\t\t\treturn originalArr;\n\t\t}", "public int[] reset() {\n return Arrays.copyOf(origin, origin.length);\n }", "public int[] reset() {\r\n return reset;\r\n }", "public int[] reset() \n {\n return reset;\n }", "public int[] reset() {\n return store;\n }", "private int[] reset() {\n return data;\n }", "public int[] reset() {\n return nums.clone();\n }", "private T[] modifyArray(T[] array) {\n array[index] = null;\n return array;\n }", "@SuppressWarnings({\"unused\", \"RedundantSuppression\"})\n public void resetArray() {\n Utils.postToMainLoop(new Runnable() {\n @Override\n public void run() {\n mBaseCacheAdapter.resetArray();\n mBaseRecyclerViewAdapter.notifyDataSetChanged();\n }\n\n @NonNull\n @Override\n public String toString() {\n return \"BaseCacheAdapterWrapper.resetArray()\";\n }\n });\n }", "public static int[] reset() {\n nums = Arrays.copyOf(numsBackUp, numsBackUp.length);\n return nums;\n }", "@Override\n public void clear() {\n array.reset();\n }", "public void compact()\n {\n array = toArray();\n }", "void reset() {\n for (int i = 0; i < array.length; i++) {\n array[i] = -1;\n }\n }", "public int[] reset() {\n\t\treturn memos;\n\t}", "private void reset(){\n int j=0;\n for(int i=0; i<array.length; i++){\n if(j == itemCount) {return;}\n if(array[i]!=null){\n temp[j] = array[i];\n j++;\n }\n }\n }", "private void restartArray() {\n for (int i = 0; i < 8; i++) {\n for (int j = 0; j < 8; j++) {\n Start.shemaArray[i][j].baseModel.state = 0;\n }\n }\n }", "public int[] reset() {\r\n return nums;\r\n }", "public int[] reset() {\n return nums;\n }", "public int[] reset() {\n return nums;\n }", "public int[] reset() {\n return nums;\n }", "public int[] reset() {\n return nums;\n }", "public int[] reset() {\n return nums;\n }", "public int[] reset() {\n return nums;\n }", "public int[] reset() {\n return nums;\n }", "public GoLBoard reset()\n\t{\n\t\treturn reset(new GoLRandomInitializer(setSize));\n\t}", "void reset()\n {\n reset(values);\n }", "public int[] clone()\n\t{\t\n\t\tint[] newArray = new int[array.length];\n\t\tfor (int index = 0; index < arraySize; index++)\n\t\t{\n\t\t\tnewArray[index] = array[index];\n\t\t}\n\t\treturn newArray;\n\t}", "public int[] reset() {\r\n\t\t\treturn this.initNums;\r\n\t\t}", "@Override\r\n\tpublic void reset() {\r\n\t\tthis.priorityElements = Lists.newArrayList(originalElements);\r\n\t\tCollections.shuffle(priorityElements);\r\n\t\tthis.currentElements = Lists.newArrayListWithExpectedSize(2 * originalElements.size());\r\n\t\tthis.currentElements.addAll(originalElements);\r\n\t}", "public void restore() {\n currentIm= originalIm.copy();\n }", "public void resetChangeableArrays(int[] reg)\n {\n valList = new LinkedList<Integer>();\n possibilityList = new LinkedList<Point>();\n for(int j = 0; j<accumulator.length; j ++)Arrays.fill(accumulator[j],0);\n //accumulator = zeroAccumulator;\n region = reg;\n \n }", "private int[] cloneArr(final int[] origArr) {\n return Arrays.copyOf(origArr, origArr.length);\n }", "public void reset_array() {\r\n\t\tfor(int i=0;i<9;i++) {\r\n\t\t\ts[i]=\"\";\r\n\t\t}\r\n\t}", "public Array<T> compactClone()\n {\n Array<T> out = Array.fromUnsafe(new Object[next], next);\n System.arraycopy(array, 0, out.array, 0, next);\n return out;\n }", "public int[] shuffle() {\n\t\t\tif (originalArr == null)\n\t\t\t\treturn null;\n\t\t\tint randomArr[] = originalArr.clone();\n\t\t\tfor (int i = 1; i < originalArr.length; i++) {\n\t\t\t\tint newIndex = random.nextInt(i + 1);\n\t\t\t\tswap(i, newIndex, randomArr);\n\t\t\t}\n\t\t\treturn randomArr;\n\t\t}", "public void reset() {\n for (int i = 0; i < this.numRows; i++) {\n this.rows[i] = new int[0];\n }\n for (int k = 0; k < this.numCols; k++) {\n this.cols[k] = new IntOpenHashSet();\n }\n }", "public UnorderedArray cloneArray(){\r\n UnorderedArray clone = new UnorderedArray(maxSize);\r\n clone.mArray = mArray.clone();\r\n clone.numItems = numItems;\r\n return clone;\r\n }", "public OccList reset()\n {\n size = 0;\n return this;\n }", "private void reset() {\n\t\tdata.clear();\n\t}", "public void reSize() {\n int newSize = arr.length * 2;\n arr = Arrays.copyOf(arr, newSize);\n }", "public void reset() {\n this.setIndex(0);\n }", "private void resetMask() {\n maskArray = new int [][]{\n {0,0,0,0},\n {0,0,0,0},\n {0,0,0,0},\n {0,0,0,0}\n };\n }", "public void reset() {\n this.predictor.reset();\n for(int i=0; i<this.predictedIntraday.length; i++) {\n this.predictedIntraday[i] = 0;\n }\n }", "public void reset() {\n\t\tlength = 0;\n\t}", "@Override\n public void resetAllValues() {\n }", "private static void modifyArray(int[] array) {\n\t\t\n\t\tarray[0] = 99;\n\t\t\n\t\tarray = new int[5] ;\n\t\treturn;\n\t}", "public GoLBoard reset(GoLInitializer myInitializer)\n\t{\n \tmyGoLCell = myInitializer.getCellArray();\n \treturn this;\n\t}", "protected void recycleArray(Bitmap[][] array)\n\t{\n\t\tint length = array.length;\n\t\tfor(int i = 0; i < length; i++)\n\t\t{\n\t\t\tif(array[i] != null)\n\t\t\t{\n\t\t\t\tint length2 = array[i].length;\n\t\t\t\tfor(int j = 0; j < length2; j++)\n\t\t\t\t{\n\t\t\t\t\tif(array[i][j] != null)\n\t\t\t\t\t{\n\t\t\t\t\t\tarray[i][j].recycle();\n\t\t\t\t\t\tarray[i][j] = null;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void resetGrid() {\n grid = new byte[grid.length];\n }", "public void reset() {\n\t\tinit(0, 0, 1, false);\n\t}", "@Override\n public void clear() {\n array = null;\n }", "@Override\n\tpublic void resetToExisting() {\n\t\t\n\t}", "private void reallocate() {\n capacity = 2 * capacity;\n ElementType[] newData = (ElementType[]) new Object[DEFAULT_INIT_LENGTH];\n System.arraycopy(elements, 0, newData, 0, size);\n elements = newData;\n }", "public static void fillArray() {\r\n\t\tfor (int i = 0; i < myOriginalArray.length - 1; i++) {\r\n\t\t\tRandom rand = new Random();\r\n\t\t\tmyOriginalArray[i] = rand.nextInt(250);\r\n\t\t}\r\n\t\t// Copies original array 4 times for algorithm arrays\r\n\t\tmyBubbleArray = Arrays.copyOf(myOriginalArray, myOriginalArray.length);\r\n\t\tmySelectionArray = Arrays.copyOf(myOriginalArray, myOriginalArray.length);\r\n\t\tmyInsertionArray = Arrays.copyOf(myOriginalArray, myOriginalArray.length);\r\n\t\tmyQuickArray = Arrays.copyOf(myOriginalArray, myOriginalArray.length);\r\n\t}", "public void reset() {\n this.index = this.startIndex;\n }", "protected void recycleArray(Bitmap[] array)\n\t{\n\t\tint length = array.length;\n\t\tfor(int i = 0; i < length; i++)\n\t\t{\n\t\t\tif(array[i] != null)\n\t\t\t{\n\t\t\t\tarray[i].recycle();\n\t\t\t\tarray[i] = null;\n\t\t\t}\n\t\t}\n\t}", "public DynamicArray<E> copy(DynamicArray<E> array) {\n synchronized (this) {\n return this.array;\n }\n }", "public void reset() {\n\t\t\t\t\r\n\t\t\t}", "public void reset() {\n\t\tfor (int i=0; i < this.WAYS; i++) {\n\t\t\tthis.cache[i] = new Line(this.alpha[i], REPL_VAL);\n\t\t}\n\t\t// set mru\n\t\tthis.cache[this.WAYS-1].state = INSERT_VAL;\n\t}", "public int[] cloneMemory(){\n return memory.clone();\n }", "public void reset () {\n\t\topen();\n\t\ttry {\n\t\t\tcontainer.setLength(0);\n\t\t\treservedBitMap.setLength(0);\n\t\t\tupdatedBitMap.setLength(0);\n\t\t\tfreeList.setLength(0);\n\t\t\tsize = 0;\n\t\t}\n\t\tcatch (IOException ie) {\n\t\t\tthrow new WrappingRuntimeException(ie);\n\t\t}\n\t}", "public void resetField() {\n setFields(new boolean[getLength()][getHeight()]);\n }", "@Override\r\n\t\t\tpublic void reset() {\n\t\t\t\t\r\n\t\t\t}", "public void newArray() {\n\t\t\n\t\tE[] newArray= (E[]) new Object[list.length * 2]; //Holds the old elements from the list array while new list array is being made\n\t\t\n\t\tfor(int i = 0; i < list.length; i++) {\n\t\t\t\n\t\t\tnewArray[i] = list[i]; //Copy the old list array into the newArray\n\t\t}\n\t\t\n\t\tlist = newArray; //Point the old array at the newArray starting memory location\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\n public final T[] obtainArrayCopy() {\n final T[] localArray = array;\n if (localArray == null) return (T[]) Array.newInstance(clazz, 0);\n\n return Arrays.copyOf(localArray, localArray.length);\n }", "private void trimArray()\r\n\t\t{\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"[INFO] <RADIOBUTTON_PANEL_BUILDER> Running trimArray\");\r\n\t\t\t\r\n\t\t\tJRadioButton[] newArray = new JRadioButton[nextRadioButtonLocation]; // Create a new array of the correct size\r\n\t\t\t\r\n\t\t\tfor (int i = 0; i < nextRadioButtonLocation; i++) // For each object in the array\r\n\t\t\t{\r\n\t\t\t\tnewArray[i] = radioButtons[i]; // Copy the object\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tradioButtons = newArray; // Store the new trimmed array in components\r\n\t\t}", "@Override\n\t\t\tpublic void reset() {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void reset() {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void reset() {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void reset() {\n\t\t\t\t\n\t\t\t}", "private void reallocate(){\n capacity = 2 * capacity;\n theData = Arrays.copyOf(theData, capacity);\n }", "public void reset () {}", "public void reset() {\n\n\t}", "@Override\r\n\tpublic void reset()\r\n\t{\r\n\t}", "@Override\n\t\tprotected void reset()\n\t\t{\n\t\t}", "private final void restoreOriginalGraph() {\n // Safeguard against multiple restores\n if (startIndex == -1) return;\n \n markEdgesFrom(startIndex, false);\n markEdgesFrom(endIndex, false);\n markHasEdgeToGoal(false);\n nOutgoingEdgess[endIndex] = endOriginalSize;\n nOutgoingEdgess[startIndex] = startOriginalSize;\n nEdges = originalNEdges;\n\n nNodes = originalSize;\n startIndex = -1;\n endIndex = -1;\n }", "public ResizingArray() {\r\n super();\r\n this.aObjects = new Object[ResizingArray.DEFAULT_SIZE];\r\n this.aFreeElements = new int[ResizingArray.DEFAULT_SIZE];\r\n }", "public void reallocate()\r\n\t{\r\n\t\tE[] newArray = (E[]) new Object[capacity * 2];\r\n\t\tint i = 0;\r\n\t\tfor(i = 0; i < this.size(); i++)\r\n\t\t{\r\n\t\t\tnewArray[i] = innerArray[(front + i) % capacity];\r\n\t\t\tSystem.out.println((front + i) % capacity);\r\n\t\t}\r\n\t\tfront = 0;\r\n\t\trear = this.size() - 1;\r\n\t\tcapacity = capacity * 2;\r\n\t\tinnerArray = newArray;\r\n\t}", "public void reset(final byte[] treeData) {\n \t\traw = treeData;\n \t\trawPtr = 0;\n \t}", "protected abstract void reset();", "public void reset() {\r\n\t\tcards.addAll(dealt);\r\n\t\tdealt.clear();\r\n\t}", "public void reset() {\n\n }", "public OpRewriter reset() {\n result = OpSequence.create();\n return this;\n }", "public static int[] copy(int[] theArray) {\n\n return theArray.clone();\n }", "private static void resetGroupLineArrays() {\n // Reset the arrays to make sure that we have uptodate information in them\n itemsArray = null;\n itemsArrayForAlterations = null;\n itemsArrayForOpenDeposit = null;\n }", "public T[] toArray() {\n return null;\n }", "@Override\n public void reset() \n {\n\n }", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "public void reset();" ]
[ "0.7683946", "0.697118", "0.6904059", "0.68361205", "0.6714145", "0.6640303", "0.64434683", "0.6318128", "0.6288678", "0.62609303", "0.6259935", "0.6196086", "0.6185046", "0.6129283", "0.60915095", "0.60055953", "0.5967921", "0.59418577", "0.59418577", "0.59418577", "0.59418577", "0.59418577", "0.59418577", "0.59418577", "0.5872889", "0.5870918", "0.57786286", "0.5768219", "0.57543355", "0.5716322", "0.5685787", "0.56746763", "0.5663266", "0.5663077", "0.56539774", "0.5636272", "0.56317455", "0.5601983", "0.55621237", "0.5538473", "0.55365205", "0.5524326", "0.55232364", "0.5515195", "0.5507188", "0.54990935", "0.54981965", "0.54725003", "0.54724085", "0.54705334", "0.54596317", "0.54540956", "0.542261", "0.54031897", "0.5390596", "0.53796774", "0.5376527", "0.53748786", "0.53740066", "0.53673774", "0.5346156", "0.5341975", "0.53368694", "0.53350514", "0.5333946", "0.5333095", "0.53167206", "0.53167206", "0.53167206", "0.53167206", "0.5314903", "0.53133017", "0.52908844", "0.5282181", "0.5277244", "0.52719283", "0.52713454", "0.5267086", "0.52567065", "0.5256291", "0.5249986", "0.5246228", "0.5242759", "0.5241111", "0.52362406", "0.52356803", "0.52347755", "0.5230565", "0.5230565", "0.5230565", "0.5230565", "0.5230565", "0.5230565", "0.5230565", "0.5230565", "0.5230565", "0.5230565", "0.5230565", "0.5230565", "0.5230565" ]
0.601098
15
Returns a random shuffling of the array.
public int[] shuffle() { Random random = new Random(); int posizioneRandom; int i = 0; int[] shuffleArray = new int[soluzione.length]; while(i < soluzione.length){ posizioneRandom = random.nextInt(soluzione.length); if(shuffleArray[posizioneRandom] == 0){ shuffleArray[posizioneRandom] = soluzione[i]; i++; } continue; } soluzione = shuffleArray; return soluzione; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int[] shuffle() {\n int len = data_random.length;\n Random rand = new Random();\n for (int i = 0; i < len; i++) {\n int r = rand.nextInt(len);\n int temp = data_random[i];\n data_random[i] = data_random[r];\n data_random[r]=temp;\n }\n return data_random;\n }", "public int[] shuffle() {\n\t\t\tif (originalArr == null)\n\t\t\t\treturn null;\n\t\t\tint randomArr[] = originalArr.clone();\n\t\t\tfor (int i = 1; i < originalArr.length; i++) {\n\t\t\t\tint newIndex = random.nextInt(i + 1);\n\t\t\t\tswap(i, newIndex, randomArr);\n\t\t\t}\n\t\t\treturn randomArr;\n\t\t}", "public int[] shuffle() {\n int[] result = reset();\n\n Random rand = new Random();\n for (int i = 0; i < result.length; i++) {\n int j = rand.nextInt(result.length - i) + i;\n int tmp = result[i];\n result[i] = result[j];\n result[j] = tmp;\n }\n return result;\n }", "private static void shuffleArray(int[] array)\n {\n int index, temp;\n Random random = new Random();\n for (int i = array.length - 1; i > 0; i--)\n {\n index = random.nextInt(i + 1);\n temp = array[index];\n array[index] = array[i];\n array[i] = temp;\n }\n }", "Actor[] shuffle(Actor[] array) {\n for (int i = array.length; i > 0; i--) {\n int k = rand.nextInt(i);\n Actor tmp = array[k];\n array[k] = array[i - 1];\n array[i - 1] = tmp;\n }\n return array;\n }", "public static <T> void shuffle(T[] array){\n Random rnd = ThreadLocalRandom.current();\n for (int i = array.length - 1; i > 0; i--)\n {\n int index = rnd.nextInt(i + 1);\n // Simple swap\n T a = array[index];\n array[index] = array[i];\n array[i] = a;\n }\n }", "public static <T> void shuffle(T[] array){\n Random rnd = ThreadLocalRandom.current();\n for (int i = array.length - 1; i > 0; i--)\n {\n int index = rnd.nextInt(i + 1);\n // Simple swap\n T a = array[index];\n array[index] = array[i];\n array[i] = a;\n }\n }", "private static void shuffleArray(final int[] a) {\n for (int i = 1; i < a.length; i++) {\n int j = random.nextInt(i);\n int temp = a[i];\n a[i] = a[j];\n a[j] = temp;\n }\n }", "private static void shuffleArray(int[] ar) {\n Random rnd = ThreadLocalRandom.current();\n for (int i = ar.length - 1; i > 0; i--) {\n int index = rnd.nextInt(i + 1);\n int a = ar[index];\n ar[index] = ar[i];\n ar[i] = a;\n }\n }", "public void shuffle();", "public int[] shuffle() {\r\n if (nums == null) return nums;\r\n int tmp = 0;\r\n \r\n int[] newNums = nums.clone();\r\n \r\n for (int i=1; i<newNums.length; i++) {\r\n int selectPos = rd.nextInt(i+1);\r\n tmp = newNums[i];\r\n newNums[i] = newNums[selectPos];\r\n newNums[selectPos] = tmp;\r\n }\r\n \r\n return newNums;\r\n }", "public int[] shuffle() {\r\n int max = nums.length - 1;\r\n for (int i = 0; i < nums.length; i++) {\r\n int index = new Random().nextInt(max)%(max - i + 1) + i;\r\n int tmp = nums[i];\r\n nums[i] = nums[index];\r\n nums[index] = tmp;\r\n }\r\n return nums;\r\n }", "public static void shuffle(int[] array)\n {\n int n = array.length;\n for (int i = 0; i < n; i++)\n {\n // choose index uniformly in [0, i]\n //explicit conversion to int\n int r = (int) (Math.random() * (i + 1));\n swap(array,r,i);\n }\n }", "public int[] shuffle() {\n for (int i = nums.length - 1; i >= 0; i--) {\n swap(i, rnd.nextInt(i + 1));\n }\n \n return nums;\n }", "void shuffleArray(String[] ar) {\n for (int i = ar.length - 1; i > 0; i--) {\n int index = rnd.nextInt(i + 1);\n // Simple swap\n String a = ar[index];\n ar[index] = ar[i];\n ar[i] = a;\n }\n }", "void shuffle();", "void shuffle();", "private static char[] shuffle(char[] array) {\n\t\tRandom rand = new Random();\n\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\tint randIndex = rand.nextInt(array.length - 1);\n\t\t\tchar temp = array[i];\n\t\t\tarray[i] = array[randIndex];\n\t\t\tarray[randIndex] = temp;\n\t\t}\n\t\treturn array;\n\t}", "public static void shuffle(int[] a) {\r\n int N = a.length;\r\n for (int i = 0; i < N; i++) {\r\n int r = i + uniform(N-i); // between i and N-1\r\n int temp = a[i];\r\n a[i] = a[r];\r\n a[r] = temp;\r\n }\r\n }", "public void shuffle() {\n for (int i = size - 1; i > 0; i--) {\n swap(i, (int)(Math.random() * (i + 1)));\n }\n }", "public static void shuffle( int[] a ) {\n int N = a.length;\n \n for ( int i = 0; i < N; i++ ) {\n int r = i + uniform( N - i ); // between i and N-1\n int temp = a[i];\n a[i] = a[r];\n a[r] = temp;\n }\n }", "public static int[] shuffle() {\n Random random = new Random();\n for (int i = 0; i < len; i++) {\n int j = random.nextInt(len);\n int temp = nums[i];\n nums[i] = nums[j];\n nums[j] = temp;\n }\n return nums;\n }", "static void shuffleArray(String[] ar)\r\n {\n Random rnd = ThreadLocalRandom.current();\r\n for (int i = ar.length - 1; i > 0; i--)\r\n {\r\n int index = rnd.nextInt(i + 1);\r\n // Simple swap\r\n String a = ar[index];\r\n ar[index] = ar[i];\r\n ar[i] = a;\r\n }\r\n }", "public int[] shuffle() {\n if (nums == null) {\n return null;\n }\n int[] a = nums.clone();\n for (int j = 1; j < a.length; j++) {\n // 类似蓄水池采样算法\n // i == j -> 1/(1+j)\n // j != j -> (1 - 1/(1+j)) * (1/j) = 1/(1/j)\n int i = random.nextInt(j + 1);\n swap(a, i, j);\n }\n return a;\n }", "public int[] shuffle() {\n int[] shuffle = nums.clone();\n for(int i = 0; i < shuffle.length; i++){\n int index = random.nextInt(i + 1);\n swap(shuffle,i,index);\n }\n return shuffle;\n }", "public int[] shuffle() {\n int i = random.nextInt(nums.length);\n int j = random.nextInt(nums.length);\n swap(temp, i , j);\n return temp;\n }", "public int[] shuffle() {\n int[] shuffle = new int[nums.length];\n int[] clone = nums.clone();\n int last = clone.length - 1;\n for(int i = 0; i < clone.length; i++){\n int index = random.nextInt(last + 1);\n shuffle[i] = clone[index];\n clone[index] = clone[last--];\n }\n return shuffle;\n }", "public int[] shuffle() {\n int[] res = new int[nums.length];\n int r;\n for (int i = 0; i < nums.length; i++) {\n r = random.nextInt(i + 1);\n res[i] = res[r];\n res[r] = nums[i];\n }\n\n\n return res;\n }", "static void shuffleArray(int[] ar) {\n Random rnd = new Random();\n for (int i = ar.length - 1; i > 0; i--) {\n int index = rnd.nextInt(i + 1);\n // Simple swap\n int a = ar[index];\n ar[index] = ar[i];\n ar[i] = a;\n }\n }", "public int[] shuffle() {\n int[] random = new int[nums.length];\n for (int i = 0; i < nums.length; i++) {\n // generate a random between 0 ~ i\n int r = (int)(Math.random() * (i + 1));\n random[i] = random[r];\n random[r] = nums[i];\n }\n return random;\n }", "public static void shuffle( Object[] a ) {\n int N = a.length;\n for ( int i = 0; i < N; i++ ) {\n int r = i + uniform( N - i ); // between i and N-1\n Object temp = a[i];\n a[i] = a[r];\n a[r] = temp;\n }\n }", "public int[] shuffle() {\n\t\tRandom r = new Random();\n\t\tfor (int i = 0; i < this.nums.length; i++) {\n\t\t\tint index = r.nextInt(this.nums.length);\n\t\t\tif (i != index) {\n\t\t\t\tnums[i] = nums[i] ^ nums[index];\n\t\t\t\tnums[index] = nums[i] ^ nums[index];\n\t\t\t\tnums[i] = nums[i] ^ nums[index];\n\t\t\t}\n\t\t}\n\t\treturn nums;\n\t}", "public void shuffle() {\n for (int i = 0; i < this.cards.length ; i++ ) {\n double x = Math.floor(Math.random() * ((double)this.cards.length - (double)0)) + (double)0;\n Card temp = this.cards[i];\n this.cards[i]= this.cards[(int)x];\n this.cards[(int)x]= temp;\n }\n }", "public static int[] selectionShuffle(int[] arr) { \n int temp;\n int idx;\n for(int i = 0; i < arr.length; i ++){\n idx = (int) (Math.random() * arr.length);\n temp = arr[i];\n arr[i] = arr[idx];\n arr[idx] = temp;\n }\n return arr;\n }", "public static void shuffle(Object[] a) {\r\n int N = a.length;\r\n for (int i = 0; i < N; i++) {\r\n int r = i + uniform(N-i); // between i and N-1\r\n Object temp = a[i];\r\n a[i] = a[r];\r\n a[r] = temp;\r\n }\r\n }", "public int[] shuffle() {\n int[] shuffled = Arrays.copyOf(origin, origin.length);\n \n for (int i = shuffled.length - 1; i > 0; i--) {\n int index = random.nextInt(i + 1);\n int temp = shuffled[i];\n shuffled[i] = shuffled[index];\n shuffled[index] = temp;\n }\n return shuffled;\n }", "public static void shuffle(double[] a) {\r\n int N = a.length;\r\n for (int i = 0; i < N; i++) {\r\n int r = i + uniform(N-i); // between i and N-1\r\n double temp = a[i];\r\n a[i] = a[r];\r\n a[r] = temp;\r\n }\r\n }", "public static void shuffle( double[] a ) {\n int N = a.length;\n \n for ( int i = 0; i < N; i++ ) {\n int r = i + uniform( N - i ); // between i and N-1\n double temp = a[i];\n a[i] = a[r];\n a[r] = temp;\n }\n }", "public static void shuffle(String[] arrayList){\n int num=arrayList.length; \n for(int j=0;j<60;j++){ // the number of shuffling>50 times, so I choose 60 times\n for(int i=0;i<num;i++){ \n int index=(int)(Math.random()*num);\n //Swap the position of elements in the array at that index with the first element\n String temp=arrayList[i]; \n arrayList[i]=arrayList[index];\n arrayList[index]=temp;\n }}}", "public void shuffle()\r\n\t{\r\n\t\tRandom rand = ThreadLocalRandom.current();\r\n\t\t\r\n\t\tfor (int i = topCard; i > 0; i--)\r\n\t\t{\r\n\t\t\tint index = rand.nextInt(i + 1);\r\n\t\t\tString temp = cards[index];\r\n\t\t\tcards[index] = cards[i];\r\n\t\t\tcards[i] = temp;\r\n\t\t}\r\n\t}", "public int[] shuffle() {\n int[] shuffled = new int[length];\n for (int i = 0; i < length; i++)\n shuffled[i] = nums[i];\n for (int i = 0; i < length; i++) {\n int randomIndex = (int) (Math.random() * length);\n int temp = shuffled[i];\n shuffled[i] = shuffled[randomIndex];\n shuffled[randomIndex] = temp;\n }\n return shuffled;\n }", "static public <T> void shuffle(T[] a, RNG rng) {\r\n\r\n for (int i = a.length - 1; i > 0; i--) {\r\n int j = (int) rng.random((i + 1));\r\n //System.out.println(j);\r\n T x = a[i];\r\n a[i] = a[j];\r\n a[j] = x;\r\n }\r\n \r\n }", "private static void scrambleArray(int[] a, boolean randomize) {\n\t\tfor (int k = 0; k < a.length; k++)\n\t\t\ta[k] = k;\n\t\tif (randomize) // use unpredictable random shuffle\n\t\t{\n\t\t\tRandom gen = new Random();\n\t\t\tfor (int k = 0; k < a.length; k++) {\n\t\t\t\tswap(a, k, gen.nextInt(a.length));\n\t\t\t}\n\t\t} else // use repeatable math formula for shuffle\n\t\t{\n\t\t\tint cell = (int) (a.length * 3.14159) % a.length;\n\t\t\tfor (int k = 0; k < a.length; k++) {\n\t\t\t\tswap(a, k, cell);\n\t\t\t\tcell = (int) (cell * 3.14159) % a.length;\n\t\t\t}\n\t\t}\n\n\t}", "public static void shuffle(int data[]) {\n\n }", "public static int[] shuffle(int[] deck){\n\t\tRandom rnd = new Random();\n\t for (int i = deck.length - 1; i > 0; i--)\n\t {\n\t int index = rnd.nextInt(i + 1);\n\t int a = deck[index];\n\t deck[index] = deck[i];\n\t deck[i] = a;\n\t }\n\t return deck;\n\t}", "public int[] shuffle() {\r\n\t\t\tRandom r = new Random();\r\n\t\t\tint[] shuffle = new int[this.nums.length];\r\n\t\t\tint i = 0;\r\n\t\t\tMap<Integer, Boolean> map = new HashMap<Integer, Boolean>();\r\n\t\t\twhile (i < this.nums.length) {\r\n\t\t\t\tint count = r.nextInt(this.nums.length);\r\n\t\t\t\tif (map.get(count) != null && map.get(count)) {\r\n\t\t\t\t} else {\r\n\t\t\t\t\tshuffle[i] = this.nums[count];\r\n\t\t\t\t\ti++;\r\n\t\t\t\t\tmap.put(count, true);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn shuffle;\r\n\t\t}", "public void shuffle() {\n\t\tCollections.shuffle(inds);\n\t}", "public void shuffle() {\n\t\tCollections.shuffle(Arrays.asList(reel));\n\t}", "@Override\n public <T> T[] shuffle(T[] elements) {\n return super.shuffle(elements);\n }", "public void shuffle() {\n Collections.shuffle(this);\n }", "public void shuffle() {\r\n for (int i = 0; i < this.numCards; i++) {\r\n int spot = (int) (Math.random() * ((this.numCards - 1) - i + 1) + i);\r\n Card temp = cards[i];\r\n cards[i] = cards[spot];\r\n cards[spot] = temp;\r\n\r\n\r\n }\r\n }", "public paintIntegers[] shuffle(paintIntegers[] arr){\n paintIntegers[] arrayNew = new paintIntegers[arr.length];\n paintIntegers.initPaint(arrayNew);\n //updates n\n n = arr.length;\n for(int i = 0; i < arrayNew.length; i++){\n arrayNew[i].val = i + 1;\n }//init the array with 0 to n;\n for(int i = 0; i < arrayNew.length; i++){ // shuffles the array\n //random index past current -> thats why random\n int ridx = i + rand.nextInt(arrayNew.length - i);\n //swap values\n int temp = arrayNew[ridx].val;\n arrayNew[ridx].val = arrayNew[i].val;\n arrayNew[i].val = temp;\n }\n // new origarray array\n return arrayNew.clone();\n }", "static void shuffleArray(String[] ar) {\n Random rnd = new Random();\n for (int i = ar.length - 1; i > 0; i--) {\n int index = rnd.nextInt(i + 1);\n // Simple swap\n String a = ar[index];\n ar[index] = ar[i];\n ar[i] = a;\n }\n }", "public static void scrambledArray(int[] array){\n Random rand=new Random();// use java.util.random method to scramble the index number\n for(int i=0;i<array.length;i++){\n int num=rand.nextInt(15);\n // swap the two different positioned values by swaping their index number \n int temp=array[i];\n array[i]=array[num];\n array[num]=temp; }\n }", "public abstract void shuffled();", "public Deck randomShuffle(){\n\t\tshuffleOnceRandom();\n\t\tshuffleOnceRandom();\n\t\treturn ourDeck;\n\t}", "public static List arrayShuffle(List arrayToShuffle)\n\t{\n\t\tCollections.shuffle(arrayToShuffle);\n\t\treturn arrayToShuffle;\n\t}", "public int[] shuffle() \n {\n List<Integer> al = new ArrayList(reset.length);\n //push all values of the original array onto an arraylist\n for(int i = 0; i < reset.length; i++)\n {\n al.add(reset[i]);\n }\n //shuffles the arraylist\n Collections.shuffle(al);\n return al.stream().mapToInt(Integer::intValue).toArray();\n }", "public void shuffle() {\n\t\tfor (int i = deck.length - 1; i > 0; i--) {\n\t\t\tint rand = (int) (Math.random() * (i + 1));\n\t\t\tCard temp = deck[i];\n\t\t\tdeck[i] = deck[rand];\n\t\t\tdeck[rand] = temp;\n\t\t}\n\t\tcardsUsed = 0;\n\t}", "void myshuffleArray(String[] ar1, String[] ar2) {\n for (int i = ar1.length - 1; i > 0; i--) {\n int index = rnd.nextInt(i+1);\n // Simple swap\n String a1 = ar1[index];\n String a2 = ar2[index];\n ar1[index] = ar1[i];\n ar2[index] = ar2[i];\n ar1[i]=a1;\n ar2[i]=a2;\n }\n }", "public void shuffle() {\n\t\tfor (int i = 51; i > 0; i--) {\n\t\t\tint rand = (int) (Math.random() * (i + 1));\n\t\t\tint temp = deck[i];\n\t\t\tdeck[i] = deck[rand];\n\t\t\tdeck[rand] = temp;\n\t\t}\n\t\tcurrentPosition = 0;\n\t}", "public static void knuthShuffle(Comparable[] a) {\n int r, n = a.length;\n for (int i = 1; i < n; i++) {\n r = randInt(0, i);\n exch(a, i, r);\n }\n }", "public void Shuffle() {\n\t\tCollections.shuffle(cards);\n\t}", "public void shuffle()\n\t{\n\t\tHashSet<Integer> usedRandoms = new HashSet<Integer>();\n\t\tthis.currentCard = 0;\n\t\tint i= 0;\n\t\twhile (i < deck.length)\n\t\t{\n\t\t\tint another = this.rand.nextInt(NUMBER_OF_CARDS);\n\t\t\tif(!usedRandoms.contains(another))\n\t\t\t{\n\t\t\t\tCard temp = this.deck[i];\n\t\t\t\tthis.deck[i] = this.deck[another];\n\t\t\t\tthis.deck[another] = temp;\n\t\t\t\ti++;\n\t\t\t\tusedRandoms.add(another);\n\t\t\t}\n\t\t}\n\t}", "public int[] shuffle() {\n Collections.shuffle(list);\n int[] temp = new int[list.size()];\n for (int i = 0; i < list.size(); i++) {\n temp[i] = list.get(i);\n }\n return temp;\n }", "public void scramble(){\r\n for (int i = 0; i < data.length / 2; i++){\r\n int randomIndex1 = (int)(Math.random()*(data.length - 1));\r\n int randomIndex2 = (int)(Math.random()*(data.length - 1));\r\n swap(randomIndex1, randomIndex2);\r\n }\r\n }", "public void shuffle() {\r\n\t\tCollections.shuffle(cards);\r\n\t\t// : Shuffle with random seed each time, then we can save the seed\r\n\t\t// Collections.shuffle(cards, new Random(10));\r\n\t}", "public void shuffle(){\r\n Collections.shuffle(cards);\r\n }", "public void shuffle() {\r\n\t\tCollections.shuffle(cards);\r\n\t}", "private static void scrambleArray(Integer[] a, boolean randomize) {\n\t\tfor (int k = 0; k < a.length; k++)\n\t\t\ta[k] = k;\n\t\tif (randomize) {\n\t\t\tRandom gen = new Random();\n\t\t\tfor (int k = 0; k < a.length; k++) {\n\t\t\t\tswap(a, k, gen.nextInt(a.length));\n\t\t\t}\n\t\t} else {\n\t\t\tint cell = (int) (a.length * 3.14159) % a.length;\n\t\t\tfor (int k = 0; k < a.length; k++) {\n\t\t\t\tswap(a, k, cell);\n\t\t\t\tcell = (int) (cell * 3.14159) % a.length;\n\t\t\t}\n\t\t}\n\n\t}", "public static String [] randomizeArray(String[] array){\n Random rgen = new Random(); // Random number generator\n\n for (int i=0; i<array.length; i++) {\n int randomPosition = rgen.nextInt(array.length);\n String temp = array[i];\n array[i] = array[randomPosition];\n array[randomPosition] = temp;\n }\n\n return array;\n }", "public void shuffle() {\n\t\tCollections.shuffle(Shoe);\n\t}", "public void shuffle() {\n\t\tCollections.shuffle(cards);\n\t}", "public final <T> T random(T[] array) {\n return array[random(0, array.length)];\n }", "public void shuffle()\r\n {\r\n // We will start from the last element and swap the cards one by one. We actually\r\n // don't need to swap the last element.\r\n for (int i = valid - 1; i > 0; i --) { \r\n \r\n // By using Math.random, we will get a random integer from 0 to i\r\n int j = (int) ( (i+1) * Math.random()); \r\n \r\n // Swapping with the help of temp instance of Card Class.\r\n Card temp = cards[i]; \r\n cards[i] = cards[j]; \r\n cards[j] = temp; \r\n } \r\n // Prints the random array \r\n }", "public void shuffle(){\n Collections.shuffle(Arrays.asList(this.deck));\n }", "public void shuffle() {\n\n\tcardsLeft = cards.length;\n\tfor (int i=cards.length-1; i>=0; --i) {\n\n\t int r = (int)(Math.random()*(i+1)); // pick a random pos <= i\n\n\t Card t = cards[i];\n\t cards[i] = cards[r];\n\t cards[r] = t;\n\n\t}\n }", "public void shuffle() {\n\t\t\t/*\n\t\t\t * This is very different from the sort method because:\n\t\t\t * @ we decant the cards into an array list;\n\t\t\t * @ we use a library function to do the work;\n\t\t\t * The implementation you write for the sort method should\n\t\t\t * have *neither* of these characteristics.\n\t\t\t */\n\t\t\tList<Card> cards = new ArrayList<Card>();\n\t\t\twhile (!isEmpty()) {\n\t\t\t\tcards.add(draw());\n\t\t\t}\n\t\t\tCollections.shuffle(cards);\n\t\t\tfor (Card c: cards) {\n\t\t\t\tadd(c);\n\t\t\t}\n\t\t}", "public void shuffle() {\n Collections.shuffle(this.plateau);\n }", "public void shuffle() {\n Random rand = new Random();\n for(int i = 0; i < deck.length; i++) {\n // get random index past current index\n int randomVal = i + rand.nextInt(deck.length - i);\n // swaps randomly selected card with card at index i\n Card swap = deck[randomVal];\n deck[randomVal] = deck[i];\n deck[i] = swap;\n }\n }", "public void shuffle() {\n\t\tRandom randIndex = new Random();\n\t\tint size = cards.size();\n\t\t\n\t\tfor(int shuffles = 1; shuffles <= 20; ++shuffles)\n\t\t\tfor (int i = 0; i < size; i++) \n\t\t\t\tCollections.swap(cards, i, randIndex.nextInt(size));\n\t\t\n\t}", "public static String[] randomizeHand(String[] arrayShuffle){\n String[] combine=new String[5];\n int k=-1;\n for(int i=0;i<5;i++){\n int j=(int)(Math.random()*52);\n if(j==k){continue;} // use if statements to avoid from picking up the same item twice\n else{combine[i]=arrayShuffle[j];k=j;\n }}\n return combine;}", "public void shuffle() {\n\t\tfor (int i = 0; i < cards.size(); i++){\n\t\t\t//exchange card i with the random card from i to cards.size() - 1\n\t\t\tint j = Randoms.randomIntInRange(i, cards.size() - 1);\n\t\t\tT c1 = cards.get(i);\n\t\t\tT c2 = cards.get(j);\n\t\t\tcards.set(i, c2);\n\t\t\tcards.set(j, c1);\n\t\t}\n\t}", "public void shuffle(){\n Collections.shuffle(this.deckOfCards);\n }", "private void shuffle(ArrayList<Product> dataSet) {\n\t\tfor (int i = 0; i < dataSet.size(); i++) {\n\t\t\tint k = rand(0, i);\n\t\t\tProduct temp = dataSet.get(k);\n\t\t\tdataSet.set(k, dataSet.get(i));\n\t\t\tdataSet.set(i, temp);\n\t\t}\t\n\t}", "public static void shuffle(int[] deck){\n //temporary variable for swapping the values\n int storage = 0;\n //random integer\n int randomInt;\n for(int i = 0; i < deck.length; i++){\n //set the variable equal to a random integer every time\n randomInt = (int) (Math.random() * (deck.length));\n //store the original deck[i] in storage\n //swap deck[i] and deck[randomInt]\n storage = deck[i];\n deck[i] = deck[randomInt];\n deck[randomInt] = storage;\n }\n }", "public void shuffle()\n\t{\n\t\tCollections.shuffle(card);\n\t}", "public static void arraySwaping(int array[]) {\r\n\r\n\t\tint temp, randInt;\r\n\r\n\t\tRandom rand = new Random();\r\n\r\n\t\tfor (int i = 0; i < array.length; i++) {\r\n\r\n\t\t\trandInt = rand.nextInt(array.length);\r\n\r\n\t\t\ttemp = array[i];\r\n\t\t\tarray[i] = array[randInt];\r\n\t\t\tarray[randInt] = temp;\r\n\r\n\t\t}\r\n\r\n\t}", "public void shuffle() {\n Collections.shuffle((List<Nummer>) this.albumNummers);\n }", "public JumbleBoard shuffle()\n {\n\n for (int i = 0; i < dice.length; i++)\n {\n for (int j = 0; j < dice[i].length; j++)\n {\n int a = random.nextInt(dice.length);\n int b = random.nextInt(dice[i].length);\n\n char c = dice[i][j];\n dice[i][j] = dice[a][b];\n dice[a][b] = c;\n\n }\n }\n\n return this;\n\n }", "public void shuffle() {\n Collections.shuffle(deck);\n }", "public void shuffle() {\n Collections.shuffle(deck);\n }", "public void shuffle(){\n //After shuffling dealing starts at deck[0] again\n currentCard = 0;\n //for each card , pick another random card and swap them\n for(int first = 0; first < deck.length; first++){\n int second = randomNumbers.nextInt(NUMBER_OF_CARDS);\n\n //Swap Method to swap current card with randomly selected card\n Card temp = deck[first];\n deck[first] = deck[second];\n deck[second] = temp;\n }\n }", "public void shuffle() {\n List<Card> shuffledCards = new ArrayList<>(52);\n while (cards.size() > 0) {\n int index = random.nextInt(cards.size());\n shuffledCards.add(cards.remove(index));\n }\n cards = shuffledCards;\n }", "private static void __exercise37(final int[] a) {\n final int N = a.length;\n for (int i = 0; i < N; ++i) {\n final int r = StdRandom.uniform(N);\n final int temp = a[i];\n a[i] = a[r];\n a[r] = temp;\n }\n }", "private static void __exercise36(final int[] a) {\n final int N = a.length;\n for (int i = 0; i < N; ++i) {\n final int r = i + StdRandom.uniform(N - i);\n final int temp = a[i];\n a[i] = a[r];\n a[r] = temp;\n }\n }", "private void shuffleCards(final ICard[] myCards) {\r\n ICard tmp;\r\n int rand;\r\n for (int i = ZERO; i < myCards.length; i++) {\r\n rand = rmd.nextInt(myCards.length);\r\n tmp = myCards[i];\r\n myCards[i] = myCards[rand];\r\n myCards[rand] = tmp;\r\n }\r\n }", "public static int[] shuffleArray(int[] array) {\n\t\tList<Integer> list = new ArrayList<>();\n\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\tlist.add(array[i]);\n\t\t}\n\t\tCollections.shuffle(list, rand);\n\t\treturn list.stream().mapToInt(i->i).toArray();\n\t}", "void shuffleDeck() {\n\t\tfor(int index = 0; index < this.getNumberOfCards(); index++) {\n\t\t\tint randomNumber = index + (int)(Math.random() * (this.getNumberOfCards() - index));\n\t\t\tCard temp = this.cardsInDeck[randomNumber];\n\t\t\tthis.cardsInDeck[randomNumber] = this.cardsInDeck[index];\n\t\t\tthis.cardsInDeck[index] = temp;\n\t\t}\n\t}", "static void randomize(int arr[], Random r) {\n for (int i = arr.length - 1; i > 0; i--) {\n\n // Pick a random index from 0 to i\n int j = r.nextInt(i);\n\n // Swap arr[i] with the element at random index\n int temp = arr[i];\n arr[i] = arr[j];\n arr[j] = temp;\n }\n\n }" ]
[ "0.79378474", "0.778238", "0.77558976", "0.7748851", "0.769553", "0.7656073", "0.7656073", "0.764616", "0.7633283", "0.7544139", "0.74743384", "0.745568", "0.7454164", "0.74540776", "0.74223113", "0.7409494", "0.7409494", "0.73869467", "0.73639935", "0.73605025", "0.7356231", "0.73261786", "0.7321312", "0.7306085", "0.7276382", "0.72729564", "0.72695166", "0.7260634", "0.7243679", "0.7204779", "0.7203283", "0.7188711", "0.7155403", "0.7130805", "0.7122232", "0.7105189", "0.7098895", "0.7080142", "0.7075019", "0.7061934", "0.7054396", "0.7047806", "0.7045515", "0.7018579", "0.7004252", "0.7003321", "0.7000025", "0.6998794", "0.69971424", "0.6967456", "0.6964762", "0.69614476", "0.69488674", "0.69469607", "0.69213086", "0.69037575", "0.6841731", "0.6837485", "0.6814215", "0.6774359", "0.6764662", "0.6762832", "0.67605084", "0.67281485", "0.6720151", "0.6690804", "0.66904813", "0.66734195", "0.66725683", "0.6637918", "0.66316605", "0.6630798", "0.662338", "0.6614134", "0.66097707", "0.659406", "0.6593723", "0.658347", "0.65531224", "0.65498453", "0.654241", "0.6530047", "0.652262", "0.65125597", "0.65095896", "0.6500389", "0.6454686", "0.6451233", "0.64396155", "0.642977", "0.64169085", "0.64169085", "0.64026725", "0.63826126", "0.6369169", "0.6360915", "0.63487357", "0.63424647", "0.6330985", "0.63300604" ]
0.647457
86
/ renamed from: com.facebook.drawee.backends.pipeline.b.b
public interface C13373b { /* renamed from: a */ void mo32681a(String str, int i, boolean z); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\t\t\t\t\tpublic void onFbcompleate() {\n\n\t\t\t\t\t\t\t}", "public interface Pipeline {\r\n /**\r\n * cancel the current execution\r\n */\r\n public void cancel();\r\n\r\n /**\r\n * @return true if the rendering was canceled the output is not valid if true\r\n */\r\n public boolean isCancel();\r\n\r\n /**\r\n * The pipline uses this stage to setup buffers it needs\r\n * @param state\r\n */\r\n public void initBuffers(VrState state);\r\n\r\n /**\r\n * This stage does needed transformations on the triangles to screen space\r\n * @param state\r\n */\r\n public void setupTriangles(VrState state);\r\n\r\n /**\r\n * This stage converts triangles into buffers used in the raycast\r\n * @param state\r\n */\r\n public void rasterizeTriangles(VrState state);\r\n\r\n /**\r\n * This stage generates the final image\r\n * @param state\r\n */\r\n public void raycast(VrState state);\r\n}", "public void b(Canvas paramCanvas) {\n }", "@Override\n\tpublic void bbb() {\n\t\t\n\t}", "BOp createBOp();", "public static void initialize(android.content.Context r5, @javax.annotation.Nullable com.facebook.imagepipeline.core.ImagePipelineConfig r6, @javax.annotation.Nullable com.facebook.drawee.backends.pipeline.DraweeConfig r7, boolean r8) {\n /*\n boolean r0 = com.facebook.imagepipeline.systrace.FrescoSystrace.isTracing()\n if (r0 == 0) goto L_0x000b\n java.lang.String r0 = \"Fresco#initialize\"\n com.facebook.imagepipeline.systrace.FrescoSystrace.beginSection(r0)\n L_0x000b:\n boolean r0 = com.facebook.drawee.backends.pipeline.Fresco.b\n r1 = 1\n if (r0 == 0) goto L_0x0018\n java.lang.Class<com.facebook.drawee.backends.pipeline.Fresco> r0 = com.facebook.drawee.backends.pipeline.Fresco.class\n java.lang.String r2 = \"Fresco has already been initialized! `Fresco.initialize(...)` should only be called 1 single time to avoid memory leaks!\"\n com.facebook.common.logging.FLog.w(r0, r2)\n goto L_0x001a\n L_0x0018:\n com.facebook.drawee.backends.pipeline.Fresco.b = r1\n L_0x001a:\n com.facebook.imagepipeline.core.NativeCodeSetup.setUseNativeCode(r8)\n boolean r8 = com.facebook.soloader.nativeloader.NativeLoader.isInitialized()\n if (r8 != 0) goto L_0x009b\n boolean r8 = com.facebook.imagepipeline.systrace.FrescoSystrace.isTracing()\n if (r8 == 0) goto L_0x002e\n java.lang.String r8 = \"Fresco.initialize->SoLoader.init\"\n com.facebook.imagepipeline.systrace.FrescoSystrace.beginSection(r8)\n L_0x002e:\n java.lang.String r8 = \"com.facebook.imagepipeline.nativecode.NativeCodeInitializer\"\n java.lang.Class r8 = java.lang.Class.forName(r8) // Catch:{ ClassNotFoundException -> 0x007f, IllegalAccessException -> 0x0070, InvocationTargetException -> 0x0061, NoSuchMethodException -> 0x0052 }\n java.lang.String r0 = \"init\"\n java.lang.Class[] r2 = new java.lang.Class[r1] // Catch:{ ClassNotFoundException -> 0x007f, IllegalAccessException -> 0x0070, InvocationTargetException -> 0x0061, NoSuchMethodException -> 0x0052 }\n java.lang.Class<android.content.Context> r3 = android.content.Context.class\n r4 = 0\n r2[r4] = r3 // Catch:{ ClassNotFoundException -> 0x007f, IllegalAccessException -> 0x0070, InvocationTargetException -> 0x0061, NoSuchMethodException -> 0x0052 }\n java.lang.reflect.Method r8 = r8.getMethod(r0, r2) // Catch:{ ClassNotFoundException -> 0x007f, IllegalAccessException -> 0x0070, InvocationTargetException -> 0x0061, NoSuchMethodException -> 0x0052 }\n r0 = 0\n java.lang.Object[] r1 = new java.lang.Object[r1] // Catch:{ ClassNotFoundException -> 0x007f, IllegalAccessException -> 0x0070, InvocationTargetException -> 0x0061, NoSuchMethodException -> 0x0052 }\n r1[r4] = r5 // Catch:{ ClassNotFoundException -> 0x007f, IllegalAccessException -> 0x0070, InvocationTargetException -> 0x0061, NoSuchMethodException -> 0x0052 }\n r8.invoke(r0, r1) // Catch:{ ClassNotFoundException -> 0x007f, IllegalAccessException -> 0x0070, InvocationTargetException -> 0x0061, NoSuchMethodException -> 0x0052 }\n boolean r8 = com.facebook.imagepipeline.systrace.FrescoSystrace.isTracing()\n if (r8 == 0) goto L_0x009b\n goto L_0x008d\n L_0x0050:\n r5 = move-exception\n goto L_0x0091\n L_0x0052:\n com.facebook.soloader.nativeloader.SystemDelegate r8 = new com.facebook.soloader.nativeloader.SystemDelegate // Catch:{ all -> 0x0050 }\n r8.<init>() // Catch:{ all -> 0x0050 }\n com.facebook.soloader.nativeloader.NativeLoader.init(r8) // Catch:{ all -> 0x0050 }\n boolean r8 = com.facebook.imagepipeline.systrace.FrescoSystrace.isTracing()\n if (r8 == 0) goto L_0x009b\n goto L_0x008d\n L_0x0061:\n com.facebook.soloader.nativeloader.SystemDelegate r8 = new com.facebook.soloader.nativeloader.SystemDelegate\n r8.<init>()\n com.facebook.soloader.nativeloader.NativeLoader.init(r8)\n boolean r8 = com.facebook.imagepipeline.systrace.FrescoSystrace.isTracing()\n if (r8 == 0) goto L_0x009b\n goto L_0x008d\n L_0x0070:\n com.facebook.soloader.nativeloader.SystemDelegate r8 = new com.facebook.soloader.nativeloader.SystemDelegate\n r8.<init>()\n com.facebook.soloader.nativeloader.NativeLoader.init(r8)\n boolean r8 = com.facebook.imagepipeline.systrace.FrescoSystrace.isTracing()\n if (r8 == 0) goto L_0x009b\n goto L_0x008d\n L_0x007f:\n com.facebook.soloader.nativeloader.SystemDelegate r8 = new com.facebook.soloader.nativeloader.SystemDelegate\n r8.<init>()\n com.facebook.soloader.nativeloader.NativeLoader.init(r8)\n boolean r8 = com.facebook.imagepipeline.systrace.FrescoSystrace.isTracing()\n if (r8 == 0) goto L_0x009b\n L_0x008d:\n com.facebook.imagepipeline.systrace.FrescoSystrace.endSection()\n goto L_0x009b\n L_0x0091:\n boolean r6 = com.facebook.imagepipeline.systrace.FrescoSystrace.isTracing()\n if (r6 == 0) goto L_0x009a\n com.facebook.imagepipeline.systrace.FrescoSystrace.endSection()\n L_0x009a:\n throw r5\n L_0x009b:\n android.content.Context r5 = r5.getApplicationContext()\n if (r6 != 0) goto L_0x00a5\n com.facebook.imagepipeline.core.ImagePipelineFactory.initialize(r5)\n goto L_0x00a8\n L_0x00a5:\n com.facebook.imagepipeline.core.ImagePipelineFactory.initialize(r6)\n L_0x00a8:\n boolean r6 = com.facebook.imagepipeline.systrace.FrescoSystrace.isTracing()\n if (r6 == 0) goto L_0x00b3\n java.lang.String r6 = \"Fresco.initializeDrawee\"\n com.facebook.imagepipeline.systrace.FrescoSystrace.beginSection(r6)\n L_0x00b3:\n com.facebook.drawee.backends.pipeline.PipelineDraweeControllerBuilderSupplier r6 = new com.facebook.drawee.backends.pipeline.PipelineDraweeControllerBuilderSupplier\n r6.<init>(r5, r7)\n com.facebook.drawee.backends.pipeline.Fresco.a = r6\n com.facebook.drawee.view.SimpleDraweeView.initialize(r6)\n boolean r5 = com.facebook.imagepipeline.systrace.FrescoSystrace.isTracing()\n if (r5 == 0) goto L_0x00c6\n com.facebook.imagepipeline.systrace.FrescoSystrace.endSection()\n L_0x00c6:\n boolean r5 = com.facebook.imagepipeline.systrace.FrescoSystrace.isTracing()\n if (r5 == 0) goto L_0x00cf\n com.facebook.imagepipeline.systrace.FrescoSystrace.endSection()\n L_0x00cf:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.drawee.backends.pipeline.Fresco.initialize(android.content.Context, com.facebook.imagepipeline.core.ImagePipelineConfig, com.facebook.drawee.backends.pipeline.DraweeConfig, boolean):void\");\n }", "public void onCreateCameraPipeline(com.arashivision.onestream.pipeline.ICameraPreviewPipeline r20) {\n /*\n r19 = this;\n r0 = r19\n com.arashivision.insta360.basemedia.log.MediaLogger r1 = com.arashivision.insta360.basemedia.ui.player.capture.CapturePlayerView.LL1IL\n java.lang.String r2 = \"onCreateCameraPipeline\"\n r1.d(r2)\n com.arashivision.insta360.basemedia.ui.player.capture.CapturePlayerView r1 = r0.f577a\n r2 = r20\n r1.f73l = r2\n com.arashivision.insta360.basemedia.ui.player.capture.ICaptureParams r1 = r1.IL1Iii\n com.arashivision.insta360.basemedia.model.FileType r1 = r1.getFileType()\n com.arashivision.insta360.basemedia.model.FileType r2 = com.arashivision.insta360.basemedia.model.FileType.FISH_EYE\n r3 = 1\n r4 = 0\n if (r1 != r2) goto L_0x0059\n com.arashivision.insta360.basemedia.ui.player.capture.CapturePlayerView r1 = r0.f577a\n com.arashivision.insta360.basemedia.ui.player.capture.ICaptureParams r1 = r1.IL1Iii\n com.arashivision.insta360.basemedia.model.viewconstraint.Constraint r1 = r1.getConstraint()\n com.arashivision.insta360.basemedia.ui.player.capture.CapturePlayerView r2 = r0.f577a\n com.arashivision.insta360.basemedia.ui.player.capture.ICaptureParams r2 = r2.IL1Iii\n int[] r2 = r2.getConstraintRatio()\n if (r1 == 0) goto L_0x0059\n com.arashivision.insta360.basemedia.ui.player.capture.CapturePlayerView r5 = r0.f577a\n com.arashivision.arvbmg.previewer.BMGCameraPreviewerSessionRender r6 = r5.I11L\n float r5 = r1.getDefaultDistance()\n double r9 = (double) r5\n float r5 = r1.getDefaultFov()\n double r11 = (double) r5\n r5 = r2[r3]\n float r5 = (float) r5\n r2 = r2[r4]\n float r2 = (float) r2\n float r5 = r5 / r2\n double r13 = (double) r5\n float r2 = r1.getXScale()\n double r7 = (double) r2\n float r1 = r1.getYScale()\n double r1 = (double) r1\n r15 = 4607182418800017408(0x3ff0000000000000, double:1.0)\n r17 = r7\n r7 = r15\n r15 = r17\n r17 = r1\n r6.setGyroStabilizerFovDistance2(r7, r9, r11, r13, r15, r17)\n L_0x0059:\n com.arashivision.insta360.basemedia.ui.player.capture.CapturePlayerView r1 = r0.f577a\n r1.setLoading(r4)\n com.arashivision.insta360.basemedia.ui.player.capture.CapturePlayerView r1 = r0.f577a\n if (r1 == 0) goto L_0x00cf\n com.arashivision.insta360.basemedia.ui.player.capture.IPlayCaptureParams r2 = r1.ILil\n if (r2 == 0) goto L_0x006d\n com.arashivision.insta360.basemedia.ui.player.capture.CameraRenderSurfaceInfo r2 = r2.getCameraRenderSurfaceInfo()\n if (r2 == 0) goto L_0x006d\n r4 = r3\n L_0x006d:\n if (r4 != 0) goto L_0x0077\n com.arashivision.insta360.basemedia.log.MediaLogger r1 = com.arashivision.insta360.basemedia.ui.player.capture.CapturePlayerView.LL1IL\n java.lang.String r2 = \"startCameraRenderSurface return. Custom surface is null\"\n L_0x0073:\n r1.e(r2)\n goto L_0x00c5\n L_0x0077:\n com.arashivision.arvbmg.previewer.BMGCameraPreviewerSessionRender r2 = r1.I11L\n if (r2 != 0) goto L_0x0080\n com.arashivision.insta360.basemedia.log.MediaLogger r1 = com.arashivision.insta360.basemedia.ui.player.capture.CapturePlayerView.LL1IL\n java.lang.String r2 = \"startCameraRenderSurface return. Render is null\"\n goto L_0x0073\n L_0x0080:\n boolean r2 = r1.llliI\n if (r2 == 0) goto L_0x0089\n com.arashivision.insta360.basemedia.log.MediaLogger r1 = com.arashivision.insta360.basemedia.ui.player.capture.CapturePlayerView.LL1IL\n java.lang.String r2 = \"startCameraRenderSurface return. Already render surface\"\n goto L_0x0073\n L_0x0089:\n com.arashivision.arvbmg.previewer.BMGCameraPreviewerSessionRender$CameraRenderSurfaceInfo r2 = new com.arashivision.arvbmg.previewer.BMGCameraPreviewerSessionRender$CameraRenderSurfaceInfo\n r2.<init>()\n com.arashivision.insta360.basemedia.ui.player.capture.IPlayCaptureParams r4 = r1.ILil\n com.arashivision.insta360.basemedia.ui.player.capture.CameraRenderSurfaceInfo r4 = r4.getCameraRenderSurfaceInfo()\n int r4 = r4.renderWidth\n r2.renderWidth = r4\n com.arashivision.insta360.basemedia.ui.player.capture.IPlayCaptureParams r4 = r1.ILil\n com.arashivision.insta360.basemedia.ui.player.capture.CameraRenderSurfaceInfo r4 = r4.getCameraRenderSurfaceInfo()\n int r4 = r4.renderHeight\n r2.renderHeight = r4\n a.a.a.a.e.a.e.l r4 = r1.f60IL\n com.arashivision.insta360.basemedia.ui.player.capture.IPlayCaptureParams r5 = r1.ILil\n int r5 = r5.getRenderModelType()\n com.arashivision.graphicpath.render.rendermodel.RenderModelType r4 = r4.a(r5)\n int r4 = r4.getType()\n r2.renderModeType = r4\n com.arashivision.insta360.basemedia.ui.player.capture.IPlayCaptureParams r4 = r1.ILil\n com.arashivision.insta360.basemedia.ui.player.capture.CameraRenderSurfaceInfo r4 = r4.getCameraRenderSurfaceInfo()\n android.view.Surface r4 = r4.mSurface\n r2.mSurface = r4\n com.arashivision.arvbmg.previewer.BMGCameraPreviewerSessionRender r4 = r1.I11L\n r4.startCameraRenderSurface(r2)\n r1.llliI = r3\n L_0x00c5:\n com.arashivision.insta360.basemedia.ui.player.capture.CapturePlayerView r1 = r0.f577a\n com.arashivision.insta360.basemedia.ui.player.listener.IBasePlayerViewListener r1 = r1.f741\n if (r1 == 0) goto L_0x00ce\n r1.onLoadingFinish()\n L_0x00ce:\n return\n L_0x00cf:\n r1 = 0\n throw r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: a.a.a.a.e.a.f.h.onCreateCameraPipeline(com.arashivision.onestream.pipeline.ICameraPreviewPipeline):void\");\n }", "@Override\n public void feedingHerb() {\n\n }", "public ImageProviderPipeline() {\n/* 82 */ this(null, null);\n/* */ }", "public void renderWorldBlock(bbb renderblocks, ym iba, int i, int j, int k, int md)\r\n/* 26: */ {\r\n/* 27: 26 */ int cons = 0;\r\n/* 28: 27 */ TilePipe tt = (TilePipe)CoreLib.getTileEntity(iba, i, j, k, TilePipe.class);\r\n/* 29: 29 */ if (tt == null) {\r\n/* 30: 29 */ return;\r\n/* 31: */ }\r\n/* 32: 31 */ this.context.exactTextureCoordinates = true;\r\n/* 33: 32 */ this.context.setTexFlags(55);\r\n/* 34: 33 */ this.context.setTint(1.0F, 1.0F, 1.0F);\r\n/* 35: 34 */ this.context.setPos(i, j, k);\r\n/* 36: 35 */ if (tt.CoverSides > 0)\r\n/* 37: */ {\r\n/* 38: 36 */ this.context.readGlobalLights(iba, i, j, k);\r\n/* 39: 37 */ renderCovers(tt.CoverSides, tt.Covers);\r\n/* 40: */ }\r\n/* 41: 40 */ cons = PipeLib.getConnections(iba, i, j, k);\r\n/* 42: */ \r\n/* 43: */ \r\n/* 44: */ \r\n/* 45: 44 */ this.context.setBrightness(this.block.e(iba, i, j, k));\r\n/* 46: */ \r\n/* 47: 46 */ this.context.setLocalLights(0.5F, 1.0F, 0.8F, 0.8F, 0.6F, 0.6F);\r\n/* 48: 47 */ this.context.setPos(i, j, k);\r\n/* 49: */ \r\n/* 50: 49 */ RenderLib.bindTexture(\"/eloraam/machine/machine1.png\");\r\n/* 51: */ \r\n/* 52: */ \r\n/* 53: */ \r\n/* 54: */ \r\n/* 55: */ \r\n/* 56: */ \r\n/* 57: */ \r\n/* 58: */ \r\n/* 59: */ \r\n/* 60: */ \r\n/* 61: */ \r\n/* 62: */ \r\n/* 63: */ \r\n/* 64: 63 */ renderCenterBlock(cons, 26, 28);\r\n/* 65: */ \r\n/* 66: 65 */ tt.cacheFlange();\r\n/* 67: 66 */ renderFlanges(tt.Flanges, 27);\r\n/* 68: */ \r\n/* 69: 68 */ RenderLib.unbindTexture();\r\n/* 70: */ }", "public interface PersistedCallbackFacet extends CallbackFacet {\n\n}", "@Override\r\n\tpublic Node visitPipeSkel(PipeSkelContext ctx) {\n\t\treturn super.visitPipeSkel(ctx);\r\n\t}", "public interface IFrameProcessor\n{\n /**\n * @param rawFrame Das Rohdatenframe\n * @return Das verarbeitete Frame\n */\n Bitmap processFrame(Bitmap rawFrame);\n}", "public ColourBinPanel(CameraCanvas canvas)\r\n\t{\r\n\t\tmCameraCanvas = canvas;\r\n\t\tmBinSet = new FeatureWidgetRadioManager();\r\n\t}", "@Override\n public void b() {\n }", "public void draw(GameCanvas canvas){\n if(tags.length > 0 && body != null){\n FilmstripAsset fa;\n float angle = (float)((getBody().getAngle() + Math.PI * 4) % (Math.PI * 2));\n\n if (isDead) {\n ImageAsset ia = (ImageAsset) assetMap.get(tags[4]);\n Affine2 aff = new Affine2();\n aff.setToRotationRad((float)(deadAngle + Math.PI/2));\n aff.preScale(ia.getImageScale().x,ia.getImageScale().y * 0.6f );\n aff.preTranslate(body.getPosition().x * drawScale.x, body.getPosition().y*drawScale.y);\n canvas.draw(ia.getTexture(), Color.WHITE, ia.getOrigin().x, ia.getOrigin().y,aff);\n return;\n }\n\n if (isSecondStage){\n fa = (FilmstripAsset) assetMap.get(tags[3]);\n }\n else if(angle <= Math.PI*0.25f || angle > Math.PI*1.75f){\n fa = (FilmstripAsset) assetMap.get(tags[1]);\n }\n else if(angle <= Math.PI*0.75f && angle > Math.PI*0.25f){\n fa = (FilmstripAsset) assetMap.get(tags[2]);\n }\n else if(angle <= Math.PI*1.25f && angle > Math.PI*0.75f){\n fa = (FilmstripAsset) assetMap.get(tags[0]);\n }\n else {\n fa = (FilmstripAsset) assetMap.get(tags[3]);\n }\n\n if(fa != null){\n int nFrame = (GameObject.counter / fa.getSpeed()) % fa.getNumFrames();\n TextureRegion texture = fa.getTexture(nFrame/2);\n\n Affine2 aff = new Affine2();\n aff.setToScaling(fa.getImageScale().x * 1, fa.getImageScale().y * 0.7f);\n aff.preShear(-0.2f, 0);\n aff.preTranslate((body.getPosition().x)* drawScale.x - fa.getImageScale().x * fa.getTexture(nFrame/2).getRegionWidth() * 0.05f , (body.getPosition().y -0.2f ) * drawScale.y - fa.getTexture(nFrame/2).getRegionHeight() * fa.getImageScale().y * 0.05f);\n canvas.draw(fa.getTexture(nFrame/2), new Color(0,0,0,0.5f), fa.getOrigin().x, fa.getOrigin().y, aff);\n\n canvas.draw(texture, Color.WHITE,fa.getOrigin().x,fa.getOrigin().y,body.getPosition().x*drawScale.x,body.getPosition().y*drawScale.x,0,fa.getImageScale().x,fa.getImageScale().y);\n }\n }\n }", "public final /* bridge */ /* synthetic */ void b(Object obj) {\n cjj cjj = (cjj) obj;\n if (cjj != null) {\n this.c.c.setImageBitmap(cjj.b);\n AlphaAnimation alphaAnimation = new AlphaAnimation(0.0f, 1.0f);\n alphaAnimation.setDuration((long) this.c.g);\n alphaAnimation.setFillAfter(true);\n int a = cjj.a.a(-1);\n this.c.b.getProgressDrawable().setTint(a);\n this.c.b.getIndeterminateDrawable().setTint(a);\n chm.a(this.c.c, alphaAnimation);\n }\n }", "public abstract void mo3997b(Canvas canvas);", "public ImageProviderPipeline(ImageLoader loader) {\n/* 74 */ this(null, loader);\n/* */ }", "protected void mo5609b() {\n if (getVideoView() != null) {\n getVideoView().getEventBus().m5031b(this.f5896c, this.f5895b, this.f5897d);\n }\n super.mo5609b();\n }", "@Override\n\tpublic void b() {\n\n\t}", "public interface BitmapLoadCallback {\n /* renamed from: a */\n void mo37810a();\n\n /* renamed from: a */\n void mo37811a(Bitmap bitmap, ExifInfo bVar);\n}", "@Override\r\n\tpublic void visit(ParkB parkB) {\n\t\t\r\n\t}", "public void renderGraphics(BufferStrategy b) {\n\t\tGraphics g = b.getDrawGraphics();\n\t\tg.setColor(new Color(135, 206, 235));\n\t\tg.fillRect(0, 0, frame.getWidth(), frame.getHeight());\n\t\t//g.translate(handler.getCamera().getX(), handler.getCamera().getY());\n\t\tnotifyObservers((Object)g);\n\t\tg.dispose();\n\t\tb.show();\n\t}", "@Override\n\tpublic void b2() {\n\t\t\n\t}", "@Override\n public void useSkiPass() {\n \n }", "IGraphEngine graphEngineFactory();", "public ImageProviderPipeline(ImageCache cache, ImageLoader loader) {\n/* 65 */ this.cache = cache;\n/* 66 */ setImageLoader(loader);\n/* */ }", "public int getRenderBlockPass(){\r\n return 1;\r\n }", "void dynamicRendering(ConversationBlip startBlip);", "private static byte[] m2536b(Context context) {\n byte[] c = StatisticsManager.m2537c(context);\n byte[] e = StatisticsManager.m2539e(context);\n byte[] bArr = new byte[(c.length + e.length)];\n System.arraycopy(c, 0, bArr, 0, c.length);\n System.arraycopy(e, 0, bArr, c.length, e.length);\n return StatisticsManager.m2534a(context, bArr);\n }", "@Override\n\t\t\t\t\t\t\tpublic void onFacebookError(FacebookError e, Object state) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}", "@Override\n public void prerender() {\n }", "private void b(com.tencent.mm.plugin.appbrand.k.g r38) {\n /*\n r37 = this;\n r0 = r38;\n r0 = r0.mUrl;\n r26 = r0;\n r0 = r38;\n r0 = r0.glh;\n r27 = r0;\n r0 = r38;\n r0 = r0.mName;\n r19 = r0;\n r0 = r38;\n r5 = r0.mMimeType;\n r4 = \"application/octet-stream\";\n r6 = com.tencent.mm.sdk.platformtools.bi.oW(r5);\n if (r6 == 0) goto L_0x0093;\n L_0x001f:\n r13 = r4;\n L_0x0020:\n r0 = r38;\n r0 = r0.mFileName;\n r28 = r0;\n r4 = \"MicroMsg.AppBrandNetworkUpload\";\n r5 = \"uploadFile filename %s\";\n r6 = 1;\n r6 = new java.lang.Object[r6];\n r7 = 0;\n r6[r7] = r28;\n com.tencent.mm.sdk.platformtools.x.v(r4, r5, r6);\n r0 = r38;\n r0 = r0.gli;\n r29 = r0;\n r0 = r38;\n r0 = r0.gkX;\n r30 = r0;\n r23 = 0;\n r24 = 0;\n r22 = 0;\n r20 = 0;\n r0 = r38;\n r4 = r0.glj;\n r0 = r38;\n r0 = r0.gkY;\n r31 = r0;\n if (r31 == 0) goto L_0x0095;\n L_0x0055:\n r0 = r31;\n r1 = r26;\n r5 = com.tencent.mm.plugin.appbrand.k.i.b(r0, r1);\n if (r5 != 0) goto L_0x0095;\n L_0x005f:\n r5 = \"fail:url not in domain list\";\n r4.tS(r5);\n r0 = r37;\n r4 = r0.glg;\n r4 = r4.mAppId;\n r0 = r38;\n r5 = r0.glc;\n r6 = \"POST\";\n r0 = r38;\n r7 = r0.mUrl;\n r8 = 0;\n r10 = 0;\n r12 = 0;\n r13 = 2;\n r14 = r38.alt();\n com.tencent.mm.plugin.appbrand.report.a.l.a(r4, r5, r6, r7, r8, r10, r12, r13, r14);\n r4 = \"MicroMsg.AppBrandNetworkUpload\";\n r5 = \"not in domain url %s\";\n r6 = 1;\n r6 = new java.lang.Object[r6];\n r7 = 0;\n r6[r7] = r26;\n com.tencent.mm.sdk.platformtools.x.i(r4, r5, r6);\n L_0x0092:\n return;\n L_0x0093:\n r13 = r5;\n goto L_0x0020;\n L_0x0095:\n r15 = 0;\n r18 = 0;\n r17 = 0;\n r14 = 0;\n r0 = r38;\n r5 = r0.bgH;\n if (r5 != 0) goto L_0x00cf;\n L_0x00a1:\n r5 = \"force_stop!\";\n r4.tS(r5);\n r0 = r37;\n r4 = r0.glg;\n r4 = r4.mAppId;\n r0 = r38;\n r5 = r0.glc;\n r6 = \"POST\";\n r0 = r38;\n r7 = r0.mUrl;\n r8 = 0;\n r10 = 0;\n r12 = 0;\n r13 = 2;\n r14 = r38.alt();\n com.tencent.mm.plugin.appbrand.report.a.l.a(r4, r5, r6, r7, r8, r10, r12, r13, r14);\n r4 = \"MicroMsg.AppBrandNetworkUpload\";\n r5 = \"force stop!\";\n com.tencent.mm.sdk.platformtools.x.e(r4, r5);\n goto L_0x0092;\n L_0x00cf:\n r0 = r38;\n r5 = r0.mUrl;\n r5 = android.webkit.URLUtil.isHttpsUrl(r5);\n if (r5 != 0) goto L_0x0108;\n L_0x00d9:\n r0 = r38;\n r5 = r0.mUrl;\n r5 = android.webkit.URLUtil.isHttpUrl(r5);\n if (r5 != 0) goto L_0x0108;\n L_0x00e3:\n r5 = \"uploadFile protocol must be http or https\";\n r4.tS(r5);\n r0 = r37;\n r4 = r0.glg;\n r4 = r4.mAppId;\n r0 = r38;\n r5 = r0.glc;\n r6 = \"POST\";\n r0 = r38;\n r7 = r0.mUrl;\n r8 = 0;\n r10 = 0;\n r12 = 0;\n r13 = 2;\n r14 = r38.alt();\n com.tencent.mm.plugin.appbrand.report.a.l.a(r4, r5, r6, r7, r8, r10, r12, r13, r14);\n goto L_0x0092;\n L_0x0108:\n r32 = \"--\";\n r6 = java.lang.System.currentTimeMillis();\n r33 = java.lang.Long.toString(r6);\n r34 = \"\\r\\n\";\n r25 = \"\";\n r5 = com.tencent.mm.plugin.report.service.h.mEJ;\t Catch:{ UnsupportedEncodingException -> 0x1041, FileNotFoundException -> 0x100d, SSLHandshakeException -> 0x0fcf, SocketTimeoutException -> 0x0b47, SSLProtocolException -> 0x0c34, Exception -> 0x0d21, all -> 0x0e1c }\n r6 = 436; // 0x1b4 float:6.11E-43 double:2.154E-321;\n r8 = 0;\n r10 = 1;\n r12 = 0;\n r5.a(r6, r8, r10, r12);\t Catch:{ UnsupportedEncodingException -> 0x1041, FileNotFoundException -> 0x100d, SSLHandshakeException -> 0x0fcf, SocketTimeoutException -> 0x0b47, SSLProtocolException -> 0x0c34, Exception -> 0x0d21, all -> 0x0e1c }\n r7 = new java.io.File;\t Catch:{ UnsupportedEncodingException -> 0x1041, FileNotFoundException -> 0x100d, SSLHandshakeException -> 0x0fcf, SocketTimeoutException -> 0x0b47, SSLProtocolException -> 0x0c34, Exception -> 0x0d21, all -> 0x0e1c }\n r0 = r27;\n r7.<init>(r0);\t Catch:{ UnsupportedEncodingException -> 0x1041, FileNotFoundException -> 0x100d, SSLHandshakeException -> 0x0fcf, SocketTimeoutException -> 0x0b47, SSLProtocolException -> 0x0c34, Exception -> 0x0d21, all -> 0x0e1c }\n r16 = new java.io.FileInputStream;\t Catch:{ UnsupportedEncodingException -> 0x1041, FileNotFoundException -> 0x100d, SSLHandshakeException -> 0x0fcf, SocketTimeoutException -> 0x0b47, SSLProtocolException -> 0x0c34, Exception -> 0x0d21, all -> 0x0e1c }\n r0 = r16;\n r0.<init>(r7);\t Catch:{ UnsupportedEncodingException -> 0x1041, FileNotFoundException -> 0x100d, SSLHandshakeException -> 0x0fcf, SocketTimeoutException -> 0x0b47, SSLProtocolException -> 0x0c34, Exception -> 0x0d21, all -> 0x0e1c }\n r14 = new java.net.URL;\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r0 = r26;\n r14.<init>(r0);\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r5 = r14.openConnection();\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r0 = r5;\n r0 = (java.net.HttpURLConnection) r0;\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r15 = r0;\n r0 = r38;\n r5 = r0.fEl;\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r5 = com.tencent.mm.sdk.platformtools.bi.oW(r5);\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n if (r5 != 0) goto L_0x0150;\n L_0x014c:\n r0 = r38;\n r0.glb = r15;\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n L_0x0150:\n r5 = r15 instanceof javax.net.ssl.HttpsURLConnection;\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n if (r5 == 0) goto L_0x018a;\n L_0x0154:\n r0 = r37;\n r5 = r0.glg;\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r5 = r5.gkD;\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n if (r5 != 0) goto L_0x016c;\n L_0x015c:\n r0 = r37;\n r5 = r0.glg;\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r0 = r37;\n r6 = r0.glg;\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r6 = r6.mAppId;\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r6 = com.tencent.mm.plugin.appbrand.k.i.uP(r6);\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r5.gkD = r6;\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n L_0x016c:\n r0 = r37;\n r5 = r0.glg;\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r5 = r5.gkD;\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n if (r5 == 0) goto L_0x018a;\n L_0x0174:\n r0 = r15;\n r0 = (javax.net.ssl.HttpsURLConnection) r0;\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r5 = r0;\n r0 = r37;\n r6 = r0.glg;\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r6 = r6.gkD;\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r6 = r6.getSocketFactory();\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r5.setSSLSocketFactory(r6);\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r0 = r31;\n com.tencent.mm.plugin.appbrand.k.i.a(r15, r0);\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n L_0x018a:\n r5 = 1;\n r15.setDoInput(r5);\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r5 = 1;\n r15.setDoOutput(r5);\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r5 = 0;\n r15.setUseCaches(r5);\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r0 = r38;\n r5 = r0.gkT;\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r15.setConnectTimeout(r5);\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r0 = r38;\n r5 = r0.gkT;\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r15.setReadTimeout(r5);\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r5 = \"POST\";\n r15.setRequestMethod(r5);\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r5 = \"Connection\";\n r6 = \"Keep-Alive\";\n r15.setRequestProperty(r5, r6);\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r5 = \"Accept-Encoding\";\n r6 = \"gzip\";\n r15.setRequestProperty(r5, r6);\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r5 = \"MicroMsg.AppBrandNetworkUpload\";\n r6 = \"file path = %s, length = %d\";\n r8 = 2;\n r8 = new java.lang.Object[r8];\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r9 = 0;\n r10 = r7.getAbsolutePath();\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r8[r9] = r10;\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r9 = 1;\n r10 = r7.length();\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r10 = java.lang.Long.valueOf(r10);\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r8[r9] = r10;\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n com.tencent.mm.sdk.platformtools.x.i(r5, r6, r8);\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r5 = 0;\n r15.setInstanceFollowRedirects(r5);\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n if (r30 == 0) goto L_0x0364;\n L_0x01e0:\n r5 = \"MicroMsg.AppBrandNetworkUpload\";\n r6 = \"url %s : set header \";\n r8 = 1;\n r8 = new java.lang.Object[r8];\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r9 = 0;\n r8[r9] = r26;\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n com.tencent.mm.sdk.platformtools.x.i(r5, r6, r8);\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r5 = r30.entrySet();\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r8 = r5.iterator();\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n L_0x01f7:\n r5 = r8.hasNext();\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n if (r5 == 0) goto L_0x0364;\n L_0x01fd:\n r5 = r8.next();\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r0 = r5;\n r0 = (java.util.Map.Entry) r0;\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r6 = r0;\n r5 = \"MicroMsg.AppBrandNetworkUpload\";\n r9 = \"set header for : url %s : key:%s ,value %s \";\n r10 = 3;\n r10 = new java.lang.Object[r10];\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r11 = 0;\n r10[r11] = r26;\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r11 = 1;\n r12 = r6.getKey();\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r10[r11] = r12;\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r11 = 2;\n r12 = r6.getValue();\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r10[r11] = r12;\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n com.tencent.mm.sdk.platformtools.x.i(r5, r9, r10);\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r5 = r6.getKey();\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r5 = (java.lang.String) r5;\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r5 = com.tencent.mm.sdk.platformtools.bi.oW(r5);\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n if (r5 != 0) goto L_0x01f7;\n L_0x022e:\n r5 = r6.getValue();\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r5 = (java.lang.String) r5;\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r5 = com.tencent.mm.sdk.platformtools.bi.oW(r5);\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n if (r5 != 0) goto L_0x01f7;\n L_0x023a:\n r5 = r6.getKey();\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r5 = (java.lang.String) r5;\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r5 = r5.toLowerCase();\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r9 = \"content-length\";\n r5 = r5.contains(r9);\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n if (r5 == 0) goto L_0x02d5;\n L_0x024d:\n r5 = \"MicroMsg.AppBrandNetworkUpload\";\n r6 = \"not allow to set Content-Length\";\n com.tencent.mm.sdk.platformtools.x.e(r5, r6);\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n goto L_0x01f7;\n L_0x0257:\n r5 = move-exception;\n r13 = r5;\n L_0x0259:\n r5 = com.tencent.mm.plugin.report.service.h.mEJ;\t Catch:{ all -> 0x0edb }\n r6 = 436; // 0x1b4 float:6.11E-43 double:2.154E-321;\n r8 = 1;\n r10 = 1;\n r12 = 0;\n r5.a(r6, r8, r10, r12);\t Catch:{ all -> 0x0edb }\n r5 = \"MicroMsg.AppBrandNetworkUpload\";\n r6 = \"UnsupportEncodingException : %s ,url is %s filepath %s \";\n r7 = 3;\n r7 = new java.lang.Object[r7];\t Catch:{ all -> 0x0edb }\n r8 = 0;\n r9 = r13.toString();\t Catch:{ all -> 0x0edb }\n r7[r8] = r9;\t Catch:{ all -> 0x0edb }\n r8 = 1;\n r7[r8] = r26;\t Catch:{ all -> 0x0edb }\n r8 = 2;\n r7[r8] = r27;\t Catch:{ all -> 0x0edb }\n com.tencent.mm.sdk.platformtools.x.printErrStackTrace(r5, r13, r6, r7);\t Catch:{ all -> 0x0edb }\n r5 = -1;\n r6 = \"unsupported encoding\";\n r0 = r22;\n r4.e(r5, r6, r0);\t Catch:{ all -> 0x0edb }\n r0 = r37;\n r4 = r0.glg;\n r4 = r4.mAppId;\n r0 = r38;\n r5 = r0.glc;\n r6 = \"POST\";\n r0 = r38;\n r7 = r0.mUrl;\n r0 = r23;\n r10 = (long) r0;\n r13 = 2;\n r14 = r38.alt();\n r8 = r20;\n r12 = r22;\n com.tencent.mm.plugin.appbrand.report.a.l.a(r4, r5, r6, r7, r8, r10, r12, r13, r14);\n r4 = 0;\n r0 = r38;\n r0.bgH = r4;\n r0 = r37;\n r4 = r0.glg;\n r0 = r38;\n r5 = r0.fEl;\n com.tencent.mm.plugin.appbrand.k.f.a(r4, r5, r15);\n if (r16 == 0) goto L_0x02bc;\n L_0x02b9:\n r16.close();\t Catch:{ Exception -> 0x09f1 }\n L_0x02bc:\n if (r17 == 0) goto L_0x02c1;\n L_0x02be:\n r17.close();\t Catch:{ IOException -> 0x0a0d, ArrayIndexOutOfBoundsException -> 0x0a29, Throwable -> 0x0a38 }\n L_0x02c1:\n if (r18 == 0) goto L_0x02c6;\n L_0x02c3:\n r18.close();\t Catch:{ IOException -> 0x0a47 }\n L_0x02c6:\n r0 = r37;\n r4 = r0.glg;\n r4 = r4.gkF;\n r0 = r38;\n r5 = r0.fEl;\n r4.remove(r5);\n goto L_0x0092;\n L_0x02d5:\n r5 = r6.getKey();\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r5 = (java.lang.String) r5;\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r6 = r6.getValue();\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r6 = (java.lang.String) r6;\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r15.setRequestProperty(r5, r6);\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n goto L_0x01f7;\n L_0x02e6:\n r5 = move-exception;\n r13 = r5;\n L_0x02e8:\n r5 = com.tencent.mm.plugin.report.service.h.mEJ;\t Catch:{ all -> 0x0edb }\n r6 = 436; // 0x1b4 float:6.11E-43 double:2.154E-321;\n r8 = 3;\n r10 = 1;\n r12 = 0;\n r5.a(r6, r8, r10, r12);\t Catch:{ all -> 0x0edb }\n r5 = \"MicroMsg.AppBrandNetworkUpload\";\n r6 = \"FileNotFoundException : %s ,url is %s filepath %s \";\n r7 = 3;\n r7 = new java.lang.Object[r7];\t Catch:{ all -> 0x0edb }\n r8 = 0;\n r9 = r13.toString();\t Catch:{ all -> 0x0edb }\n r7[r8] = r9;\t Catch:{ all -> 0x0edb }\n r8 = 1;\n r7[r8] = r26;\t Catch:{ all -> 0x0edb }\n r8 = 2;\n r7[r8] = r27;\t Catch:{ all -> 0x0edb }\n com.tencent.mm.sdk.platformtools.x.printErrStackTrace(r5, r13, r6, r7);\t Catch:{ all -> 0x0edb }\n r5 = -1;\n r6 = \"file not exist\";\n r0 = r22;\n r4.e(r5, r6, r0);\t Catch:{ all -> 0x0edb }\n r0 = r37;\n r4 = r0.glg;\n r4 = r4.mAppId;\n r0 = r38;\n r5 = r0.glc;\n r6 = \"POST\";\n r0 = r38;\n r7 = r0.mUrl;\n r0 = r23;\n r10 = (long) r0;\n r13 = 2;\n r14 = r38.alt();\n r8 = r20;\n r12 = r22;\n com.tencent.mm.plugin.appbrand.report.a.l.a(r4, r5, r6, r7, r8, r10, r12, r13, r14);\n r4 = 0;\n r0 = r38;\n r0.bgH = r4;\n r0 = r37;\n r4 = r0.glg;\n r0 = r38;\n r5 = r0.fEl;\n com.tencent.mm.plugin.appbrand.k.f.a(r4, r5, r15);\n if (r16 == 0) goto L_0x034b;\n L_0x0348:\n r16.close();\t Catch:{ Exception -> 0x0a63 }\n L_0x034b:\n if (r17 == 0) goto L_0x0350;\n L_0x034d:\n r17.close();\t Catch:{ IOException -> 0x0a7f, ArrayIndexOutOfBoundsException -> 0x0a9b, Throwable -> 0x0aaa }\n L_0x0350:\n if (r18 == 0) goto L_0x0355;\n L_0x0352:\n r18.close();\t Catch:{ IOException -> 0x0ab9 }\n L_0x0355:\n r0 = r37;\n r4 = r0.glg;\n r4 = r4.gkF;\n r0 = r38;\n r5 = r0.fEl;\n r4.remove(r5);\n goto L_0x0092;\n L_0x0364:\n r5 = \"User-Agent\";\n r6 = com.tencent.mm.sdk.platformtools.ad.getContext();\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r0 = r37;\n r8 = r0.glg;\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r8 = r8.gkE;\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r6 = com.tencent.mm.pluginsdk.ui.tools.s.aV(r6, r8);\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r15.setRequestProperty(r5, r6);\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r8 = r7.length();\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r10 = new java.lang.StringBuilder;\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r10.<init>();\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r11 = new java.lang.StringBuilder;\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r11.<init>();\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n if (r29 == 0) goto L_0x0545;\n L_0x0388:\n r5 = \"Content-Type\";\n r6 = new java.lang.StringBuilder;\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r12 = \"multipart/form-data; boundary=\";\n r6.<init>(r12);\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r0 = r33;\n r6 = r6.append(r0);\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r6 = r6.toString();\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r15.setRequestProperty(r5, r6);\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r5 = r29.keySet();\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r12 = r5.iterator();\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n L_0x03a8:\n r5 = r12.hasNext();\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n if (r5 == 0) goto L_0x04b1;\n L_0x03ae:\n r5 = r12.next();\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r5 = (java.lang.String) r5;\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r0 = r29;\n r6 = r0.get(r5);\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r6 = (java.lang.String) r6;\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r30 = \"MicroMsg.AppBrandNetworkUpload\";\n r31 = \"append form data: key = %s, value = %s\";\n r35 = 2;\n r0 = r35;\n r0 = new java.lang.Object[r0];\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r35 = r0;\n r36 = 0;\n r35[r36] = r5;\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r36 = 1;\n r35[r36] = r6;\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r0 = r30;\n r1 = r31;\n r2 = r35;\n com.tencent.mm.sdk.platformtools.x.i(r0, r1, r2);\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r30 = new java.lang.StringBuilder;\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r30.<init>();\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r0 = r30;\n r1 = r32;\n r30 = r0.append(r1);\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r0 = r30;\n r1 = r33;\n r30 = r0.append(r1);\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r0 = r30;\n r1 = r34;\n r30 = r0.append(r1);\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r30 = r30.toString();\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r0 = r30;\n r10.append(r0);\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r30 = new java.lang.StringBuilder;\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r31 = \"Content-Disposition: form-data; name=\\\"\";\n r30.<init>(r31);\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r0 = r30;\n r5 = r0.append(r5);\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r30 = \"\\\"\";\n r0 = r30;\n r5 = r5.append(r0);\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r5 = r5.toString();\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r10.append(r5);\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r0 = r34;\n r10.append(r0);\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r0 = r34;\n r10.append(r0);\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r10.append(r6);\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r0 = r34;\n r10.append(r0);\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n goto L_0x03a8;\n L_0x0433:\n r5 = move-exception;\n r13 = r5;\n L_0x0435:\n r5 = com.tencent.mm.plugin.report.service.h.mEJ;\t Catch:{ all -> 0x0edb }\n r6 = 436; // 0x1b4 float:6.11E-43 double:2.154E-321;\n r8 = 2;\n r10 = 1;\n r12 = 0;\n r5.a(r6, r8, r10, r12);\t Catch:{ all -> 0x0edb }\n r5 = \"MicroMsg.AppBrandNetworkUpload\";\n r6 = \"SSLHandshakeException : %s ,url is %s filepath %s \";\n r7 = 3;\n r7 = new java.lang.Object[r7];\t Catch:{ all -> 0x0edb }\n r8 = 0;\n r9 = r13.toString();\t Catch:{ all -> 0x0edb }\n r7[r8] = r9;\t Catch:{ all -> 0x0edb }\n r8 = 1;\n r7[r8] = r26;\t Catch:{ all -> 0x0edb }\n r8 = 2;\n r7[r8] = r27;\t Catch:{ all -> 0x0edb }\n com.tencent.mm.sdk.platformtools.x.printErrStackTrace(r5, r13, r6, r7);\t Catch:{ all -> 0x0edb }\n r5 = -1;\n r6 = \"ssl hand shake error\";\n r0 = r22;\n r4.e(r5, r6, r0);\t Catch:{ all -> 0x0edb }\n r0 = r37;\n r4 = r0.glg;\n r4 = r4.mAppId;\n r0 = r38;\n r5 = r0.glc;\n r6 = \"POST\";\n r0 = r38;\n r7 = r0.mUrl;\n r0 = r23;\n r10 = (long) r0;\n r13 = 2;\n r14 = r38.alt();\n r8 = r20;\n r12 = r22;\n com.tencent.mm.plugin.appbrand.report.a.l.a(r4, r5, r6, r7, r8, r10, r12, r13, r14);\n r4 = 0;\n r0 = r38;\n r0.bgH = r4;\n r0 = r37;\n r4 = r0.glg;\n r0 = r38;\n r5 = r0.fEl;\n com.tencent.mm.plugin.appbrand.k.f.a(r4, r5, r15);\n if (r16 == 0) goto L_0x0498;\n L_0x0495:\n r16.close();\t Catch:{ Exception -> 0x0ad5 }\n L_0x0498:\n if (r17 == 0) goto L_0x049d;\n L_0x049a:\n r17.close();\t Catch:{ IOException -> 0x0af1, ArrayIndexOutOfBoundsException -> 0x0b0d, Throwable -> 0x0b1c }\n L_0x049d:\n if (r18 == 0) goto L_0x04a2;\n L_0x049f:\n r18.close();\t Catch:{ IOException -> 0x0b2b }\n L_0x04a2:\n r0 = r37;\n r4 = r0.glg;\n r4 = r4.gkF;\n r0 = r38;\n r5 = r0.fEl;\n r4.remove(r5);\n goto L_0x0092;\n L_0x04b1:\n r5 = new java.lang.StringBuilder;\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r5.<init>();\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r0 = r32;\n r5 = r5.append(r0);\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r0 = r33;\n r5 = r5.append(r0);\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r0 = r34;\n r5 = r5.append(r0);\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r5 = r5.toString();\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r10.append(r5);\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r5 = new java.lang.StringBuilder;\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r6 = \"Content-Disposition: form-data; name=\\\"\";\n r5.<init>(r6);\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r0 = r19;\n r5 = r5.append(r0);\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r6 = \"\\\"; filename=\\\"\";\n r5 = r5.append(r6);\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r0 = r28;\n r5 = r5.append(r0);\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r6 = \"\\\"\";\n r5 = r5.append(r6);\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r0 = r34;\n r5 = r5.append(r0);\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r5 = r5.toString();\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r10.append(r5);\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r5 = new java.lang.StringBuilder;\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r6 = \"Content-Type: \";\n r5.<init>(r6);\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r5 = r5.append(r13);\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r5 = r5.toString();\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r10.append(r5);\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r0 = r34;\n r10.append(r0);\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r0 = r34;\n r10.append(r0);\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r5 = new java.lang.StringBuilder;\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r5.<init>();\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r0 = r34;\n r5 = r5.append(r0);\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r0 = r32;\n r5 = r5.append(r0);\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r0 = r33;\n r5 = r5.append(r0);\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r0 = r32;\n r5 = r5.append(r0);\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r0 = r34;\n r5 = r5.append(r0);\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r5 = r5.toString();\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r11.append(r5);\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n L_0x0545:\n r5 = r10.toString();\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r6 = \"UTF-8\";\n r6 = r5.getBytes(r6);\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r5 = r11.toString();\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r10 = \"UTF-8\";\n r5 = r5.getBytes(r10);\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n if (r6 != 0) goto L_0x0560;\n L_0x055d:\n r6 = 0;\n r6 = new byte[r6];\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n L_0x0560:\n if (r5 != 0) goto L_0x107e;\n L_0x0562:\n r5 = 0;\n r5 = new byte[r5];\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r11 = r5;\n L_0x0566:\n r5 = r6.length;\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r12 = (long) r5;\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r8 = r8 + r12;\n r5 = r11.length;\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r12 = (long) r5;\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r8 = r8 + r12;\n r5 = \"MicroMsg.AppBrandNetworkUpload\";\n r10 = \"contentLenght = %d\";\n r12 = 1;\n r12 = new java.lang.Object[r12];\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r13 = 0;\n r19 = java.lang.Long.valueOf(r8);\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r12[r13] = r19;\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n com.tencent.mm.sdk.platformtools.x.i(r5, r10, r12);\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r5 = \"Content-Length\";\n r10 = java.lang.String.valueOf(r8);\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r15.setRequestProperty(r5, r10);\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r5 = com.tencent.mm.plugin.appbrand.k.i.f(r15);\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r4.t(r5);\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r19 = new java.io.DataOutputStream;\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r5 = r15.getOutputStream();\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r0 = r19;\n r0.<init>(r5);\t Catch:{ UnsupportedEncodingException -> 0x0257, FileNotFoundException -> 0x02e6, SSLHandshakeException -> 0x0433, SocketTimeoutException -> 0x0f93, SSLProtocolException -> 0x0f57, Exception -> 0x0f1b }\n r0 = r19;\n r0.write(r6);\t Catch:{ UnsupportedEncodingException -> 0x1047, FileNotFoundException -> 0x1013, SSLHandshakeException -> 0x0fd5, SocketTimeoutException -> 0x0f97, SSLProtocolException -> 0x0f5b, Exception -> 0x0f1f, all -> 0x0ee4 }\n r5 = com.tencent.mm.plugin.appbrand.k.i.bR(r8);\t Catch:{ UnsupportedEncodingException -> 0x1047, FileNotFoundException -> 0x1013, SSLHandshakeException -> 0x0fd5, SocketTimeoutException -> 0x0f97, SSLProtocolException -> 0x0f5b, Exception -> 0x0f1f, all -> 0x0ee4 }\n r12 = new byte[r5];\t Catch:{ UnsupportedEncodingException -> 0x1047, FileNotFoundException -> 0x1013, SSLHandshakeException -> 0x0fd5, SocketTimeoutException -> 0x0f97, SSLProtocolException -> 0x0f5b, Exception -> 0x0f1f, all -> 0x0ee4 }\n r28 = r7.length();\t Catch:{ UnsupportedEncodingException -> 0x1047, FileNotFoundException -> 0x1013, SSLHandshakeException -> 0x0fd5, SocketTimeoutException -> 0x0f97, SSLProtocolException -> 0x0f5b, Exception -> 0x0f1f, all -> 0x0ee4 }\n r10 = -1;\n r8 = r20;\n L_0x05ad:\n r0 = r16;\n r6 = r0.read(r12);\t Catch:{ UnsupportedEncodingException -> 0x104d, FileNotFoundException -> 0x1019, SSLHandshakeException -> 0x0fdb, SocketTimeoutException -> 0x0f9d, SSLProtocolException -> 0x0f61, Exception -> 0x0f25, all -> 0x0eef }\n r5 = -1;\n if (r6 == r5) goto L_0x06a8;\n L_0x05b6:\n r0 = r38;\n r5 = r0.bgH;\t Catch:{ UnsupportedEncodingException -> 0x104d, FileNotFoundException -> 0x1019, SSLHandshakeException -> 0x0fdb, SocketTimeoutException -> 0x0f9d, SSLProtocolException -> 0x0f61, Exception -> 0x0f25, all -> 0x0eef }\n if (r5 == 0) goto L_0x06a8;\n L_0x05bc:\n r0 = r37;\n r5 = r0.glg;\t Catch:{ UnsupportedEncodingException -> 0x104d, FileNotFoundException -> 0x1019, SSLHandshakeException -> 0x0fdb, SocketTimeoutException -> 0x0f9d, SSLProtocolException -> 0x0f61, Exception -> 0x0f25, all -> 0x0eef }\n r5 = r5.mAppId;\t Catch:{ UnsupportedEncodingException -> 0x104d, FileNotFoundException -> 0x1019, SSLHandshakeException -> 0x0fdb, SocketTimeoutException -> 0x0f9d, SSLProtocolException -> 0x0f61, Exception -> 0x0f25, all -> 0x0eef }\n r5 = com.tencent.mm.plugin.appbrand.a.pY(r5);\t Catch:{ UnsupportedEncodingException -> 0x104d, FileNotFoundException -> 0x1019, SSLHandshakeException -> 0x0fdb, SocketTimeoutException -> 0x0f9d, SSLProtocolException -> 0x0f61, Exception -> 0x0f25, all -> 0x0eef }\n if (r5 != 0) goto L_0x0612;\n L_0x05c8:\n r5 = 1;\n L_0x05c9:\n if (r5 == 0) goto L_0x065f;\n L_0x05cb:\n r5 = \"interrupted\";\n r4.tS(r5);\t Catch:{ UnsupportedEncodingException -> 0x104d, FileNotFoundException -> 0x1019, SSLHandshakeException -> 0x0fdb, SocketTimeoutException -> 0x0f9d, SSLProtocolException -> 0x0f61, Exception -> 0x0f25, all -> 0x0eef }\n r0 = r37;\n r4 = r0.glg;\n r4 = r4.mAppId;\n r0 = r38;\n r5 = r0.glc;\n r6 = \"POST\";\n r0 = r38;\n r7 = r0.mUrl;\n r10 = 0;\n r12 = 0;\n r13 = 2;\n r14 = r38.alt();\n com.tencent.mm.plugin.appbrand.report.a.l.a(r4, r5, r6, r7, r8, r10, r12, r13, r14);\n r4 = 0;\n r0 = r38;\n r0.bgH = r4;\n r0 = r37;\n r4 = r0.glg;\n r0 = r38;\n r5 = r0.fEl;\n com.tencent.mm.plugin.appbrand.k.f.a(r4, r5, r15);\n r16.close();\t Catch:{ Exception -> 0x0629 }\n L_0x0600:\n r19.close();\t Catch:{ IOException -> 0x0644 }\n L_0x0603:\n r0 = r37;\n r4 = r0.glg;\n r4 = r4.gkF;\n r0 = r38;\n r5 = r0.fEl;\n r4.remove(r5);\n goto L_0x0092;\n L_0x0612:\n r7 = com.tencent.mm.plugin.appbrand.k.f.1.fjn;\t Catch:{ UnsupportedEncodingException -> 0x104d, FileNotFoundException -> 0x1019, SSLHandshakeException -> 0x0fdb, SocketTimeoutException -> 0x0f9d, SSLProtocolException -> 0x0f61, Exception -> 0x0f25, all -> 0x0eef }\n r5 = r5.fcL;\t Catch:{ UnsupportedEncodingException -> 0x104d, FileNotFoundException -> 0x1019, SSLHandshakeException -> 0x0fdb, SocketTimeoutException -> 0x0f9d, SSLProtocolException -> 0x0f61, Exception -> 0x0f25, all -> 0x0eef }\n r5 = r5.fjj;\t Catch:{ UnsupportedEncodingException -> 0x104d, FileNotFoundException -> 0x1019, SSLHandshakeException -> 0x0fdb, SocketTimeoutException -> 0x0f9d, SSLProtocolException -> 0x0f61, Exception -> 0x0f25, all -> 0x0eef }\n r5 = r5.acv();\t Catch:{ UnsupportedEncodingException -> 0x104d, FileNotFoundException -> 0x1019, SSLHandshakeException -> 0x0fdb, SocketTimeoutException -> 0x0f9d, SSLProtocolException -> 0x0f61, Exception -> 0x0f25, all -> 0x0eef }\n r5 = r5.ordinal();\t Catch:{ UnsupportedEncodingException -> 0x104d, FileNotFoundException -> 0x1019, SSLHandshakeException -> 0x0fdb, SocketTimeoutException -> 0x0f9d, SSLProtocolException -> 0x0f61, Exception -> 0x0f25, all -> 0x0eef }\n r5 = r7[r5];\t Catch:{ UnsupportedEncodingException -> 0x104d, FileNotFoundException -> 0x1019, SSLHandshakeException -> 0x0fdb, SocketTimeoutException -> 0x0f9d, SSLProtocolException -> 0x0f61, Exception -> 0x0f25, all -> 0x0eef }\n switch(r5) {\n case 1: goto L_0x0627;\n case 2: goto L_0x0627;\n default: goto L_0x0625;\n };\n L_0x0625:\n r5 = 0;\n goto L_0x05c9;\n L_0x0627:\n r5 = 1;\n goto L_0x05c9;\n L_0x0629:\n r4 = move-exception;\n r5 = \"MicroMsg.AppBrandNetworkUpload\";\n r6 = \"exception2 : %s ,url is %s filepath %s \";\n r7 = 3;\n r7 = new java.lang.Object[r7];\n r8 = 0;\n r9 = r4.toString();\n r7[r8] = r9;\n r8 = 1;\n r7[r8] = r26;\n r8 = 2;\n r7[r8] = r27;\n com.tencent.mm.sdk.platformtools.x.printErrStackTrace(r5, r4, r6, r7);\n goto L_0x0600;\n L_0x0644:\n r4 = move-exception;\n r5 = \"MicroMsg.AppBrandNetworkUpload\";\n r6 = \"exception4 : %s ,url is %s filepath %s \";\n r7 = 3;\n r7 = new java.lang.Object[r7];\n r8 = 0;\n r9 = r4.toString();\n r7[r8] = r9;\n r8 = 1;\n r7[r8] = r26;\n r8 = 2;\n r7[r8] = r27;\n com.tencent.mm.sdk.platformtools.x.printErrStackTrace(r5, r4, r6, r7);\n goto L_0x0603;\n L_0x065f:\n r5 = 0;\n r0 = r19;\n r0.write(r12, r5, r6);\t Catch:{ UnsupportedEncodingException -> 0x104d, FileNotFoundException -> 0x1019, SSLHandshakeException -> 0x0fdb, SocketTimeoutException -> 0x0f9d, SSLProtocolException -> 0x0f61, Exception -> 0x0f25, all -> 0x0eef }\n r6 = (long) r6;\n r6 = r6 + r8;\n r8 = 0;\n r5 = (r28 > r8 ? 1 : (r28 == r8 ? 0 : -1));\n if (r5 <= 0) goto L_0x107b;\n L_0x066d:\n r0 = r38;\n r5 = r0.bgH;\t Catch:{ UnsupportedEncodingException -> 0x1055, FileNotFoundException -> 0x1021, SSLHandshakeException -> 0x0fe3, SocketTimeoutException -> 0x0fa5, SSLProtocolException -> 0x0f69, Exception -> 0x0f2d, all -> 0x0ef8 }\n if (r5 == 0) goto L_0x107b;\n L_0x0673:\n r8 = 100;\n r8 = r8 * r6;\n r8 = r8 / r28;\n r5 = (int) r8;\t Catch:{ UnsupportedEncodingException -> 0x1055, FileNotFoundException -> 0x1021, SSLHandshakeException -> 0x0fe3, SocketTimeoutException -> 0x0fa5, SSLProtocolException -> 0x0f69, Exception -> 0x0f2d, all -> 0x0ef8 }\n if (r10 == r5) goto L_0x0681;\n L_0x067b:\n r8 = r28;\n r4.f(r5, r6, r8);\t Catch:{ UnsupportedEncodingException -> 0x1055, FileNotFoundException -> 0x1021, SSLHandshakeException -> 0x0fe3, SocketTimeoutException -> 0x0fa5, SSLProtocolException -> 0x0f69, Exception -> 0x0f2d, all -> 0x0ef8 }\n r10 = r5;\n L_0x0681:\n r8 = \"MicroMsg.AppBrandNetworkUpload\";\n r9 = \"uploadSize %d, totalSize %d, percent = %d\";\n r13 = 3;\n r13 = new java.lang.Object[r13];\t Catch:{ UnsupportedEncodingException -> 0x1055, FileNotFoundException -> 0x1021, SSLHandshakeException -> 0x0fe3, SocketTimeoutException -> 0x0fa5, SSLProtocolException -> 0x0f69, Exception -> 0x0f2d, all -> 0x0ef8 }\n r18 = 0;\n r20 = java.lang.Long.valueOf(r6);\t Catch:{ UnsupportedEncodingException -> 0x1055, FileNotFoundException -> 0x1021, SSLHandshakeException -> 0x0fe3, SocketTimeoutException -> 0x0fa5, SSLProtocolException -> 0x0f69, Exception -> 0x0f2d, all -> 0x0ef8 }\n r13[r18] = r20;\t Catch:{ UnsupportedEncodingException -> 0x1055, FileNotFoundException -> 0x1021, SSLHandshakeException -> 0x0fe3, SocketTimeoutException -> 0x0fa5, SSLProtocolException -> 0x0f69, Exception -> 0x0f2d, all -> 0x0ef8 }\n r18 = 1;\n r20 = java.lang.Long.valueOf(r28);\t Catch:{ UnsupportedEncodingException -> 0x1055, FileNotFoundException -> 0x1021, SSLHandshakeException -> 0x0fe3, SocketTimeoutException -> 0x0fa5, SSLProtocolException -> 0x0f69, Exception -> 0x0f2d, all -> 0x0ef8 }\n r13[r18] = r20;\t Catch:{ UnsupportedEncodingException -> 0x1055, FileNotFoundException -> 0x1021, SSLHandshakeException -> 0x0fe3, SocketTimeoutException -> 0x0fa5, SSLProtocolException -> 0x0f69, Exception -> 0x0f2d, all -> 0x0ef8 }\n r18 = 2;\n r5 = java.lang.Integer.valueOf(r5);\t Catch:{ UnsupportedEncodingException -> 0x1055, FileNotFoundException -> 0x1021, SSLHandshakeException -> 0x0fe3, SocketTimeoutException -> 0x0fa5, SSLProtocolException -> 0x0f69, Exception -> 0x0f2d, all -> 0x0ef8 }\n r13[r18] = r5;\t Catch:{ UnsupportedEncodingException -> 0x1055, FileNotFoundException -> 0x1021, SSLHandshakeException -> 0x0fe3, SocketTimeoutException -> 0x0fa5, SSLProtocolException -> 0x0f69, Exception -> 0x0f2d, all -> 0x0ef8 }\n com.tencent.mm.sdk.platformtools.x.v(r8, r9, r13);\t Catch:{ UnsupportedEncodingException -> 0x1055, FileNotFoundException -> 0x1021, SSLHandshakeException -> 0x0fe3, SocketTimeoutException -> 0x0fa5, SSLProtocolException -> 0x0f69, Exception -> 0x0f2d, all -> 0x0ef8 }\n r8 = r6;\n goto L_0x05ad;\n L_0x06a8:\n r0 = r19;\n r0.write(r11);\t Catch:{ UnsupportedEncodingException -> 0x104d, FileNotFoundException -> 0x1019, SSLHandshakeException -> 0x0fdb, SocketTimeoutException -> 0x0f9d, SSLProtocolException -> 0x0f61, Exception -> 0x0f25, all -> 0x0eef }\n r19.flush();\t Catch:{ UnsupportedEncodingException -> 0x104d, FileNotFoundException -> 0x1019, SSLHandshakeException -> 0x0fdb, SocketTimeoutException -> 0x0f9d, SSLProtocolException -> 0x0f61, Exception -> 0x0f25, all -> 0x0eef }\n r12 = r15.getResponseCode();\t Catch:{ UnsupportedEncodingException -> 0x104d, FileNotFoundException -> 0x1019, SSLHandshakeException -> 0x0fdb, SocketTimeoutException -> 0x0f9d, SSLProtocolException -> 0x0f61, Exception -> 0x0f25, all -> 0x0eef }\n r5 = com.tencent.mm.plugin.appbrand.k.i.e(r15);\t Catch:{ UnsupportedEncodingException -> 0x086a, FileNotFoundException -> 0x08bc, SSLHandshakeException -> 0x0feb, SocketTimeoutException -> 0x0fad, SSLProtocolException -> 0x0f71, Exception -> 0x0f35, all -> 0x0f02 }\n r4.t(r5);\t Catch:{ UnsupportedEncodingException -> 0x086a, FileNotFoundException -> 0x08bc, SSLHandshakeException -> 0x0feb, SocketTimeoutException -> 0x0fad, SSLProtocolException -> 0x0f71, Exception -> 0x0f35, all -> 0x0f02 }\n r5 = 200; // 0xc8 float:2.8E-43 double:9.9E-322;\n if (r5 == r12) goto L_0x0820;\n L_0x06bf:\n r5 = \"MicroMsg.AppBrandNetworkUpload\";\n r6 = \"code %d url is %s filepath %s \";\n r7 = 3;\n r7 = new java.lang.Object[r7];\t Catch:{ UnsupportedEncodingException -> 0x086a, FileNotFoundException -> 0x08bc, SSLHandshakeException -> 0x0feb, SocketTimeoutException -> 0x0fad, SSLProtocolException -> 0x0f71, Exception -> 0x0f35, all -> 0x0f02 }\n r10 = 0;\n r11 = java.lang.Integer.valueOf(r12);\t Catch:{ UnsupportedEncodingException -> 0x086a, FileNotFoundException -> 0x08bc, SSLHandshakeException -> 0x0feb, SocketTimeoutException -> 0x0fad, SSLProtocolException -> 0x0f71, Exception -> 0x0f35, all -> 0x0f02 }\n r7[r10] = r11;\t Catch:{ UnsupportedEncodingException -> 0x086a, FileNotFoundException -> 0x08bc, SSLHandshakeException -> 0x0feb, SocketTimeoutException -> 0x0fad, SSLProtocolException -> 0x0f71, Exception -> 0x0f35, all -> 0x0f02 }\n r10 = 1;\n r7[r10] = r26;\t Catch:{ UnsupportedEncodingException -> 0x086a, FileNotFoundException -> 0x08bc, SSLHandshakeException -> 0x0feb, SocketTimeoutException -> 0x0fad, SSLProtocolException -> 0x0f71, Exception -> 0x0f35, all -> 0x0f02 }\n r10 = 2;\n r7[r10] = r27;\t Catch:{ UnsupportedEncodingException -> 0x086a, FileNotFoundException -> 0x08bc, SSLHandshakeException -> 0x0feb, SocketTimeoutException -> 0x0fad, SSLProtocolException -> 0x0f71, Exception -> 0x0f35, all -> 0x0f02 }\n com.tencent.mm.sdk.platformtools.x.e(r5, r6, r7);\t Catch:{ UnsupportedEncodingException -> 0x086a, FileNotFoundException -> 0x08bc, SSLHandshakeException -> 0x0feb, SocketTimeoutException -> 0x0fad, SSLProtocolException -> 0x0f71, Exception -> 0x0f35, all -> 0x0f02 }\n r5 = com.tencent.mm.plugin.appbrand.k.i.lm(r12);\t Catch:{ UnsupportedEncodingException -> 0x086a, FileNotFoundException -> 0x08bc, SSLHandshakeException -> 0x0feb, SocketTimeoutException -> 0x0fad, SSLProtocolException -> 0x0f71, Exception -> 0x0f35, all -> 0x0f02 }\n if (r5 == 0) goto L_0x0820;\n L_0x06de:\n r5 = com.tencent.mm.plugin.appbrand.k.i.d(r15);\t Catch:{ UnsupportedEncodingException -> 0x086a, FileNotFoundException -> 0x08bc, SSLHandshakeException -> 0x0feb, SocketTimeoutException -> 0x0fad, SSLProtocolException -> 0x0f71, Exception -> 0x0f35, all -> 0x0f02 }\n r0 = r38;\n r6 = r0.gkZ;\t Catch:{ UnsupportedEncodingException -> 0x086a, FileNotFoundException -> 0x08bc, SSLHandshakeException -> 0x0feb, SocketTimeoutException -> 0x0fad, SSLProtocolException -> 0x0f71, Exception -> 0x0f35, all -> 0x0f02 }\n r7 = android.text.TextUtils.isEmpty(r5);\t Catch:{ UnsupportedEncodingException -> 0x086a, FileNotFoundException -> 0x08bc, SSLHandshakeException -> 0x0feb, SocketTimeoutException -> 0x0fad, SSLProtocolException -> 0x0f71, Exception -> 0x0f35, all -> 0x0f02 }\n if (r7 != 0) goto L_0x0820;\n L_0x06ec:\n if (r6 > 0) goto L_0x0780;\n L_0x06ee:\n r5 = \"MicroMsg.AppBrandNetworkUpload\";\n r6 = \"reach the max redirect count(%d)\";\n r7 = 1;\n r7 = new java.lang.Object[r7];\t Catch:{ UnsupportedEncodingException -> 0x086a, FileNotFoundException -> 0x08bc, SSLHandshakeException -> 0x0feb, SocketTimeoutException -> 0x0fad, SSLProtocolException -> 0x0f71, Exception -> 0x0f35, all -> 0x0f02 }\n r10 = 0;\n r11 = 15;\n r11 = java.lang.Integer.valueOf(r11);\t Catch:{ UnsupportedEncodingException -> 0x086a, FileNotFoundException -> 0x08bc, SSLHandshakeException -> 0x0feb, SocketTimeoutException -> 0x0fad, SSLProtocolException -> 0x0f71, Exception -> 0x0f35, all -> 0x0f02 }\n r7[r10] = r11;\t Catch:{ UnsupportedEncodingException -> 0x086a, FileNotFoundException -> 0x08bc, SSLHandshakeException -> 0x0feb, SocketTimeoutException -> 0x0fad, SSLProtocolException -> 0x0f71, Exception -> 0x0f35, all -> 0x0f02 }\n com.tencent.mm.sdk.platformtools.x.w(r5, r6, r7);\t Catch:{ UnsupportedEncodingException -> 0x086a, FileNotFoundException -> 0x08bc, SSLHandshakeException -> 0x0feb, SocketTimeoutException -> 0x0fad, SSLProtocolException -> 0x0f71, Exception -> 0x0f35, all -> 0x0f02 }\n r5 = 0;\n r6 = \"reach the max redirect count 15\";\n r4.e(r5, r6, r12);\t Catch:{ UnsupportedEncodingException -> 0x086a, FileNotFoundException -> 0x08bc, SSLHandshakeException -> 0x0feb, SocketTimeoutException -> 0x0fad, SSLProtocolException -> 0x0f71, Exception -> 0x0f35, all -> 0x0f02 }\n r0 = r37;\n r4 = r0.glg;\n r4 = r4.mAppId;\n r0 = r38;\n r5 = r0.glc;\n r6 = \"POST\";\n r0 = r38;\n r7 = r0.mUrl;\n r10 = 0;\n r13 = 1;\n r14 = r38.alt();\n com.tencent.mm.plugin.appbrand.report.a.l.a(r4, r5, r6, r7, r8, r10, r12, r13, r14);\n r4 = 0;\n r0 = r38;\n r0.bgH = r4;\n r0 = r37;\n r4 = r0.glg;\n r0 = r38;\n r5 = r0.fEl;\n com.tencent.mm.plugin.appbrand.k.f.a(r4, r5, r15);\n r16.close();\t Catch:{ Exception -> 0x074a }\n L_0x0738:\n r19.close();\t Catch:{ IOException -> 0x0765 }\n L_0x073b:\n r0 = r37;\n r4 = r0.glg;\n r4 = r4.gkF;\n r0 = r38;\n r5 = r0.fEl;\n r4.remove(r5);\n goto L_0x0092;\n L_0x074a:\n r4 = move-exception;\n r5 = \"MicroMsg.AppBrandNetworkUpload\";\n r6 = \"exception2 : %s ,url is %s filepath %s \";\n r7 = 3;\n r7 = new java.lang.Object[r7];\n r8 = 0;\n r9 = r4.toString();\n r7[r8] = r9;\n r8 = 1;\n r7[r8] = r26;\n r8 = 2;\n r7[r8] = r27;\n com.tencent.mm.sdk.platformtools.x.printErrStackTrace(r5, r4, r6, r7);\n goto L_0x0738;\n L_0x0765:\n r4 = move-exception;\n r5 = \"MicroMsg.AppBrandNetworkUpload\";\n r6 = \"exception4 : %s ,url is %s filepath %s \";\n r7 = 3;\n r7 = new java.lang.Object[r7];\n r8 = 0;\n r9 = r4.toString();\n r7[r8] = r9;\n r8 = 1;\n r7[r8] = r26;\n r8 = 2;\n r7[r8] = r27;\n com.tencent.mm.sdk.platformtools.x.printErrStackTrace(r5, r4, r6, r7);\n goto L_0x073b;\n L_0x0780:\n r7 = \"MicroMsg.AppBrandNetworkUpload\";\n r10 = \"redirect(%d) URL(%s) to URL(%s)\";\n r11 = 3;\n r11 = new java.lang.Object[r11];\t Catch:{ UnsupportedEncodingException -> 0x086a, FileNotFoundException -> 0x08bc, SSLHandshakeException -> 0x0feb, SocketTimeoutException -> 0x0fad, SSLProtocolException -> 0x0f71, Exception -> 0x0f35, all -> 0x0f02 }\n r13 = 0;\n r14 = java.lang.Integer.valueOf(r6);\t Catch:{ UnsupportedEncodingException -> 0x086a, FileNotFoundException -> 0x08bc, SSLHandshakeException -> 0x0feb, SocketTimeoutException -> 0x0fad, SSLProtocolException -> 0x0f71, Exception -> 0x0f35, all -> 0x0f02 }\n r11[r13] = r14;\t Catch:{ UnsupportedEncodingException -> 0x086a, FileNotFoundException -> 0x08bc, SSLHandshakeException -> 0x0feb, SocketTimeoutException -> 0x0fad, SSLProtocolException -> 0x0f71, Exception -> 0x0f35, all -> 0x0f02 }\n r13 = 1;\n r0 = r38;\n r14 = r0.mUrl;\t Catch:{ UnsupportedEncodingException -> 0x086a, FileNotFoundException -> 0x08bc, SSLHandshakeException -> 0x0feb, SocketTimeoutException -> 0x0fad, SSLProtocolException -> 0x0f71, Exception -> 0x0f35, all -> 0x0f02 }\n r11[r13] = r14;\t Catch:{ UnsupportedEncodingException -> 0x086a, FileNotFoundException -> 0x08bc, SSLHandshakeException -> 0x0feb, SocketTimeoutException -> 0x0fad, SSLProtocolException -> 0x0f71, Exception -> 0x0f35, all -> 0x0f02 }\n r13 = 2;\n r11[r13] = r5;\t Catch:{ UnsupportedEncodingException -> 0x086a, FileNotFoundException -> 0x08bc, SSLHandshakeException -> 0x0feb, SocketTimeoutException -> 0x0fad, SSLProtocolException -> 0x0f71, Exception -> 0x0f35, all -> 0x0f02 }\n com.tencent.mm.sdk.platformtools.x.i(r7, r10, r11);\t Catch:{ UnsupportedEncodingException -> 0x086a, FileNotFoundException -> 0x08bc, SSLHandshakeException -> 0x0feb, SocketTimeoutException -> 0x0fad, SSLProtocolException -> 0x0f71, Exception -> 0x0f35, all -> 0x0f02 }\n r0 = r38;\n r0.mUrl = r5;\t Catch:{ UnsupportedEncodingException -> 0x086a, FileNotFoundException -> 0x08bc, SSLHandshakeException -> 0x0feb, SocketTimeoutException -> 0x0fad, SSLProtocolException -> 0x0f71, Exception -> 0x0f35, all -> 0x0f02 }\n r5 = r6 + -1;\n r0 = r38;\n r0.gkZ = r5;\t Catch:{ UnsupportedEncodingException -> 0x086a, FileNotFoundException -> 0x08bc, SSLHandshakeException -> 0x0feb, SocketTimeoutException -> 0x0fad, SSLProtocolException -> 0x0f71, Exception -> 0x0f35, all -> 0x0f02 }\n r37.b(r38);\t Catch:{ UnsupportedEncodingException -> 0x086a, FileNotFoundException -> 0x08bc, SSLHandshakeException -> 0x0feb, SocketTimeoutException -> 0x0fad, SSLProtocolException -> 0x0f71, Exception -> 0x0f35, all -> 0x0f02 }\n r0 = r37;\n r4 = r0.glg;\n r4 = r4.mAppId;\n r0 = r38;\n r5 = r0.glc;\n r6 = \"POST\";\n r0 = r38;\n r7 = r0.mUrl;\n r10 = 0;\n r13 = 2;\n r14 = r38.alt();\n com.tencent.mm.plugin.appbrand.report.a.l.a(r4, r5, r6, r7, r8, r10, r12, r13, r14);\n r4 = 0;\n r0 = r38;\n r0.bgH = r4;\n r0 = r37;\n r4 = r0.glg;\n r0 = r38;\n r5 = r0.fEl;\n com.tencent.mm.plugin.appbrand.k.f.a(r4, r5, r15);\n r16.close();\t Catch:{ Exception -> 0x07ea }\n L_0x07d8:\n r19.close();\t Catch:{ IOException -> 0x0805 }\n L_0x07db:\n r0 = r37;\n r4 = r0.glg;\n r4 = r4.gkF;\n r0 = r38;\n r5 = r0.fEl;\n r4.remove(r5);\n goto L_0x0092;\n L_0x07ea:\n r4 = move-exception;\n r5 = \"MicroMsg.AppBrandNetworkUpload\";\n r6 = \"exception2 : %s ,url is %s filepath %s \";\n r7 = 3;\n r7 = new java.lang.Object[r7];\n r8 = 0;\n r9 = r4.toString();\n r7[r8] = r9;\n r8 = 1;\n r7[r8] = r26;\n r8 = 2;\n r7[r8] = r27;\n com.tencent.mm.sdk.platformtools.x.printErrStackTrace(r5, r4, r6, r7);\n goto L_0x07d8;\n L_0x0805:\n r4 = move-exception;\n r5 = \"MicroMsg.AppBrandNetworkUpload\";\n r6 = \"exception4 : %s ,url is %s filepath %s \";\n r7 = 3;\n r7 = new java.lang.Object[r7];\n r8 = 0;\n r9 = r4.toString();\n r7[r8] = r9;\n r8 = 1;\n r7[r8] = r26;\n r8 = 2;\n r7[r8] = r27;\n com.tencent.mm.sdk.platformtools.x.printErrStackTrace(r5, r4, r6, r7);\n goto L_0x07db;\n L_0x0820:\n r5 = \"MicroMsg.AppBrandNetworkUpload\";\n r6 = \"url %s ,start to read response \";\n r7 = 1;\n r7 = new java.lang.Object[r7];\t Catch:{ UnsupportedEncodingException -> 0x086a, FileNotFoundException -> 0x08bc, SSLHandshakeException -> 0x0feb, SocketTimeoutException -> 0x0fad, SSLProtocolException -> 0x0f71, Exception -> 0x0f35, all -> 0x0f02 }\n r10 = 0;\n r7[r10] = r26;\t Catch:{ UnsupportedEncodingException -> 0x086a, FileNotFoundException -> 0x08bc, SSLHandshakeException -> 0x0feb, SocketTimeoutException -> 0x0fad, SSLProtocolException -> 0x0f71, Exception -> 0x0f35, all -> 0x0f02 }\n com.tencent.mm.sdk.platformtools.x.i(r5, r6, r7);\t Catch:{ UnsupportedEncodingException -> 0x086a, FileNotFoundException -> 0x08bc, SSLHandshakeException -> 0x0feb, SocketTimeoutException -> 0x0fad, SSLProtocolException -> 0x0f71, Exception -> 0x0f35, all -> 0x0f02 }\n r5 = \"gzip\";\n r6 = r15.getContentEncoding();\t Catch:{ Exception -> 0x0879, UnsupportedEncodingException -> 0x086a, FileNotFoundException -> 0x08bc, SSLHandshakeException -> 0x0feb, SocketTimeoutException -> 0x0fad, SSLProtocolException -> 0x0f71, all -> 0x0f02 }\n r5 = r5.equals(r6);\t Catch:{ Exception -> 0x0879, UnsupportedEncodingException -> 0x086a, FileNotFoundException -> 0x08bc, SSLHandshakeException -> 0x0feb, SocketTimeoutException -> 0x0fad, SSLProtocolException -> 0x0f71, all -> 0x0f02 }\n if (r5 == 0) goto L_0x0874;\n L_0x083c:\n r5 = new java.util.zip.GZIPInputStream;\t Catch:{ Exception -> 0x0879, UnsupportedEncodingException -> 0x086a, FileNotFoundException -> 0x08bc, SSLHandshakeException -> 0x0feb, SocketTimeoutException -> 0x0fad, SSLProtocolException -> 0x0f71, all -> 0x0f02 }\n r6 = r15.getInputStream();\t Catch:{ Exception -> 0x0879, UnsupportedEncodingException -> 0x086a, FileNotFoundException -> 0x08bc, SSLHandshakeException -> 0x0feb, SocketTimeoutException -> 0x0fad, SSLProtocolException -> 0x0f71, all -> 0x0f02 }\n r5.<init>(r6);\t Catch:{ Exception -> 0x0879, UnsupportedEncodingException -> 0x086a, FileNotFoundException -> 0x08bc, SSLHandshakeException -> 0x0feb, SocketTimeoutException -> 0x0fad, SSLProtocolException -> 0x0f71, all -> 0x0f02 }\n r17 = r5;\n L_0x0847:\n if (r17 == 0) goto L_0x1075;\n L_0x0849:\n r5 = new java.io.BufferedReader;\t Catch:{ UnsupportedEncodingException -> 0x086a, FileNotFoundException -> 0x08bc, SSLHandshakeException -> 0x0feb, SocketTimeoutException -> 0x0fad, SSLProtocolException -> 0x0f71, Exception -> 0x0f35, all -> 0x0f02 }\n r6 = new java.io.InputStreamReader;\t Catch:{ UnsupportedEncodingException -> 0x086a, FileNotFoundException -> 0x08bc, SSLHandshakeException -> 0x0feb, SocketTimeoutException -> 0x0fad, SSLProtocolException -> 0x0f71, Exception -> 0x0f35, all -> 0x0f02 }\n r0 = r17;\n r6.<init>(r0);\t Catch:{ UnsupportedEncodingException -> 0x086a, FileNotFoundException -> 0x08bc, SSLHandshakeException -> 0x0feb, SocketTimeoutException -> 0x0fad, SSLProtocolException -> 0x0f71, Exception -> 0x0f35, all -> 0x0f02 }\n r5.<init>(r6);\t Catch:{ UnsupportedEncodingException -> 0x086a, FileNotFoundException -> 0x08bc, SSLHandshakeException -> 0x0feb, SocketTimeoutException -> 0x0fad, SSLProtocolException -> 0x0f71, Exception -> 0x0f35, all -> 0x0f02 }\n r6 = new java.lang.StringBuilder;\t Catch:{ UnsupportedEncodingException -> 0x086a, FileNotFoundException -> 0x08bc, SSLHandshakeException -> 0x0feb, SocketTimeoutException -> 0x0fad, SSLProtocolException -> 0x0f71, Exception -> 0x0f35, all -> 0x0f02 }\n r6.<init>();\t Catch:{ UnsupportedEncodingException -> 0x086a, FileNotFoundException -> 0x08bc, SSLHandshakeException -> 0x0feb, SocketTimeoutException -> 0x0fad, SSLProtocolException -> 0x0f71, Exception -> 0x0f35, all -> 0x0f02 }\n L_0x085a:\n r7 = r5.readLine();\t Catch:{ UnsupportedEncodingException -> 0x086a, FileNotFoundException -> 0x08bc, SSLHandshakeException -> 0x0feb, SocketTimeoutException -> 0x0fad, SSLProtocolException -> 0x0f71, Exception -> 0x0f35, all -> 0x0f02 }\n if (r7 == 0) goto L_0x08c6;\n L_0x0860:\n r0 = r38;\n r10 = r0.bgH;\t Catch:{ UnsupportedEncodingException -> 0x086a, FileNotFoundException -> 0x08bc, SSLHandshakeException -> 0x0feb, SocketTimeoutException -> 0x0fad, SSLProtocolException -> 0x0f71, Exception -> 0x0f35, all -> 0x0f02 }\n if (r10 == 0) goto L_0x08c6;\n L_0x0866:\n r6.append(r7);\t Catch:{ UnsupportedEncodingException -> 0x086a, FileNotFoundException -> 0x08bc, SSLHandshakeException -> 0x0feb, SocketTimeoutException -> 0x0fad, SSLProtocolException -> 0x0f71, Exception -> 0x0f35, all -> 0x0f02 }\n goto L_0x085a;\n L_0x086a:\n r5 = move-exception;\n r13 = r5;\n r18 = r19;\n r20 = r8;\n r22 = r12;\n goto L_0x0259;\n L_0x0874:\n r17 = r15.getInputStream();\t Catch:{ Exception -> 0x0879, UnsupportedEncodingException -> 0x086a, FileNotFoundException -> 0x08bc, SSLHandshakeException -> 0x0feb, SocketTimeoutException -> 0x0fad, SSLProtocolException -> 0x0f71, all -> 0x0f02 }\n goto L_0x0847;\n L_0x0879:\n r5 = move-exception;\n r6 = \"MicroMsg.AppBrandNetworkUpload\";\n r7 = \"getInputStream error : %s\";\n r10 = 1;\n r10 = new java.lang.Object[r10];\t Catch:{ UnsupportedEncodingException -> 0x086a, FileNotFoundException -> 0x08bc, SSLHandshakeException -> 0x0feb, SocketTimeoutException -> 0x0fad, SSLProtocolException -> 0x0f71, Exception -> 0x0f35, all -> 0x0f02 }\n r11 = 0;\n r10[r11] = r5;\t Catch:{ UnsupportedEncodingException -> 0x086a, FileNotFoundException -> 0x08bc, SSLHandshakeException -> 0x0feb, SocketTimeoutException -> 0x0fad, SSLProtocolException -> 0x0f71, Exception -> 0x0f35, all -> 0x0f02 }\n com.tencent.mm.sdk.platformtools.x.e(r6, r7, r10);\t Catch:{ UnsupportedEncodingException -> 0x086a, FileNotFoundException -> 0x08bc, SSLHandshakeException -> 0x0feb, SocketTimeoutException -> 0x0fad, SSLProtocolException -> 0x0f71, Exception -> 0x0f35, all -> 0x0f02 }\n r5 = \"gzip\";\n r6 = r15.getContentEncoding();\t Catch:{ Exception -> 0x08a7, UnsupportedEncodingException -> 0x086a, FileNotFoundException -> 0x08bc, SSLHandshakeException -> 0x0feb, SocketTimeoutException -> 0x0fad, SSLProtocolException -> 0x0f71, all -> 0x0f02 }\n r5 = r5.equals(r6);\t Catch:{ Exception -> 0x08a7, UnsupportedEncodingException -> 0x086a, FileNotFoundException -> 0x08bc, SSLHandshakeException -> 0x0feb, SocketTimeoutException -> 0x0fad, SSLProtocolException -> 0x0f71, all -> 0x0f02 }\n if (r5 == 0) goto L_0x08a2;\n L_0x0896:\n r5 = new java.util.zip.GZIPInputStream;\t Catch:{ Exception -> 0x08a7, UnsupportedEncodingException -> 0x086a, FileNotFoundException -> 0x08bc, SSLHandshakeException -> 0x0feb, SocketTimeoutException -> 0x0fad, SSLProtocolException -> 0x0f71, all -> 0x0f02 }\n r6 = r15.getErrorStream();\t Catch:{ Exception -> 0x08a7, UnsupportedEncodingException -> 0x086a, FileNotFoundException -> 0x08bc, SSLHandshakeException -> 0x0feb, SocketTimeoutException -> 0x0fad, SSLProtocolException -> 0x0f71, all -> 0x0f02 }\n r5.<init>(r6);\t Catch:{ Exception -> 0x08a7, UnsupportedEncodingException -> 0x086a, FileNotFoundException -> 0x08bc, SSLHandshakeException -> 0x0feb, SocketTimeoutException -> 0x0fad, SSLProtocolException -> 0x0f71, all -> 0x0f02 }\n r17 = r5;\n goto L_0x0847;\n L_0x08a2:\n r17 = r15.getErrorStream();\t Catch:{ Exception -> 0x08a7, UnsupportedEncodingException -> 0x086a, FileNotFoundException -> 0x08bc, SSLHandshakeException -> 0x0feb, SocketTimeoutException -> 0x0fad, SSLProtocolException -> 0x0f71, all -> 0x0f02 }\n goto L_0x0847;\n L_0x08a7:\n r5 = move-exception;\n r6 = \"MicroMsg.AppBrandNetworkUpload\";\n r7 = \"read err stream failed : %s\";\n r10 = 1;\n r10 = new java.lang.Object[r10];\t Catch:{ UnsupportedEncodingException -> 0x086a, FileNotFoundException -> 0x08bc, SSLHandshakeException -> 0x0feb, SocketTimeoutException -> 0x0fad, SSLProtocolException -> 0x0f71, Exception -> 0x0f35, all -> 0x0f02 }\n r11 = 0;\n r5 = r5.toString();\t Catch:{ UnsupportedEncodingException -> 0x086a, FileNotFoundException -> 0x08bc, SSLHandshakeException -> 0x0feb, SocketTimeoutException -> 0x0fad, SSLProtocolException -> 0x0f71, Exception -> 0x0f35, all -> 0x0f02 }\n r10[r11] = r5;\t Catch:{ UnsupportedEncodingException -> 0x086a, FileNotFoundException -> 0x08bc, SSLHandshakeException -> 0x0feb, SocketTimeoutException -> 0x0fad, SSLProtocolException -> 0x0f71, Exception -> 0x0f35, all -> 0x0f02 }\n com.tencent.mm.sdk.platformtools.x.e(r6, r7, r10);\t Catch:{ UnsupportedEncodingException -> 0x086a, FileNotFoundException -> 0x08bc, SSLHandshakeException -> 0x0feb, SocketTimeoutException -> 0x0fad, SSLProtocolException -> 0x0f71, Exception -> 0x0f35, all -> 0x0f02 }\n goto L_0x0847;\n L_0x08bc:\n r5 = move-exception;\n r13 = r5;\n r18 = r19;\n r20 = r8;\n r22 = r12;\n goto L_0x02e8;\n L_0x08c6:\n r5 = r6.toString();\t Catch:{ UnsupportedEncodingException -> 0x086a, FileNotFoundException -> 0x08bc, SSLHandshakeException -> 0x0feb, SocketTimeoutException -> 0x0fad, SSLProtocolException -> 0x0f71, Exception -> 0x0f35, all -> 0x0f02 }\n r6 = \"UTF-8\";\n r6 = java.nio.charset.Charset.forName(r6);\t Catch:{ UnsupportedEncodingException -> 0x086a, FileNotFoundException -> 0x08bc, SSLHandshakeException -> 0x0feb, SocketTimeoutException -> 0x0fad, SSLProtocolException -> 0x0f71, Exception -> 0x0f35, all -> 0x0f02 }\n r6 = r5.getBytes(r6);\t Catch:{ UnsupportedEncodingException -> 0x086a, FileNotFoundException -> 0x08bc, SSLHandshakeException -> 0x0feb, SocketTimeoutException -> 0x0fad, SSLProtocolException -> 0x0f71, Exception -> 0x0f35, all -> 0x0f02 }\n r6 = r6.length;\t Catch:{ UnsupportedEncodingException -> 0x086a, FileNotFoundException -> 0x08bc, SSLHandshakeException -> 0x0feb, SocketTimeoutException -> 0x0fad, SSLProtocolException -> 0x0f71, Exception -> 0x0f35, all -> 0x0f02 }\n r7 = \"MicroMsg.AppBrandNetworkUpload\";\n r10 = \"upload for url : %s, result = %s, statecode = %s\";\n r11 = 3;\n r11 = new java.lang.Object[r11];\t Catch:{ UnsupportedEncodingException -> 0x105d, FileNotFoundException -> 0x1029, SSLHandshakeException -> 0x0ff5, SocketTimeoutException -> 0x0fb7, SSLProtocolException -> 0x0f7b, Exception -> 0x0f3f, all -> 0x0f09 }\n r13 = 0;\n r11[r13] = r14;\t Catch:{ UnsupportedEncodingException -> 0x105d, FileNotFoundException -> 0x1029, SSLHandshakeException -> 0x0ff5, SocketTimeoutException -> 0x0fb7, SSLProtocolException -> 0x0f7b, Exception -> 0x0f3f, all -> 0x0f09 }\n r13 = 1;\n r11[r13] = r5;\t Catch:{ UnsupportedEncodingException -> 0x105d, FileNotFoundException -> 0x1029, SSLHandshakeException -> 0x0ff5, SocketTimeoutException -> 0x0fb7, SSLProtocolException -> 0x0f7b, Exception -> 0x0f3f, all -> 0x0f09 }\n r13 = 2;\n r14 = java.lang.Integer.valueOf(r12);\t Catch:{ UnsupportedEncodingException -> 0x105d, FileNotFoundException -> 0x1029, SSLHandshakeException -> 0x0ff5, SocketTimeoutException -> 0x0fb7, SSLProtocolException -> 0x0f7b, Exception -> 0x0f3f, all -> 0x0f09 }\n r11[r13] = r14;\t Catch:{ UnsupportedEncodingException -> 0x105d, FileNotFoundException -> 0x1029, SSLHandshakeException -> 0x0ff5, SocketTimeoutException -> 0x0fb7, SSLProtocolException -> 0x0f7b, Exception -> 0x0f3f, all -> 0x0f09 }\n com.tencent.mm.sdk.platformtools.x.i(r7, r10, r11);\t Catch:{ UnsupportedEncodingException -> 0x105d, FileNotFoundException -> 0x1029, SSLHandshakeException -> 0x0ff5, SocketTimeoutException -> 0x0fb7, SSLProtocolException -> 0x0f7b, Exception -> 0x0f3f, all -> 0x0f09 }\n r10 = r6;\n L_0x08f0:\n r0 = r38;\n r6 = r0.bgH;\t Catch:{ UnsupportedEncodingException -> 0x1069, FileNotFoundException -> 0x1035, SSLHandshakeException -> 0x1001, SocketTimeoutException -> 0x0fc3, SSLProtocolException -> 0x0f87, Exception -> 0x0f4b, all -> 0x0f12 }\n if (r6 == 0) goto L_0x0953;\n L_0x08f6:\n r6 = 0;\n r4.e(r6, r5, r12);\t Catch:{ UnsupportedEncodingException -> 0x1069, FileNotFoundException -> 0x1035, SSLHandshakeException -> 0x1001, SocketTimeoutException -> 0x0fc3, SSLProtocolException -> 0x0f87, Exception -> 0x0f4b, all -> 0x0f12 }\n r5 = \"MicroMsg.AppBrandNetworkUpload\";\n r6 = \"success : url = %s, filePath = %s\";\n r7 = 2;\n r7 = new java.lang.Object[r7];\t Catch:{ UnsupportedEncodingException -> 0x1069, FileNotFoundException -> 0x1035, SSLHandshakeException -> 0x1001, SocketTimeoutException -> 0x0fc3, SSLProtocolException -> 0x0f87, Exception -> 0x0f4b, all -> 0x0f12 }\n r11 = 0;\n r7[r11] = r26;\t Catch:{ UnsupportedEncodingException -> 0x1069, FileNotFoundException -> 0x1035, SSLHandshakeException -> 0x1001, SocketTimeoutException -> 0x0fc3, SSLProtocolException -> 0x0f87, Exception -> 0x0f4b, all -> 0x0f12 }\n r11 = 1;\n r7[r11] = r27;\t Catch:{ UnsupportedEncodingException -> 0x1069, FileNotFoundException -> 0x1035, SSLHandshakeException -> 0x1001, SocketTimeoutException -> 0x0fc3, SSLProtocolException -> 0x0f87, Exception -> 0x0f4b, all -> 0x0f12 }\n com.tencent.mm.sdk.platformtools.x.i(r5, r6, r7);\t Catch:{ UnsupportedEncodingException -> 0x1069, FileNotFoundException -> 0x1035, SSLHandshakeException -> 0x1001, SocketTimeoutException -> 0x0fc3, SSLProtocolException -> 0x0f87, Exception -> 0x0f4b, all -> 0x0f12 }\n r4 = 1;\n L_0x090d:\n if (r4 == 0) goto L_0x0966;\n L_0x090f:\n r0 = r37;\n r4 = r0.glg;\n r4 = r4.mAppId;\n r0 = r38;\n r5 = r0.glc;\n r6 = \"POST\";\n r0 = r38;\n r7 = r0.mUrl;\n r10 = (long) r10;\n r13 = 1;\n r14 = r38.alt();\n com.tencent.mm.plugin.appbrand.report.a.l.a(r4, r5, r6, r7, r8, r10, r12, r13, r14);\n L_0x0929:\n r4 = 0;\n r0 = r38;\n r0.bgH = r4;\n r0 = r37;\n r4 = r0.glg;\n r0 = r38;\n r5 = r0.fEl;\n com.tencent.mm.plugin.appbrand.k.f.a(r4, r5, r15);\n r16.close();\t Catch:{ Exception -> 0x0981 }\n L_0x093c:\n if (r17 == 0) goto L_0x0941;\n L_0x093e:\n r17.close();\t Catch:{ IOException -> 0x099c, ArrayIndexOutOfBoundsException -> 0x09b7, Throwable -> 0x09c6 }\n L_0x0941:\n r19.close();\t Catch:{ IOException -> 0x09d5 }\n L_0x0944:\n r0 = r37;\n r4 = r0.glg;\n r4 = r4.gkF;\n r0 = r38;\n r5 = r0.fEl;\n r4.remove(r5);\n goto L_0x0092;\n L_0x0953:\n r5 = 0;\n r6 = \"force_stop!\";\n r4.e(r5, r6, r12);\t Catch:{ UnsupportedEncodingException -> 0x1069, FileNotFoundException -> 0x1035, SSLHandshakeException -> 0x1001, SocketTimeoutException -> 0x0fc3, SSLProtocolException -> 0x0f87, Exception -> 0x0f4b, all -> 0x0f12 }\n r5 = \"MicroMsg.AppBrandNetworkUpload\";\n r6 = \"force stop!\";\n com.tencent.mm.sdk.platformtools.x.e(r5, r6);\t Catch:{ UnsupportedEncodingException -> 0x1069, FileNotFoundException -> 0x1035, SSLHandshakeException -> 0x1001, SocketTimeoutException -> 0x0fc3, SSLProtocolException -> 0x0f87, Exception -> 0x0f4b, all -> 0x0f12 }\n r4 = r24;\n goto L_0x090d;\n L_0x0966:\n r0 = r37;\n r4 = r0.glg;\n r4 = r4.mAppId;\n r0 = r38;\n r5 = r0.glc;\n r6 = \"POST\";\n r0 = r38;\n r7 = r0.mUrl;\n r10 = (long) r10;\n r13 = 2;\n r14 = r38.alt();\n com.tencent.mm.plugin.appbrand.report.a.l.a(r4, r5, r6, r7, r8, r10, r12, r13, r14);\n goto L_0x0929;\n L_0x0981:\n r4 = move-exception;\n r5 = \"MicroMsg.AppBrandNetworkUpload\";\n r6 = \"exception2 : %s ,url is %s filepath %s \";\n r7 = 3;\n r7 = new java.lang.Object[r7];\n r8 = 0;\n r9 = r4.toString();\n r7[r8] = r9;\n r8 = 1;\n r7[r8] = r26;\n r8 = 2;\n r7[r8] = r27;\n com.tencent.mm.sdk.platformtools.x.printErrStackTrace(r5, r4, r6, r7);\n goto L_0x093c;\n L_0x099c:\n r4 = move-exception;\n r5 = \"MicroMsg.AppBrandNetworkUpload\";\n r6 = \"exception3 : %s , url is %s filepath %s \";\n r7 = 3;\n r7 = new java.lang.Object[r7];\n r8 = 0;\n r9 = r4.toString();\n r7[r8] = r9;\n r8 = 1;\n r7[r8] = r26;\n r8 = 2;\n r7[r8] = r27;\n com.tencent.mm.sdk.platformtools.x.printErrStackTrace(r5, r4, r6, r7);\n goto L_0x0941;\n L_0x09b7:\n r4 = move-exception;\n r5 = \"MicroMsg.AppBrandNetworkUpload\";\n r6 = \"\";\n r7 = 0;\n r7 = new java.lang.Object[r7];\n com.tencent.mm.sdk.platformtools.x.printErrStackTrace(r5, r4, r6, r7);\n goto L_0x0941;\n L_0x09c6:\n r4 = move-exception;\n r5 = \"MicroMsg.AppBrandNetworkUpload\";\n r6 = \"\";\n r7 = 0;\n r7 = new java.lang.Object[r7];\n com.tencent.mm.sdk.platformtools.x.printErrStackTrace(r5, r4, r6, r7);\n goto L_0x0941;\n L_0x09d5:\n r4 = move-exception;\n r5 = \"MicroMsg.AppBrandNetworkUpload\";\n r6 = \"exception4 : %s ,url is %s filepath %s \";\n r7 = 3;\n r7 = new java.lang.Object[r7];\n r8 = 0;\n r9 = r4.toString();\n r7[r8] = r9;\n r8 = 1;\n r7[r8] = r26;\n r8 = 2;\n r7[r8] = r27;\n com.tencent.mm.sdk.platformtools.x.printErrStackTrace(r5, r4, r6, r7);\n goto L_0x0944;\n L_0x09f1:\n r4 = move-exception;\n r5 = \"MicroMsg.AppBrandNetworkUpload\";\n r6 = \"exception2 : %s ,url is %s filepath %s \";\n r7 = 3;\n r7 = new java.lang.Object[r7];\n r8 = 0;\n r9 = r4.toString();\n r7[r8] = r9;\n r8 = 1;\n r7[r8] = r26;\n r8 = 2;\n r7[r8] = r27;\n com.tencent.mm.sdk.platformtools.x.printErrStackTrace(r5, r4, r6, r7);\n goto L_0x02bc;\n L_0x0a0d:\n r4 = move-exception;\n r5 = \"MicroMsg.AppBrandNetworkUpload\";\n r6 = \"exception3 : %s , url is %s filepath %s \";\n r7 = 3;\n r7 = new java.lang.Object[r7];\n r8 = 0;\n r9 = r4.toString();\n r7[r8] = r9;\n r8 = 1;\n r7[r8] = r26;\n r8 = 2;\n r7[r8] = r27;\n com.tencent.mm.sdk.platformtools.x.printErrStackTrace(r5, r4, r6, r7);\n goto L_0x02c1;\n L_0x0a29:\n r4 = move-exception;\n r5 = \"MicroMsg.AppBrandNetworkUpload\";\n r6 = \"\";\n r7 = 0;\n r7 = new java.lang.Object[r7];\n com.tencent.mm.sdk.platformtools.x.printErrStackTrace(r5, r4, r6, r7);\n goto L_0x02c1;\n L_0x0a38:\n r4 = move-exception;\n r5 = \"MicroMsg.AppBrandNetworkUpload\";\n r6 = \"\";\n r7 = 0;\n r7 = new java.lang.Object[r7];\n com.tencent.mm.sdk.platformtools.x.printErrStackTrace(r5, r4, r6, r7);\n goto L_0x02c1;\n L_0x0a47:\n r4 = move-exception;\n r5 = \"MicroMsg.AppBrandNetworkUpload\";\n r6 = \"exception4 : %s ,url is %s filepath %s \";\n r7 = 3;\n r7 = new java.lang.Object[r7];\n r8 = 0;\n r9 = r4.toString();\n r7[r8] = r9;\n r8 = 1;\n r7[r8] = r26;\n r8 = 2;\n r7[r8] = r27;\n com.tencent.mm.sdk.platformtools.x.printErrStackTrace(r5, r4, r6, r7);\n goto L_0x02c6;\n L_0x0a63:\n r4 = move-exception;\n r5 = \"MicroMsg.AppBrandNetworkUpload\";\n r6 = \"exception2 : %s ,url is %s filepath %s \";\n r7 = 3;\n r7 = new java.lang.Object[r7];\n r8 = 0;\n r9 = r4.toString();\n r7[r8] = r9;\n r8 = 1;\n r7[r8] = r26;\n r8 = 2;\n r7[r8] = r27;\n com.tencent.mm.sdk.platformtools.x.printErrStackTrace(r5, r4, r6, r7);\n goto L_0x034b;\n L_0x0a7f:\n r4 = move-exception;\n r5 = \"MicroMsg.AppBrandNetworkUpload\";\n r6 = \"exception3 : %s , url is %s filepath %s \";\n r7 = 3;\n r7 = new java.lang.Object[r7];\n r8 = 0;\n r9 = r4.toString();\n r7[r8] = r9;\n r8 = 1;\n r7[r8] = r26;\n r8 = 2;\n r7[r8] = r27;\n com.tencent.mm.sdk.platformtools.x.printErrStackTrace(r5, r4, r6, r7);\n goto L_0x0350;\n L_0x0a9b:\n r4 = move-exception;\n r5 = \"MicroMsg.AppBrandNetworkUpload\";\n r6 = \"\";\n r7 = 0;\n r7 = new java.lang.Object[r7];\n com.tencent.mm.sdk.platformtools.x.printErrStackTrace(r5, r4, r6, r7);\n goto L_0x0350;\n L_0x0aaa:\n r4 = move-exception;\n r5 = \"MicroMsg.AppBrandNetworkUpload\";\n r6 = \"\";\n r7 = 0;\n r7 = new java.lang.Object[r7];\n com.tencent.mm.sdk.platformtools.x.printErrStackTrace(r5, r4, r6, r7);\n goto L_0x0350;\n L_0x0ab9:\n r4 = move-exception;\n r5 = \"MicroMsg.AppBrandNetworkUpload\";\n r6 = \"exception4 : %s ,url is %s filepath %s \";\n r7 = 3;\n r7 = new java.lang.Object[r7];\n r8 = 0;\n r9 = r4.toString();\n r7[r8] = r9;\n r8 = 1;\n r7[r8] = r26;\n r8 = 2;\n r7[r8] = r27;\n com.tencent.mm.sdk.platformtools.x.printErrStackTrace(r5, r4, r6, r7);\n goto L_0x0355;\n L_0x0ad5:\n r4 = move-exception;\n r5 = \"MicroMsg.AppBrandNetworkUpload\";\n r6 = \"exception2 : %s ,url is %s filepath %s \";\n r7 = 3;\n r7 = new java.lang.Object[r7];\n r8 = 0;\n r9 = r4.toString();\n r7[r8] = r9;\n r8 = 1;\n r7[r8] = r26;\n r8 = 2;\n r7[r8] = r27;\n com.tencent.mm.sdk.platformtools.x.printErrStackTrace(r5, r4, r6, r7);\n goto L_0x0498;\n L_0x0af1:\n r4 = move-exception;\n r5 = \"MicroMsg.AppBrandNetworkUpload\";\n r6 = \"exception3 : %s , url is %s filepath %s \";\n r7 = 3;\n r7 = new java.lang.Object[r7];\n r8 = 0;\n r9 = r4.toString();\n r7[r8] = r9;\n r8 = 1;\n r7[r8] = r26;\n r8 = 2;\n r7[r8] = r27;\n com.tencent.mm.sdk.platformtools.x.printErrStackTrace(r5, r4, r6, r7);\n goto L_0x049d;\n L_0x0b0d:\n r4 = move-exception;\n r5 = \"MicroMsg.AppBrandNetworkUpload\";\n r6 = \"\";\n r7 = 0;\n r7 = new java.lang.Object[r7];\n com.tencent.mm.sdk.platformtools.x.printErrStackTrace(r5, r4, r6, r7);\n goto L_0x049d;\n L_0x0b1c:\n r4 = move-exception;\n r5 = \"MicroMsg.AppBrandNetworkUpload\";\n r6 = \"\";\n r7 = 0;\n r7 = new java.lang.Object[r7];\n com.tencent.mm.sdk.platformtools.x.printErrStackTrace(r5, r4, r6, r7);\n goto L_0x049d;\n L_0x0b2b:\n r4 = move-exception;\n r5 = \"MicroMsg.AppBrandNetworkUpload\";\n r6 = \"exception4 : %s ,url is %s filepath %s \";\n r7 = 3;\n r7 = new java.lang.Object[r7];\n r8 = 0;\n r9 = r4.toString();\n r7[r8] = r9;\n r8 = 1;\n r7[r8] = r26;\n r8 = 2;\n r7[r8] = r27;\n com.tencent.mm.sdk.platformtools.x.printErrStackTrace(r5, r4, r6, r7);\n goto L_0x04a2;\n L_0x0b47:\n r5 = move-exception;\n r13 = r5;\n r16 = r14;\n L_0x0b4b:\n r5 = com.tencent.mm.plugin.report.service.h.mEJ;\t Catch:{ all -> 0x0edb }\n r6 = 436; // 0x1b4 float:6.11E-43 double:2.154E-321;\n r8 = 4;\n r10 = 1;\n r12 = 0;\n r5.a(r6, r8, r10, r12);\t Catch:{ all -> 0x0edb }\n r5 = \"MicroMsg.AppBrandNetworkUpload\";\n r6 = \"SocketTimeoutException : %s ,url is %s filepath %s \";\n r7 = 3;\n r7 = new java.lang.Object[r7];\t Catch:{ all -> 0x0edb }\n r8 = 0;\n r9 = r13.toString();\t Catch:{ all -> 0x0edb }\n r7[r8] = r9;\t Catch:{ all -> 0x0edb }\n r8 = 1;\n r7[r8] = r26;\t Catch:{ all -> 0x0edb }\n r8 = 2;\n r7[r8] = r27;\t Catch:{ all -> 0x0edb }\n com.tencent.mm.sdk.platformtools.x.printErrStackTrace(r5, r13, r6, r7);\t Catch:{ all -> 0x0edb }\n r5 = -1;\n r6 = \"socket timeout error\";\n r0 = r22;\n r4.e(r5, r6, r0);\t Catch:{ all -> 0x0edb }\n r0 = r37;\n r4 = r0.glg;\n r4 = r4.mAppId;\n r0 = r38;\n r5 = r0.glc;\n r6 = \"POST\";\n r0 = r38;\n r7 = r0.mUrl;\n r0 = r23;\n r10 = (long) r0;\n r13 = 2;\n r14 = r38.alt();\n r8 = r20;\n r12 = r22;\n com.tencent.mm.plugin.appbrand.report.a.l.a(r4, r5, r6, r7, r8, r10, r12, r13, r14);\n r4 = 0;\n r0 = r38;\n r0.bgH = r4;\n r0 = r37;\n r4 = r0.glg;\n r0 = r38;\n r5 = r0.fEl;\n com.tencent.mm.plugin.appbrand.k.f.a(r4, r5, r15);\n if (r16 == 0) goto L_0x0bae;\n L_0x0bab:\n r16.close();\t Catch:{ Exception -> 0x0bc7 }\n L_0x0bae:\n if (r17 == 0) goto L_0x0bb3;\n L_0x0bb0:\n r17.close();\t Catch:{ IOException -> 0x0be2, ArrayIndexOutOfBoundsException -> 0x0bfd, Throwable -> 0x0c0b }\n L_0x0bb3:\n if (r18 == 0) goto L_0x0bb8;\n L_0x0bb5:\n r18.close();\t Catch:{ IOException -> 0x0c19 }\n L_0x0bb8:\n r0 = r37;\n r4 = r0.glg;\n r4 = r4.gkF;\n r0 = r38;\n r5 = r0.fEl;\n r4.remove(r5);\n goto L_0x0092;\n L_0x0bc7:\n r4 = move-exception;\n r5 = \"MicroMsg.AppBrandNetworkUpload\";\n r6 = \"exception2 : %s ,url is %s filepath %s \";\n r7 = 3;\n r7 = new java.lang.Object[r7];\n r8 = 0;\n r9 = r4.toString();\n r7[r8] = r9;\n r8 = 1;\n r7[r8] = r26;\n r8 = 2;\n r7[r8] = r27;\n com.tencent.mm.sdk.platformtools.x.printErrStackTrace(r5, r4, r6, r7);\n goto L_0x0bae;\n L_0x0be2:\n r4 = move-exception;\n r5 = \"MicroMsg.AppBrandNetworkUpload\";\n r6 = \"exception3 : %s , url is %s filepath %s \";\n r7 = 3;\n r7 = new java.lang.Object[r7];\n r8 = 0;\n r9 = r4.toString();\n r7[r8] = r9;\n r8 = 1;\n r7[r8] = r26;\n r8 = 2;\n r7[r8] = r27;\n com.tencent.mm.sdk.platformtools.x.printErrStackTrace(r5, r4, r6, r7);\n goto L_0x0bb3;\n L_0x0bfd:\n r4 = move-exception;\n r5 = \"MicroMsg.AppBrandNetworkUpload\";\n r6 = \"\";\n r7 = 0;\n r7 = new java.lang.Object[r7];\n com.tencent.mm.sdk.platformtools.x.printErrStackTrace(r5, r4, r6, r7);\n goto L_0x0bb3;\n L_0x0c0b:\n r4 = move-exception;\n r5 = \"MicroMsg.AppBrandNetworkUpload\";\n r6 = \"\";\n r7 = 0;\n r7 = new java.lang.Object[r7];\n com.tencent.mm.sdk.platformtools.x.printErrStackTrace(r5, r4, r6, r7);\n goto L_0x0bb3;\n L_0x0c19:\n r4 = move-exception;\n r5 = \"MicroMsg.AppBrandNetworkUpload\";\n r6 = \"exception4 : %s ,url is %s filepath %s \";\n r7 = 3;\n r7 = new java.lang.Object[r7];\n r8 = 0;\n r9 = r4.toString();\n r7[r8] = r9;\n r8 = 1;\n r7[r8] = r26;\n r8 = 2;\n r7[r8] = r27;\n com.tencent.mm.sdk.platformtools.x.printErrStackTrace(r5, r4, r6, r7);\n goto L_0x0bb8;\n L_0x0c34:\n r5 = move-exception;\n r13 = r5;\n r16 = r14;\n L_0x0c38:\n r5 = com.tencent.mm.plugin.report.service.h.mEJ;\t Catch:{ all -> 0x0edb }\n r6 = 436; // 0x1b4 float:6.11E-43 double:2.154E-321;\n r8 = 6;\n r10 = 1;\n r12 = 0;\n r5.a(r6, r8, r10, r12);\t Catch:{ all -> 0x0edb }\n r5 = \"MicroMsg.AppBrandNetworkUpload\";\n r6 = \"SSLProtocolException: %s ,url is %s filepath %s \";\n r7 = 3;\n r7 = new java.lang.Object[r7];\t Catch:{ all -> 0x0edb }\n r8 = 0;\n r9 = r13.toString();\t Catch:{ all -> 0x0edb }\n r7[r8] = r9;\t Catch:{ all -> 0x0edb }\n r8 = 1;\n r7[r8] = r26;\t Catch:{ all -> 0x0edb }\n r8 = 2;\n r7[r8] = r27;\t Catch:{ all -> 0x0edb }\n com.tencent.mm.sdk.platformtools.x.printErrStackTrace(r5, r13, r6, r7);\t Catch:{ all -> 0x0edb }\n r5 = -1;\n r6 = \"ssl protocol error\";\n r0 = r22;\n r4.e(r5, r6, r0);\t Catch:{ all -> 0x0edb }\n r0 = r37;\n r4 = r0.glg;\n r4 = r4.mAppId;\n r0 = r38;\n r5 = r0.glc;\n r6 = \"POST\";\n r0 = r38;\n r7 = r0.mUrl;\n r0 = r23;\n r10 = (long) r0;\n r13 = 2;\n r14 = r38.alt();\n r8 = r20;\n r12 = r22;\n com.tencent.mm.plugin.appbrand.report.a.l.a(r4, r5, r6, r7, r8, r10, r12, r13, r14);\n r4 = 0;\n r0 = r38;\n r0.bgH = r4;\n r0 = r37;\n r4 = r0.glg;\n r0 = r38;\n r5 = r0.fEl;\n com.tencent.mm.plugin.appbrand.k.f.a(r4, r5, r15);\n if (r16 == 0) goto L_0x0c9b;\n L_0x0c98:\n r16.close();\t Catch:{ Exception -> 0x0cb4 }\n L_0x0c9b:\n if (r17 == 0) goto L_0x0ca0;\n L_0x0c9d:\n r17.close();\t Catch:{ IOException -> 0x0ccf, ArrayIndexOutOfBoundsException -> 0x0cea, Throwable -> 0x0cf8 }\n L_0x0ca0:\n if (r18 == 0) goto L_0x0ca5;\n L_0x0ca2:\n r18.close();\t Catch:{ IOException -> 0x0d06 }\n L_0x0ca5:\n r0 = r37;\n r4 = r0.glg;\n r4 = r4.gkF;\n r0 = r38;\n r5 = r0.fEl;\n r4.remove(r5);\n goto L_0x0092;\n L_0x0cb4:\n r4 = move-exception;\n r5 = \"MicroMsg.AppBrandNetworkUpload\";\n r6 = \"exception2 : %s ,url is %s filepath %s \";\n r7 = 3;\n r7 = new java.lang.Object[r7];\n r8 = 0;\n r9 = r4.toString();\n r7[r8] = r9;\n r8 = 1;\n r7[r8] = r26;\n r8 = 2;\n r7[r8] = r27;\n com.tencent.mm.sdk.platformtools.x.printErrStackTrace(r5, r4, r6, r7);\n goto L_0x0c9b;\n L_0x0ccf:\n r4 = move-exception;\n r5 = \"MicroMsg.AppBrandNetworkUpload\";\n r6 = \"exception3 : %s , url is %s filepath %s \";\n r7 = 3;\n r7 = new java.lang.Object[r7];\n r8 = 0;\n r9 = r4.toString();\n r7[r8] = r9;\n r8 = 1;\n r7[r8] = r26;\n r8 = 2;\n r7[r8] = r27;\n com.tencent.mm.sdk.platformtools.x.printErrStackTrace(r5, r4, r6, r7);\n goto L_0x0ca0;\n L_0x0cea:\n r4 = move-exception;\n r5 = \"MicroMsg.AppBrandNetworkUpload\";\n r6 = \"\";\n r7 = 0;\n r7 = new java.lang.Object[r7];\n com.tencent.mm.sdk.platformtools.x.printErrStackTrace(r5, r4, r6, r7);\n goto L_0x0ca0;\n L_0x0cf8:\n r4 = move-exception;\n r5 = \"MicroMsg.AppBrandNetworkUpload\";\n r6 = \"\";\n r7 = 0;\n r7 = new java.lang.Object[r7];\n com.tencent.mm.sdk.platformtools.x.printErrStackTrace(r5, r4, r6, r7);\n goto L_0x0ca0;\n L_0x0d06:\n r4 = move-exception;\n r5 = \"MicroMsg.AppBrandNetworkUpload\";\n r6 = \"exception4 : %s ,url is %s filepath %s \";\n r7 = 3;\n r7 = new java.lang.Object[r7];\n r8 = 0;\n r9 = r4.toString();\n r7[r8] = r9;\n r8 = 1;\n r7[r8] = r26;\n r8 = 2;\n r7[r8] = r27;\n com.tencent.mm.sdk.platformtools.x.printErrStackTrace(r5, r4, r6, r7);\n goto L_0x0ca5;\n L_0x0d21:\n r5 = move-exception;\n r13 = r5;\n r16 = r14;\n L_0x0d25:\n r5 = com.tencent.mm.plugin.report.service.h.mEJ;\t Catch:{ all -> 0x0edb }\n r6 = 436; // 0x1b4 float:6.11E-43 double:2.154E-321;\n r8 = 5;\n r10 = 1;\n r12 = 0;\n r5.a(r6, r8, r10, r12);\t Catch:{ all -> 0x0edb }\n r5 = \"MicroMsg.AppBrandNetworkUpload\";\n r6 = \"exception1: %s ,url is %s filepath %s \";\n r7 = 3;\n r7 = new java.lang.Object[r7];\t Catch:{ all -> 0x0edb }\n r8 = 0;\n r9 = r13.toString();\t Catch:{ all -> 0x0edb }\n r7[r8] = r9;\t Catch:{ all -> 0x0edb }\n r8 = 1;\n r7[r8] = r26;\t Catch:{ all -> 0x0edb }\n r8 = 2;\n r7[r8] = r27;\t Catch:{ all -> 0x0edb }\n com.tencent.mm.sdk.platformtools.x.printErrStackTrace(r5, r13, r6, r7);\t Catch:{ all -> 0x0edb }\n r5 = -1;\n r6 = new java.lang.StringBuilder;\t Catch:{ all -> 0x0edb }\n r6.<init>();\t Catch:{ all -> 0x0edb }\n r7 = r13.getMessage();\t Catch:{ all -> 0x0edb }\n r6 = r6.append(r7);\t Catch:{ all -> 0x0edb }\n r6 = r6.toString();\t Catch:{ all -> 0x0edb }\n r0 = r22;\n r4.e(r5, r6, r0);\t Catch:{ all -> 0x0edb }\n r0 = r37;\n r4 = r0.glg;\n r4 = r4.mAppId;\n r0 = r38;\n r5 = r0.glc;\n r6 = \"POST\";\n r0 = r38;\n r7 = r0.mUrl;\n r0 = r23;\n r10 = (long) r0;\n r13 = 2;\n r14 = r38.alt();\n r8 = r20;\n r12 = r22;\n com.tencent.mm.plugin.appbrand.report.a.l.a(r4, r5, r6, r7, r8, r10, r12, r13, r14);\n r4 = 0;\n r0 = r38;\n r0.bgH = r4;\n r0 = r37;\n r4 = r0.glg;\n r0 = r38;\n r5 = r0.fEl;\n com.tencent.mm.plugin.appbrand.k.f.a(r4, r5, r15);\n if (r16 == 0) goto L_0x0d96;\n L_0x0d93:\n r16.close();\t Catch:{ Exception -> 0x0daf }\n L_0x0d96:\n if (r17 == 0) goto L_0x0d9b;\n L_0x0d98:\n r17.close();\t Catch:{ IOException -> 0x0dca, ArrayIndexOutOfBoundsException -> 0x0de5, Throwable -> 0x0df3 }\n L_0x0d9b:\n if (r18 == 0) goto L_0x0da0;\n L_0x0d9d:\n r18.close();\t Catch:{ IOException -> 0x0e01 }\n L_0x0da0:\n r0 = r37;\n r4 = r0.glg;\n r4 = r4.gkF;\n r0 = r38;\n r5 = r0.fEl;\n r4.remove(r5);\n goto L_0x0092;\n L_0x0daf:\n r4 = move-exception;\n r5 = \"MicroMsg.AppBrandNetworkUpload\";\n r6 = \"exception2 : %s ,url is %s filepath %s \";\n r7 = 3;\n r7 = new java.lang.Object[r7];\n r8 = 0;\n r9 = r4.toString();\n r7[r8] = r9;\n r8 = 1;\n r7[r8] = r26;\n r8 = 2;\n r7[r8] = r27;\n com.tencent.mm.sdk.platformtools.x.printErrStackTrace(r5, r4, r6, r7);\n goto L_0x0d96;\n L_0x0dca:\n r4 = move-exception;\n r5 = \"MicroMsg.AppBrandNetworkUpload\";\n r6 = \"exception3 : %s , url is %s filepath %s \";\n r7 = 3;\n r7 = new java.lang.Object[r7];\n r8 = 0;\n r9 = r4.toString();\n r7[r8] = r9;\n r8 = 1;\n r7[r8] = r26;\n r8 = 2;\n r7[r8] = r27;\n com.tencent.mm.sdk.platformtools.x.printErrStackTrace(r5, r4, r6, r7);\n goto L_0x0d9b;\n L_0x0de5:\n r4 = move-exception;\n r5 = \"MicroMsg.AppBrandNetworkUpload\";\n r6 = \"\";\n r7 = 0;\n r7 = new java.lang.Object[r7];\n com.tencent.mm.sdk.platformtools.x.printErrStackTrace(r5, r4, r6, r7);\n goto L_0x0d9b;\n L_0x0df3:\n r4 = move-exception;\n r5 = \"MicroMsg.AppBrandNetworkUpload\";\n r6 = \"\";\n r7 = 0;\n r7 = new java.lang.Object[r7];\n com.tencent.mm.sdk.platformtools.x.printErrStackTrace(r5, r4, r6, r7);\n goto L_0x0d9b;\n L_0x0e01:\n r4 = move-exception;\n r5 = \"MicroMsg.AppBrandNetworkUpload\";\n r6 = \"exception4 : %s ,url is %s filepath %s \";\n r7 = 3;\n r7 = new java.lang.Object[r7];\n r8 = 0;\n r9 = r4.toString();\n r7[r8] = r9;\n r8 = 1;\n r7[r8] = r26;\n r8 = 2;\n r7[r8] = r27;\n com.tencent.mm.sdk.platformtools.x.printErrStackTrace(r5, r4, r6, r7);\n goto L_0x0da0;\n L_0x0e1c:\n r4 = move-exception;\n r24 = r4;\n r16 = r14;\n r8 = r20;\n r12 = r22;\n L_0x0e25:\n r0 = r37;\n r4 = r0.glg;\n r4 = r4.mAppId;\n r0 = r38;\n r5 = r0.glc;\n r6 = \"POST\";\n r0 = r38;\n r7 = r0.mUrl;\n r0 = r23;\n r10 = (long) r0;\n r13 = 2;\n r14 = r38.alt();\n com.tencent.mm.plugin.appbrand.report.a.l.a(r4, r5, r6, r7, r8, r10, r12, r13, r14);\n r4 = 0;\n r0 = r38;\n r0.bgH = r4;\n r0 = r37;\n r4 = r0.glg;\n r0 = r38;\n r5 = r0.fEl;\n com.tencent.mm.plugin.appbrand.k.f.a(r4, r5, r15);\n if (r16 == 0) goto L_0x0e56;\n L_0x0e53:\n r16.close();\t Catch:{ Exception -> 0x0e6e }\n L_0x0e56:\n if (r17 == 0) goto L_0x0e5b;\n L_0x0e58:\n r17.close();\t Catch:{ IOException -> 0x0e89, ArrayIndexOutOfBoundsException -> 0x0ea4, Throwable -> 0x0eb2 }\n L_0x0e5b:\n if (r18 == 0) goto L_0x0e60;\n L_0x0e5d:\n r18.close();\t Catch:{ IOException -> 0x0ec0 }\n L_0x0e60:\n r0 = r37;\n r4 = r0.glg;\n r4 = r4.gkF;\n r0 = r38;\n r5 = r0.fEl;\n r4.remove(r5);\n throw r24;\n L_0x0e6e:\n r4 = move-exception;\n r5 = \"MicroMsg.AppBrandNetworkUpload\";\n r6 = \"exception2 : %s ,url is %s filepath %s \";\n r7 = 3;\n r7 = new java.lang.Object[r7];\n r8 = 0;\n r9 = r4.toString();\n r7[r8] = r9;\n r8 = 1;\n r7[r8] = r26;\n r8 = 2;\n r7[r8] = r27;\n com.tencent.mm.sdk.platformtools.x.printErrStackTrace(r5, r4, r6, r7);\n goto L_0x0e56;\n L_0x0e89:\n r4 = move-exception;\n r5 = \"MicroMsg.AppBrandNetworkUpload\";\n r6 = \"exception3 : %s , url is %s filepath %s \";\n r7 = 3;\n r7 = new java.lang.Object[r7];\n r8 = 0;\n r9 = r4.toString();\n r7[r8] = r9;\n r8 = 1;\n r7[r8] = r26;\n r8 = 2;\n r7[r8] = r27;\n com.tencent.mm.sdk.platformtools.x.printErrStackTrace(r5, r4, r6, r7);\n goto L_0x0e5b;\n L_0x0ea4:\n r4 = move-exception;\n r5 = \"MicroMsg.AppBrandNetworkUpload\";\n r6 = \"\";\n r7 = 0;\n r7 = new java.lang.Object[r7];\n com.tencent.mm.sdk.platformtools.x.printErrStackTrace(r5, r4, r6, r7);\n goto L_0x0e5b;\n L_0x0eb2:\n r4 = move-exception;\n r5 = \"MicroMsg.AppBrandNetworkUpload\";\n r6 = \"\";\n r7 = 0;\n r7 = new java.lang.Object[r7];\n com.tencent.mm.sdk.platformtools.x.printErrStackTrace(r5, r4, r6, r7);\n goto L_0x0e5b;\n L_0x0ec0:\n r4 = move-exception;\n r5 = \"MicroMsg.AppBrandNetworkUpload\";\n r6 = \"exception4 : %s ,url is %s filepath %s \";\n r7 = 3;\n r7 = new java.lang.Object[r7];\n r8 = 0;\n r9 = r4.toString();\n r7[r8] = r9;\n r8 = 1;\n r7[r8] = r26;\n r8 = 2;\n r7[r8] = r27;\n com.tencent.mm.sdk.platformtools.x.printErrStackTrace(r5, r4, r6, r7);\n goto L_0x0e60;\n L_0x0edb:\n r4 = move-exception;\n r24 = r4;\n r8 = r20;\n r12 = r22;\n goto L_0x0e25;\n L_0x0ee4:\n r4 = move-exception;\n r24 = r4;\n r18 = r19;\n r8 = r20;\n r12 = r22;\n goto L_0x0e25;\n L_0x0eef:\n r4 = move-exception;\n r24 = r4;\n r18 = r19;\n r12 = r22;\n goto L_0x0e25;\n L_0x0ef8:\n r4 = move-exception;\n r24 = r4;\n r18 = r19;\n r8 = r6;\n r12 = r22;\n goto L_0x0e25;\n L_0x0f02:\n r4 = move-exception;\n r24 = r4;\n r18 = r19;\n goto L_0x0e25;\n L_0x0f09:\n r4 = move-exception;\n r24 = r4;\n r18 = r19;\n r23 = r6;\n goto L_0x0e25;\n L_0x0f12:\n r4 = move-exception;\n r24 = r4;\n r18 = r19;\n r23 = r10;\n goto L_0x0e25;\n L_0x0f1b:\n r5 = move-exception;\n r13 = r5;\n goto L_0x0d25;\n L_0x0f1f:\n r5 = move-exception;\n r13 = r5;\n r18 = r19;\n goto L_0x0d25;\n L_0x0f25:\n r5 = move-exception;\n r13 = r5;\n r18 = r19;\n r20 = r8;\n goto L_0x0d25;\n L_0x0f2d:\n r5 = move-exception;\n r13 = r5;\n r18 = r19;\n r20 = r6;\n goto L_0x0d25;\n L_0x0f35:\n r5 = move-exception;\n r13 = r5;\n r18 = r19;\n r20 = r8;\n r22 = r12;\n goto L_0x0d25;\n L_0x0f3f:\n r5 = move-exception;\n r13 = r5;\n r18 = r19;\n r20 = r8;\n r22 = r12;\n r23 = r6;\n goto L_0x0d25;\n L_0x0f4b:\n r5 = move-exception;\n r13 = r5;\n r18 = r19;\n r20 = r8;\n r22 = r12;\n r23 = r10;\n goto L_0x0d25;\n L_0x0f57:\n r5 = move-exception;\n r13 = r5;\n goto L_0x0c38;\n L_0x0f5b:\n r5 = move-exception;\n r13 = r5;\n r18 = r19;\n goto L_0x0c38;\n L_0x0f61:\n r5 = move-exception;\n r13 = r5;\n r18 = r19;\n r20 = r8;\n goto L_0x0c38;\n L_0x0f69:\n r5 = move-exception;\n r13 = r5;\n r18 = r19;\n r20 = r6;\n goto L_0x0c38;\n L_0x0f71:\n r5 = move-exception;\n r13 = r5;\n r18 = r19;\n r20 = r8;\n r22 = r12;\n goto L_0x0c38;\n L_0x0f7b:\n r5 = move-exception;\n r13 = r5;\n r18 = r19;\n r20 = r8;\n r22 = r12;\n r23 = r6;\n goto L_0x0c38;\n L_0x0f87:\n r5 = move-exception;\n r13 = r5;\n r18 = r19;\n r20 = r8;\n r22 = r12;\n r23 = r10;\n goto L_0x0c38;\n L_0x0f93:\n r5 = move-exception;\n r13 = r5;\n goto L_0x0b4b;\n L_0x0f97:\n r5 = move-exception;\n r13 = r5;\n r18 = r19;\n goto L_0x0b4b;\n L_0x0f9d:\n r5 = move-exception;\n r13 = r5;\n r18 = r19;\n r20 = r8;\n goto L_0x0b4b;\n L_0x0fa5:\n r5 = move-exception;\n r13 = r5;\n r18 = r19;\n r20 = r6;\n goto L_0x0b4b;\n L_0x0fad:\n r5 = move-exception;\n r13 = r5;\n r18 = r19;\n r20 = r8;\n r22 = r12;\n goto L_0x0b4b;\n L_0x0fb7:\n r5 = move-exception;\n r13 = r5;\n r18 = r19;\n r20 = r8;\n r22 = r12;\n r23 = r6;\n goto L_0x0b4b;\n L_0x0fc3:\n r5 = move-exception;\n r13 = r5;\n r18 = r19;\n r20 = r8;\n r22 = r12;\n r23 = r10;\n goto L_0x0b4b;\n L_0x0fcf:\n r5 = move-exception;\n r13 = r5;\n r16 = r14;\n goto L_0x0435;\n L_0x0fd5:\n r5 = move-exception;\n r13 = r5;\n r18 = r19;\n goto L_0x0435;\n L_0x0fdb:\n r5 = move-exception;\n r13 = r5;\n r18 = r19;\n r20 = r8;\n goto L_0x0435;\n L_0x0fe3:\n r5 = move-exception;\n r13 = r5;\n r18 = r19;\n r20 = r6;\n goto L_0x0435;\n L_0x0feb:\n r5 = move-exception;\n r13 = r5;\n r18 = r19;\n r20 = r8;\n r22 = r12;\n goto L_0x0435;\n L_0x0ff5:\n r5 = move-exception;\n r13 = r5;\n r18 = r19;\n r20 = r8;\n r22 = r12;\n r23 = r6;\n goto L_0x0435;\n L_0x1001:\n r5 = move-exception;\n r13 = r5;\n r18 = r19;\n r20 = r8;\n r22 = r12;\n r23 = r10;\n goto L_0x0435;\n L_0x100d:\n r5 = move-exception;\n r13 = r5;\n r16 = r14;\n goto L_0x02e8;\n L_0x1013:\n r5 = move-exception;\n r13 = r5;\n r18 = r19;\n goto L_0x02e8;\n L_0x1019:\n r5 = move-exception;\n r13 = r5;\n r18 = r19;\n r20 = r8;\n goto L_0x02e8;\n L_0x1021:\n r5 = move-exception;\n r13 = r5;\n r18 = r19;\n r20 = r6;\n goto L_0x02e8;\n L_0x1029:\n r5 = move-exception;\n r13 = r5;\n r18 = r19;\n r20 = r8;\n r22 = r12;\n r23 = r6;\n goto L_0x02e8;\n L_0x1035:\n r5 = move-exception;\n r13 = r5;\n r18 = r19;\n r20 = r8;\n r22 = r12;\n r23 = r10;\n goto L_0x02e8;\n L_0x1041:\n r5 = move-exception;\n r13 = r5;\n r16 = r14;\n goto L_0x0259;\n L_0x1047:\n r5 = move-exception;\n r13 = r5;\n r18 = r19;\n goto L_0x0259;\n L_0x104d:\n r5 = move-exception;\n r13 = r5;\n r18 = r19;\n r20 = r8;\n goto L_0x0259;\n L_0x1055:\n r5 = move-exception;\n r13 = r5;\n r18 = r19;\n r20 = r6;\n goto L_0x0259;\n L_0x105d:\n r5 = move-exception;\n r13 = r5;\n r18 = r19;\n r20 = r8;\n r22 = r12;\n r23 = r6;\n goto L_0x0259;\n L_0x1069:\n r5 = move-exception;\n r13 = r5;\n r18 = r19;\n r20 = r8;\n r22 = r12;\n r23 = r10;\n goto L_0x0259;\n L_0x1075:\n r5 = r25;\n r10 = r23;\n goto L_0x08f0;\n L_0x107b:\n r8 = r6;\n goto L_0x05ad;\n L_0x107e:\n r11 = r5;\n goto L_0x0566;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.mm.plugin.appbrand.k.f$b.b(com.tencent.mm.plugin.appbrand.k.g):void\");\n }", "@Override\n public void onPreviewFrame(byte[] data, Camera camera) {\n\n Camera.Parameters parameters = camera.getParameters();\n int width = parameters.getPreviewSize().width;\n int height = parameters.getPreviewSize().height;\n\n mCamera.addCallbackBuffer(data);\n\n if (yuvType == null) {\n yuvType = new Type.Builder(rs, Element.U8(rs)).setX(data.length);\n in = Allocation.createTyped(rs, yuvType.create(), Allocation.USAGE_SCRIPT);\n\n rgbaType = new Type.Builder(rs, Element.RGBA_8888(rs)).setX(width).setY(height);\n out = Allocation.createTyped(rs, rgbaType.create(), Allocation.USAGE_SCRIPT);\n }\n\n in.copyFrom(data);\n\n yuvToRgbIntrinsic.setInput(in);\n yuvToRgbIntrinsic.forEach(out);\n\n Bitmap mBitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);\n out.copyTo(mBitmap);\n\n mBitmap = GlobalUtils.rotateBitmapOnOrientation(mBitmap,ctx);\n\n liveCamera.setVisibility(VISIBLE);\n\n if(PROCESS_IMAGE) {\n\n if(PROCESSING_TYPE == 1) {\n Rect2d rect2d = new Rect2d(100, 100, 100, 100);\n imageProcessing.RunDetection(mBitmap);\n liveCamera.setImageBitmap(mBitmap);\n }else{\n //Rect2d rect2d = new Rect2d(100, 100, 100, 100);\n liveCamera.setImageBitmap(mBitmap);\n\n }\n\n } else{\n liveCamera.setImageBitmap(mBitmap);\n }\n\n }", "private BandPassFilter constructBPF(float r) {\n float width = 0.20f/r;\n BandPassFilter bpf = new BandPassFilter(0.0,0.5/r,width,0.01);\n return bpf;\n }", "protected void b(Drawable drawable)\n {\n class b {}\n\n if (j != null)\n {\n j.a(drawable);\n }\n }", "public static Object gvRenderContext(Object... arg) {\r\nUNSUPPORTED(\"6bxfu9f9cshxn0i97berfl9bw\"); // int gvRenderContext(GVC_t *gvc, graph_t *g, const char *format, void *context)\r\nUNSUPPORTED(\"erg9i1970wdri39osu8hx2a6e\"); // {\r\nUNSUPPORTED(\"1bh3yj957he6yv2dkeg4pzwdk\"); // int rc;\r\nUNSUPPORTED(\"1ag9dz4apxn0w3cz8w2bfm6se\"); // GVJ_t *job;\r\nUNSUPPORTED(\"8msotrfl0cngiua3j57ylm26b\"); // g = g->root;\r\nUNSUPPORTED(\"exts51afuertju5ed5v7pdpg7\"); // /* create a job for the required format */\r\nUNSUPPORTED(\"dn6z1r1bbrtmr58m8dnfgfnm0\"); // rc = gvjobs_output_langname(gvc, format);\r\nUNSUPPORTED(\"5apijrijm2r8b1g2l4x7iee7s\"); // job = gvc->job;\r\nUNSUPPORTED(\"5wvj0ph8uqfgg8jl3g39jsf51\"); // if (rc == 999) {\r\nUNSUPPORTED(\"8r1a6szpsnku0jhatqkh0qo75\"); // \t\tagerr(AGERR, \"Format: \\\"%s\\\" not recognized. Use one of:%s\\n\",\r\nUNSUPPORTED(\"2pj79j8toe6bactkaedt54xcv\"); // \t\t\t format, gvplugin_list(gvc, API_device, format));\r\nUNSUPPORTED(\"b0epxudfxjm8kichhaautm2qi\"); // \t\treturn -1;\r\nUNSUPPORTED(\"dvgyxsnyeqqnyzq696k3vskib\"); // }\r\nUNSUPPORTED(\"ect62lxc3zm51lhzifift55m\"); // job->output_lang = gvrender_select(job, job->output_langname);\r\nUNSUPPORTED(\"ewlceg1k4gs2e6syq4ear5kzo\"); // if (!(agbindrec(g, \"Agraphinfo_t\", 0, NOT(0)) && GD_drawing(g)) && !(job->flags & (1<<26))) {\r\nUNSUPPORTED(\"3yo4xyapbp7osp8uyz4kff98s\"); // \tagerrorf( \"Layout was not done\\n\");\r\nUNSUPPORTED(\"b0epxudfxjm8kichhaautm2qi\"); // \t\treturn -1;\r\nUNSUPPORTED(\"dvgyxsnyeqqnyzq696k3vskib\"); // }\r\nUNSUPPORTED(\"ex1rhur9nlj950oe8r621uxxk\"); // job->context = context;\r\nUNSUPPORTED(\"3hvm1mza6yapsb3hi7bkw03cs\"); // job->external_context = NOT(0);\r\nUNSUPPORTED(\"9szsye4q9jykqvtk0bc1r91d0\"); // rc = gvRenderJobs(gvc, g);\r\nUNSUPPORTED(\"7l8ugws8ptgtlxc1ymmh3cf18\"); // gvrender_end_job(job);\r\nUNSUPPORTED(\"dql0bth0nzsrpiu9vnffonrhf\"); // gvdevice_finalize(job);\r\nUNSUPPORTED(\"a9p7yonln7g91ge7xab3xf9dr\"); // gvjobs_delete(gvc);\r\nUNSUPPORTED(\"5bc9k4vsl6g7wejc5xefc5964\"); // return rc;\r\nUNSUPPORTED(\"c24nfmv9i7o5eoqaymbibp7m7\"); // }\r\n\r\nthrow new UnsupportedOperationException();\r\n}", "@Override\n protected UnaryFunction<PipelineOptions, Pipeline> getCreatePipelineFromOpts() {\n return opts -> {\n opts.setRunner(runner);\n if (runner.getSimpleName().equals(\"FlinkRunner\")) {\n prepareFlinkEnvironment(opts.as(FlinkPipelineOptions.class));\n }\n return Pipeline.create(opts);\n };\n }", "public interface ZEPipelineBindLayoutBuilder {\n\n\t/** Adds a binding to the bind layout.\n\t * \n\t * @param binding The binding location\n\t * @param bindType The type of binding\n\t * @param arrayCount Number of elements in the \n\t * @param shaderStages\n\t */\n\tpublic void addBinding(int binding, ZEPipelineBindType bindType, int arrayCount, String[] shaderStages);\n\t\n\t/** Builds the pipeline bind layout.\n\t * \n\t * @return Pipeline bind layout\n\t */\n\tpublic ZEPipelineBindLayout build();\n\t\n}", "public interface DrawFnAccess { void drawWebViewFunctor(Canvas canvas, int functor); }", "protected AeGraphFigure createFigure() {\r\n AeBpelSimpleActivityFigure fig = new AeBpelSimpleActivityFigure(getLabelText(), getActivityIconImage());\r\n fig.setEvaluated(isExecuted());\r\n if (getStateAdornmentIconImage() != null) {\r\n AeIcon stateIcon = new AeIcon(getStateAdornmentIconImage());\r\n setStateImageIcon(stateIcon);\r\n fig.getLabel().add(stateIcon);\r\n }\r\n return fig;\r\n }", "@Override\n\t\t\t\t\t\tpublic void onFacebookError(FacebookError fberror) {\n\n\t\t\t\t\t\t}", "@Override\n\t\t\tpublic void onFacebookError(FacebookError e, Object state) {\n\t\t\t\t\n\t\t\t}", "private void m6547b(Canvas canvas) {\n super.dispatchDraw(canvas);\n }", "@Override\n public void renderNextImage() {\n }", "public interface SrollingCallBack {\n /* renamed from: e */\n float mo106363e();\n\n /* renamed from: f */\n float mo106364f();\n\n /* renamed from: g */\n boolean mo106365g();\n\n /* renamed from: h */\n ProfileViewPager mo106366h();\n\n /* renamed from: i */\n ViewGroup mo106367i();\n}", "public interface GraphCallback<T> {\n void pre();\n\n void invoke(T t);\n\n void post();\n}", "@Override\n\tpublic void b1() {\n\t\t\n\t}", "public FacePamphletCanvas() {\n\t}", "@Override\n\tpublic void visit(PartB partB) {\n\n\t}", "@Override\n public void preprocess() {\n }", "public static com.facebook.facerec.manager.LegacyFaceRecManager m15638a(com.facebook.inject.InjectorLike r7) {\n /*\n r2 = com.facebook.inject.ScopeSet.a();\n r0 = com.facebook.auth.userscope.UserScope.class;\n r0 = r7.getInstance(r0);\n r0 = (com.facebook.auth.userscope.UserScope) r0;\n r1 = r7.getScopeAwareInjector();\n r1 = r1.b();\n if (r1 != 0) goto L_0x001e;\n L_0x0016:\n r0 = new com.facebook.inject.ProvisioningException;\n r1 = \"Called user scoped provider outside of context scope\";\n r0.<init>(r1);\n throw r0;\n L_0x001e:\n r3 = r0.a(r1);\n r4 = r3.b();\t Catch:{ all -> 0x006c }\n r1 = f9926h;\t Catch:{ all -> 0x006c }\n r1 = r4.get(r1);\t Catch:{ all -> 0x006c }\n r5 = com.facebook.auth.userscope.UserScope.a;\t Catch:{ all -> 0x006c }\n if (r1 != r5) goto L_0x0035;\n L_0x0030:\n r3.c();\n r0 = 0;\n L_0x0034:\n return r0;\n L_0x0035:\n if (r1 != 0) goto L_0x007c;\n L_0x0037:\n r1 = 4;\n r5 = r2.b(r1);\t Catch:{ }\n r6 = r0.a(r3);\t Catch:{ all -> 0x0067 }\n r0 = r6.e();\t Catch:{ all -> 0x0062 }\n r1 = m15639b(r0);\t Catch:{ all -> 0x0062 }\n com.facebook.auth.userscope.UserScope.a(r6);\t Catch:{ }\n if (r1 != 0) goto L_0x0071;\n L_0x004d:\n r0 = f9926h;\t Catch:{ }\n r6 = com.facebook.auth.userscope.UserScope.a;\t Catch:{ }\n r0 = r4.putIfAbsent(r0, r6);\t Catch:{ }\n r0 = (com.facebook.facerec.manager.LegacyFaceRecManager) r0;\t Catch:{ }\n L_0x0057:\n if (r0 == 0) goto L_0x007a;\n L_0x0059:\n r2.c(r5);\t Catch:{ }\n L_0x005c:\n r0 = (com.facebook.facerec.manager.LegacyFaceRecManager) r0;\t Catch:{ }\n r3.c();\n goto L_0x0034;\n L_0x0062:\n r0 = move-exception;\n com.facebook.auth.userscope.UserScope.a(r6);\t Catch:{ }\n throw r0;\t Catch:{ }\n L_0x0067:\n r0 = move-exception;\n r2.c(r5);\t Catch:{ }\n throw r0;\t Catch:{ }\n L_0x006c:\n r0 = move-exception;\n r3.c();\n throw r0;\n L_0x0071:\n r0 = f9926h;\t Catch:{ }\n r0 = r4.putIfAbsent(r0, r1);\t Catch:{ }\n r0 = (com.facebook.facerec.manager.LegacyFaceRecManager) r0;\t Catch:{ }\n goto L_0x0057;\n L_0x007a:\n r0 = r1;\n goto L_0x0059;\n L_0x007c:\n r0 = r1;\n goto L_0x005c;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.facerec.manager.LegacyFaceRecManager.a(com.facebook.inject.InjectorLike):com.facebook.facerec.manager.LegacyFaceRecManager\");\n }", "@Override\n\t\tpublic void onFacebookError(FacebookError e, Object state) {\n \n \t}", "public RenderContext(short id, Bundles bs, Rectangle2D ext, String color_by, String count_by,\n NodeColor node_color, NodeSize node_size, LinkColor link_color, LinkSize link_size,\n\t\t\t boolean arrows, boolean link_trans, boolean curves, boolean timing, \n\t\t\t boolean draw_node_labels, boolean draw_link_labels, \n\t\t\t java.util.List<String> entity_labels, java.util.List<String> entity_color, java.util.List<String> bundle_labels, GraphBG graph_bg,\n\t\t\t boolean draw_edge_templates, boolean draw_node_legend,\n int w, int h, RenderContext last_rc) {\n timer_a = System.currentTimeMillis();\n render_id = id; this.bs = bs; this.w = w; this.h = h; this.ext = ext;\n this.node_color = node_color; this.node_size = node_size; this.link_color = link_color; this.link_size = link_size;\n this.arrows = arrows; this.link_trans = link_trans; this.curves = curves; this.timing = timing;\n\tthis.draw_node_labels = draw_node_labels; this.draw_link_labels = draw_link_labels;\n\tthis.entity_labels = entity_labels; this.entity_color = entity_color; this.bundle_labels = bundle_labels; this.graph_bg = graph_bg;\n\tthis.color_by = color_by; this.count_by = count_by;\n\tthis.draw_edge_templates = draw_edge_templates; this.draw_node_legend = draw_node_legend;\n\t// Create an initial no map set with all of the bundles\n\tSet<Bundle> no_maps = new HashSet<Bundle>(); no_maps.addAll(bs.bundleSet());\n/*\n System.err.println(\"Extents:\\tx=\" + ext.getX() + \"\\ty=\" + ext.getY() + \n \"\\tcx=\" + ext.getCenterX() + \"\\tcy=\" + ext.getCenterY() +\n \"\\tw=\" + ext.getWidth() + \"\\th=\" + ext.getHeight());\n*/\n // Create the counter contexts\n link_counter_context = new BundlesCounterContext(bs, count_by, color_by);\n node_counter_context = new BundlesCounterContext(bs, count_by, color_by);\n\tentity_counter_context = new BundlesCounterContext(bs, count_by, color_by);\n if (digraph.getNumberOfEntities() == 0) { return; }\n\t// Force a transform\n if (last_rc == null || last_rc.getRCWidth() != w || last_rc.getRCHeight() != h) transform();\n // transform();\n // Figure out which edges are active\n Iterator<Tablet> it_t = bs.tabletIterator();\n while (it_t.hasNext() && currentRenderID() == getRenderID()) { // RenderID used to abort early\n Tablet tablet = it_t.next();\n // Determine if the tablet can be used here\n boolean fills_relationship = (graph.getNumberOfEntities() > 0) && (active_relationships.size() == 0);\n if (fills_relationship == false) for (int i=0;i<active_relationships.size();i++) {\n StringTokenizer st = new StringTokenizer(active_relationships.get(i), BundlesDT.DELIM);\n String fm_e, to_e;\n\t fm_e = Utils.decFmURL(st.nextToken()); st.nextToken() /* icon */ ; st.nextToken(); /* typed */\n\t to_e = Utils.decFmURL(st.nextToken());\n if (KeyMaker.tabletCompletesBlank(tablet, fm_e) && KeyMaker.tabletCompletesBlank(tablet, to_e)) fills_relationship = true;\n }\n boolean tablet_can_count = count_by.equals(BundlesDT.COUNT_BY_BUNS) || KeyMaker.tabletCompletesBlank(tablet, count_by);\n // If it fills the relationship, add to the edges\n if (fills_relationship) {\n Iterator<Bundle> it_b = tablet.bundleIterator(); no_maps.removeAll(tablet.bundleSet());\n\t while (it_b.hasNext() && currentRenderID() == getRenderID()) { // RenderID used to abort early\n Bundle bundle = it_b.next();\n\t Iterator<String> it_l = digraph.linkUnRefIterator(bundle); if (it_l.hasNext() == false) no_maps.add(bundle);\n while (it_l.hasNext()) {\n String graph_edge_ref = it_l.next();\n // Node counts\n String fm_entity = digraph.getEntityDescription(digraph.linkRefFm(graph_edge_ref)), \n to_entity = digraph.getEntityDescription(digraph.linkRefTo(graph_edge_ref));\n visible_entities.add(fm_entity); visible_entities.add(to_entity);\n String node_coord;\n\t // - fm entity\n\t node_coord = entity_to_sxy.get(fm_entity); \n\t if (node_coord_set.containsKey(node_coord) == false) { \n node_coord_set.put(node_coord,new HashSet<String>());\n node_coord_lu.put(node_coord,new Point2D.Float(entity_to_sx.get(fm_entity),entity_to_sy.get(fm_entity)));\n }\n\t node_coord_set.get(node_coord).add(fm_entity);\n\t\tif (tablet_can_count) {\n node_counter_context.count(bundle, node_coord);\n\t\t entity_counter_context.count(bundle, fm_entity);\n }\n // - to entity\n node_coord = entity_to_sxy.get(to_entity); \n\t if (node_coord_set.containsKey(node_coord) == false) {\n node_coord_set.put(node_coord,new HashSet<String>());\n node_coord_lu.put(node_coord,new Point2D.Float(entity_to_sx.get(to_entity),entity_to_sy.get(to_entity)));\n }\n\t node_coord_set.get(node_coord).add(to_entity);\n\t\tif (tablet_can_count) {\n node_counter_context.count(bundle, node_coord);\n\t\t entity_counter_context.count(bundle, to_entity);\n }\n // Link counts\n String line_ref = entity_to_sxy.get(fm_entity) + BundlesDT.DELIM + entity_to_sxy.get(to_entity);\n Line2D line = new Line2D.Float(entity_to_sx.get(fm_entity),entity_to_sy.get(fm_entity),entity_to_sx.get(to_entity),entity_to_sy.get(to_entity));\n if (link_to_line.keySet().contains(line_ref) == false) { link_to_line.put(line_ref, line); line_to_link.put(line, line_ref); }\n\n\t\tif (link_to_graphedgerefs.containsKey(line_ref) == false) link_to_graphedgerefs.put(line_ref,new HashSet<String>());\n\t\tlink_to_graphedgerefs.get(line_ref).add(graph_edge_ref);\n\t\tgraphedgeref_to_link.put(graph_edge_ref,line_ref);\n\n if (tablet_can_count) link_counter_context.count(bundle, line_ref);\n if (line_ref_to_styles.containsKey(line_ref) == false) line_ref_to_styles.put(line_ref, new HashSet<String>());\n line_ref_to_styles.get(line_ref).addAll(digraph.getLinkStyles(graph_edge_ref));\n }\n\t }\n }\n }\n\t// Add all to the no mapping set\n\t// System.err.println(\"RTGraph.no_maps().size = \" + no_maps.size());\n\taddToNoMappingSet(no_maps);\n\t// Stop the timer\n timer_b = System.currentTimeMillis();\n }", "public void publishOnFacebook()\n {\n\n }", "private Bitmap convertToBitmap(byte[] b){\n\n return BitmapFactory.decodeByteArray(b, 0, b.length);\n\n }", "public static Object gvRender(Object... arg) {\r\nUNSUPPORTED(\"e2g1sf67k7u629a0lf4qtd4w8\"); // int gvRender(GVC_t *gvc, graph_t *g, const char *format, FILE *out)\r\nUNSUPPORTED(\"erg9i1970wdri39osu8hx2a6e\"); // {\r\nUNSUPPORTED(\"1bh3yj957he6yv2dkeg4pzwdk\"); // int rc;\r\nUNSUPPORTED(\"1ag9dz4apxn0w3cz8w2bfm6se\"); // GVJ_t *job;\r\nUNSUPPORTED(\"8msotrfl0cngiua3j57ylm26b\"); // g = g->root;\r\nUNSUPPORTED(\"exts51afuertju5ed5v7pdpg7\"); // /* create a job for the required format */\r\nUNSUPPORTED(\"dn6z1r1bbrtmr58m8dnfgfnm0\"); // rc = gvjobs_output_langname(gvc, format);\r\nUNSUPPORTED(\"5apijrijm2r8b1g2l4x7iee7s\"); // job = gvc->job;\r\nUNSUPPORTED(\"5wvj0ph8uqfgg8jl3g39jsf51\"); // if (rc == 999) {\r\nUNSUPPORTED(\"4lkoedjryn54aff3fyrsewwu5\"); // agerr (AGERR, \"Format: \\\"%s\\\" not recognized. Use one of:%s\\n\",\r\nUNSUPPORTED(\"2pjgp86rkudo6mihbako5yps2\"); // format, gvplugin_list(gvc, API_device, format));\r\nUNSUPPORTED(\"f3a98gxettwtewduvje9y3524\"); // return -1;\r\nUNSUPPORTED(\"dvgyxsnyeqqnyzq696k3vskib\"); // }\r\nUNSUPPORTED(\"ect62lxc3zm51lhzifift55m\"); // job->output_lang = gvrender_select(job, job->output_langname);\r\nUNSUPPORTED(\"ewlceg1k4gs2e6syq4ear5kzo\"); // if (!(agbindrec(g, \"Agraphinfo_t\", 0, NOT(0)) && GD_drawing(g)) && !(job->flags & (1<<26))) {\r\nUNSUPPORTED(\"3yo4xyapbp7osp8uyz4kff98s\"); // \tagerrorf( \"Layout was not done\\n\");\r\nUNSUPPORTED(\"8d9xfgejx5vgd6shva5wk5k06\"); // \treturn -1;\r\nUNSUPPORTED(\"dvgyxsnyeqqnyzq696k3vskib\"); // }\r\nUNSUPPORTED(\"2ai20uylya195fbdqwjy9bz0n\"); // job->output_file = out;\r\nUNSUPPORTED(\"10kpqi6pvibjsxjyg0g76lix3\"); // if (out == NULL)\r\nUNSUPPORTED(\"d47ukby9krmz2k8ycmzzynnfr\"); // \tjob->flags |= (1<<27);\r\nUNSUPPORTED(\"9szsye4q9jykqvtk0bc1r91d0\"); // rc = gvRenderJobs(gvc, g);\r\nUNSUPPORTED(\"7l8ugws8ptgtlxc1ymmh3cf18\"); // gvrender_end_job(job);\r\nUNSUPPORTED(\"a9p7yonln7g91ge7xab3xf9dr\"); // gvjobs_delete(gvc);\r\nUNSUPPORTED(\"5bc9k4vsl6g7wejc5xefc5964\"); // return rc;\r\nUNSUPPORTED(\"c24nfmv9i7o5eoqaymbibp7m7\"); // }\r\n\r\nthrow new UnsupportedOperationException();\r\n}", "private final void m576b() {\n C2886bb bbVar = this.f1229b;\n bbVar.getClass();\n this.f1230c.mo44145a().mo43918a().addOnSuccessListener(this.f1236i.mo44145a(), C2963e.m573a(bbVar)).addOnFailureListener(this.f1236i.mo44145a(), C2964f.f1224a);\n }", "void test() {\n @Source(CAMERA) @Sink(INTERNET) byte @Source(CAMERA) @Sink(INTERNET) [] invariant = notCompleted;\n\n // This line used to issue an error but was fixed when transitioning to better type variables\n // check version history for more information if this line is failing\n flowCompleted = notCompleted;\n\n @Source(CAMERA) @Sink({FILESYSTEM, INTERNET}) byte @Source(CAMERA) @Sink({FILESYSTEM, INTERNET})[] a = null;\n @Source(CAMERA) @Sink({INTERNET, FILESYSTEM}) byte @Source(CAMERA) @Sink({FILESYSTEM, INTERNET})[] b = a;\n\n @Source(CAMERA) @Sink({INTERNET, FILESYSTEM}) byte @Source(CAMERA) @Sink({FILESYSTEM, INTERNET})[] aCorrect = null;\n @Source(CAMERA) @Sink({INTERNET, FILESYSTEM}) byte @Source(CAMERA) @Sink({FILESYSTEM, INTERNET})[] bCorrect = aCorrect;\n }", "public interface OnCanvasCallback {\n void onSingleTap();\n\n void onDownDispear();\n\n void setUndoEnable(boolean enable);\n void setRecoverEnable(boolean enable);\n}", "@Override\n\tpublic void renderSource() {\n\t\t\n\t}", "public static void m107503a(SimpleDraweeView simpleDraweeView, Uri uri, int i, int i2) {\n try {\n simpleDraweeView.setController(((PipelineDraweeControllerBuilder) ((PipelineDraweeControllerBuilder) Fresco.m20877a().mo27813c(simpleDraweeView.getController())).mo27811b(ImageRequestBuilder.m22491a(uri).mo28751a(new IterativeBoxBlurPostProcessor(i, i2)).mo28771p())).mo27827p());\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public interface decode_mb_callback extends Callback {\n\t\tvoid apply(MpegEncContext s);\n\t}", "private RuntimeFilterBDef(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public interface ParseRetrieveDrawingCallback {\n /**\n * Retrieves drawings\n *\n * @param returnCode\n * @param drawings\n */\n public void retrieveDrawingsCallback(int returnCode, List<ParseDrawing> drawings);\n}", "public B getBatch();", "BrokerAlgo getBrokerAlgo();", "private void createTrackingPipeline() throws ConfigurationException\n {\n fgDetector = new HSVFGDetector();\n // fgDetector = new DifferenceFGDetector();\n\n blobDetector = opencv_legacy.cvCreateBlobDetectorSimple();\n // blobTracker = opencv_legacy.cvCreateBlobTrackerCCMSPF();\n blobTracker = opencv_legacy.cvCreateBlobTrackerCC();\n trackerPostProcessor = opencv_legacy.cvCreateModuleBlobTrackPostProcKalman();\n trackerFrameCount = 0;\n blobs.Clear();\n badFramesForBlob.clear();\n }", "public static com.facebook.rtc.fbwebrtcnew.FbWebrtcCommonListener m19505a(com.facebook.inject.InjectorLike r7) {\n /*\n r2 = com.facebook.inject.ScopeSet.a();\n r0 = com.facebook.auth.userscope.UserScope.class;\n r0 = r7.getInstance(r0);\n r0 = (com.facebook.auth.userscope.UserScope) r0;\n r1 = r7.getScopeAwareInjector();\n r1 = r1.b();\n if (r1 != 0) goto L_0x001e;\n L_0x0016:\n r0 = new com.facebook.inject.ProvisioningException;\n r1 = \"Called user scoped provider outside of context scope\";\n r0.<init>(r1);\n throw r0;\n L_0x001e:\n r3 = r0.a(r1);\n r4 = r3.b();\t Catch:{ all -> 0x006c }\n r1 = f19692e;\t Catch:{ all -> 0x006c }\n r1 = r4.get(r1);\t Catch:{ all -> 0x006c }\n r5 = com.facebook.auth.userscope.UserScope.a;\t Catch:{ all -> 0x006c }\n if (r1 != r5) goto L_0x0035;\n L_0x0030:\n r3.c();\n r0 = 0;\n L_0x0034:\n return r0;\n L_0x0035:\n if (r1 != 0) goto L_0x007c;\n L_0x0037:\n r1 = 4;\n r5 = r2.b(r1);\t Catch:{ }\n r6 = r0.a(r3);\t Catch:{ all -> 0x0067 }\n r0 = r6.e();\t Catch:{ all -> 0x0062 }\n r1 = m19506b(r0);\t Catch:{ all -> 0x0062 }\n com.facebook.auth.userscope.UserScope.a(r6);\t Catch:{ }\n if (r1 != 0) goto L_0x0071;\n L_0x004d:\n r0 = f19692e;\t Catch:{ }\n r6 = com.facebook.auth.userscope.UserScope.a;\t Catch:{ }\n r0 = r4.putIfAbsent(r0, r6);\t Catch:{ }\n r0 = (com.facebook.rtc.fbwebrtcnew.FbWebrtcCommonListener) r0;\t Catch:{ }\n L_0x0057:\n if (r0 == 0) goto L_0x007a;\n L_0x0059:\n r2.c(r5);\t Catch:{ }\n L_0x005c:\n r0 = (com.facebook.rtc.fbwebrtcnew.FbWebrtcCommonListener) r0;\t Catch:{ }\n r3.c();\n goto L_0x0034;\n L_0x0062:\n r0 = move-exception;\n com.facebook.auth.userscope.UserScope.a(r6);\t Catch:{ }\n throw r0;\t Catch:{ }\n L_0x0067:\n r0 = move-exception;\n r2.c(r5);\t Catch:{ }\n throw r0;\t Catch:{ }\n L_0x006c:\n r0 = move-exception;\n r3.c();\n throw r0;\n L_0x0071:\n r0 = f19692e;\t Catch:{ }\n r0 = r4.putIfAbsent(r0, r1);\t Catch:{ }\n r0 = (com.facebook.rtc.fbwebrtcnew.FbWebrtcCommonListener) r0;\t Catch:{ }\n goto L_0x0057;\n L_0x007a:\n r0 = r1;\n goto L_0x0059;\n L_0x007c:\n r0 = r1;\n goto L_0x005c;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.rtc.fbwebrtcnew.FbWebrtcCommonListener.a(com.facebook.inject.InjectorLike):com.facebook.rtc.fbwebrtcnew.FbWebrtcCommonListener\");\n }", "public final void mo88395b() {\n if (this.f90938h == null) {\n this.f90938h = new C29242a(this.f90931a, this.f90937g).mo74873a((C39376h) new C39376h() {\n /* renamed from: a */\n public final void mo74759a(C29296g gVar) {\n }\n\n /* renamed from: a */\n public final void mo74760a(C29296g gVar, int i) {\n }\n\n /* renamed from: d */\n public final void mo74763d(C29296g gVar) {\n }\n\n /* renamed from: b */\n public final void mo74761b(C29296g gVar) {\n C34867a.this.f90934d.setVisibility(0);\n if (!C39805en.m127445a()) {\n C23487o.m77136a((Activity) C34867a.this.f90931a);\n }\n C6907h.m21519a((Context) C34867a.this.f90931a, \"filter_confirm\", \"mid_page\", \"0\", 0, C34867a.this.f90936f);\n }\n\n /* renamed from: c */\n public final void mo74762c(C29296g gVar) {\n String str;\n C34867a.this.f90933c = gVar;\n C34867a.this.f90932b.mo88467a(gVar.f77273h);\n if (C34867a.this.f90935e != null) {\n C34867a.this.f90935e.mo98958a(gVar);\n }\n EffectCategoryResponse b = C35563c.m114837d().mo74825b(C34867a.this.f90933c);\n if (b == null) {\n str = \"\";\n } else {\n str = b.name;\n }\n C6907h.m21524a(\"select_filter\", (Map) C38511bc.m123103a().mo96485a(\"creation_id\", C34867a.this.f90932b.mo88460a().creationId).mo96485a(\"shoot_way\", C34867a.this.f90932b.mo88460a().mShootWay).mo96483a(\"draft_id\", C34867a.this.f90932b.mo88460a().draftId).mo96485a(\"enter_method\", \"click\").mo96485a(\"filter_name\", C34867a.this.f90933c.f77268c).mo96483a(\"filter_id\", C34867a.this.f90933c.f77266a).mo96485a(\"tab_name\", str).mo96485a(\"content_source\", C34867a.this.f90932b.mo88460a().getAvetParameter().getContentSource()).mo96485a(\"content_type\", C34867a.this.f90932b.mo88460a().getAvetParameter().getContentType()).mo96485a(\"enter_from\", \"video_edit_page\").f100112a);\n }\n }).mo74871a((C29240bc) new C39369c(C35563c.f93224F.mo70097l().mo74950c().mo74723f())).mo74874a(this.f90932b.mo88460a().getAvetParameter()).mo74876a();\n if (this.f90933c != null) {\n this.f90938h.mo74751a(this.f90933c);\n }\n }\n this.f90938h.mo74749a();\n this.f90934d.setVisibility(8);\n }", "private void toZB() {\n if (zhiBoFragment == null) {\n zhiBoFragment = new ZhiBoFragment();\n fragmenttransaction.add(R.id.frame_content, zhiBoFragment);\n } else {\n fragmenttransaction.show(zhiBoFragment);\n }\n }", "@Override\n\tpublic void draw(Graphics2D g, Camera cam) {\n\n\t}", "public Mat onCameraFrame(CameraBridgeViewBase.CvCameraViewFrame inputFrame) {\n mRgba = inputFrame.rgba();\n Imgproc.resize(mRgba, mRgba, new Size(100,100));\n // Rotate mRgba 90 degrees\n Core.transpose(mRgba, mRgbaT);\n Imgproc.resize(mRgbaT, mRgbaF, mRgbaF.size(), 0,0, 0);\n Core.flip(mRgbaF, mRgba, 1 );\n //Blurs for smoother edgges\n Imgproc.blur(mRgba, mRgba, new Size(8,8));\n\n //Adds the counter to the instantiation of each object as it counts the frame number\n Object blue = new Object(\"blue\", counter);\n Object green = new Object(\"green\", counter);\n Object red = new Object(\"red\", counter);\n\n Mat threshold = new Mat();\n Mat HSV = new Mat();\n //Changes from BGR to HSV as HSV allow much easier colour ranges for creating a binary mat\n Imgproc.cvtColor(mRgba,HSV,Imgproc.COLOR_RGB2HSV);\n //Creates blue binary mat\n Core.inRange(HSV, blue.HSVMin, blue.HSVMax, threshold);\n morphOps(threshold);\n trackFilteredObject(blue,threshold,HSV,mRgba, blue.type, counter);\n\n //TODO disabled the green markers for now\n /*\n Imgproc.cvtColor(mRgba,HSV,Imgproc.COLOR_BGR2HSV);\n Core.inRange(HSV, green.HSVMin, green.HSVMax, threshold);\n morphOps(threshold);\n trackFilteredObject(green,threshold,HSV,mRgba, green.type, counter);\n */\n //creates red binary mat\n Imgproc.cvtColor(mRgba,HSV,Imgproc.COLOR_BGR2HSV);\n Core.inRange(HSV, red.HSVMin, red.HSVMax, threshold);\n morphOps(threshold);\n trackFilteredObject(red,threshold,HSV,mRgba, red.type, counter);\n\n //Colours the line that registers if a step has occured accordingly\n if(redGreenLine || blueGreenLine){\n Imgproc.line(mRgba, new Point(0, 150), new Point(500, 150), new Scalar(0, 255, 0), 2);\n }\n else if(!redGreenLine && !redGreenLine){\n Imgproc.line(mRgba, new Point(0, 150), new Point(500, 150), new Scalar(255, 0, 0), 2);\n }\n //Will write each frame to storage once the reoord button is pressed. This is used for setting ground truth data\n if(enableVideo) {\n Mat output = new Mat();\n Imgproc.cvtColor(mRgba, output, Imgproc.COLOR_RGB2BGR);\n Imgproc.resize(output, output, new Size(100,100));\n Imgcodecs.imwrite(fileName + BUILDING_NAME + FLOOR_NUMBER + \"(\" + startLat + \",\" + startLong + \")\" + \"to\" + \"(\" + endLat + \",\" + endLong + \")\" + Integer.toString(counter) + \".bmp\", output);\n }\n\n counter++;\n\n return mRgba; // This function must return\n }", "@Override\n\t\t\tpublic void onFacebookError(FacebookError e) {\n\t\t\t\t\n\t\t\t}", "@Test\n public void baseTest() {\n RenderedImage twoBands=ConstantDescriptor.create(512f, 512f, new Double[]{1d,0d}, null);\n \n // now select second band\n ParameterBlockJAI pb =\n new ParameterBlockJAI(\"BandSelect\");\n pb.addSource(twoBands);\n pb.setParameter(\"bandIndices\", new int[]{1});\n RenderedOp oneBand = JAI.create(\"BandSelect\", pb);\n \n \n // make sure we got the right band\n Assert.assertEquals(1,oneBand.getSampleModel().getNumBands());\n Assert.assertEquals(0,oneBand.getData().getSample(0, 0, 0),1E-11);\n \n }", "@Override\n\tpublic void onPreviewFrame(byte[] bytes, Camera camera) {\n\n\t}", "private void DrawBSide(Graphics g){\r\n\t\tupdate();\r\n\t\tif(enable == true){\r\n\t\t\treturn; \r\n\t\t}\r\n\t\tint topH = (int) (ConstantData.CARD_HEIGHT * percent);\r\n\t\tg.drawImage(imageB, x,y, x+ConstantData.CARD_WIDTH, y+ConstantData.CARD_HEIGHT-topH, \r\n\t\t\t0, 0, ConstantData.CARD_WIDTH, ConstantData.CARD_HEIGHT-topH, null);\r\n\t}", "@Override\n\tpublic void render(Graphics g) {\n\t\tg.drawImage(getAnimationFrame(), (int)(x - handler.getCamera().getxOffset()), (int)(y - handler.getCamera().getyOffset()), width, height, null);\n\t //drawBoudingBox(g);\n\t}", "static void m13810b(Context context) {\n if (context != null) {\n try {\n ApplicationInfo ai = context.getPackageManager().getApplicationInfo(context.getPackageName(), 128);\n if (ai != null && ai.metaData != null) {\n if (f12472d == null) {\n Object appId = ai.metaData.get(\"com.facebook.sdk.ApplicationId\");\n if (appId instanceof String) {\n String appIdString = (String) appId;\n if (appIdString.toLowerCase(Locale.ROOT).startsWith(\"fb\")) {\n f12472d = appIdString.substring(2);\n } else {\n f12472d = appIdString;\n }\n } else if (appId instanceof Integer) {\n throw new FacebookException(\"App Ids cannot be directly placed in the manifest.They must be prefixed by 'fb' or be placed in the string resource file.\");\n }\n }\n if (f12473e == null) {\n f12473e = ai.metaData.getString(\"com.facebook.sdk.ApplicationName\");\n }\n if (f12474f == null) {\n f12474f = ai.metaData.getString(\"com.facebook.sdk.ClientToken\");\n }\n if (f12482n == 64206) {\n f12482n = ai.metaData.getInt(\"com.facebook.sdk.CallbackOffset\", 64206);\n }\n if (f12475g == null) {\n f12475g = Boolean.valueOf(ai.metaData.getBoolean(\"com.facebook.sdk.CodelessDebugLogEnabled\", false));\n }\n }\n } catch (NameNotFoundException e) {\n }\n }\n }", "void invoke(@NativeType(\"bgfx_callback_interface_t *\") long _this, @NativeType(\"uint32_t\") int _width, @NativeType(\"uint32_t\") int _height, @NativeType(\"uint32_t\") int _pitch, @NativeType(\"bgfx_texture_format_t\") int _format, @NativeType(\"bool\") boolean _yflip);", "@Override\r\n\t\tpublic void onFacebookError(FacebookError e, Object state) {\n\t\t\t\r\n\t\t}", "private void prepareBlurredBitmap() {\n Bitmap bitmap;\n Bitmap bitmap2;\n Bitmap bitmap3;\n Canvas canvas;\n Bitmap bitmap4;\n Bitmap bitmap5;\n if (this.mIsSkipDrawFrame) {\n invalidateTargetViewsInSubThread();\n return;\n }\n Canvas canvas2 = this.mBalanceCanvas;\n if (!(canvas2 == null || (bitmap5 = this.mBitmapForBlur) == null)) {\n canvas2.drawBitmap(bitmap5, 0.0f, 0.0f, (Paint) null);\n }\n for (Map.Entry<View, HwBlurEntity> entityEntry : this.mTargetViews.entrySet()) {\n HwBlurEntity blurEntity = entityEntry.getValue();\n if (entityEntry.getKey().isShown() && blurEntity.isEnabled() && (canvas = this.mBalanceCanvas) != null && (bitmap4 = this.mBitmapForBlur) != null) {\n blurEntity.drawBitmapForBlur(canvas, bitmap4, this.mBlurUnionRect, 15);\n }\n }\n if (!(this.mIsBitmapCopying || (bitmap = this.mBalanceBitmap) == null || (bitmap2 = this.mBlurredBitmap) == null)) {\n int result = this.mAlgorithm.blur(bitmap, bitmap2, 8);\n if (result != 0 && DEBUG) {\n String str = TAG;\n Log.w(str, \" mAlgorithm.blur occurred some error, error code= \" + result);\n }\n Bitmap bitmap6 = this.mBlurredBitmap;\n if (!(bitmap6 == null || (bitmap3 = this.mBitmapForDraw) == null || !bitmap6.sameAs(bitmap3))) {\n return;\n }\n }\n if (this.mIsDecorViewChanged) {\n this.mIsDecorViewChanged = false;\n }\n invalidateTargetViewsInSubThread();\n }", "@Override\n public void draw(Bullet b){\n Draw.color(Palette.lightFlame, Palette.darkFlame, Color.GRAY, b.fin());\n Fill.circle(b.x, b.y, 3f * b.fout());\n Draw.reset();\n }", "public /* synthetic */ void lambda$createView$6(android.view.View r24) {\n /*\n r23 = this;\n r1 = r23\n org.telegram.ui.ActionBar.Theme$ThemeInfo r0 = org.telegram.ui.ActionBar.Theme.getActiveTheme()\n boolean r2 = r1.isBlurred\n r3 = 0\n java.lang.String r2 = r0.generateWallpaperName(r3, r2)\n boolean r4 = r1.isBlurred\n r5 = 0\n if (r4 == 0) goto L_0x0018\n java.lang.String r0 = r0.generateWallpaperName(r3, r5)\n r4 = r0\n goto L_0x0019\n L_0x0018:\n r4 = r2\n L_0x0019:\n java.io.File r6 = new java.io.File\n java.io.File r0 = org.telegram.messenger.ApplicationLoader.getFilesDirFixed()\n r6.<init>(r0, r2)\n java.lang.Object r0 = r1.currentWallpaper\n boolean r7 = r0 instanceof org.telegram.tgnet.TLRPC$TL_wallPaper\n java.lang.String r8 = \"jpg\"\n java.lang.String r10 = \"t\"\n r11 = 87\n r12 = 1\n if (r7 == 0) goto L_0x008e\n android.graphics.Bitmap r0 = r1.originalBitmap\n if (r0 == 0) goto L_0x0049\n java.io.FileOutputStream r0 = new java.io.FileOutputStream // Catch:{ Exception -> 0x0044 }\n r0.<init>(r6) // Catch:{ Exception -> 0x0044 }\n android.graphics.Bitmap r7 = r1.originalBitmap // Catch:{ Exception -> 0x0044 }\n android.graphics.Bitmap$CompressFormat r13 = android.graphics.Bitmap.CompressFormat.JPEG // Catch:{ Exception -> 0x0044 }\n r7.compress(r13, r11, r0) // Catch:{ Exception -> 0x0044 }\n r0.close() // Catch:{ Exception -> 0x0044 }\n L_0x0042:\n r0 = 1\n goto L_0x0075\n L_0x0044:\n r0 = move-exception\n org.telegram.messenger.FileLog.e((java.lang.Throwable) r0)\n goto L_0x005c\n L_0x0049:\n org.telegram.ui.Components.BackupImageView r0 = r1.backgroundImage\n org.telegram.messenger.ImageReceiver r0 = r0.getImageReceiver()\n boolean r7 = r0.hasNotThumb()\n if (r7 != 0) goto L_0x005e\n boolean r7 = r0.hasStaticThumb()\n if (r7 == 0) goto L_0x005c\n goto L_0x005e\n L_0x005c:\n r0 = 0\n goto L_0x0075\n L_0x005e:\n android.graphics.Bitmap r0 = r0.getBitmap()\n java.io.FileOutputStream r7 = new java.io.FileOutputStream // Catch:{ Exception -> 0x0070 }\n r7.<init>(r6) // Catch:{ Exception -> 0x0070 }\n android.graphics.Bitmap$CompressFormat r13 = android.graphics.Bitmap.CompressFormat.JPEG // Catch:{ Exception -> 0x0070 }\n r0.compress(r13, r11, r7) // Catch:{ Exception -> 0x0070 }\n r7.close() // Catch:{ Exception -> 0x0070 }\n goto L_0x0042\n L_0x0070:\n r0 = move-exception\n org.telegram.messenger.FileLog.e((java.lang.Throwable) r0)\n goto L_0x005c\n L_0x0075:\n if (r0 != 0) goto L_0x012d\n java.lang.Object r0 = r1.currentWallpaper\n org.telegram.tgnet.TLRPC$TL_wallPaper r0 = (org.telegram.tgnet.TLRPC$TL_wallPaper) r0\n org.telegram.tgnet.TLRPC$Document r0 = r0.document\n java.io.File r0 = org.telegram.messenger.FileLoader.getPathToAttach(r0, r12)\n boolean r0 = org.telegram.messenger.AndroidUtilities.copyFile((java.io.File) r0, (java.io.File) r6) // Catch:{ Exception -> 0x0087 }\n goto L_0x012d\n L_0x0087:\n r0 = move-exception\n r7 = r0\n org.telegram.messenger.FileLog.e((java.lang.Throwable) r7)\n goto L_0x0186\n L_0x008e:\n boolean r7 = r0 instanceof org.telegram.ui.WallpapersListActivity.ColorWallpaper\n if (r7 == 0) goto L_0x012f\n org.telegram.tgnet.TLRPC$TL_wallPaper r7 = r1.selectedPattern\n if (r7 == 0) goto L_0x012c\n org.telegram.ui.WallpapersListActivity$ColorWallpaper r0 = (org.telegram.ui.WallpapersListActivity.ColorWallpaper) r0 // Catch:{ all -> 0x0127 }\n org.telegram.ui.Components.BackupImageView r0 = r1.backgroundImage // Catch:{ all -> 0x0127 }\n org.telegram.messenger.ImageReceiver r0 = r0.getImageReceiver() // Catch:{ all -> 0x0127 }\n android.graphics.Bitmap r0 = r0.getBitmap() // Catch:{ all -> 0x0127 }\n int r7 = r0.getWidth() // Catch:{ all -> 0x0127 }\n int r13 = r0.getHeight() // Catch:{ all -> 0x0127 }\n android.graphics.Bitmap$Config r14 = android.graphics.Bitmap.Config.ARGB_8888 // Catch:{ all -> 0x0127 }\n android.graphics.Bitmap r7 = android.graphics.Bitmap.createBitmap(r7, r13, r14) // Catch:{ all -> 0x0127 }\n android.graphics.Canvas r13 = new android.graphics.Canvas // Catch:{ all -> 0x0127 }\n r13.<init>(r7) // Catch:{ all -> 0x0127 }\n int r14 = r1.backgroundGradientColor2 // Catch:{ all -> 0x0127 }\n r15 = 2\n if (r14 == 0) goto L_0x00bb\n goto L_0x00e8\n L_0x00bb:\n int r14 = r1.backgroundGradientColor1 // Catch:{ all -> 0x0127 }\n if (r14 == 0) goto L_0x00e3\n android.graphics.drawable.GradientDrawable r14 = new android.graphics.drawable.GradientDrawable // Catch:{ all -> 0x0127 }\n int r3 = r1.backgroundRotation // Catch:{ all -> 0x0127 }\n android.graphics.drawable.GradientDrawable$Orientation r3 = org.telegram.ui.Components.BackgroundGradientDrawable.getGradientOrientation(r3) // Catch:{ all -> 0x0127 }\n int[] r11 = new int[r15] // Catch:{ all -> 0x0127 }\n int r9 = r1.backgroundColor // Catch:{ all -> 0x0127 }\n r11[r5] = r9 // Catch:{ all -> 0x0127 }\n int r9 = r1.backgroundGradientColor1 // Catch:{ all -> 0x0127 }\n r11[r12] = r9 // Catch:{ all -> 0x0127 }\n r14.<init>(r3, r11) // Catch:{ all -> 0x0127 }\n int r3 = r7.getWidth() // Catch:{ all -> 0x0127 }\n int r9 = r7.getHeight() // Catch:{ all -> 0x0127 }\n r14.setBounds(r5, r5, r3, r9) // Catch:{ all -> 0x0127 }\n r14.draw(r13) // Catch:{ all -> 0x0127 }\n goto L_0x00e8\n L_0x00e3:\n int r3 = r1.backgroundColor // Catch:{ all -> 0x0127 }\n r13.drawColor(r3) // Catch:{ all -> 0x0127 }\n L_0x00e8:\n android.graphics.Paint r3 = new android.graphics.Paint // Catch:{ all -> 0x0127 }\n r3.<init>(r15) // Catch:{ all -> 0x0127 }\n android.graphics.PorterDuffColorFilter r9 = new android.graphics.PorterDuffColorFilter // Catch:{ all -> 0x0127 }\n int r11 = r1.patternColor // Catch:{ all -> 0x0127 }\n android.graphics.PorterDuff$Mode r14 = r1.blendMode // Catch:{ all -> 0x0127 }\n r9.<init>(r11, r14) // Catch:{ all -> 0x0127 }\n r3.setColorFilter(r9) // Catch:{ all -> 0x0127 }\n r9 = 1132396544(0x437var_, float:255.0)\n float r11 = r1.currentIntensity // Catch:{ all -> 0x0127 }\n float r11 = java.lang.Math.abs(r11) // Catch:{ all -> 0x0127 }\n float r11 = r11 * r9\n int r9 = (int) r11 // Catch:{ all -> 0x0127 }\n r3.setAlpha(r9) // Catch:{ all -> 0x0127 }\n r9 = 0\n r13.drawBitmap(r0, r9, r9, r3) // Catch:{ all -> 0x0127 }\n java.io.FileOutputStream r0 = new java.io.FileOutputStream // Catch:{ all -> 0x0127 }\n r0.<init>(r6) // Catch:{ all -> 0x0127 }\n int r3 = r1.backgroundGradientColor2 // Catch:{ all -> 0x0127 }\n if (r3 == 0) goto L_0x011c\n android.graphics.Bitmap$CompressFormat r3 = android.graphics.Bitmap.CompressFormat.PNG // Catch:{ all -> 0x0127 }\n r9 = 100\n r7.compress(r3, r9, r0) // Catch:{ all -> 0x0127 }\n goto L_0x0123\n L_0x011c:\n android.graphics.Bitmap$CompressFormat r3 = android.graphics.Bitmap.CompressFormat.JPEG // Catch:{ all -> 0x0127 }\n r9 = 87\n r7.compress(r3, r9, r0) // Catch:{ all -> 0x0127 }\n L_0x0123:\n r0.close() // Catch:{ all -> 0x0127 }\n goto L_0x012c\n L_0x0127:\n r0 = move-exception\n org.telegram.messenger.FileLog.e((java.lang.Throwable) r0)\n goto L_0x0186\n L_0x012c:\n r0 = 1\n L_0x012d:\n r7 = 0\n goto L_0x0188\n L_0x012f:\n boolean r3 = r0 instanceof org.telegram.ui.WallpapersListActivity.FileWallpaper\n if (r3 == 0) goto L_0x015f\n org.telegram.ui.WallpapersListActivity$FileWallpaper r0 = (org.telegram.ui.WallpapersListActivity.FileWallpaper) r0\n int r3 = r0.resId\n if (r3 != 0) goto L_0x012c\n java.lang.String r3 = r0.slug\n boolean r3 = r10.equals(r3)\n if (r3 == 0) goto L_0x0142\n goto L_0x012c\n L_0x0142:\n java.io.File r3 = r0.originalPath // Catch:{ Exception -> 0x0158 }\n if (r3 == 0) goto L_0x0147\n goto L_0x0149\n L_0x0147:\n java.io.File r3 = r0.path // Catch:{ Exception -> 0x0158 }\n L_0x0149:\n boolean r7 = r3.equals(r6) // Catch:{ Exception -> 0x0158 }\n if (r7 == 0) goto L_0x0151\n r0 = 1\n goto L_0x0188\n L_0x0151:\n boolean r0 = org.telegram.messenger.AndroidUtilities.copyFile((java.io.File) r3, (java.io.File) r6) // Catch:{ Exception -> 0x0156 }\n goto L_0x0188\n L_0x0156:\n r0 = move-exception\n goto L_0x015a\n L_0x0158:\n r0 = move-exception\n r7 = 0\n L_0x015a:\n org.telegram.messenger.FileLog.e((java.lang.Throwable) r0)\n r0 = 0\n goto L_0x0188\n L_0x015f:\n boolean r3 = r0 instanceof org.telegram.messenger.MediaController.SearchImage\n if (r3 == 0) goto L_0x0186\n org.telegram.messenger.MediaController$SearchImage r0 = (org.telegram.messenger.MediaController.SearchImage) r0\n org.telegram.tgnet.TLRPC$Photo r3 = r0.photo\n if (r3 == 0) goto L_0x0176\n java.util.ArrayList<org.telegram.tgnet.TLRPC$PhotoSize> r0 = r3.sizes\n int r3 = r1.maxWallpaperSize\n org.telegram.tgnet.TLRPC$PhotoSize r0 = org.telegram.messenger.FileLoader.getClosestPhotoSizeWithSize(r0, r3, r12)\n java.io.File r0 = org.telegram.messenger.FileLoader.getPathToAttach(r0, r12)\n goto L_0x017c\n L_0x0176:\n java.lang.String r0 = r0.imageUrl\n java.io.File r0 = org.telegram.messenger.ImageLoader.getHttpFilePath(r0, r8)\n L_0x017c:\n boolean r0 = org.telegram.messenger.AndroidUtilities.copyFile((java.io.File) r0, (java.io.File) r6) // Catch:{ Exception -> 0x0181 }\n goto L_0x012d\n L_0x0181:\n r0 = move-exception\n r3 = r0\n org.telegram.messenger.FileLog.e((java.lang.Throwable) r3)\n L_0x0186:\n r0 = 0\n goto L_0x012d\n L_0x0188:\n boolean r3 = r1.isBlurred\n if (r3 == 0) goto L_0x01ad\n java.io.File r0 = new java.io.File // Catch:{ all -> 0x01a8 }\n java.io.File r3 = org.telegram.messenger.ApplicationLoader.getFilesDirFixed() // Catch:{ all -> 0x01a8 }\n r0.<init>(r3, r4) // Catch:{ all -> 0x01a8 }\n java.io.FileOutputStream r3 = new java.io.FileOutputStream // Catch:{ all -> 0x01a8 }\n r3.<init>(r0) // Catch:{ all -> 0x01a8 }\n android.graphics.Bitmap r0 = r1.blurredBitmap // Catch:{ all -> 0x01a8 }\n android.graphics.Bitmap$CompressFormat r9 = android.graphics.Bitmap.CompressFormat.JPEG // Catch:{ all -> 0x01a8 }\n r11 = 87\n r0.compress(r9, r11, r3) // Catch:{ all -> 0x01a8 }\n r3.close() // Catch:{ all -> 0x01a8 }\n r0 = 1\n goto L_0x01ad\n L_0x01a8:\n r0 = move-exception\n org.telegram.messenger.FileLog.e((java.lang.Throwable) r0)\n r0 = 0\n L_0x01ad:\n r3 = 45\n java.lang.Object r9 = r1.currentWallpaper\n boolean r11 = r9 instanceof org.telegram.tgnet.TLRPC$TL_wallPaper\n java.lang.String r13 = \"c\"\n java.lang.String r14 = \"d\"\n if (r11 == 0) goto L_0x01c4\n org.telegram.tgnet.TLRPC$TL_wallPaper r9 = (org.telegram.tgnet.TLRPC$TL_wallPaper) r9\n java.lang.String r8 = r9.slug\n L_0x01bd:\n r9 = 0\n r11 = 0\n r15 = 0\n L_0x01c0:\n r17 = 0\n goto L_0x0221\n L_0x01c4:\n boolean r11 = r9 instanceof org.telegram.ui.WallpapersListActivity.ColorWallpaper\n if (r11 == 0) goto L_0x01ed\n org.telegram.ui.WallpapersListActivity$ColorWallpaper r9 = (org.telegram.ui.WallpapersListActivity.ColorWallpaper) r9\n java.lang.String r8 = r9.slug\n boolean r8 = r14.equals(r8)\n if (r8 == 0) goto L_0x01d4\n r8 = r14\n goto L_0x01bd\n L_0x01d4:\n org.telegram.tgnet.TLRPC$TL_wallPaper r3 = r1.selectedPattern\n if (r3 == 0) goto L_0x01db\n java.lang.String r3 = r3.slug\n goto L_0x01dc\n L_0x01db:\n r3 = r13\n L_0x01dc:\n int r8 = r1.backgroundColor\n int r9 = r1.backgroundGradientColor1\n int r11 = r1.backgroundGradientColor2\n int r15 = r1.backgroundGradientColor3\n int r5 = r1.backgroundRotation\n r22 = r8\n r8 = r3\n r3 = r5\n r5 = r22\n goto L_0x01c0\n L_0x01ed:\n boolean r5 = r9 instanceof org.telegram.ui.WallpapersListActivity.FileWallpaper\n if (r5 == 0) goto L_0x01fe\n org.telegram.ui.WallpapersListActivity$FileWallpaper r9 = (org.telegram.ui.WallpapersListActivity.FileWallpaper) r9\n java.lang.String r8 = r9.slug\n java.io.File r5 = r9.path\n L_0x01f7:\n r17 = r5\n r5 = 0\n r9 = 0\n r11 = 0\n r15 = 0\n goto L_0x0221\n L_0x01fe:\n boolean r5 = r9 instanceof org.telegram.messenger.MediaController.SearchImage\n if (r5 == 0) goto L_0x021e\n org.telegram.messenger.MediaController$SearchImage r9 = (org.telegram.messenger.MediaController.SearchImage) r9\n org.telegram.tgnet.TLRPC$Photo r5 = r9.photo\n if (r5 == 0) goto L_0x0215\n java.util.ArrayList<org.telegram.tgnet.TLRPC$PhotoSize> r5 = r5.sizes\n int r8 = r1.maxWallpaperSize\n org.telegram.tgnet.TLRPC$PhotoSize r5 = org.telegram.messenger.FileLoader.getClosestPhotoSizeWithSize(r5, r8, r12)\n java.io.File r5 = org.telegram.messenger.FileLoader.getPathToAttach(r5, r12)\n goto L_0x021b\n L_0x0215:\n java.lang.String r5 = r9.imageUrl\n java.io.File r5 = org.telegram.messenger.ImageLoader.getHttpFilePath(r5, r8)\n L_0x021b:\n java.lang.String r8 = \"\"\n goto L_0x01f7\n L_0x021e:\n r8 = r14\n r5 = 0\n goto L_0x01bd\n L_0x0221:\n org.telegram.ui.ActionBar.Theme$OverrideWallpaperInfo r12 = new org.telegram.ui.ActionBar.Theme$OverrideWallpaperInfo\n r12.<init>()\n r12.fileName = r4\n r12.originalFileName = r2\n r12.slug = r8\n boolean r2 = r1.isBlurred\n r12.isBlurred = r2\n boolean r2 = r1.isMotion\n r12.isMotion = r2\n r12.color = r5\n r12.gradientColor1 = r9\n r12.gradientColor2 = r11\n r12.gradientColor3 = r15\n r12.rotation = r3\n float r2 = r1.currentIntensity\n r12.intensity = r2\n java.lang.Object r2 = r1.currentWallpaper\n boolean r4 = r2 instanceof org.telegram.ui.WallpapersListActivity.ColorWallpaper\n if (r4 == 0) goto L_0x02b0\n org.telegram.ui.WallpapersListActivity$ColorWallpaper r2 = (org.telegram.ui.WallpapersListActivity.ColorWallpaper) r2\n boolean r4 = r13.equals(r8)\n if (r4 != 0) goto L_0x025e\n boolean r4 = r10.equals(r8)\n if (r4 != 0) goto L_0x025e\n boolean r4 = r14.equals(r8)\n if (r4 != 0) goto L_0x025e\n r4 = r8\n goto L_0x025f\n L_0x025e:\n r4 = 0\n L_0x025f:\n float r13 = r2.intensity\n r14 = 0\n int r14 = (r13 > r14 ? 1 : (r13 == r14 ? 0 : -1))\n if (r14 >= 0) goto L_0x0274\n org.telegram.ui.ActionBar.Theme$ThemeInfo r14 = org.telegram.ui.ActionBar.Theme.getActiveTheme()\n boolean r14 = r14.isDark()\n if (r14 != 0) goto L_0x0274\n r14 = -1082130432(0xffffffffbvar_, float:-1.0)\n float r13 = r13 * r14\n L_0x0274:\n org.telegram.tgnet.TLRPC$WallPaper r14 = r2.parentWallpaper\n if (r14 == 0) goto L_0x02b0\n int r14 = r2.color\n if (r14 != r5) goto L_0x02b0\n int r5 = r2.gradientColor1\n if (r5 != r9) goto L_0x02b0\n int r5 = r2.gradientColor2\n if (r5 != r11) goto L_0x02b0\n int r5 = r2.gradientColor3\n if (r5 != r15) goto L_0x02b0\n java.lang.String r5 = r2.slug\n boolean r4 = android.text.TextUtils.equals(r5, r4)\n if (r4 == 0) goto L_0x02b0\n int r4 = r2.gradientRotation\n if (r4 != r3) goto L_0x02b0\n org.telegram.tgnet.TLRPC$TL_wallPaper r3 = r1.selectedPattern\n if (r3 == 0) goto L_0x02a6\n float r3 = r1.currentIntensity\n float r13 = r13 - r3\n float r3 = java.lang.Math.abs(r13)\n r4 = 981668463(0x3a83126f, float:0.001)\n int r3 = (r3 > r4 ? 1 : (r3 == r4 ? 0 : -1))\n if (r3 >= 0) goto L_0x02b0\n L_0x02a6:\n org.telegram.tgnet.TLRPC$WallPaper r2 = r2.parentWallpaper\n long r3 = r2.id\n r12.wallpaperId = r3\n long r2 = r2.access_hash\n r12.accessHash = r2\n L_0x02b0:\n int r2 = r1.currentAccount\n org.telegram.messenger.MessagesController r2 = org.telegram.messenger.MessagesController.getInstance(r2)\n if (r8 == 0) goto L_0x02bb\n r19 = 1\n goto L_0x02bd\n L_0x02bb:\n r19 = 0\n L_0x02bd:\n r20 = 0\n r16 = r2\n r18 = r12\n r16.saveWallpaperToServer(r17, r18, r19, r20)\n if (r0 == 0) goto L_0x0307\n java.lang.String r0 = \"chat_serviceBackground\"\n int r0 = org.telegram.ui.ActionBar.Theme.getColor(r0)\n org.telegram.ui.ActionBar.Theme.serviceMessageColorBackup = r0\n java.lang.String r0 = r12.slug\n boolean r0 = r10.equals(r0)\n if (r0 == 0) goto L_0x02da\n r3 = 0\n goto L_0x02db\n L_0x02da:\n r3 = r12\n L_0x02db:\n org.telegram.ui.ActionBar.Theme$ThemeInfo r0 = org.telegram.ui.ActionBar.Theme.getActiveTheme()\n r0.setOverrideWallpaper(r3)\n org.telegram.ui.ActionBar.Theme.reloadWallpaper()\n if (r7 != 0) goto L_0x0307\n org.telegram.messenger.ImageLoader r0 = org.telegram.messenger.ImageLoader.getInstance()\n java.lang.StringBuilder r2 = new java.lang.StringBuilder\n r2.<init>()\n java.lang.String r3 = r6.getAbsolutePath()\n java.lang.String r3 = org.telegram.messenger.ImageLoader.getHttpFileName(r3)\n r2.append(r3)\n java.lang.String r3 = \"@100_100\"\n r2.append(r3)\n java.lang.String r2 = r2.toString()\n r0.removeImage(r2)\n L_0x0307:\n org.telegram.ui.ThemePreviewActivity$WallpaperActivityDelegate r0 = r1.delegate\n if (r0 == 0) goto L_0x030e\n r0.didSetNewBackground()\n L_0x030e:\n r23.finishFragment()\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.telegram.ui.ThemePreviewActivity.lambda$createView$6(android.view.View):void\");\n }", "void inputToCb(Mat input)\n {\n Imgproc.cvtColor(input, YCrCb, Imgproc.COLOR_RGB2YCrCb);\n Core.extractChannel(YCrCb, Cb, 1);\n }", "void inputToCb(Mat input)\n {\n Imgproc.cvtColor(input, YCrCb, Imgproc.COLOR_RGB2YCrCb);\n Core.extractChannel(YCrCb, Cb, 1);\n }", "abstract void setPreviewCallback(android.hardware.Camera.PreviewCallback cb);", "public static BB transformbBB(Transform t, BB bb) {\n\t\tVector2f center = bb.getCenter();\n\t\tfloat hw = (bb.r - bb.l) * 0.5f;\n\t\tfloat hh = (bb.t - bb.b) * 0.5f;\n\n\t\tfloat a = t.a * hw, b = t.c * hh, d = t.b * hw, e = t.d * hh;\n\t\tfloat hw_max = cpfmax(cpfabs(a + b), cpfabs(a - b));\n\t\tfloat hh_max = cpfmax(cpfabs(d + e), cpfabs(d - e));\n\t\treturn BB.forExtents(t.transformPoint(center), hw_max, hh_max);\n\t}", "interface Callbacks {\n void pipelineModeChanged(boolean z) throws ;\n\n void requestSent() throws ;\n\n void serverError(int i) throws ;\n }", "private final zzgy zzgb() {\n }", "public BatchImageBuilder(StateImpl state) {\r\n\tthis(state, JavaDevelopmentContextImpl.getDefaultCompilerOptions());\r\n}", "public void renderInvBlock(bbb renderblocks, int md)\r\n/* 73: */ {\r\n/* 74: 72 */ this.block.f();\r\n/* 75: */ \r\n/* 76: 74 */ this.context.setDefaults();\r\n/* 77: 75 */ this.context.setPos(-0.5D, -0.5D, -0.5D);\r\n/* 78: 76 */ this.context.useNormal = true;\r\n/* 79: 77 */ this.context.setLocalLights(0.5F, 1.0F, 0.8F, 0.8F, 0.6F, 0.6F);\r\n/* 80: */ \r\n/* 81: 79 */ RenderLib.bindTexture(\"/eloraam/machine/machine1.png\");\r\n/* 82: 80 */ baz tessellator = baz.a;\r\n/* 83: */ \r\n/* 84: 82 */ tessellator.b();\r\n/* 85: 83 */ this.context.useNormal = true;\r\n/* 86: */ \r\n/* 87: */ \r\n/* 88: 86 */ this.context.setTex(28, 28, 26, 26, 26, 26);\r\n/* 89: */ \r\n/* 90: 88 */ this.context.renderBox(60, 0.375D, 0.0D, 0.375D, 0.625D, 1.0D, 0.625D);\r\n/* 91: 89 */ this.context.renderBox(60, 0.6240000128746033D, 0.9990000128746033D, 0.6240000128746033D, 0.3759999871253967D, 0.001000000047497451D, 0.3759999871253967D);\r\n/* 92: 90 */ renderFlanges(3, 27);\r\n/* 93: */ \r\n/* 94: 92 */ tessellator.a();\r\n/* 95: 93 */ RenderLib.unbindTexture();\r\n/* 96: 94 */ this.context.useNormal = false;\r\n/* 97: */ }", "public void redibujarAlgoformers() {\n\t\t\n\t}", "@Override\r\n\tpublic Object visitFilterOpChain(FilterOpChain filterOpChain, Object arg) throws Exception {\n\r\n\t\tfilterOpChain.getArg().visit(this, arg);\r\n\r\n\t\tif (filterOpChain.getFirstToken().kind.equals(Kind.OP_BLUR)) {\r\n\t\t\tmv.visitInsn(ACONST_NULL);\r\n\t\t\tmv.visitMethodInsn(INVOKESTATIC, \"cop5556sp17/PLPRuntimeFilterOps\", \"blurOp\",\r\n\t\t\t\t\t\"(Ljava/awt/image/BufferedImage;Ljava/awt/image/BufferedImage;)Ljava/awt/image/BufferedImage;\",\r\n\t\t\t\t\tfalse);\r\n\t\t} else if (filterOpChain.getFirstToken().kind.equals(Kind.OP_CONVOLVE)) {\r\n\t\t\tmv.visitInsn(ACONST_NULL);\r\n\t\t\tmv.visitMethodInsn(INVOKESTATIC, \"cop5556sp17/PLPRuntimeFilterOps\", \"convolveOp\",\r\n\t\t\t\t\t\"(Ljava/awt/image/BufferedImage;Ljava/awt/image/BufferedImage;)Ljava/awt/image/BufferedImage;\",\r\n\t\t\t\t\tfalse);\r\n\t\t} else if (filterOpChain.getFirstToken().kind.equals(Kind.OP_GRAY)) {\r\n\t\t\tmv.visitInsn(ACONST_NULL);\r\n\t\t\tmv.visitMethodInsn(INVOKESTATIC, \"cop5556sp17/PLPRuntimeFilterOps\", \"grayOp\",\r\n\t\t\t\t\t\"(Ljava/awt/image/BufferedImage;Ljava/awt/image/BufferedImage;)Ljava/awt/image/BufferedImage;\",\r\n\t\t\t\t\tfalse);\r\n\t\t}\r\n\r\n\t\treturn null;\r\n\t}", "void drawEdges2(boolean drawBlobs, boolean drawEdges)\n\t{\n\t\tcurFrame.loadPixels();\n\t\t\n\t\tnoFill();\n\t\tBlob b;\n\t\tEdgeVertex eA,eB;\n\t\tfor (int n=0 ; n<theBlobDetection.getBlobNb() ; n++)\n\t\t{\n\t\t\tb=theBlobDetection.getBlob(n);\n\t\t\tif (b!=null)\n\t\t\t{\n//\t\t\t\tp.println(b.id);\n\t\t\t\tif (drawEdges)\n\t\t\t\t{\n\t\t\t\t\tstrokeWeight(1);\n\t\t\t\t\tstroke(0,255,0);\n\t\t\t\t\tfor (int m=0;m<b.getEdgeNb();m++)\n\t\t\t\t\t{\n\t\t\t\t\t\teA = b.getEdgeVertexA(m);\n\t\t\t\t\t\teB = b.getEdgeVertexB(m);\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (eA !=null && eB !=null) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfloat angle = -MathUtil.getAngleToTarget(eA.x, eA.y, b.x, b.y);\n\t\t\t\t\t\t\tfloat angleB = -MathUtil.getAngleToTarget(eB.x, eB.y, b.x, b.y);\n\t\t\t\t\t\t\tfloat distance = MathUtil.getDistance(b.x, b.y, eA.x, eA.y) * 1f;\n\t\t\t\t\t\t\tfloat distanceB = MathUtil.getDistance(b.x, b.y, eB.x, eB.y) * 1f;\n\n\t\t\t\t\t\t\tfloat outerX = eA.x + P.sin( MathUtil.degreesToRadians(angle) )*distance;\n\t\t\t\t\t\t\tfloat outerY = eA.y + P.cos( MathUtil.degreesToRadians(angle) )*distance;\n\t\t\t\t\t\t\tfloat outerXB = eB.x + P.sin( MathUtil.degreesToRadians(angleB) )*distanceB;\n\t\t\t\t\t\t\tfloat outerYB = eB.y + P.cos( MathUtil.degreesToRadians(angleB) )*distanceB;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tint color = ImageUtil.getPixelColor( curFrame, P.round(eA.x*curFrame.width-1), P.round(eA.y*curFrame.height-1) );\n\t\t\t\t\t\t\tfill(color, 255);\n\t\t\t\t\t\t\t// float bright = brightness(color);\n\t\t\t\t\t\t\tnoStroke();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tdraw4PointsTriangles(\n\t\t\t\t\t\t\t\tnew Vec3D(eA.x*width, eA.y*height, 0),\n\t\t\t\t\t\t\t\tnew Vec3D(outerX*width, outerY*height, 0),\n\t\t\t\t\t\t\t\tnew Vec3D(outerXB*width, outerYB*height, 0),\n\t\t\t\t\t\t\t\tnew Vec3D(eB.x*width, eB.y*height, 0),\n\t\t\t\t\t\t\t\tpg\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t}", "@Override\r\n public void addAdditionalParams(WeiboParameters des, WeiboParameters src) {\n\r\n }", "private void drawFrameBufferContents(GameCanvas.BlendState blend) {\r\n\t\tcanvas.beginCustom(blend, GameCanvas.ChannelState.ALL);\r\n\t\tTexture fbo_t = fbo.getColorBufferTexture();\r\n\t\tfloat fbo_x = camera.position.x - canvas.getWidth() / 2;\r\n\t\tfloat fbo_y = camera.position.y - canvas.getHeight() / 2 + fbo_t.getHeight();\r\n\t\tcanvas.draw(fbo_t, Color.WHITE, fbo_x, fbo_y, fbo_t.getWidth(), -fbo_t.getHeight());\r\n\t\tcanvas.endCustom();\r\n\t}", "@Override\n public void func_104112_b() {\n \n }", "void inputToCb(Mat input){\n Imgproc.cvtColor(input, YCrCb, Imgproc.COLOR_RGB2YCrCb);\n Core.extractChannel(YCrCb, Cb, 1);\n }", "@Test(timeout = 4000)\n public void test53() throws Throwable {\n FBProcedureCall fBProcedureCall0 = new FBProcedureCall();\n fBProcedureCall0.setName(\"2i95<~j!a(\");\n fBProcedureCall0.hashCode();\n fBProcedureCall0.getSQL(true);\n fBProcedureCall0.getOutputParam(1866);\n fBProcedureCall0.addParam(1866, \"2i95<~j!a(\");\n fBProcedureCall0.getName();\n FBProcedureParam fBProcedureParam0 = fBProcedureCall0.getInputParam(1866);\n FBProcedureParam fBProcedureParam1 = fBProcedureCall0.addParam(274, \"SELECT * FROM 2i95<~j!a(\");\n fBProcedureCall0.addOutputParam(fBProcedureParam1);\n fBProcedureCall0.addParam(274, \"2i95<~j!a(\");\n fBProcedureCall0.getOutputParams();\n FBProcedureParam fBProcedureParam2 = fBProcedureCall0.getInputParam(1866);\n assertSame(fBProcedureParam2, fBProcedureParam0);\n }" ]
[ "0.5243313", "0.50323206", "0.502851", "0.50185114", "0.50076133", "0.49858025", "0.4929735", "0.4889356", "0.48821783", "0.4854473", "0.48477846", "0.4827563", "0.48221424", "0.4804112", "0.47864243", "0.47773233", "0.47648743", "0.47503597", "0.4740591", "0.47294495", "0.4718011", "0.46788278", "0.46674415", "0.4665234", "0.46587685", "0.4620837", "0.4608041", "0.45873007", "0.45844856", "0.4583415", "0.45807537", "0.45664296", "0.45649815", "0.45623785", "0.45485434", "0.45443934", "0.45438612", "0.4535854", "0.4535853", "0.45316997", "0.45290503", "0.4525846", "0.45239723", "0.45236617", "0.45130253", "0.4507814", "0.45055914", "0.45045772", "0.45032823", "0.45029426", "0.44991362", "0.4496549", "0.44919914", "0.4476191", "0.447342", "0.44634452", "0.44632012", "0.44615597", "0.44611496", "0.44556075", "0.44524133", "0.44517532", "0.4451516", "0.44495007", "0.44462833", "0.44458354", "0.44427088", "0.44324133", "0.44317704", "0.4430783", "0.44265297", "0.4422009", "0.44217193", "0.44190407", "0.44123268", "0.4407666", "0.44070044", "0.4404355", "0.440332", "0.43985713", "0.43936998", "0.43908563", "0.4387647", "0.43865108", "0.4385507", "0.43847898", "0.43847898", "0.43835592", "0.4380896", "0.43804738", "0.43753108", "0.43746746", "0.43721825", "0.43707564", "0.4370624", "0.4369866", "0.4364127", "0.43615404", "0.4358078", "0.4355413", "0.4353694" ]
0.0
-1
/ renamed from: a
void mo32681a(String str, int i, boolean z);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }", "interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }", "public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}", "public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }", "public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }", "public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}", "public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }", "interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }", "private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }", "protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }", "public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }", "private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }", "public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }", "public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}", "public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}", "public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }", "public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }", "public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }", "public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }", "public void a() {\n ((a) this.a).a();\n }", "public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }", "public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}", "public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}", "public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }", "@Override\r\n\tpublic void a() {\n\t\t\r\n\t}", "public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}", "public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}", "public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}", "public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}", "interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}", "public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}", "public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}", "public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }", "@Override\n\tpublic void a() {\n\t\t\n\t}", "public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}", "void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}", "public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}", "public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }", "public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}", "public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}", "public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }", "public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}", "public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}", "public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}", "public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}", "public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }", "public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}", "public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}", "public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}", "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }", "public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}", "public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }", "public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}", "public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}", "public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}", "public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}", "public void acionou(int a){\n\t\t\tb=a;\n\t\t}", "public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}", "public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }", "public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}", "public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }", "public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }", "public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }", "public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }", "public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }", "public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}", "public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}", "public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }", "public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}", "protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }", "public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }", "public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }", "public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }", "public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }", "public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}", "public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }", "public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }", "public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}", "public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}", "public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}", "public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }", "public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }", "interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }", "public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}", "public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }", "private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }", "interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "public b[] a() {\n/* 95 */ return this.a;\n/* */ }", "interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }" ]
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064", "0.5794689", "0.57890314", "0.57838726", "0.5775679", "0.57694733", "0.5769128", "0.57526815", "0.56907034", "0.5677874", "0.5670547", "0.56666386", "0.56592244", "0.5658682", "0.56574154", "0.5654324", "0.5644676", "0.56399715", "0.5638734", "0.5630582", "0.56183887", "0.5615435", "0.56069666", "0.5605207", "0.56005067", "0.559501", "0.55910283", "0.5590222", "0.55736613", "0.5556682", "0.5554544", "0.5550076", "0.55493855", "0.55446684", "0.5538079", "0.5529058", "0.5528109", "0.552641", "0.5525864", "0.552186", "0.5519972", "0.5509587", "0.5507195", "0.54881203", "0.5485328", "0.54826045", "0.5482066", "0.5481586", "0.5479751", "0.54776895", "0.54671466", "0.5463307", "0.54505056", "0.54436916", "0.5440517", "0.5439747", "0.5431944", "0.5422869", "0.54217863", "0.5417556", "0.5403905", "0.5400223", "0.53998446", "0.5394735", "0.5388649", "0.5388258", "0.5374842", "0.5368887", "0.53591394", "0.5357029", "0.5355688", "0.535506", "0.5355034", "0.53494394", "0.5341044", "0.5326166", "0.53236824", "0.53199095", "0.53177035", "0.53112453", "0.5298229" ]
0.0
-1
Checks if a given string is the string representation of an integer.
public static boolean isInteger(String s) { try { Integer.parseInt(s); } catch (NumberFormatException e) { return false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static boolean is_int(String s) {\n try {\n Integer.parseInt(s);\n return true;\n } catch (NumberFormatException e) {\n return false;\n }\n }", "public static boolean isInteger(String string) {\r\n\t try {\r\n\t Integer.valueOf(string);\r\n\t return true;\r\n\t } catch (NumberFormatException e) {\r\n\t return false;\r\n\t }\r\n\t}", "public static boolean isInteger(String s) {\n\t try { Integer.parseInt(s); }\n\t catch(NumberFormatException e) { return false; }\n\t catch(NullPointerException e) { return false; }\n\t // only gets here if the entered String is Integer:\n\t return true;\n\t}", "public static boolean isInteger(String s) {\n\t try { \n\t Integer.parseInt(s); \n\t } catch(NumberFormatException e) { \n\t return false; \n\t }\n\t return true;\n\t}", "public boolean isAnInt(String str) {\r\n \ttry {\r\n \t\tInteger.parseInt(str);\r\n \t} catch (NumberFormatException e) {\r\n \t\treturn false;\r\n \t}\r\n \treturn true;\r\n }", "public static boolean isInteger(String s) {\r\n\t\ttry {\r\n\t\t\tInteger.parseInt(s);\r\n\t\t} catch (NumberFormatException e) {\r\n\t\t\treturn false;\r\n\t\t} catch (NullPointerException e) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public boolean isInteger(String sIntString) {\n int i = 0;\n try {\n i = Integer.parseInt(sIntString);\n return true;\n } catch (Exception e) {\n return false;\n }\n }", "public static boolean isInteger(String s) {\n try {\n Integer.parseInt(s);\n } catch(NumberFormatException e) {\n return false;\n } catch(NullPointerException e) {\n return false;\n }\n return true;\n }", "public static boolean isInteger(String s) {\n\t return isInteger(s,10);\n\t}", "private static boolean isInteger(String s) {\r\n try {\r\n Integer.parseInt(s);\r\n return true;\r\n } catch (Exception ex) {\r\n return false;\r\n }\r\n }", "public static boolean isInteger(String s) {\n\t\ttry { \n\t\t\tInteger.parseInt(s); \n\t\t} catch(NumberFormatException e) { \n\t\t\treturn false; \n\t\t} catch(NullPointerException e) {\n\t\t\treturn false;\n\t\t}\n\t\t// only got here if we didn't return false\n\t\treturn true;\n\t}", "public static boolean isInteger(String s) {\n return isInteger(s,10);\n }", "private boolean isStringAnInt(String s) {\n // false if string is null\n if (s == null) {\n return false;\n }\n // if scanner get parse string for int then return true\n try {\n Scanner sc = new Scanner(s);\n int num = sc.nextInt();\n }\n // return false if it throws an exception\n catch (Exception e) {\n return false;\n }\n return true;\n }", "public static boolean isInteger(String s)\r\n {\r\n if (s == null || s.length() == 0)\r\n return false;\r\n \r\n //integer regular expression\r\n String regex = \"[-|+]?\\\\d+\";\r\n if (!s.matches(regex))\r\n return false;\r\n \r\n if (s.startsWith(\"+\"))\r\n s = s.substring(1);\r\n \r\n //try convert the string to an int\r\n //if it can not be converted, then return false\r\n try\r\n {\r\n Integer.parseInt(s);\r\n }catch(Exception e)\r\n {\r\n return false;\r\n }\r\n \r\n return true;\r\n }", "public boolean isInt(String value) {\n try {\n Integer.parseInt(value);\n return true;\n } catch (Exception e) {\n return false;\n }\n }", "public static boolean isInteger(String str){\n try {\n int d = Integer.parseInt(str);\n } catch (NumberFormatException nfe) {\n return false;\n }\n return true;\n }", "public static boolean isInteger(String str) {\n\t\ttry {\n\t\t\tInteger.parseInt(str);\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public static boolean isInteger(String value) {\n\t\ttry {\n\t\t\tInteger.parseInt(value);\n\t\t}\n\t\t \n\t\tcatch(NumberFormatException e) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "public static boolean isInt(String str)\r\n\t{\r\n\t\tif (str == null) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tint length = str.length();\r\n\t\tif (length == 0) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tint i = 0;\r\n\t\tif (str.charAt(0) == '-') {\r\n\t\t\tif (length == 1) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\ti = 1;\r\n\t\t}\r\n\t\tfor (; i < length; i++) {\r\n\t\t\tchar c = str.charAt(i);\r\n\t\t\tif (c < '0' || c > '9') {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public static boolean isInt(String str) {\n\t\ttry {\n\t\t\tint f = Integer.parseInt(str);\n\t\t} catch (Exception e) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}", "public static boolean isInteger(String input) {\n try {\n Integer.parseInt(input);\n return true;\n } catch (Exception e) {\n return false;\n }\n\n }", "public boolean isInteger(String x){\n try{\n Integer.parseInt(x);\n \n }\n catch(NumberFormatException e){\n return false;\n }\n return true;\n }", "public static boolean isInteger(String value) {\n boolean valid = false;\n try {\n Integer.parseInt(value);\n valid = true;\n } catch (RuntimeException exc) {\n // could not parse into int, false will be returned\n }\n return valid;\n }", "private boolean isInt(String str) { \n\t try { \n\t int d = Integer.parseInt(str); \n\t } catch(NumberFormatException nfe) { \n\t return false; \n\t } \n\t return true; \n\t}", "public static boolean isInt(String strNum) {\n try {\n int d = Integer.parseInt(strNum);\n } catch (NumberFormatException | NullPointerException nfe) {\n System.out.println(\"Invalid data format\");\n log.error(nfe);\n return false;\n }\n return true;\n }", "private boolean isInteger(String s)\n{\n\t boolean isNumber = true;\n\ttry{\n\t\t\tint n = Integer.parseInt(s);\n\t }catch(NumberFormatException n)\n\t {\n\t\t isNumber = false;\n\t }\n\n\treturn isNumber;\n}", "public static boolean isInteger(String str) {\n if (str == null || str.isEmpty() || str.equals(\"-\"))\n return false;\n\n int startIndex = str.startsWith(\"-\") ? 1 : 0;\n for (int i = startIndex; i < str.length(); i++)\n if (Character.digit(str.charAt(i), 10) < 0)\n return false;\n return true;\n }", "public static boolean isInt(String s){\n boolean flag = true;\n flag = ((s.charAt(0) >= '0' && s.charAt(0) <= '9') || s.charAt(0) == '-' || s.charAt(0) == '+' );\n int i = 1;\n while(flag && i < s.length()){\n flag = (s.charAt(i) >= '0' && s.charAt(i) <= '9' );\n i++;\n }\n return flag;\n }", "public boolean isInt(String text)\r\n {\r\n try\r\n {\r\n int ans = Integer.parseInt(text);\r\n return true;\r\n }\r\n catch(NumberFormatException e)\r\n {\r\n return false;\r\n }\r\n }", "public static boolean isIntValid (String str) {\r\n try {Integer.parseInt(str);} catch (NumberFormatException e) {return false;}\r\n return true;\r\n }", "public boolean isInteger(String input){\r\n try{\r\n Integer.parseInt(input);\r\n } catch (NumberFormatException e){\r\n return false;\r\n } catch (NullPointerException e){\r\n return false;\r\n }\r\n return true;\r\n }", "private static boolean validateInteger(String intString) {\n try {\n Integer.parseInt(intString);\n } catch (NumberFormatException e) {\n // Not a valid integer\n return false;\n }\n return true;\n }", "private boolean isInt (String s) {\n\t\ttry {\n\t\t\tif(Integer.parseInt(s) < 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\tcatch(NumberFormatException e) {\n\t\t\treturn false;\n\t\t}\n\t\tcatch(NullPointerException e) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "public static boolean isInteger(String str) {\n if (str == null || str.isEmpty()) {\n return false;\n }\n int length = str.length();\n if (length == 0) {\n return false;\n }\n int i = 0;\n if (str.charAt(0) == '-') {\n if (length == 1) {\n return false;\n }\n i = 1;\n }\n for (; i < length; i++) {\n char c = str.charAt(i);\n if (c <= '/' || c >= ':') {\n return false;\n }\n }\n return true;\n }", "private boolean isInteger(String a) {\n try \n {\n Integer.parseInt(a);\n return true;\n }\n catch(Exception e) {\n return false;\n }\n }", "private int isInteger(String s) {\r\n\t\t\tint retInt;\r\n\t\t try { \r\n\t\t \tretInt = Integer.parseInt(s); \r\n\t\t } catch(NumberFormatException e) { \r\n\t\t return -1; \r\n\t\t } catch(NullPointerException e) {\r\n\t\t return -1;\r\n\t\t }\r\n\t\t // only got here if we didn't return false\r\n\t\t return retInt;\r\n\t\t}", "public static boolean isInt(String val) {\n\t\ttry {\n\t\t\tInteger.parseInt(val);\n\t\t\treturn true;\n\t\t} catch (Exception e) { return false; }\n\t}", "public boolean checkInt( String s ) {\n \tchar[] c = s.toCharArray();\n \tboolean d = true;\n\n \tfor ( int i = 0; i < c.length; i++ )\n \t // verifica se o char não é um dígito\n \t if ( !Character.isDigit( c[ i ] ) ) {\n \t d = false;\n \t break;\n \t }\n \treturn d;\n \t}", "private boolean isInt(String num) {\n boolean isInt;\n try {\n Integer.parseInt(num);\n isInt = true;\n } catch (Exception e) {\n isInt = false;\n }\n return isInt;\n }", "public static boolean isInt(String val){\n\t try\n\t {\n\t Integer.parseInt(val);\n\t return true;\n\t } catch (NumberFormatException ex)\n\t {\n\t \tSystem.out.println(\"Please enter integer\");\n\t return false;\n\t }\n\t \n\t}", "public static boolean IS_INTEGER(String t) {\n\n return (t.equals(Feature.INTEGER));\n }", "public static boolean isValidInt(String s)\n {\n for (int i = 0; i < s.length(); i++)\n {\n if (!Character.isDigit(s.charAt(i)))\n {\n return false;\n }\n }\n return true;\n }", "private boolean isInteger(String str)\r\n {\r\n try\r\n {\r\n int i = Integer.parseInt(str);\r\n } catch (NumberFormatException nfe)\r\n {\r\n MyLogger.log(Level.INFO, LOG_CLASS_NAME + \"Non numeric value. Value was: {0}\", str);\r\n return false;\r\n }\r\n return true;\r\n }", "private static boolean stringTest(String s){\n try{ //depending on whether this is successful or not will return the relevant value\n Integer.parseInt(s);\n return true;\n } catch (NumberFormatException ex){\n return false;\n }\n }", "public static boolean isInt(String check) {\n\t\treturn check.matches(\"\\\\d+\");\n\t}", "private boolean isInteger(String userInput){\n if (userInput.matches(\"[0-9]+\")) {\n return true;\n }\n return false;\n }", "private boolean isInteger(String element) {\r\n try {\r\n Integer.valueOf(element);\r\n } catch (NumberFormatException e) {\r\n return false;\r\n }\r\n return true;\r\n }", "private static boolean isPositiveInteger(String s){\n\t\ttry{\n\t\t\t//If the token is an integer less than 0 return false\n\t\t\tif(Integer.parseInt(s) < 0){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t//If an exception occurs return false\n\t\tcatch(NumberFormatException e){\n\t\t\treturn false;\n\t\t}\n\t\t//otherwise return true\n\t\treturn true;\n\t}", "public boolean checkInput(String str)\n {\n try\n {\n Integer.parseInt(str);\n } \n catch(NumberFormatException ex)\n {\n return false;\n } \n return true;\n }", "public static boolean isINT(final String token) {\n\t\t// Check for empty or 1-size strings.\n\t\tif (token.length() < 2)\n\t\t\treturn false;\n\n\t\t// verify all chars are 0-9.\n\t\tfor (int i = 0; i < token.length(); i++) {\n\t\t\tif (!digits.contains(Character.toString(token.charAt(i)))) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\t// Passes all tests!\n\t\treturn true;\n\t}", "public static boolean isInt(String pram)\r\n {\r\n try{\r\n Integer.parseInt(pram);\r\n return true;\r\n }catch(NumberFormatException e){\r\n return false;\r\n }\r\n }", "public static boolean IsInteger(String par_Number) {\n\n java.util.regex.Pattern p = java.util.regex.Pattern.compile(\"^[\\\\d|\\\\-]\\\\d*$\");\n java.util.regex.Matcher m = p.matcher(par_Number);\n\n return m.matches();\n\n }", "private boolean checkInt(String str) {\n\t\ttry {\n\t\t\tint integer = Integer.parseInt(str);\n\t\t\tif(integer>=0&&integer<100000){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} catch(Exception e) {\n\t\t\treturn false;\n\t\t}\n\t}", "private boolean checkInteger(String str) {\n try {\n return Integer.parseInt(str) <= 30; // Check if the entered value is an Integer and <= 30;\n } catch (NumberFormatException e) {\n return false;\n }\n }", "private boolean tryParseInt(String str) {\n try {\n Integer.parseInt(str);\n } catch (Exception ex) {\n return false;\n }\n return true;\n }", "public static boolean isUnsignedInteger(String s){\n return s != null && s.matches(\"^0*[1-9]\\\\d*$\");\n }", "public boolean isNumber(String sIn)\r\n {\r\n int parseNumber = -1;\r\n \r\n try{\r\n parseNumber = Integer.parseInt(sIn);\r\n }catch(Exception e){\r\n return false;\r\n }\r\n \r\n return true;\r\n }", "public boolean isNumber(String in) \n\t{\n\t\ttry \n\t\t{\n\t\t\tInteger.parseInt(in);\n\t\t\treturn true;\n\t\t}\n\t\tcatch (Exception e) \n\t\t{\n\t\t\treturn false;\n\t\t}\n\t}", "public static boolean isNumeric(String string) { \r\n\t\ttry { \r\n\t\t\tint testNumber = Integer.parseInt(string); \r\n\t\t} catch(NumberFormatException e) { \r\n\t\t\treturn false; \r\n\t\t} \r\n\t\t\r\n\t\treturn true; \r\n\t}", "public static Boolean Int(String arg){\n\t\tif(arg == arg.replaceAll(\"\\\\D\",\"\")){\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public static boolean isNumber(String string) {\n\n\t\ttry {\n\t\t\tLong.parseLong(string);\n\t\t\treturn true;\n\t\t} catch (Exception e) {\n\t\t\treturn false;\n\t\t}\n\n\t}", "public static boolean isNumber(String s, int radix) {\n try {\n new BigDecimal(new BigInteger(s, radix));\n\n return true;\n } catch (Exception e) {\n }\n\n return false;\n }", "static boolean isInteger(char c) {\n\t\t\tswitch (c) {\n\t\t\t\tcase DECIMAL_INTEGER:\n\t\t\t\tcase OCTAL_INTEGER:\n\t\t\t\tcase HEXADECIMAL_INTEGER:\n\t\t\t\tcase HEXADECIMAL_INTEGER_UPPER:\n\t\t\t\t\treturn true;\n\t\t\t\tdefault:\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t}", "boolean isInt(TextField input);", "public static boolean isInt(char c) {\n\t\tif(c >= '0' && c <= '9') return true;\n\t\treturn false;\n\t}", "public static boolean isNumber(String text)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tInteger.parseInt(text);\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tcatch(NumberFormatException e)\r\n\t\t{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public boolean isInteger();", "public boolean isNumeric(String str){\n try {\n int i = Integer.parseInt(str);\n } catch (NumberFormatException nfe) {\n return false;\n }\n return true;\n }", "public static boolean isNumber(String str){\n try {\n Integer.parseInt(str);\n } catch(NumberFormatException e) {\n return false;\n } catch(NullPointerException e) {\n return false;\n }\n return true;\n }", "public static boolean isNumber(String text) {\r\n\t\ttry {\r\n\t\t\tInteger.parseInt(text);\r\n\t\t} catch(NumberFormatException e) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public static Integer stringToInteger(String s) {\n\t Integer ret = null;\n\t if (!Controleur.isVide(s))\n\t try {\n ret = Integer.valueOf(s);\n } catch (NumberFormatException e) {\n }\n\t\treturn ret;\n\t}", "public static boolean isNumeric(String str) {\n try {\n Integer d = Integer.parseInt(str);\n } catch (NumberFormatException nfe) {\n return false;\n }\n return true;\n }", "private boolean isInteger(String value){\n try{\n Integer.parseInt(value);\n }catch(NumberFormatException exc)\n {\n // Show the error message.\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\n alert.setTitle(\"Не верно указано затраченное время!\");\n alert.setHeaderText(null);\n alert.setContentText(\"Введите целое число затраченного времени!\\nЗатраченное время не может превышать 2147483647 (245000 лет)!\");\n alert.showAndWait();\n return false;\n }\n return true;\n }", "private static boolean isParsable(String input) {\n try {\n Integer.parseInt(input);\n return true;\n } catch (NumberFormatException e) {\n return false;\n }\n }", "public static boolean ehInteiro(String s) {\n char[] c = s.toCharArray();\n boolean d = true;\n\n for (int i = 0; i < c.length; i++) {\n // verifica se o char não é um dígito\n if (!Character.isDigit(c[i])) {\n d = false;\n break;\n }\n }\n\n return d;\n }", "public boolean isInteger() {\n try {\n Integer.parseInt(txt.getText());\n return true;\n } catch (Exception e) {\n return error(\"El valor debe ser un numero entero!\");\n }\n }", "public static boolean tryParse(String str) { \n try { \n Integer.parseInt(str); \n return true;\n } catch (NumberFormatException ex) {\n return false; \n } catch (Exception ex) {\n\t logError(ex);\n\t return false;\n }\n }", "public static boolean isNumber(final String s) {\r\n\t\tfor (int i = 0; i < s.length(); i++) {\r\n\t\t\tif (!Character.isDigit(s.charAt(i))) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}", "public boolean ehInteiro(String s) {\n\t\tchar[] c = s.toCharArray();\n\t\tboolean d = true;\n\t\tfor (int i = 0; i < c.length; i++)\n\t\t\t// verifica se o char não é um dígito\n\t\t\tif (!Character.isDigit(c[i])) {\n\t\t\t\td = false;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\treturn d;\n\t}", "public boolean isAnInt(char charac) {\r\n \treturn isAnInt(Character.toString(charac));\r\n }", "private static boolean isValidDigit(String strInput) {\n boolean isValid = true;\n if (isPrimitive(strInput)) {\n int input = Integer.parseInt(strInput);\n if (input < 1 || input > 255) {\n log.debug(\"Wrong config input value: {}\", strInput);\n isValid = false;\n } else {\n isValid = true;\n }\n\n } else {\n isValid = false;\n }\n\n return isValid;\n }", "public boolean isNumber(String s)\r\n {\r\n if (s == null)\r\n {\r\n return false;\r\n }\r\n s = s.trim();\r\n ValidNumberStateMachine vnsm = new ValidNumberStateMachine(s);\r\n return vnsm.isValid();\r\n }", "public Boolean isIdentifier(String string) {\n\t\tif (string == null) {\n\t\t\treturn false;\n\t\t}\n\t\treturn string.matches(\"[0-9].*\");\n\t}", "public boolean isParsable(String input){\n boolean parsable = true;\n try{\n Integer.parseInt(input);\n }catch(NumberFormatException e){\n parsable = false;\n }\n return parsable;\n}", "public static int checkValidity (String stringChoice) {\n int choice;\n Scanner parser = new Scanner(stringChoice);\n String modStringChoice = stringChoice.replaceAll(\"[\\\\d]\", \"\");\n if (modStringChoice.length() == 0 && parser.hasNextInt()) {\n choice = parser.nextInt();\n }\n else {\n choice = -1;\n }\n parser.close();\n return choice;\n }", "private static int i(String s) {\n return Integer.parseInt(s);\n }", "private static boolean isPrimitive(String value) {\n boolean status = true;\n value = value.trim();\n if (value.length() < 1) {\n return false;\n }\n for (int i = 0; i < value.length(); i++) {\n char c = value.charAt(i);\n if (!Character.isDigit(c)) {\n status = false;\n break;\n }\n }\n\n return status;\n }", "public static final boolean isNumber(String str) {\n\t\treturn isNumber(str,true);\n\t}", "protected static Integer getIntegerString(String string) {\n Integer i;\n try {\n i = Integer.parseInt(string);\n } catch(Exception e) {\n return null;\n }\n\n return i;\n }", "public static boolean isNumeric(String strNum) {\n if (strNum == null) {\n return false;\n }\n try {\n Integer d = Integer.parseInt(strNum);\n } catch (NumberFormatException nfe) {\n return false;\n }\n return true;\n }", "private boolean isNumeric(String s) {\n return java.util.regex.Pattern.matches(\"\\\\d+\", s);\n }", "private static boolean isKata(String s) {\n\t\tchar c = s.charAt(0);\n\t\tif (c < '0' || c > '9') return true;\n\t\t\n\t\ttry {\n\t\t\tInteger.parseInt(s);\n\t\t\treturn false;\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn true;\n\t\t}\n\t}", "public static boolean isDigits(String value) {\n return value.matches(\"[0-9]+\");\n }", "boolean hasInt();", "private static boolean areNumbers(String s) {\n boolean isADigit = false;//only changed once everything has been checked\n //checks if places 0-2 are numbers and 3 is a \"-\"\n for(int i = 0; i < 3; i++) {\n if(Character.isDigit(s.charAt(i)) && s.charAt(3) == '-') {\n isADigit = true;\n }\n }\n //checks if places 4-5 are numbers and 6 is a \"-\"\n for(int i = 4; i < 6; i++) {\n if(Character.isDigit(s.charAt(i)) && s.charAt(6) == '-') {\n isADigit = true;\n }\n }\n //checks if places 7-10 are numbers\n for(int i = 7; i < 11; i++) {\n if(Character.isDigit(s.charAt(i))) {\n isADigit = true;\n }\n }\n return isADigit;\n }", "boolean isNumericPubmed(String id){\n\t\t \n\t\t try{\n\t\t\t Integer.parseInt(id);\n\t\t }catch (Exception e){\n\t\t\t return false;\n\t\t }\n\t\t return true;\n\t }", "public static int getIntegerValue(String value)\n\t{\n\t\treturn Integer.parseInt(value);\n\t}", "public static boolean isNumeric(String input) {\n\t\ttry {\n\t\t\tInteger.parseInt(input);\n\t\t\treturn true;\n\t\t}\n\t\tcatch (NumberFormatException e) {\n\t\t\t// string is not numeric\n\t\t\treturn false;\n\t\t}\n\t}", "public static boolean isParsable(String input) {\r\n\t\tboolean parsable = true;\r\n\t\ttry {\r\n\t\t\tInteger.parseInt(input);\r\n\t\t} catch (NumberFormatException e) {\r\n\t\t\tparsable = false;\r\n\t\t}\r\n\t\treturn parsable;\r\n\t}", "public static boolean isNumber(String str){\n return str != null && numberPattern.matcher(str).matches();\n }" ]
[ "0.82709646", "0.82600814", "0.82200783", "0.818357", "0.81377274", "0.81189895", "0.81076884", "0.8044768", "0.80406946", "0.80274796", "0.8024204", "0.8017122", "0.8005677", "0.7988262", "0.7984765", "0.79398125", "0.79111856", "0.7879072", "0.7838237", "0.7835149", "0.77032727", "0.7688248", "0.76843333", "0.76743615", "0.7644893", "0.7634062", "0.76162404", "0.7596043", "0.75953", "0.7579265", "0.7563756", "0.75447476", "0.7522836", "0.7522825", "0.7521379", "0.74947566", "0.7470742", "0.7450582", "0.73586303", "0.7330855", "0.7276785", "0.72347397", "0.7233186", "0.71683973", "0.7167949", "0.7160626", "0.71564496", "0.71415555", "0.70033467", "0.6954387", "0.69233143", "0.6782515", "0.6747934", "0.6745999", "0.67367244", "0.67229605", "0.667992", "0.6628551", "0.66177565", "0.6615436", "0.6599272", "0.6564591", "0.6563151", "0.6536188", "0.64740974", "0.64701366", "0.6469201", "0.64412844", "0.64366806", "0.6402132", "0.6352126", "0.63441724", "0.6290057", "0.6268081", "0.62593246", "0.6241059", "0.61748403", "0.61737853", "0.61465126", "0.6145171", "0.614271", "0.61342853", "0.6126876", "0.6122552", "0.6099861", "0.6097742", "0.6067858", "0.60614884", "0.60559815", "0.603308", "0.6031868", "0.6028447", "0.60114264", "0.59959996", "0.59922475", "0.5958424", "0.59498465", "0.59395814", "0.59113693", "0.5901662" ]
0.8249485
2
Default constructor starts thread
public QueryThread(User u) { user = u; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void init() {\n Thread run = new Thread(new Run());\n run.start();\n }", "NetThread(){}", "public void start() {\n thread = new Thread(this);\n thread.setPriority(Thread.MIN_PRIORITY);\n thread.start();\n }", "ThreadStart createThreadStart();", "public void start() {\n\t\tif(t == null) {\n\t\t\tt = new Thread(this);\n\t\t\tt.start();\n\t\t}\n\t}", "public void start() {\n\t\tmyThread = new Thread(this); myThread.start();\n\t}", "public void start()\n\t{\n\t\tthread = new Thread(this);\n\t\tthread.start();\n\t}", "public void start ()\n {\n Thread th = new Thread (this);\n // start this thread\n th.start ();\n\n }", "private void startNormalThread() {\n customThread = new CustomThread();\n customThread.start();\n }", "public void start() {\n if (!started) {\n thread = new Thread(this);\n thread.start();\n started = true;\n }\n }", "public void start() {\n\t\tai = new Thread(this);\n\t\tai.start();\n\t}", "public MainThread()\n {\n super();\n setPriority(1);\n setId(0x55); \n }", "void start() {\n\tsleepThread = new Thread(this);\n\tsleepThread.start();\n }", "public void start() {\n // EFFECTS: starts a new thread from this instance.\n (new Thread(instance)).start();\n }", "public void createThread() {\n }", "public JanelaThread() {\n initComponents();\n }", "public void start () {\r\n // Declaras un hilo\r\n Thread th = new Thread (this);\r\n // Empieza el hilo\r\n th.start ();\r\n }", "public ImageThread() {\n\t}", "public void start() {\n if (runner == null) {\n runner = new Thread(this, \"Runner\");\n runner.start();\n }\n }", "public void start() {\n // Declaras un hilo\n Thread th = new Thread(this);\n // Empieza el hilo\n th.start();\n }", "public void start() {\n thread = new Thread(this);\n thread.start();\n System.out.println(\"---\\t Ober \" + naam + \" is gestart.\");\n }", "private ThreadUtil() {\n \n }", "public TicketBoothClient()\n {\n Thread myThread = new Thread(this);\n myThread.start();\n }", "private void start(){\n isRunning = true;\n thread = new Thread(this);\n thread.start();\n }", "void startThread();", "public synchronized void start() {\n if (!running) {\n running = true;\n thread = new Thread(this);\n thread.start();\n }\n }", "public synchronized void start() {\n if (!running) {\n running = true;\n thread = new Thread(this);\n thread.start();\n }\n }", "public synchronized void start() {\r\n\t\tthread = new Thread(this);\r\n\t\tthread.start();\r\n\t\tisRunning = true;\r\n\t }", "public void initReloj(){\r\n Thread r1 = new Thread(this,\"Reloj\");\r\n r1.start();\r\n }", "public void start(){\n hiloAux = new Thread(this);\n hiloAux.start();\n }", "public synchronized void start() {\n\t\tif (running)\n\t\t\treturn;\n\t\tthread = new Thread(this);\n\t\tthread.start();\n\t\trunning = true;\n\t}", "private void startThread()\n {\n if (workerThread == null || !workerThread.isLooping())\n {\n workerThread = new LiveViewThread(this);\n workerThread.start();\n }\n }", "@Override\r\n public Thread newThread(Runnable r) {\n Thread t = new Thread(r, \"example-runner\");\r\n t.setDaemon(true);\r\n return t;\r\n }", "public void start() {\r\n\t\trunning = true;\r\n\t\tt = new Thread(this);\r\n\t\tt.start();\r\n\t}", "public void start(){\n thread.start();\n }", "private Timer() {\n myThread = new TimerThread();\n myThread.start();\n }", "public void start() {\n\n\t\tisRunning = true;\n\t\tthread = new Thread(this);\n\t\tthread.start();\n\n\t}", "public void startThread(){\n\t\trunning = true;\n\t\tthread = new Thread(this);\n\t\tthread.start();\n\t}", "public synchronized void start() {\n if (!this.isRunning) {\n isRunning = true;\n thread = new Thread(this);\n thread.start();\n }\n }", "private ThreadUtil() {\n }", "public synchronized void start() {\r\n\r\n\t\tif (!running) {\r\n\t\t\trunning = true;\r\n\t\t\tnew Thread(this, name).start();\r\n\t\t}\r\n\t}", "private void start() {\r\n\t\tif (running)\r\n\t\t\treturn;\r\n\t\trunning = true;\r\n\t\tthread = new Thread(this);//creates threat to run program on\r\n\t\tthread.start();\r\n\t}", "public void start() {\r\n isRunning = true;\r\n Thread thread = new myThread();\r\n thread.start();\r\n }", "private void startRunnableThread() {\n customRunnable = new CustomRunnable();\n customThread = new CustomThread(customRunnable);\n customRunnable.setTag(customThread.tag);\n customThread.start();\n\n }", "@Override\n public void startThread() {\n Log.d(TAG, \"Starting \" + getName() + \" thread!\");\n if (!started)\n start();\n running = enabled;\n doStartAction();\n }", "public MyRunnable(){\t\n\t}", "public synchronized void start(){\n if(jogoAtivo) return;\n jogoAtivo = true;\n thread = new Thread(this);\n thread.start();\n }", "public void start() {\r\n running = true;\r\n new Thread(this).start();;\r\n }", "public ProducerThread() {\n }", "PooledThread()\n {\n setDaemon(true);\n\n start();\n }", "public static void initCommunicationClientThread(){\r\n new CommunicationClientThread();\r\n }", "CarThread(Car car) {\n this.car = car;\n thread = new Thread(this);\n }", "public synchronized void startup() {\n\n if (mThread == null) {\n mThread = new CounterThread();\n new Thread(mThread).start();\n }\n Log.d(TAG, \"startup\");\n }", "public IMThread(String threadName, Integer urlid, ArrayList<String> keys){\n this.name = threadName;\n this.selectedUrlId = urlid;\n this.keyArrayList = keys;\n /*t = new Thread(this,name);\n t.start();*/\n}", "@Test\n public void construtorTest() {\n ThreadObserveSample person = new ThreadObserveSample(\"test\");\n }", "private void startThreads() {\n Listener listener = new Listener();\n Thread listenerThread = new Thread(listener);\n\n listenerThread.start();\n }", "public void Start() {\r\n\t\tthread.run();\r\n\t}", "public Worker(){\n\n }", "public void start() {\r\n\t\tisRunning = true;\r\n\t\tnew Thread(this).start();\r\n\t}", "public void start()\r\n {\r\n if (_keepGoing) return;\r\n\r\n _keepGoing = true;\r\n\r\n Thread thread = new Thread(this);\r\n thread.start();\r\n }", "public TestInvoker()\n {\n super(new TestClient(), new ThreadPoolExecutorImpl(3));\n }", "public LogWatch() {\n\t\tsuper();\n\t\tthis.start();\n\t}", "@Override\n\t\t\tpublic Thread newThread(final Runnable r) {\n\t\t\t\tint id = threadNumber.getAndIncrement();\n\t\t\t\tString threadName = leftPad(String.valueOf(id), 2, \"0\");\n\t\t\t\tThread th = new Thread(r);\n\t\t\t\tth.setName(threadName);\n\t\t\t\tth.setDaemon(false);\n\t\t\t\treturn th;\n\t\t\t}", "public void initialize() {\n service = Executors.newCachedThreadPool();\n }", "ThreadCounterRunner() {}", "@Override\n public synchronized void start() {\n init();\n }", "public Thread startThread() {\n Thread thread = createThread();\n thread.start();\n return thread;\n }", "public LocalClient() {\n\t\tsuper(\"SERVER\", Arrays.asList(new String[] {\"*\"}), null, null);\n\t\tinputThread = new Thread(this);\n\t\tinputThread.start();\n\t}", "public ThreadState(KThread thread) \n {\n this.thread = thread;\n setPriority(priorityDefault);\n }", "NewThread (String threadname) {\r\n name = threadname;\r\n t = new Thread(this, name); // Constructor de un nuevo thread\r\n System.out.println(\"Nuevo hilo: \" +t);\r\n t.start(); // Aquí comienza el hilo\r\n }", "@Override\n public void threadStarted() {\n }", "private void go() {\n\n new Thread(this).start();\n }", "public synchronized void start() {\n\t\tif(! alive) {\n\t\t\talive = true;\n\t\t\tthread.start();\n\t\t}\n\t}", "public void start() {\n\tanimator = new Thread(this);\n\tanimator.setName(\"erly_boid:::swarm intelligence\");\n\terlang =new Thread(co);\n\terlang.start();\n\tanimator.start();\n \n \n \t\n }", "public MyIntentService() {\n //调用父类的构造函数\n //参数 = 工作线程的名字\n super(\"myIntentService\");\n }", "public Task(){}", "public JMSReplicationThread() {\r\n super(\"JMS Replication Thread\");\r\n setDaemon(true);\r\n setPriority(Thread.NORM_PRIORITY);\r\n }", "public start() {\n\t\tsuper();\n\t}", "void startDaemon () {\n if (daemon == null) {\n daemon = new Thread((Runnable) this); \n daemon.start();\n }\n }", "public AbstractConcurrentTestCase() {\n mainThread = Thread.currentThread();\n }", "@Override\n\tpublic Thread newThread(Runnable r) {\n\t\t\n\t\tThread th = new Thread(r,\" custum Thread\");\n\t\treturn th;\n\t}", "public void start() {\n\t\tcanvas.createBufferStrategy(2);\n\t\tbuffer = canvas.getBufferStrategy();\n\t\tthread = new Thread(this);\n\t\tthread.start();\n\t}", "@Override\r\n\tpublic Thread newThread(Runnable arg0) {\n\t\treturn null;\r\n\t}", "public void startThread(View view) {\n //startNormalThread();\n startRunnableThread();\n }", "public void startThread() {\n\t\tpm = (PowerManager) getSystemService(Context.POWER_SERVICE);\n\t\twl = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, \"My Tag\");\n\t\twl.acquire();\n\t\tthread = new FrameworkThread((Context) this);\n\t\tthread.start();\n\t}", "public Task() {\r\n }", "private void initShooter() {\n m_task = new ShooterThread(this);\n m_task.start();\n }", "public void toThread() {\n\t\t// TODO Auto-generated method stub\n\t\tnew Thread(this).start();\n\t\tclient.start();\n\t}", "public Task() {\n\t}", "@Override\n\tpublic void run() {\n\t\tinit();\n\t}", "public SocketServer() {\n \n super();\n start();\n\n }", "public synchronized void start() throws Exception {\n if (_runningThread != null) {\n throw new Exception(\"Node already running!\");\n }\n _runningThread = new Thread(this);\n _runningThread.start();\n }", "public void start(){\r\n\t\tnew Thread(\r\n\t new Runnable() {\r\n\t public void run() {\r\n\t \twhile(true){\r\n\t \t\t try {\r\n\t \t Thread.sleep(200);\r\n\t \t } catch (Exception e) {\r\n\t \t e.printStackTrace();\r\n\t \t }\r\n\t \t // Functions.DEBUG(\r\n\t \t // \"child thread \" + new Date(System.currentTimeMillis()));\r\n\t \t repaint();\r\n\t \t}\r\n\t }\r\n\t }).start();\r\n\t}", "private void newListener() {\n (new Thread(this)).start();\n }", "private void initThread() {\r\n\t\tthreadPreviewDataToImageData = new ThreadPreviewDataToImageData();\r\n\t\t// threadPreviewDataToFakePictureImageData = new\r\n\t\t// ThreadPreviewDataToFakePictureImageData();\r\n\t\t// threadPreviewYUVDecode = new ThreadPreviewYUVDecode();\r\n\r\n\t\tthreadPreviewDataToImageData.start();\r\n\t\t/*\r\n\t\t * if (CameraConfigure.isUseFakeImageData) { //\r\n\t\t * threadPreviewDataToFakePictureImageData.start(); } else {\r\n\t\t * //threadPreviewYUVDecode.start(); }\r\n\t\t */\r\n\r\n\t\t/** preview callback to ThreadPreviewDataToImageData */\r\n\t\tif (null == BlockingQueuePreviewData.getBlockingQueuePreviewData()) {\r\n\t\t\tnew BlockingQueuePreviewData();\r\n\t\t}\r\n\t\t/** ThreadPreviewDataToImageData to ThreadQRcodeDecode */\r\n\t\tif (null == BlockingQueueGrayByteData.getBlockingQueueGrayByteData()) {\r\n\t\t\tnew BlockingQueueGrayByteData();\r\n\t\t}\r\n\t\t/** ThreadPreviewDataToImageData to ThreadBarcodeDecode */\r\n\t\tif (null == BlockingQueueGrayByteDataArray\r\n\t\t\t\t.getBlockingQueueGrayByteDataArray()) {\r\n\t\t\tnew BlockingQueueGrayByteDataArray();\r\n\t\t}\r\n\t\t/** ThreadPreviewDataToImageData to ThreadBCardScanning */\r\n\t\tif (null == BlockingQueueGrayByteDataPreviewData\r\n\t\t\t\t.getBlockingQueueGrayByteDataPreviewData()) {\r\n\t\t\tnew BlockingQueueGrayByteDataPreviewData();\r\n\t\t}\r\n\t\t/*\r\n\t\t * if (null == BlockingQueueByteArray.getBlockingQueueByteArray()) { new\r\n\t\t * BlockingQueueByteArray(); }\r\n\t\t */\r\n\r\n\t\t/*\r\n\t\t * if (null == BlockingQueueFakePictureImageData\r\n\t\t * .getBlockingQueueFakePictureImageData()) { new\r\n\t\t * BlockingQueueFakePictureImageData(); }\r\n\t\t */\r\n\t}", "public Task(){\n super();\n }", "public Task() { }", "private void initThread(String user, String pass){\n AutomatedClient c = new AutomatedClient(user, pass);\n Thread t = new Thread(c);\n threads.put(user, t);\n clients.put(user, c);\n t.start();\n }", "public ThreadPool()\r\n {\r\n // 20 seconds of inactivity and a worker gives up\r\n suicideTime = 20000;\r\n // half a second for the oldest job in the queue before\r\n // spawning a worker to handle it\r\n spawnTime = 500;\r\n jobs = null;\r\n activeThreads = 0;\r\n askedToStop = false;\r\n }", "@Override\n public void run() {\n start(10, 500);\n }", "public Thread startAndRun() {\r\n\t\tThread gameThread = new Thread(this, \"Coffee Bean Game Thread\");\r\n\t\tgameThread.start();\r\n\r\n\t\treturn gameThread;\r\n\t}" ]
[ "0.75965583", "0.7495333", "0.7470075", "0.7418529", "0.7392394", "0.7310358", "0.72590685", "0.7160212", "0.7145251", "0.71379507", "0.7136374", "0.7122114", "0.7117373", "0.7106213", "0.7065849", "0.7059789", "0.7009814", "0.69662845", "0.6956922", "0.69528145", "0.6945704", "0.6941933", "0.6909131", "0.6891353", "0.68685716", "0.6862344", "0.6862344", "0.6854259", "0.6852516", "0.68263155", "0.6816326", "0.6812061", "0.67974615", "0.6792108", "0.6766104", "0.67652047", "0.67455786", "0.6734189", "0.67260325", "0.6719137", "0.6687681", "0.6678285", "0.66766524", "0.6657917", "0.6657335", "0.6579259", "0.65655875", "0.65632725", "0.6561508", "0.6557112", "0.65399235", "0.6519884", "0.65085816", "0.65072805", "0.6499155", "0.6483102", "0.64793324", "0.6469432", "0.6442275", "0.6439875", "0.6416626", "0.6416513", "0.64056486", "0.63965064", "0.63873893", "0.637213", "0.6365321", "0.6346556", "0.6340033", "0.6340008", "0.63322043", "0.63306344", "0.6327563", "0.63247466", "0.6311383", "0.6307156", "0.630558", "0.6299999", "0.62989837", "0.62951124", "0.6288645", "0.6287437", "0.62872493", "0.6283256", "0.6269875", "0.6262467", "0.6257205", "0.62568295", "0.6244222", "0.62428993", "0.6240736", "0.62398607", "0.6238977", "0.62091243", "0.620762", "0.618893", "0.6175767", "0.6167321", "0.61593103", "0.6158773", "0.6146583" ]
0.0
-1
BuildingBlockDAO buildingBlockDAO = new BuildingBlockDAO();
public String loginAction() throws Exception { return "builder"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public OnibusDAO() {}", "public StockCardReportDAO () {}", "public ArAgingDetailReportDAO () {}", "private CommentDAO() {\n\n\t}", "private PurchaseDAO(){\n }", "@SuppressWarnings(\"LawOfDemeter\")\n public AccessoryBO() throws PersistenceException {\n this.dao = DAOFactory.getDAOFactory().getAccessoryDAO();\n }", "public ProductDAO() {\n }", "private LabelDbmsDao() {\r\n }", "public MemberBusinessLogic() {\n memberDAO = new MemberDAOImpl();\n }", "public RcivControlDAOImpl(){\r\n \r\n }", "public PacienteDAO(){ \n }", "public abstract BusinessDAO getBusinessDAO();", "public ModeOfPurchaseDAOImpl() {\r\n\r\n }", "public NationalityDAO() {\n //sessionFactory = HibernateUtil.getSessionFactory();\n session=HibernateUtil.openSession();\n }", "public AdminDAO()\n {\n con = DataBase.getConnection();//crear una conexión al crear un objeto AdminDAO\n }", "private static OfferDAO getOfferDAO() {\n DbConnection dbConnection = new DbConnection();\n DBI dbi = dbConnection.getDBConnection();\n OfferDAO offerDAO = dbi.onDemand(OfferDAO.class);\n return offerDAO;\n }", "public DescritoresDAO() {\n\t\t\n\t}", "private UserAccountDAO(){\n }", "public static BookingDAOImp getBookingDAO(){\n if(bookingDataObject == null){\n bookingDataObject = new BookingDAOImp();\n }\n return bookingDataObject;\n }", "public GastoDAO(Context context){\n dbHelper = new MyDatabaseHelper(context);\n database = dbHelper.getWritableDatabase();\n }", "public AlManageOnAirDAOImpl() {\r\n super();\r\n }", "public StorePointsUsersDAO(){\n\t\t\n\t}", "public UserDAO()\n {\n \n }", "public HLCICPUserDAO() {\n }", "public UserDAO() {\n }", "public ProtocoloDAO() {\n }", "public CiviliteDao() {\r\n\t\tsuper();\r\n\t}", "public DepartmentsDAO() {\r\n\t\tconn = DBConnector.getConnection();\r\n\t}", "public VRpDyHlrforbeDAOImpl() {\r\n super();\r\n }", "public MultaDAO() {\r\n super(MultaDAO.class);\r\n }", "StockDao getStockDao();", "private CmmTagMasterVDao() {\r\n\t}", "public AdministratorDAO() {\n super();\n DAOClassType = Administrator.class;\n }", "public JobService(){\r\n\t dao = new JobDAO();\r\n//\t allJobVO = getAllJobVO();\r\n }", "public TGeneralprocessModeloneDAO() {\n super();\n }", "public BusinessLogic()\n\t{\n\t\tcreateConnection();\n\t}", "public WkBscCoreDAOImpl() {\r\n super();\r\n }", "public abstract CPGDao cpgDao();", "public empresaDAO(){\r\n \r\n }", "public MenuDAO() {\n\t\t\n\t\tconnection = ConnectDatabase.connectDatabase();\n\t\t\n\t}", "private UtilityDatabaseController() \n { \n }", "public DatabaseOperations(){\n\n }", "public void createBooking(Booking book) {\n\tStudentDAO studentDAO=new StudentDAO();\n\tstudentDAO.createBooking(book);\n}", "public ReleaseplanDAOImpl() {\r\n\t\tsuper();\r\n\t}", "public JdbcObjectStudentDAO() {\n\t\tsuper();\n\t}", "public DerivedPartOfPerspectivesFKDAOJDBC() {\n \t\n }", "public interface DAOFactory {\n\n BalanceDAO createBalanceDAO();\n}", "public VRpDyCellGprsCsBhDAOImpl() {\r\n super();\r\n }", "private UrlDAO() { }", "public interface VlbPoolDao extends BaseDAO<VlbPool> {\r\n}", "public PisoDAO createPisoDAO() {\n\n if (pisoDAO == null) {\n pisoDAO = new PisoDAO();\n }\n return pisoDAO;\n }", "public FlooringMasteryServiceLayer(FlooringMasteryDao dao) {\n this.dao = dao;\n }", "private AttendantDatabase() {}", "BookDao getBookDao();", "static void testSavingDAO() {\n }", "private OrderFacade(){\n\t\tAbstractDAOFactory f = new MySQLDAOFactory();\n \tthis.odao = f.getOrderDAO();\n\t}", "protected DAO()\r\n\t{\r\n\t\tcustomers = new ArrayList<Customer>();\r\n\t}", "public interface FeedbackOptionDAO extends DAO{\r\n \r\n}", "public TbAdminMenuDAOImpl() {\n super();\n }", "private DatabaseRepository() {\n try {\n // connect to database\n\n DB_URL = \"jdbc:sqlite:\"\n + this.getClass().getProtectionDomain()\n .getCodeSource()\n .getLocation()\n .toURI()\n .getPath().replaceAll(\"[/\\\\\\\\]\\\\w*\\\\.jar\", \"/\")\n + \"lib/GM-SIS.db\";\n connection = DriverManager.getConnection(DB_URL);\n mapper = ObjectRelationalMapper.getInstance();\n mapper.initialize(this);\n }\n catch (SQLException | URISyntaxException e) {\n System.out.println(e.toString());\n }\n }", "public AddressDaoImpl()\n {\n \t//Initialise the related Object stores\n \n }", "public DBMonster() {\n\n }", "public interface SectionDao extends Dao{\n}", "public OnlineUserDAO(){}", "public CheckBodyDB() {\n }", "private DatabaseHandler(){\n createConnection();\n }", "private void getDatabase(){\n\n }", "public TrCompanyCreditTransactionDetailDAOTest() {\r\n\t}", "public interface RegionPlaceDAO {\r\n\tpublic List<RegionPlace> viewRegionPlace() throws SQLException, ClassNotFoundException, NamingException;\r\n\tpublic RegionPlace selectRegionPlace(RegionPlace region) throws SQLException, ClassNotFoundException, NamingException;\r\n\tpublic RegionPlace getRegionPlace(TypePlace typePlace) throws SQLException, ClassNotFoundException, NamingException;\r\n}", "public abstract ZALogDao mo87644a();", "public TermDAOImpl(){\n connexion= new Connexion();\n }", "BookBorrowedDao getBookBorrowedDao();", "public PujaDAO() {\n con = null;\n st = null;\n rs = null;\n }", "public TagTypeDAO(Context context) {\r\n this.dbhelper= MySQLiteHelper.getInstance(context);\r\n }", "public ZyCorporationDAOImpl() {\r\n super();\r\n }", "private FirebaseDAO() {}", "private DatabaseManager() {}", "public LPMapdataDaoImpl() {\r\n\t\t\r\n\t}", "private LeagueSeasonDBAccess() {\n\n }", "public ImageDAO() {\r\n super();\r\n con = MySQLConnection.getMyOracleConnection();\r\n }", "protected AbstractDao()\n {\n\n }", "public EpAssetsDAOImpl() {\n super();\n }", "private ReservationDAO getReservationDAO() {\r\n return this.reservationDAO;\r\n }", "PersonalDetailsController(){\n hrDB=new HRDatabase();\n }", "public MoviesDatabase()\n {\n file = new FileOperation();\n menu = new Menu();\n validation = new Validation();\n }", "private DatabaseOperations() {\n }", "public VRpHrStpDAOImpl() {\r\n super();\r\n }", "private DatabaseAccess(Context context){\n this.openHelper=new DatabaseOpenHelper(context);\n }", "public PostDao() {\n\t}", "private DaoManager() {\n }", "public SetupDatabase() {\n }", "public EtiquetaDao() {\n //subiendola en modo Embedded\n this.sql2o = new Sql2o(\"jdbc:h2:~/demojdbc\", \"sa\", \"\");\n createTable();\n //cargaDemo();\n }", "private DatabaseContract()\n {\n }", "public UserLoginDAOImpl() {\r\n\r\n }", "public RouteDAO() {\n\t\tconn = DBConnection.getConnection();\n\t}", "public interface MenuDao {\n}", "public abstract DbDAO AccessToDAO();", "public interface BuildDao {\n public WebLocationBean getListOfLocations()throws Exception;\n\n public ArrayList<BuildingDataBean> getBuildingListDropDown()throws Exception;\n\n public ArrayList<StatusDataBean> getStatusListDropDown()throws Exception;\n\n public ArrayList<String[]> getBuildingList(String start, String length, String search_value, boolean device_id, boolean name, boolean location, boolean auth_admin) throws Exception;\n\n public int getBuildingCount(String search_value, boolean device_id, boolean name, boolean location, boolean auth_admin) throws Exception;\n\n public WebResponsBean delete(String building_id) throws Exception;\n\n public WebResponsBean addBuilding(BuildingAddBean buildingAddBean) throws Exception;\n}", "public interface AddressDao {\n}", "public interface LubrifiantDAO extends DAO<Lubrifiant> {\n}", "public ISegCambioPassDAO getSegCambioPassDAO() {\r\n return new SegCambioPassDAO();\r\n }" ]
[ "0.6981355", "0.6804509", "0.6796022", "0.67880887", "0.6786734", "0.65690887", "0.65467256", "0.65391135", "0.6520611", "0.6454896", "0.6437088", "0.64338744", "0.6395158", "0.6389147", "0.638623", "0.6370816", "0.6349206", "0.6332949", "0.63276833", "0.6326559", "0.6325495", "0.6303722", "0.62665766", "0.62630993", "0.62604654", "0.625682", "0.6248799", "0.6244", "0.62337005", "0.6215807", "0.618901", "0.61597174", "0.61496896", "0.61350316", "0.61232907", "0.6113178", "0.61101156", "0.6099333", "0.60860854", "0.60732317", "0.60634327", "0.60600555", "0.6029417", "0.6027529", "0.60275036", "0.6003332", "0.5995842", "0.59858835", "0.5976204", "0.5975161", "0.5975045", "0.59633577", "0.59606457", "0.5956328", "0.594945", "0.59451467", "0.59442425", "0.5937493", "0.59348184", "0.59316146", "0.5920923", "0.59207606", "0.5918929", "0.5903547", "0.59018093", "0.58989316", "0.5897875", "0.5894758", "0.5894286", "0.58921987", "0.58894557", "0.5887396", "0.5885585", "0.5875983", "0.58730507", "0.5870673", "0.5866092", "0.5861751", "0.58558786", "0.58540505", "0.58491874", "0.58442456", "0.58416826", "0.58334196", "0.58312416", "0.58307064", "0.58239895", "0.5821283", "0.58070403", "0.58067536", "0.5804255", "0.57996553", "0.57989085", "0.57961494", "0.5794684", "0.5794407", "0.5791861", "0.5784984", "0.5781248", "0.57693297", "0.5764044" ]
0.0
-1
BuildingBlockDAO buildingBlockDAO = new BuildingBlockDAO();
public String buildingBlockAction() throws Exception { return "success"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public OnibusDAO() {}", "public StockCardReportDAO () {}", "public ArAgingDetailReportDAO () {}", "private CommentDAO() {\n\n\t}", "private PurchaseDAO(){\n }", "@SuppressWarnings(\"LawOfDemeter\")\n public AccessoryBO() throws PersistenceException {\n this.dao = DAOFactory.getDAOFactory().getAccessoryDAO();\n }", "public ProductDAO() {\n }", "private LabelDbmsDao() {\r\n }", "public MemberBusinessLogic() {\n memberDAO = new MemberDAOImpl();\n }", "public RcivControlDAOImpl(){\r\n \r\n }", "public PacienteDAO(){ \n }", "public abstract BusinessDAO getBusinessDAO();", "public ModeOfPurchaseDAOImpl() {\r\n\r\n }", "public NationalityDAO() {\n //sessionFactory = HibernateUtil.getSessionFactory();\n session=HibernateUtil.openSession();\n }", "public AdminDAO()\n {\n con = DataBase.getConnection();//crear una conexión al crear un objeto AdminDAO\n }", "private static OfferDAO getOfferDAO() {\n DbConnection dbConnection = new DbConnection();\n DBI dbi = dbConnection.getDBConnection();\n OfferDAO offerDAO = dbi.onDemand(OfferDAO.class);\n return offerDAO;\n }", "public DescritoresDAO() {\n\t\t\n\t}", "private UserAccountDAO(){\n }", "public static BookingDAOImp getBookingDAO(){\n if(bookingDataObject == null){\n bookingDataObject = new BookingDAOImp();\n }\n return bookingDataObject;\n }", "public GastoDAO(Context context){\n dbHelper = new MyDatabaseHelper(context);\n database = dbHelper.getWritableDatabase();\n }", "public AlManageOnAirDAOImpl() {\r\n super();\r\n }", "public StorePointsUsersDAO(){\n\t\t\n\t}", "public UserDAO()\n {\n \n }", "public HLCICPUserDAO() {\n }", "public UserDAO() {\n }", "public ProtocoloDAO() {\n }", "public CiviliteDao() {\r\n\t\tsuper();\r\n\t}", "public DepartmentsDAO() {\r\n\t\tconn = DBConnector.getConnection();\r\n\t}", "public VRpDyHlrforbeDAOImpl() {\r\n super();\r\n }", "public MultaDAO() {\r\n super(MultaDAO.class);\r\n }", "StockDao getStockDao();", "private CmmTagMasterVDao() {\r\n\t}", "public AdministratorDAO() {\n super();\n DAOClassType = Administrator.class;\n }", "public JobService(){\r\n\t dao = new JobDAO();\r\n//\t allJobVO = getAllJobVO();\r\n }", "public TGeneralprocessModeloneDAO() {\n super();\n }", "public BusinessLogic()\n\t{\n\t\tcreateConnection();\n\t}", "public WkBscCoreDAOImpl() {\r\n super();\r\n }", "public abstract CPGDao cpgDao();", "public empresaDAO(){\r\n \r\n }", "public MenuDAO() {\n\t\t\n\t\tconnection = ConnectDatabase.connectDatabase();\n\t\t\n\t}", "private UtilityDatabaseController() \n { \n }", "public DatabaseOperations(){\n\n }", "public void createBooking(Booking book) {\n\tStudentDAO studentDAO=new StudentDAO();\n\tstudentDAO.createBooking(book);\n}", "public JdbcObjectStudentDAO() {\n\t\tsuper();\n\t}", "public ReleaseplanDAOImpl() {\r\n\t\tsuper();\r\n\t}", "public DerivedPartOfPerspectivesFKDAOJDBC() {\n \t\n }", "public interface DAOFactory {\n\n BalanceDAO createBalanceDAO();\n}", "public VRpDyCellGprsCsBhDAOImpl() {\r\n super();\r\n }", "public interface VlbPoolDao extends BaseDAO<VlbPool> {\r\n}", "private UrlDAO() { }", "public PisoDAO createPisoDAO() {\n\n if (pisoDAO == null) {\n pisoDAO = new PisoDAO();\n }\n return pisoDAO;\n }", "public FlooringMasteryServiceLayer(FlooringMasteryDao dao) {\n this.dao = dao;\n }", "private AttendantDatabase() {}", "BookDao getBookDao();", "static void testSavingDAO() {\n }", "private OrderFacade(){\n\t\tAbstractDAOFactory f = new MySQLDAOFactory();\n \tthis.odao = f.getOrderDAO();\n\t}", "protected DAO()\r\n\t{\r\n\t\tcustomers = new ArrayList<Customer>();\r\n\t}", "public interface FeedbackOptionDAO extends DAO{\r\n \r\n}", "public TbAdminMenuDAOImpl() {\n super();\n }", "private DatabaseRepository() {\n try {\n // connect to database\n\n DB_URL = \"jdbc:sqlite:\"\n + this.getClass().getProtectionDomain()\n .getCodeSource()\n .getLocation()\n .toURI()\n .getPath().replaceAll(\"[/\\\\\\\\]\\\\w*\\\\.jar\", \"/\")\n + \"lib/GM-SIS.db\";\n connection = DriverManager.getConnection(DB_URL);\n mapper = ObjectRelationalMapper.getInstance();\n mapper.initialize(this);\n }\n catch (SQLException | URISyntaxException e) {\n System.out.println(e.toString());\n }\n }", "public AddressDaoImpl()\n {\n \t//Initialise the related Object stores\n \n }", "public interface SectionDao extends Dao{\n}", "public DBMonster() {\n\n }", "public OnlineUserDAO(){}", "public CheckBodyDB() {\n }", "private DatabaseHandler(){\n createConnection();\n }", "private void getDatabase(){\n\n }", "public interface RegionPlaceDAO {\r\n\tpublic List<RegionPlace> viewRegionPlace() throws SQLException, ClassNotFoundException, NamingException;\r\n\tpublic RegionPlace selectRegionPlace(RegionPlace region) throws SQLException, ClassNotFoundException, NamingException;\r\n\tpublic RegionPlace getRegionPlace(TypePlace typePlace) throws SQLException, ClassNotFoundException, NamingException;\r\n}", "public TrCompanyCreditTransactionDetailDAOTest() {\r\n\t}", "public abstract ZALogDao mo87644a();", "public TermDAOImpl(){\n connexion= new Connexion();\n }", "BookBorrowedDao getBookBorrowedDao();", "public PujaDAO() {\n con = null;\n st = null;\n rs = null;\n }", "public TagTypeDAO(Context context) {\r\n this.dbhelper= MySQLiteHelper.getInstance(context);\r\n }", "public ZyCorporationDAOImpl() {\r\n super();\r\n }", "private FirebaseDAO() {}", "private DatabaseManager() {}", "public LPMapdataDaoImpl() {\r\n\t\t\r\n\t}", "private LeagueSeasonDBAccess() {\n\n }", "public ImageDAO() {\r\n super();\r\n con = MySQLConnection.getMyOracleConnection();\r\n }", "protected AbstractDao()\n {\n\n }", "public EpAssetsDAOImpl() {\n super();\n }", "private ReservationDAO getReservationDAO() {\r\n return this.reservationDAO;\r\n }", "PersonalDetailsController(){\n hrDB=new HRDatabase();\n }", "private DatabaseOperations() {\n }", "public MoviesDatabase()\n {\n file = new FileOperation();\n menu = new Menu();\n validation = new Validation();\n }", "public VRpHrStpDAOImpl() {\r\n super();\r\n }", "private DatabaseAccess(Context context){\n this.openHelper=new DatabaseOpenHelper(context);\n }", "public PostDao() {\n\t}", "private DaoManager() {\n }", "public SetupDatabase() {\n }", "public EtiquetaDao() {\n //subiendola en modo Embedded\n this.sql2o = new Sql2o(\"jdbc:h2:~/demojdbc\", \"sa\", \"\");\n createTable();\n //cargaDemo();\n }", "private DatabaseContract()\n {\n }", "public UserLoginDAOImpl() {\r\n\r\n }", "public interface MenuDao {\n}", "public RouteDAO() {\n\t\tconn = DBConnection.getConnection();\n\t}", "public abstract DbDAO AccessToDAO();", "public interface BuildDao {\n public WebLocationBean getListOfLocations()throws Exception;\n\n public ArrayList<BuildingDataBean> getBuildingListDropDown()throws Exception;\n\n public ArrayList<StatusDataBean> getStatusListDropDown()throws Exception;\n\n public ArrayList<String[]> getBuildingList(String start, String length, String search_value, boolean device_id, boolean name, boolean location, boolean auth_admin) throws Exception;\n\n public int getBuildingCount(String search_value, boolean device_id, boolean name, boolean location, boolean auth_admin) throws Exception;\n\n public WebResponsBean delete(String building_id) throws Exception;\n\n public WebResponsBean addBuilding(BuildingAddBean buildingAddBean) throws Exception;\n}", "public interface AddressDao {\n}", "public interface LubrifiantDAO extends DAO<Lubrifiant> {\n}", "public ISegCambioPassDAO getSegCambioPassDAO() {\r\n return new SegCambioPassDAO();\r\n }" ]
[ "0.6980877", "0.6804027", "0.6795577", "0.678731", "0.67861944", "0.6569138", "0.654624", "0.6538042", "0.6520815", "0.6454994", "0.64365184", "0.6435112", "0.63949716", "0.6389135", "0.6384988", "0.6370779", "0.6348557", "0.6332463", "0.6327222", "0.6325573", "0.63255626", "0.6303928", "0.62660414", "0.6262254", "0.6259631", "0.62560743", "0.624871", "0.62424636", "0.623404", "0.6215893", "0.61903715", "0.6159482", "0.6149461", "0.6134438", "0.6123838", "0.61130184", "0.6109961", "0.609945", "0.60858315", "0.60725397", "0.6062507", "0.6059768", "0.6030216", "0.6027876", "0.6027526", "0.6003577", "0.59959674", "0.59859943", "0.59771585", "0.59748715", "0.59741575", "0.59625214", "0.59603137", "0.595706", "0.5949941", "0.5944436", "0.59428465", "0.5938966", "0.59355384", "0.59308594", "0.59201336", "0.5920041", "0.59192455", "0.59039396", "0.59018046", "0.5898254", "0.5897948", "0.5896347", "0.58943987", "0.5893545", "0.58891845", "0.58885324", "0.58842415", "0.58758384", "0.58733034", "0.586872", "0.58650184", "0.5861154", "0.5854761", "0.58532387", "0.58487386", "0.58440715", "0.5842081", "0.58323485", "0.583021", "0.58297694", "0.5824534", "0.5820714", "0.580641", "0.58055586", "0.5803287", "0.5799875", "0.57989967", "0.57958835", "0.579537", "0.57932067", "0.5792824", "0.578566", "0.5781972", "0.57705534", "0.5764456" ]
0.0
-1
BuildingBlockDAO buildingBlockDAO = new BuildingBlockDAO();
public String buildingBlockAddAction() throws Exception { return "success"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public OnibusDAO() {}", "public StockCardReportDAO () {}", "public ArAgingDetailReportDAO () {}", "private CommentDAO() {\n\n\t}", "private PurchaseDAO(){\n }", "@SuppressWarnings(\"LawOfDemeter\")\n public AccessoryBO() throws PersistenceException {\n this.dao = DAOFactory.getDAOFactory().getAccessoryDAO();\n }", "public ProductDAO() {\n }", "private LabelDbmsDao() {\r\n }", "public MemberBusinessLogic() {\n memberDAO = new MemberDAOImpl();\n }", "public RcivControlDAOImpl(){\r\n \r\n }", "public PacienteDAO(){ \n }", "public abstract BusinessDAO getBusinessDAO();", "public ModeOfPurchaseDAOImpl() {\r\n\r\n }", "public NationalityDAO() {\n //sessionFactory = HibernateUtil.getSessionFactory();\n session=HibernateUtil.openSession();\n }", "public AdminDAO()\n {\n con = DataBase.getConnection();//crear una conexión al crear un objeto AdminDAO\n }", "private static OfferDAO getOfferDAO() {\n DbConnection dbConnection = new DbConnection();\n DBI dbi = dbConnection.getDBConnection();\n OfferDAO offerDAO = dbi.onDemand(OfferDAO.class);\n return offerDAO;\n }", "public DescritoresDAO() {\n\t\t\n\t}", "private UserAccountDAO(){\n }", "public static BookingDAOImp getBookingDAO(){\n if(bookingDataObject == null){\n bookingDataObject = new BookingDAOImp();\n }\n return bookingDataObject;\n }", "public GastoDAO(Context context){\n dbHelper = new MyDatabaseHelper(context);\n database = dbHelper.getWritableDatabase();\n }", "public AlManageOnAirDAOImpl() {\r\n super();\r\n }", "public StorePointsUsersDAO(){\n\t\t\n\t}", "public UserDAO()\n {\n \n }", "public HLCICPUserDAO() {\n }", "public UserDAO() {\n }", "public ProtocoloDAO() {\n }", "public CiviliteDao() {\r\n\t\tsuper();\r\n\t}", "public DepartmentsDAO() {\r\n\t\tconn = DBConnector.getConnection();\r\n\t}", "public VRpDyHlrforbeDAOImpl() {\r\n super();\r\n }", "public MultaDAO() {\r\n super(MultaDAO.class);\r\n }", "StockDao getStockDao();", "private CmmTagMasterVDao() {\r\n\t}", "public AdministratorDAO() {\n super();\n DAOClassType = Administrator.class;\n }", "public JobService(){\r\n\t dao = new JobDAO();\r\n//\t allJobVO = getAllJobVO();\r\n }", "public TGeneralprocessModeloneDAO() {\n super();\n }", "public BusinessLogic()\n\t{\n\t\tcreateConnection();\n\t}", "public WkBscCoreDAOImpl() {\r\n super();\r\n }", "public abstract CPGDao cpgDao();", "public empresaDAO(){\r\n \r\n }", "public MenuDAO() {\n\t\t\n\t\tconnection = ConnectDatabase.connectDatabase();\n\t\t\n\t}", "private UtilityDatabaseController() \n { \n }", "public DatabaseOperations(){\n\n }", "public void createBooking(Booking book) {\n\tStudentDAO studentDAO=new StudentDAO();\n\tstudentDAO.createBooking(book);\n}", "public JdbcObjectStudentDAO() {\n\t\tsuper();\n\t}", "public ReleaseplanDAOImpl() {\r\n\t\tsuper();\r\n\t}", "public DerivedPartOfPerspectivesFKDAOJDBC() {\n \t\n }", "public interface DAOFactory {\n\n BalanceDAO createBalanceDAO();\n}", "public VRpDyCellGprsCsBhDAOImpl() {\r\n super();\r\n }", "public interface VlbPoolDao extends BaseDAO<VlbPool> {\r\n}", "private UrlDAO() { }", "public PisoDAO createPisoDAO() {\n\n if (pisoDAO == null) {\n pisoDAO = new PisoDAO();\n }\n return pisoDAO;\n }", "public FlooringMasteryServiceLayer(FlooringMasteryDao dao) {\n this.dao = dao;\n }", "private AttendantDatabase() {}", "BookDao getBookDao();", "static void testSavingDAO() {\n }", "private OrderFacade(){\n\t\tAbstractDAOFactory f = new MySQLDAOFactory();\n \tthis.odao = f.getOrderDAO();\n\t}", "protected DAO()\r\n\t{\r\n\t\tcustomers = new ArrayList<Customer>();\r\n\t}", "public interface FeedbackOptionDAO extends DAO{\r\n \r\n}", "public TbAdminMenuDAOImpl() {\n super();\n }", "private DatabaseRepository() {\n try {\n // connect to database\n\n DB_URL = \"jdbc:sqlite:\"\n + this.getClass().getProtectionDomain()\n .getCodeSource()\n .getLocation()\n .toURI()\n .getPath().replaceAll(\"[/\\\\\\\\]\\\\w*\\\\.jar\", \"/\")\n + \"lib/GM-SIS.db\";\n connection = DriverManager.getConnection(DB_URL);\n mapper = ObjectRelationalMapper.getInstance();\n mapper.initialize(this);\n }\n catch (SQLException | URISyntaxException e) {\n System.out.println(e.toString());\n }\n }", "public AddressDaoImpl()\n {\n \t//Initialise the related Object stores\n \n }", "public interface SectionDao extends Dao{\n}", "public DBMonster() {\n\n }", "public OnlineUserDAO(){}", "public CheckBodyDB() {\n }", "private DatabaseHandler(){\n createConnection();\n }", "private void getDatabase(){\n\n }", "public interface RegionPlaceDAO {\r\n\tpublic List<RegionPlace> viewRegionPlace() throws SQLException, ClassNotFoundException, NamingException;\r\n\tpublic RegionPlace selectRegionPlace(RegionPlace region) throws SQLException, ClassNotFoundException, NamingException;\r\n\tpublic RegionPlace getRegionPlace(TypePlace typePlace) throws SQLException, ClassNotFoundException, NamingException;\r\n}", "public TrCompanyCreditTransactionDetailDAOTest() {\r\n\t}", "public abstract ZALogDao mo87644a();", "public TermDAOImpl(){\n connexion= new Connexion();\n }", "BookBorrowedDao getBookBorrowedDao();", "public PujaDAO() {\n con = null;\n st = null;\n rs = null;\n }", "public TagTypeDAO(Context context) {\r\n this.dbhelper= MySQLiteHelper.getInstance(context);\r\n }", "public ZyCorporationDAOImpl() {\r\n super();\r\n }", "private FirebaseDAO() {}", "private DatabaseManager() {}", "public LPMapdataDaoImpl() {\r\n\t\t\r\n\t}", "private LeagueSeasonDBAccess() {\n\n }", "public ImageDAO() {\r\n super();\r\n con = MySQLConnection.getMyOracleConnection();\r\n }", "protected AbstractDao()\n {\n\n }", "public EpAssetsDAOImpl() {\n super();\n }", "private ReservationDAO getReservationDAO() {\r\n return this.reservationDAO;\r\n }", "PersonalDetailsController(){\n hrDB=new HRDatabase();\n }", "private DatabaseOperations() {\n }", "public MoviesDatabase()\n {\n file = new FileOperation();\n menu = new Menu();\n validation = new Validation();\n }", "public VRpHrStpDAOImpl() {\r\n super();\r\n }", "private DatabaseAccess(Context context){\n this.openHelper=new DatabaseOpenHelper(context);\n }", "public PostDao() {\n\t}", "private DaoManager() {\n }", "public SetupDatabase() {\n }", "public EtiquetaDao() {\n //subiendola en modo Embedded\n this.sql2o = new Sql2o(\"jdbc:h2:~/demojdbc\", \"sa\", \"\");\n createTable();\n //cargaDemo();\n }", "private DatabaseContract()\n {\n }", "public UserLoginDAOImpl() {\r\n\r\n }", "public interface MenuDao {\n}", "public RouteDAO() {\n\t\tconn = DBConnection.getConnection();\n\t}", "public abstract DbDAO AccessToDAO();", "public interface BuildDao {\n public WebLocationBean getListOfLocations()throws Exception;\n\n public ArrayList<BuildingDataBean> getBuildingListDropDown()throws Exception;\n\n public ArrayList<StatusDataBean> getStatusListDropDown()throws Exception;\n\n public ArrayList<String[]> getBuildingList(String start, String length, String search_value, boolean device_id, boolean name, boolean location, boolean auth_admin) throws Exception;\n\n public int getBuildingCount(String search_value, boolean device_id, boolean name, boolean location, boolean auth_admin) throws Exception;\n\n public WebResponsBean delete(String building_id) throws Exception;\n\n public WebResponsBean addBuilding(BuildingAddBean buildingAddBean) throws Exception;\n}", "public interface AddressDao {\n}", "public interface LubrifiantDAO extends DAO<Lubrifiant> {\n}", "public ISegCambioPassDAO getSegCambioPassDAO() {\r\n return new SegCambioPassDAO();\r\n }" ]
[ "0.6980877", "0.6804027", "0.6795577", "0.678731", "0.67861944", "0.6569138", "0.654624", "0.6538042", "0.6520815", "0.6454994", "0.64365184", "0.6435112", "0.63949716", "0.6389135", "0.6384988", "0.6370779", "0.6348557", "0.6332463", "0.6327222", "0.6325573", "0.63255626", "0.6303928", "0.62660414", "0.6262254", "0.6259631", "0.62560743", "0.624871", "0.62424636", "0.623404", "0.6215893", "0.61903715", "0.6159482", "0.6149461", "0.6134438", "0.6123838", "0.61130184", "0.6109961", "0.609945", "0.60858315", "0.60725397", "0.6062507", "0.6059768", "0.6030216", "0.6027876", "0.6027526", "0.6003577", "0.59959674", "0.59859943", "0.59771585", "0.59748715", "0.59741575", "0.59625214", "0.59603137", "0.595706", "0.5949941", "0.5944436", "0.59428465", "0.5938966", "0.59355384", "0.59308594", "0.59201336", "0.5920041", "0.59192455", "0.59039396", "0.59018046", "0.5898254", "0.5897948", "0.5896347", "0.58943987", "0.5893545", "0.58891845", "0.58885324", "0.58842415", "0.58758384", "0.58733034", "0.586872", "0.58650184", "0.5861154", "0.5854761", "0.58532387", "0.58487386", "0.58440715", "0.5842081", "0.58323485", "0.583021", "0.58297694", "0.5824534", "0.5820714", "0.580641", "0.58055586", "0.5803287", "0.5799875", "0.57989967", "0.57958835", "0.579537", "0.57932067", "0.5792824", "0.578566", "0.5781972", "0.57705534", "0.5764456" ]
0.0
-1
BuildingBlockDAO buildingBlockDAO = new BuildingBlockDAO();
public String initialAction() throws Exception { System.out.println(" *** initialAction **** "); return "login"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public OnibusDAO() {}", "public StockCardReportDAO () {}", "public ArAgingDetailReportDAO () {}", "private CommentDAO() {\n\n\t}", "private PurchaseDAO(){\n }", "@SuppressWarnings(\"LawOfDemeter\")\n public AccessoryBO() throws PersistenceException {\n this.dao = DAOFactory.getDAOFactory().getAccessoryDAO();\n }", "public ProductDAO() {\n }", "private LabelDbmsDao() {\r\n }", "public MemberBusinessLogic() {\n memberDAO = new MemberDAOImpl();\n }", "public RcivControlDAOImpl(){\r\n \r\n }", "public PacienteDAO(){ \n }", "public abstract BusinessDAO getBusinessDAO();", "public ModeOfPurchaseDAOImpl() {\r\n\r\n }", "public NationalityDAO() {\n //sessionFactory = HibernateUtil.getSessionFactory();\n session=HibernateUtil.openSession();\n }", "public AdminDAO()\n {\n con = DataBase.getConnection();//crear una conexión al crear un objeto AdminDAO\n }", "private static OfferDAO getOfferDAO() {\n DbConnection dbConnection = new DbConnection();\n DBI dbi = dbConnection.getDBConnection();\n OfferDAO offerDAO = dbi.onDemand(OfferDAO.class);\n return offerDAO;\n }", "public DescritoresDAO() {\n\t\t\n\t}", "private UserAccountDAO(){\n }", "public static BookingDAOImp getBookingDAO(){\n if(bookingDataObject == null){\n bookingDataObject = new BookingDAOImp();\n }\n return bookingDataObject;\n }", "public GastoDAO(Context context){\n dbHelper = new MyDatabaseHelper(context);\n database = dbHelper.getWritableDatabase();\n }", "public AlManageOnAirDAOImpl() {\r\n super();\r\n }", "public StorePointsUsersDAO(){\n\t\t\n\t}", "public UserDAO()\n {\n \n }", "public HLCICPUserDAO() {\n }", "public UserDAO() {\n }", "public ProtocoloDAO() {\n }", "public CiviliteDao() {\r\n\t\tsuper();\r\n\t}", "public DepartmentsDAO() {\r\n\t\tconn = DBConnector.getConnection();\r\n\t}", "public VRpDyHlrforbeDAOImpl() {\r\n super();\r\n }", "public MultaDAO() {\r\n super(MultaDAO.class);\r\n }", "StockDao getStockDao();", "private CmmTagMasterVDao() {\r\n\t}", "public AdministratorDAO() {\n super();\n DAOClassType = Administrator.class;\n }", "public JobService(){\r\n\t dao = new JobDAO();\r\n//\t allJobVO = getAllJobVO();\r\n }", "public TGeneralprocessModeloneDAO() {\n super();\n }", "public BusinessLogic()\n\t{\n\t\tcreateConnection();\n\t}", "public WkBscCoreDAOImpl() {\r\n super();\r\n }", "public abstract CPGDao cpgDao();", "public empresaDAO(){\r\n \r\n }", "public MenuDAO() {\n\t\t\n\t\tconnection = ConnectDatabase.connectDatabase();\n\t\t\n\t}", "private UtilityDatabaseController() \n { \n }", "public DatabaseOperations(){\n\n }", "public void createBooking(Booking book) {\n\tStudentDAO studentDAO=new StudentDAO();\n\tstudentDAO.createBooking(book);\n}", "public JdbcObjectStudentDAO() {\n\t\tsuper();\n\t}", "public ReleaseplanDAOImpl() {\r\n\t\tsuper();\r\n\t}", "public DerivedPartOfPerspectivesFKDAOJDBC() {\n \t\n }", "public interface DAOFactory {\n\n BalanceDAO createBalanceDAO();\n}", "public VRpDyCellGprsCsBhDAOImpl() {\r\n super();\r\n }", "public interface VlbPoolDao extends BaseDAO<VlbPool> {\r\n}", "private UrlDAO() { }", "public PisoDAO createPisoDAO() {\n\n if (pisoDAO == null) {\n pisoDAO = new PisoDAO();\n }\n return pisoDAO;\n }", "public FlooringMasteryServiceLayer(FlooringMasteryDao dao) {\n this.dao = dao;\n }", "private AttendantDatabase() {}", "BookDao getBookDao();", "static void testSavingDAO() {\n }", "private OrderFacade(){\n\t\tAbstractDAOFactory f = new MySQLDAOFactory();\n \tthis.odao = f.getOrderDAO();\n\t}", "protected DAO()\r\n\t{\r\n\t\tcustomers = new ArrayList<Customer>();\r\n\t}", "public interface FeedbackOptionDAO extends DAO{\r\n \r\n}", "public TbAdminMenuDAOImpl() {\n super();\n }", "private DatabaseRepository() {\n try {\n // connect to database\n\n DB_URL = \"jdbc:sqlite:\"\n + this.getClass().getProtectionDomain()\n .getCodeSource()\n .getLocation()\n .toURI()\n .getPath().replaceAll(\"[/\\\\\\\\]\\\\w*\\\\.jar\", \"/\")\n + \"lib/GM-SIS.db\";\n connection = DriverManager.getConnection(DB_URL);\n mapper = ObjectRelationalMapper.getInstance();\n mapper.initialize(this);\n }\n catch (SQLException | URISyntaxException e) {\n System.out.println(e.toString());\n }\n }", "public AddressDaoImpl()\n {\n \t//Initialise the related Object stores\n \n }", "public interface SectionDao extends Dao{\n}", "public DBMonster() {\n\n }", "public OnlineUserDAO(){}", "public CheckBodyDB() {\n }", "private DatabaseHandler(){\n createConnection();\n }", "private void getDatabase(){\n\n }", "public interface RegionPlaceDAO {\r\n\tpublic List<RegionPlace> viewRegionPlace() throws SQLException, ClassNotFoundException, NamingException;\r\n\tpublic RegionPlace selectRegionPlace(RegionPlace region) throws SQLException, ClassNotFoundException, NamingException;\r\n\tpublic RegionPlace getRegionPlace(TypePlace typePlace) throws SQLException, ClassNotFoundException, NamingException;\r\n}", "public TrCompanyCreditTransactionDetailDAOTest() {\r\n\t}", "public abstract ZALogDao mo87644a();", "public TermDAOImpl(){\n connexion= new Connexion();\n }", "BookBorrowedDao getBookBorrowedDao();", "public PujaDAO() {\n con = null;\n st = null;\n rs = null;\n }", "public TagTypeDAO(Context context) {\r\n this.dbhelper= MySQLiteHelper.getInstance(context);\r\n }", "public ZyCorporationDAOImpl() {\r\n super();\r\n }", "private FirebaseDAO() {}", "private DatabaseManager() {}", "public LPMapdataDaoImpl() {\r\n\t\t\r\n\t}", "private LeagueSeasonDBAccess() {\n\n }", "public ImageDAO() {\r\n super();\r\n con = MySQLConnection.getMyOracleConnection();\r\n }", "protected AbstractDao()\n {\n\n }", "public EpAssetsDAOImpl() {\n super();\n }", "private ReservationDAO getReservationDAO() {\r\n return this.reservationDAO;\r\n }", "PersonalDetailsController(){\n hrDB=new HRDatabase();\n }", "private DatabaseOperations() {\n }", "public MoviesDatabase()\n {\n file = new FileOperation();\n menu = new Menu();\n validation = new Validation();\n }", "public VRpHrStpDAOImpl() {\r\n super();\r\n }", "private DatabaseAccess(Context context){\n this.openHelper=new DatabaseOpenHelper(context);\n }", "public PostDao() {\n\t}", "private DaoManager() {\n }", "public SetupDatabase() {\n }", "public EtiquetaDao() {\n //subiendola en modo Embedded\n this.sql2o = new Sql2o(\"jdbc:h2:~/demojdbc\", \"sa\", \"\");\n createTable();\n //cargaDemo();\n }", "private DatabaseContract()\n {\n }", "public UserLoginDAOImpl() {\r\n\r\n }", "public interface MenuDao {\n}", "public RouteDAO() {\n\t\tconn = DBConnection.getConnection();\n\t}", "public abstract DbDAO AccessToDAO();", "public interface BuildDao {\n public WebLocationBean getListOfLocations()throws Exception;\n\n public ArrayList<BuildingDataBean> getBuildingListDropDown()throws Exception;\n\n public ArrayList<StatusDataBean> getStatusListDropDown()throws Exception;\n\n public ArrayList<String[]> getBuildingList(String start, String length, String search_value, boolean device_id, boolean name, boolean location, boolean auth_admin) throws Exception;\n\n public int getBuildingCount(String search_value, boolean device_id, boolean name, boolean location, boolean auth_admin) throws Exception;\n\n public WebResponsBean delete(String building_id) throws Exception;\n\n public WebResponsBean addBuilding(BuildingAddBean buildingAddBean) throws Exception;\n}", "public interface AddressDao {\n}", "public interface LubrifiantDAO extends DAO<Lubrifiant> {\n}", "public ISegCambioPassDAO getSegCambioPassDAO() {\r\n return new SegCambioPassDAO();\r\n }" ]
[ "0.6980877", "0.6804027", "0.6795577", "0.678731", "0.67861944", "0.6569138", "0.654624", "0.6538042", "0.6520815", "0.6454994", "0.64365184", "0.6435112", "0.63949716", "0.6389135", "0.6384988", "0.6370779", "0.6348557", "0.6332463", "0.6327222", "0.6325573", "0.63255626", "0.6303928", "0.62660414", "0.6262254", "0.6259631", "0.62560743", "0.624871", "0.62424636", "0.623404", "0.6215893", "0.61903715", "0.6159482", "0.6149461", "0.6134438", "0.6123838", "0.61130184", "0.6109961", "0.609945", "0.60858315", "0.60725397", "0.6062507", "0.6059768", "0.6030216", "0.6027876", "0.6027526", "0.6003577", "0.59959674", "0.59859943", "0.59771585", "0.59748715", "0.59741575", "0.59625214", "0.59603137", "0.595706", "0.5949941", "0.5944436", "0.59428465", "0.5938966", "0.59355384", "0.59308594", "0.59201336", "0.5920041", "0.59192455", "0.59039396", "0.59018046", "0.5898254", "0.5897948", "0.5896347", "0.58943987", "0.5893545", "0.58891845", "0.58885324", "0.58842415", "0.58758384", "0.58733034", "0.586872", "0.58650184", "0.5861154", "0.5854761", "0.58532387", "0.58487386", "0.58440715", "0.5842081", "0.58323485", "0.583021", "0.58297694", "0.5824534", "0.5820714", "0.580641", "0.58055586", "0.5803287", "0.5799875", "0.57989967", "0.57958835", "0.579537", "0.57932067", "0.5792824", "0.578566", "0.5781972", "0.57705534", "0.5764456" ]
0.0
-1
Default constructor, calls parent default constructor and then initializes extended to 'A', price to 2176.33 and number to 10.
Etf() { super(); extended = 'A'; price = 2176.33; number = 10; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Etf(char extended, double price, int number)\n {\n super();\n this.extended = extended;\n this.price = price;\n this.number = number;\n }", "Etf(String name, String ticker, char extended, double price, int number)\n {\n super(name, ticker);\n this.extended = extended;\n this.price = price;\n this.number = number;\n }", "public SuperProduct() {\n\t\tsuper();\n\t}", "Item(DukatAmount price){\r\n\t\tthis(0, new Weight(5), price);\r\n\t}", "public Pricing()\n\t{\n\t\tprice = INITIALPRICE;\n\t}", "public PriceBreakdown() {\n }", "public Objects(String item, double baseprice){\r\n this.item = item;\r\n this.baseprice = baseprice;\r\n }", "public ItemPrice() {\n }", "protected StockItem()\r\n \t{\r\n \t\tlimit = new LimitSystem(this);\r\n \t}", "private ProfitPerTariffType ()\n {\n super();\n }", "public Supermarket() {\n }", "public ElectricCar(String mfr, String color, Model model, Vehicle.PowerSource power, \n\t\t double safety, int range, boolean awd, int price, int rch,String batteryType, int VIN)\n{\n\t super(mfr, color, model, Vehicle.PowerSource.ELECTRIC_MOTOR, safety, range, awd, price, VIN);\n\t rechargeTime = rch;\n\t batteryType = \"Lithium\";\n}", "public CustomShirt(int itemID, String description, char colorCode, double price, int orders) {\n\n super( itemID, description, colorCode, price, orders);\n\n }", "public Supermarket() {\n }", "public SpecialOffer() {\n\t\tsuper(org.jooq.examples.sqlserver.adventureworks.sales.tables.SpecialOffer.SpecialOffer);\n\t}", "public Supermarket()\n {\n }", "public Product()\n\t{\n\t\tthis.name = \"\";\n\t\tthis.price = 0.0;\n\t\tthis.imported = false;\n\t\tthis.quantity = 0;\n\t\tthis.taxedCost = 0.0;\n\t}", "public MageTowerCard() {\n\t\tsuper(cardName, cardId, cardCost);\n\t}", "public ProductoA2() {\n\t\tSystem.out.println(\"Hola yo soy el producto A2\");\n\t\t\n\t}", "public Kitten(String s, int a)\n {\n // initialise instance variables\n super(s, a);\n }", "public Item() \r\n\t{\r\n\t\tname = \"AbstractItem\";\r\n\t\tdescription = \"Example Item Generated\";\r\n\t\tprice = 0;\r\n\t}", "public RegisteredLetter(Letter<C> letter) {\n\t\tsuper(letter);\n\t\tthis.letter.price = this.price + additionalCost;\n\t\tthis.price = this.letter.price;\n\t}", "protected StockPrice() {\n\t\t// just for serializers\n\t}", "public ARecord() {\n super(A.A);\n }", "public ahr(aqu paramaqu)\r\n/* 20: */ {\r\n/* 21: 34 */ super(paramaqu);\r\n/* 22: 35 */ a(0.25F, 0.25F);\r\n/* 23: */ }", "public ShopArticle() {\r\n\t\tsuper();\r\n\t}", "public Product() {\n\t\tthis.name = \"\";\n\t\tthis.price = 0;\n\t\tthis.quantity = 0;\n\t}", "public TOfferGoodsRecord() {\n super(TOfferGoods.T_OFFER_GOODS);\n }", "Item(){\r\n\t\tthis(0, new Weight(5), new DukatAmount(0));\r\n\t}", "public BarSeat(){\n\t\tsuper(1);\n\t}", "Item(long ID, DukatAmount price){\r\n\t\tthis(ID, new Weight(5), price);\r\n\t}", "protected Product()\n\t{\n\t}", "public BookFairQues4() {\n this.Bname = \"\";\n this.price = 0.0;\n }", "protected PickaxeItem(Tier debug1, int debug2, float debug3, Item.Properties debug4) {\n/* 100 */ super(debug2, debug3, debug1, DIGGABLES, debug4);\n/* */ }", "public Card() { this(12, 3); }", "public Product(String name, double price) {\r\n this.name = name;\r\n this.price = price;\r\n quantity = 0;\r\n }", "public Supercar() {\r\n\t\t\r\n\t}", "public PurchaseOrderItem () {\n\t\tsuper();\n\t}", "protected Product() {\n\t\t\n\t}", "public Order() {\n\t\tsuper();\n\t\tcurrentOrder += 1;\n\t\torderNumber = currentOrder;\n\t\tthis.orderPrice.setScale(2, BigDecimal.ROUND_HALF_EVEN);\n\t}", "public Item()\r\n\t{\r\n\t\tserialNum = 00000;\r\n\t\tweight = 0.0;\r\n\t}", "public Item() {\r\n this.name = \"\";\r\n this.description = \"\";\r\n this.price = 0F;\r\n this.type = \"\";\r\n this.available = 0;\r\n this.wholesaler = new Wholesaler();\r\n this.wholesalerId = 0;\r\n this.category = new Category();\r\n this.categoryId = 0; \r\n }", "public MF_Price() {\r\n\t\tthis.price = 0.00;\r\n\t\tthis.date = (Date) Calendar.getInstance().getTime();\r\n\t\tthis.company = null;\r\n\t}", "public SavingsAccount(double startBalance, double startInterestRate)\n {\n super(startBalance);\n setInterestRate(startInterestRate);\n System.out.println(\"Overloaded Constructor called.\");\n }", "public ProductImp() {\n insert(new Product(\"hammer\", 9.99));\n insert(new Product(\"screwdriver\", 9.99));\n insert(new Product(\"drill\", 19.99));\n }", "public Hourly (String eName, String eAddress, String ePhone,\r\nString socSecNumber, double rate)\r\n{\r\nsuper(eName, eAddress, ePhone, socSecNumber, rate);\r\n//IMPLEMENT THIS\r\n}", "public CD(String aName, int someCapacity, String aType, int usedStorage)\n {\n super(aName, someCapacity, aType, usedStorage);\n }", "public Basket(double price, String name, int quantityForSold, double priceOfProvider, Quantity quantity) {\n super(price, name, quantityForSold, priceOfProvider, quantity);\n }", "private NumericCard (Color color, int number)\n {\n super(color);\n this.number = number;\n }", "public Achterbahn() {\n }", "public ElectricBike() {\n\t\tsuper();\n\t}", "public Strawberries() {\r\n\t\tsuper(price, nutrition, name);\r\n\t}", "Stock()\n {\n super();\n }", "public YellowTea() {\n super();\n this.setName(\"Yellow Tea\");\n this.setPrice(3.50);\n\n this.brewFirstLiquid = new BrewHotWater();\n this.brewSecondLiquid = new BrewNoLiquid();\n this.brewThirdLiquid = new BrewNoLiquid();\n\n System.out.println(\"Brewing Yellow Tea...\");\n }", "Vehicle() \n {\n System.out.println(\"Constructor of the Super class called\");\n noOfTyres = 5;\n accessories = true;\n brand = \"X\";\n counter++;\n }", "public Currency() {\n // Instances built via this constructor have undefined behavior.\n }", "public Car() {\r\n this(\"\", \"\", \"\", 0, Category.EMPTY, 0.00, \"\", 0, \"\", 0.00, \"\", DriveTrain.EMPTY,\r\n Aspiration.EMPTY, 0.00, 0.00, 0.00, 0.00, 0.0, 0.0, 0.0, 0.0, 0.0);\r\n }", "public TExpressOrderRecord() {\n super(TExpressOrder.T_EXPRESS_ORDER);\n }", "public DessertItem() {\n this(\"\");\n }", "public CuentaDeposito(String number, String productType) {\n super(number, productType);\n }", "public Expense() {\n\t\tsuper();\n\t}", "public SuperClass(int x)\r\n {\r\n _x = x;\r\n }", "public Ov_Chipkaart() {\n\t\t\n\t}", "public Item(int id, String name, int quantity, double price, Supplier supplier){\r\n toolId = id;\r\n toolName = name;\r\n toolQuantity = quantity;\r\n toolPrice = price;\r\n toolSupplier = supplier;\r\n }", "public com.vodafone.global.er.decoupling.binding.request.BasePrice createBasePrice()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.BasePriceImpl();\n }", "public Trade() {\n\t}", "public CrystalExpender(int stock, double price) {\n this.stock = stock;\n this.itemPrice = price;\n\t}", "public SavingsAccount()\n {\n super();\n this.interestRate = DEFAULT_RATE;\n System.out.println(\"Constructor is called.\");\n }", "public Child() {\n\t\tsuper(20);\n\t}", "O() { super(null); }", "private BigB()\r\n{\tsuper();\t\r\n}", "public RevenueIncrease()\n {\n /* Allow the Event super class to handle intialisation */\n super();\n }", "public Apple(){\n\n super();\n //super(\"\");\n System.out.println(\"appleapple\");\n\n\n }", "public BasicOrderedSeries()\n\t{\n\t\tsuper();\n\t}", "public Employee(String firstName, String lastName, int age, double salary) {\r\n //envoke the super class's constructor\r\n super(firstName, lastName, age);\r\n \r\n //set the instance variables specific to this class. \r\n this.salary = salary;\r\n employeeNumber = nextEmployeeNumber;\r\n nextEmployeeNumber++;\r\n }", "public Order()\r\n\t{\r\n\t\tnew BigDecimal(\"0.0\");\r\n\t\tsubtotal = new BigDecimal(\"0.0\");\r\n\t\tarraySize = 5;\r\n\t\torderSize = 0;\r\n\t\torder = new Drink[arraySize];\r\n\t\tSystem.out.println(\"New Order started!\");\r\n\t}", "@Override\n public String toString()\n {\n return super.toString() + \" \" + this.extended + \" \" + this.price + \n \" \" + this.number;\n }", "public Employee(String name, String address, String phone, String secNumber, double rate){\n\t\tsuper(name, address, phone);\n\t\tsocialSecurityNumber = secNumber;\n\t\tpayRate = rate;\n\t}", "private BigB( char aConstructionCharacter )\r\n{\tsuper( aConstructionCharacter );\t\r\n}", "public AbstractPurchaseSubCategory()\r\n {\r\n }", "public AddPurchaseDetail() {\r\n super();\r\n }", "public OrderLine() {\n products = new ArrayList<>();\n price = new BigDecimal(0);\n }", "public Item(String itemName, double itemPrice, int numPurchased)\n {\n \tname = itemName;\n \tprice = itemPrice;\n \tquantity = numPurchased;\n }", "public ProductFruit() {\r\n }", "public Pizza() {\n this(\"small\", 1, 1, 1);\n }", "public ProductCode() {\n }", "public EspressoDrink(){\t\n\t}", "public Mage (double h, double d, double a, double p, double c)\r\n\t{\r\n\t\thealth = h;\r\n\t\tdmg = d;\r\n\t\tnumber++;\r\n\t\taggro = a;\r\n\t\tpRange = p;\r\n\t\tcrit = c;\r\n\t}", "ByCicle(int weight, String name) {\r\n //super keyword can be used to access the instance variables of superclass\r\n //\"super\" can also be used to invoke parent class constructor and method\r\n super(weight);//Accessign Superclass constructor and its variable\r\n //Global Variable=Local variable\r\n this.name = name;\r\n }", "public Model() {\n operation = new DecimalOperation();\n base = 10;\n newnum = true;\n memory = new Stack<>();\n }", "public Clothes()\n {\n super(new BigDecimal(50), \"Clothes\", \"Simple cover ups for the Dudleys. This provides privacy to the Dudleys to increase production. Multiplies Dudley gain by 2.\",new BigDecimal(\"2.\"));\n }", "@Override\n public void initialize() {\n this.product = new Product(this.productId,this.productName,this.productPrice,this.productInv,this.productMin,this.productMax);\n productTitleLabel.setText(\"Modify Product\");\n }", "public CheckingAccount (double openingBalance) {\n\t\t//super(openingBalance; INT_RATE);\n\t\tsuper(openingBalance);\n\t}", "public Mage(String c) {\n super(7, 1, \"*\", \"walk\", 0, 2, \"\", c, \"0\");\n super.imageName =\"piece_mage\";\n super.spells=\"FHRT\";\n super.playerY=2;\n switch (c) {\n case \"white\":\n super.type = \"M\";\n super.initPositionX = 0;\n super.initPositionY = 3;\n break;\n case \"black\":\n super.type = \"m\";\n super.initPositionX = 5;\n super.initPositionY = 2;\n break;\n default:\n System.out.println(\"ERROR:<Invalid color for piece Mage!>\");\n }\n }", "protected PricingModel() {\n }", "public addproduct() {\n\t\tsuper();\n\t}", "public SupplyOrder(String newCustomerID, String newProductID, LocalDate newOrderDate, double newAmount){\n this.orderID=SupplyOrder.nextOrderID;\n nextOrderID++;\n\n //populating class fields using class methods\n this.setCustomerID(newCustomerID);\n this.setProductID(newProductID);\n this.setOrderDate(newOrderDate);\n this.setAmount(newAmount);\n }", "public SalesRecord() {\n super(Sales.SALES);\n }", "public Employe () {\n this ( NOM_BIDON, null );\n }", "public QBP_Q21() {\n super();\n }" ]
[ "0.65214187", "0.6496708", "0.6384762", "0.63016343", "0.6283603", "0.6189827", "0.6148071", "0.61069965", "0.6045489", "0.59996563", "0.59888417", "0.5961036", "0.595611", "0.5953577", "0.59379035", "0.59277", "0.5912641", "0.58982104", "0.587345", "0.5851684", "0.5839836", "0.58239216", "0.5809877", "0.5797405", "0.5784391", "0.57733274", "0.57673466", "0.5757073", "0.575626", "0.5754781", "0.5751334", "0.5751061", "0.5748602", "0.57401276", "0.573063", "0.57295686", "0.5722603", "0.57218164", "0.57149637", "0.5708198", "0.56946325", "0.5683765", "0.5666494", "0.56586814", "0.5653206", "0.5650683", "0.5650373", "0.564821", "0.5645597", "0.56445533", "0.56431514", "0.56335384", "0.5630912", "0.56294084", "0.5624186", "0.56143767", "0.56138533", "0.5612777", "0.5611146", "0.56073797", "0.5604625", "0.56031", "0.5594398", "0.55819815", "0.55808", "0.55729395", "0.55671114", "0.55450696", "0.55446064", "0.5542292", "0.5542019", "0.554035", "0.5536051", "0.5527346", "0.5527341", "0.55248153", "0.55239826", "0.5521839", "0.5519306", "0.5518292", "0.5517725", "0.5512301", "0.5510835", "0.55072874", "0.5507287", "0.55065745", "0.55027145", "0.5493086", "0.5490754", "0.5485669", "0.5485664", "0.5484033", "0.5481303", "0.5478454", "0.5476912", "0.5473684", "0.54722244", "0.5471537", "0.5469481", "0.54690737" ]
0.7252045
0
Parameterized constructor, calls parent default constructor and initializes extended, price and name fields to extended, price and name parameters' values.
Etf(char extended, double price, int number) { super(); this.extended = extended; this.price = price; this.number = number; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Objects(String item, double baseprice){\r\n this.item = item;\r\n this.baseprice = baseprice;\r\n }", "private ProductData(int id, String name, double price) {\n\t\t\tthis.id = id;\n\t\t\tthis.name = name;\n\t\t\tthis.price = price;\n\t\t}", "protected Option(String name, float price) {\n\t\t\tthis.name = name;\n\t\t\tthis.price = price;\n\t\t}", "public Product(String name, double price) {\r\n this.name = name;\r\n this.price = price;\r\n quantity = 0;\r\n }", "Etf(String name, String ticker, char extended, double price, int number)\n {\n super(name, ticker);\n this.extended = extended;\n this.price = price;\n this.number = number;\n }", "public ItemPrice() {\n }", "Etf()\n {\n super();\n extended = 'A';\n price = 2176.33;\n number = 10;\n }", "public SalesPerson(String firstName, String lastName, String ppsNumber){\r\n //pulls the constructor with parameters from the superclass SalesEmployee\r\n super(firstName, lastName, ppsNumber);\r\n }", "public Soda(String _name, double _price, int _quantity){\n this.name = _name;\n this.price = _price;\n this.quantity = _quantity;\n }", "public PriceBreakdown() {\n }", "public SuperProduct() {\n\t\tsuper();\n\t}", "protected Product()\n\t{\n\t}", "public Component(String myName, String myType, double myWeight, double myPrice, String myDescription, boolean myObsolete, boolean myApproved)\n {\n this.name = myName;\n this.partNumber = numberOfParts++;\n this.type = myType;\n this.weight = myWeight;\n this.price = myPrice;\n this.description = myDescription;\n this.isObsolete = myObsolete;\n this.isApproved = myApproved;\n }", "public Vehicle(String vehicleName, int vehiclePerformance, int vehiclePrice) {\n\n super(vehicleName, vehiclePerformance, vehiclePrice);\n }", "public Product()\n\t{\n\t\tthis.name = \"\";\n\t\tthis.price = 0.0;\n\t\tthis.imported = false;\n\t\tthis.quantity = 0;\n\t\tthis.taxedCost = 0.0;\n\t}", "public Product(String name, double price, int quantity) {\r\n this.name = name;\r\n this.price = price;\r\n this.quantity = quantity;\r\n }", "public Pricing()\n\t{\n\t\tprice = INITIALPRICE;\n\t}", "public Item() \r\n\t{\r\n\t\tname = \"AbstractItem\";\r\n\t\tdescription = \"Example Item Generated\";\r\n\t\tprice = 0;\r\n\t}", "protected Product() {\n\t\t\n\t}", "public Item(String itemName, double itemPrice, int numPurchased)\n {\n \tname = itemName;\n \tprice = itemPrice;\n \tquantity = numPurchased;\n }", "public Product(String productName, float price, int quantity, String supplierName, String supplierPhone) {\n this.productName = productName;\n mProductPrice = price;\n productQuantity = quantity;\n this.supplierName = supplierName;\n this.supplierPhone = supplierPhone;\n }", "public BaseParameters(){\r\n\t}", "public CustomShirt(int itemID, String description, char colorCode, double price, int orders) {\n\n super( itemID, description, colorCode, price, orders);\n\n }", "private ProfitPerTariffType ()\n {\n super();\n }", "public VKApiPrice() {\n\n }", "public ProductImpl(ActivationID id, MarshalledObject data) \n throws RemoteException, IOException, ClassNotFoundException\n { \n super(id, 0);\n name = (String) data.get();\n System.out.println(\"Constructed \" + name);\n }", "protected PricingModel() {\n }", "public Item(int id, String name, int quantity, double price, Supplier supplier){\r\n toolId = id;\r\n toolName = name;\r\n toolQuantity = quantity;\r\n toolPrice = price;\r\n toolSupplier = supplier;\r\n }", "public Stock(String shortName, String companyName, String dateChecked, String currPrice,\n\t\t\tString divYield, String peRatio) {\n\t\tthis.shortName = shortName;\n\t\tthis.companyName = companyName;\n\t\tthis.dateChecked = dateChecked;\n\t\tthis.currPrice = currPrice;\n\t\tthis.divYield = divYield;\n\t\tthis.peRatio = peRatio;\n\t}", "public ShopArticle() {\r\n\t\tsuper();\r\n\t}", "public Product(final LocalDateTime createdAt,final String name,final BigDecimal price,final Status status) {\r\n\t\tthis.name=name;\r\n\t\tthis.price=price;\r\n\t\tthis.status=status;\r\n\t\tthis.createdAt=createdAt;\r\n\t}", "public ElectricCar(String mfr, String color, Model model, Vehicle.PowerSource power, \n\t\t double safety, int range, boolean awd, int price, int rch,String batteryType, int VIN)\n{\n\t super(mfr, color, model, Vehicle.PowerSource.ELECTRIC_MOTOR, safety, range, awd, price, VIN);\n\t rechargeTime = rch;\n\t batteryType = \"Lithium\";\n}", "public SpecialOffer() {\n\t\tsuper(org.jooq.examples.sqlserver.adventureworks.sales.tables.SpecialOffer.SpecialOffer);\n\t}", "public Car(String licensePlate, double fuelEconomy){\n this.licensePlate = licensePlate;\n this.fuelEconomy = fuelEconomy;\n}", "public Supermarket() {\n }", "public Item(String name, double price) {\n if(price < 0) throw new IllegalArgumentException();\n this.name = name;\n this.price = price;\n this.hasBulk = false;\n }", "public CD(int id,String name, String singer, int numberOfSongs, double price) {\r\n\t\tsuper();\r\n\t\tthis.id = id;\r\n\t\tthis.name = name;\r\n\t\tthis.singer = singer;\r\n\t\tthis.numberOfSongs = numberOfSongs;\r\n\t\tthis.price = price;\r\n\t}", "public Supermarket()\n {\n }", "Item(DukatAmount price){\r\n\t\tthis(0, new Weight(5), price);\r\n\t}", "Product(String name, int quantity, double price, double totalCost) {\n this.name = name;\n this.quantity = quantity;\n this.price = price;\n this.totalCost = totalCost;\n }", "public Supermarket() {\n }", "public Product() {\n\t\tthis.name = \"\";\n\t\tthis.price = 0;\n\t\tthis.quantity = 0;\n\t}", "protected Order(String custFName, String custLName, String custEmail, int orderID,\n Timestamp creationDate, double totalDue, String status, String salesFName,\n String salesLName,\n String salesEmail) {\n this.custFName = custFName;\n this.custLName = custLName;\n this.custEmail = custEmail;\n this.orderID = orderID;\n this.creationDate = creationDate;\n this.totalDue = totalDue;\n this.status = status;\n this.salesFName = salesFName;\n this.salesLName = salesLName;\n this.salesEmail = salesEmail;\n products = new ArrayList<>();\n }", "public SavingsAccount(double startBalance, double startInterestRate)\n {\n super(startBalance);\n setInterestRate(startInterestRate);\n System.out.println(\"Overloaded Constructor called.\");\n }", "public TradeData() {\r\n\r\n\t}", "public Product(String name, double price, int quantity) {\n\t\tthis.name=name;\n\t\tthis.price=price;\n\t\tthis.quantity=quantity;\n\t\t\n\t}", "public Trade() {\n\t}", "public Item_Record(Integer _Id_, String name_, String description_, String code_, Double price_, Double retailPrice_, Double costPrice_, Object _Search_, String[] _Types_, String _LastModified_, Integer _Version_) {\n super(Item_.ITEM_);\n\n set(0, _Id_);\n set(1, name_);\n set(2, description_);\n set(3, code_);\n set(4, price_);\n set(5, retailPrice_);\n set(6, costPrice_);\n set(7, _Search_);\n set(8, _Types_);\n set(9, _LastModified_);\n set(10, _Version_);\n }", "protected StockItem()\r\n \t{\r\n \t\tlimit = new LimitSystem(this);\r\n \t}", "public Employee(String n, double s)\n {\n name = n;\n salary = s;\n }", "public Generic(){\n\t\tthis(null);\n\t}", "protected PickaxeItem(Tier debug1, int debug2, float debug3, Item.Properties debug4) {\n/* 100 */ super(debug2, debug3, debug1, DIGGABLES, debug4);\n/* */ }", "public Partage() {\n }", "public Market() {\n }", "private WSPricingModel(String inDescription, PricingModel inPricingModel)\r\n\t{\r\n\t\tdescription = inDescription;\r\n\t\tpricingModel = inPricingModel;\r\n\t}", "public Product(String name, int price, int photoId) {\n this.name = name;\n this.price = price;\n this.profileID = photoId;\n }", "public Employee(String name, int id, String position, double salary) { \n super(name, id);\n this.position = position;\n this.salary = salary;\n }", "public TOfferGoodsRecord() {\n super(TOfferGoods.T_OFFER_GOODS);\n }", "public Product() {\n\t}", "public Food(String name, double price) {\n\t\tthis.name = name;\n\t\tthis.price = price;\n\t}", "public Car() {\r\n this(\"\", \"\", \"\", 0, Category.EMPTY, 0.00, \"\", 0, \"\", 0.00, \"\", DriveTrain.EMPTY,\r\n Aspiration.EMPTY, 0.00, 0.00, 0.00, 0.00, 0.0, 0.0, 0.0, 0.0, 0.0);\r\n }", "public Hourly (String eName, String eAddress, String ePhone,\r\nString socSecNumber, double rate)\r\n{\r\nsuper(eName, eAddress, ePhone, socSecNumber, rate);\r\n//IMPLEMENT THIS\r\n}", "public Driver(String name, String familyName, String license){\r\n\t super(name,familyName);\r\n\t this.license = license;\r\n\t salary = 0;\r\n\t fines = 0;\r\n\t addings = 0;\r\n }", "public Item() {\r\n this.name = \"\";\r\n this.description = \"\";\r\n this.price = 0F;\r\n this.type = \"\";\r\n this.available = 0;\r\n this.wholesaler = new Wholesaler();\r\n this.wholesalerId = 0;\r\n this.category = new Category();\r\n this.categoryId = 0; \r\n }", "ByCicle(int weight, String name) {\r\n //super keyword can be used to access the instance variables of superclass\r\n //\"super\" can also be used to invoke parent class constructor and method\r\n super(weight);//Accessign Superclass constructor and its variable\r\n //Global Variable=Local variable\r\n this.name = name;\r\n }", "public Product(String name, double price, boolean imported, int quantity)\n\t{\n\t\tthis.name = name;\n\t\tthis.price = price * quantity;\n\t\tthis.imported = imported;\n\t\tthis.quantity = quantity;\n\t}", "public Employee(String inName, double inSalary)\n\t{\n\t\tname = inName;\n\t\tsalary = inSalary;\n\t}", "public ProductType(String name, String spacecraft, String sensor,\n String description, String level)\n {\n this.name = name;\n this.spacecraft = spacecraft.toUpperCase();\n this.sensor = sensor;\n this.description = description;\n this.level = level;\n }", "public Item(String itemName, String itemDescription){\n this.itemName = itemName;\n this.itemDescription = itemDescription;\n}", "public PurchaseOrderItem () {\n\t\tsuper();\n\t}", "protected StockPrice() {\n\t\t// just for serializers\n\t}", "public Vehicle(String carClass, BigDecimal price) {\n this.carClass = carClass;\n this.price = price;\n }", "public CD(String aName, int someCapacity, String aType, int usedStorage)\n {\n super(aName, someCapacity, aType, usedStorage);\n }", "Stock()\n {\n super();\n }", "public XxGamVtaUniformsPricesLOVVORowImpl() {\n }", "public Ingredient(String name, double cost, double addOnPrice) {\n this.name = name;\n this.cost = cost;\n this.addOnPrice = addOnPrice;\n }", "public Car () {\n\n Make = \"\";\n Model = \"\";\n Year = 2017;\n Price = 0.00;\n }", "@Test\n public void purchaseCustomConstructor_isCorrect() throws Exception {\n\n int purchaseId = 41;\n int userId = 99;\n int accountId = 6541;\n double price = 99.99;\n String date = \"02/19/2019\";\n String time = \"12:12\";\n String category = \"test category\";\n String location = \"test location\";\n String comment = \"test comment\";\n\n //Create empty purchase\n Purchase purchase = new Purchase(purchaseId, userId, accountId, price, date, time, category, location, comment);\n\n // Verify Values\n assertEquals(purchaseId, purchase.getPurchaseId());\n assertEquals(userId, purchase.getUserId());\n assertEquals(accountId, purchase.getAccountId());\n assertEquals(price, purchase.getPrice(), 0);\n assertEquals(date, purchase.getDate());\n assertEquals(time, purchase.getTime());\n assertEquals(category, purchase.getCategory());\n assertEquals(location, purchase.getLocation());\n assertEquals(comment, purchase.getComment());\n }", "public MF_Price(double price, Date date) {\r\n\t\tthis.price = price;\r\n\t\tthis.date = date;\r\n\t\tthis.company = null;\r\n\t}", "public EmpName() {\n\t\tsuper(\"Aditi\",\"Tyagi\");\n\t\t//this(10);\n\t\tSystem.out.println(\"Employee name is Vipin\");\n\t\t\n\t}", "public Dog(String name, int size, int weight, int eyes, int legs, int tail, int teeth, String coat) {\n //super means to call a constructor from the class we are extending\n //can set values or call in the above constructor, your choice\n super(name, 1, 1, size, weight);\n //these are for the strictly dog paramters\n this.eyes = eyes;\n this.legs = legs;\n this.tail = tail;\n this.teeth = teeth;\n this.coat = coat;\n }", "public SavingsAccount()\n {\n super();\n this.interestRate = DEFAULT_RATE;\n System.out.println(\"Constructor is called.\");\n }", "public DetailPrice(DetailPrice source) {\n if (source.PriceTitle != null) {\n this.PriceTitle = new String(source.PriceTitle);\n }\n if (source.PriceName != null) {\n this.PriceName = new String(source.PriceName);\n }\n if (source.OriginalPrice != null) {\n this.OriginalPrice = new Float(source.OriginalPrice);\n }\n if (source.DiscountPrice != null) {\n this.DiscountPrice = new Float(source.DiscountPrice);\n }\n if (source.UnitPrice != null) {\n this.UnitPrice = new Float(source.UnitPrice);\n }\n if (source.UnitPriceDiscount != null) {\n this.UnitPriceDiscount = new Float(source.UnitPriceDiscount);\n }\n if (source.ChargeUnit != null) {\n this.ChargeUnit = new String(source.ChargeUnit);\n }\n if (source.OriginalPriceHigh != null) {\n this.OriginalPriceHigh = new String(source.OriginalPriceHigh);\n }\n if (source.DiscountPriceHigh != null) {\n this.DiscountPriceHigh = new String(source.DiscountPriceHigh);\n }\n if (source.UnitPriceHigh != null) {\n this.UnitPriceHigh = new String(source.UnitPriceHigh);\n }\n if (source.UnitPriceDiscountHigh != null) {\n this.UnitPriceDiscountHigh = new String(source.UnitPriceDiscountHigh);\n }\n }", "public Item(String name, String description, double price) {\n\t\tthis.name = name;\n\t\tthis.description = description;\n\t\tthis.price = price;\n\t\tformatter = NumberFormat.getCurrencyInstance();\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "public MF_Price() {\r\n\t\tthis.price = 0.00;\r\n\t\tthis.date = (Date) Calendar.getInstance().getTime();\r\n\t\tthis.company = null;\r\n\t}", "public ItemDescription(String itemName, int price, double tax) {\n this.itemName = itemName;\n this.price = price;\n this.tax = tax;\n }", "Vehicle() \n {\n System.out.println(\"Constructor of the Super class called\");\n noOfTyres = 5;\n accessories = true;\n brand = \"X\";\n counter++;\n }", "public AbstractPurchaseSubCategory()\r\n {\r\n }", "public InventoryItem(String name) { \n\t\tthis(name, 1);\n\t}", "public Good(String name, double volume, String imgFilePath, double price) {\n this.name = name;\n this.volume = volume;\n this.imgFilePath = imgFilePath;\n this.price = price;\n }", "public Basket(double price, String name, int quantityForSold, double priceOfProvider, Quantity quantity) {\n super(price, name, quantityForSold, priceOfProvider, quantity);\n }", "public ahr(aqu paramaqu)\r\n/* 20: */ {\r\n/* 21: 34 */ super(paramaqu);\r\n/* 22: 35 */ a(0.25F, 0.25F);\r\n/* 23: */ }", "public MF_Price(double price, String company) {\r\n\t\tthis.price = price;\r\n\t\tthis.company = company;\r\n\t\tthis.date = Calendar.getInstance().getTime();\r\n\t}", "private void __sep__Constructors__() {}", "public com.vodafone.global.er.decoupling.binding.request.BasePrice createBasePrice()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.BasePriceImpl();\n }", "public Shampoo(String manufacturer, String productName, double price, int minAge, int unit) {\n super(manufacturer, productName, price, minAge, unit);\n }", "public EmployeeSeller(String name, int age, float sallary, float quantityHours, float percentage) {\n super(name, age, sallary, quantityHours);\n this.percentage = percentage;\n }", "public Product(int productID, String productName, double costPrice, double sellingPrice, String productDescription, int amountInStock, int minimumStock) {\r\n this.productID = productID;\r\n this.productName = productName;\r\n this.costPrice = costPrice;\r\n this.sellingPrice = sellingPrice;\r\n this.productDescription = productDescription;\r\n this.amountInStock = amountInStock;\r\n this.minimumStock = minimumStock;\r\n \r\n }", "public ParameterizedInstantiateFactory() {\r\n super();\r\n }" ]
[ "0.6322777", "0.62845826", "0.6248352", "0.6240538", "0.6233519", "0.6220296", "0.62014276", "0.6179125", "0.6162195", "0.6154709", "0.6129993", "0.6048786", "0.59917915", "0.59884936", "0.59860784", "0.5978186", "0.5962076", "0.59519726", "0.59420264", "0.5934656", "0.5930337", "0.5893889", "0.5876648", "0.5870163", "0.5862937", "0.5862276", "0.58614916", "0.5846084", "0.5844688", "0.5839699", "0.58324605", "0.5828706", "0.5826847", "0.582606", "0.58225876", "0.58215743", "0.58097476", "0.57856727", "0.577305", "0.5772208", "0.57663476", "0.57569987", "0.5753248", "0.5737945", "0.57313424", "0.5731186", "0.5720072", "0.5714506", "0.5705371", "0.56969476", "0.5688794", "0.5683941", "0.5683507", "0.5680942", "0.5675764", "0.56716716", "0.5671547", "0.5668046", "0.56661147", "0.56644446", "0.5655195", "0.56512606", "0.5648206", "0.5648122", "0.5644437", "0.56416756", "0.5637919", "0.5619054", "0.5613666", "0.56113845", "0.56108695", "0.560533", "0.5601354", "0.55995625", "0.5595188", "0.5589516", "0.5582628", "0.55821174", "0.55791044", "0.55727404", "0.55719674", "0.55686927", "0.5556608", "0.5551807", "0.5548241", "0.55467033", "0.55453557", "0.5543798", "0.5533253", "0.55328", "0.5532795", "0.5531047", "0.55264145", "0.5525882", "0.5513166", "0.55076844", "0.55065054", "0.5504485", "0.54889756", "0.54869586" ]
0.5770022
40
Parameterized constructor, calls parent default constructor and initializes extended, price and name fields to extended, price and name parameters' values.
Etf(String name, String ticker, char extended, double price, int number) { super(name, ticker); this.extended = extended; this.price = price; this.number = number; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Objects(String item, double baseprice){\r\n this.item = item;\r\n this.baseprice = baseprice;\r\n }", "private ProductData(int id, String name, double price) {\n\t\t\tthis.id = id;\n\t\t\tthis.name = name;\n\t\t\tthis.price = price;\n\t\t}", "protected Option(String name, float price) {\n\t\t\tthis.name = name;\n\t\t\tthis.price = price;\n\t\t}", "public Product(String name, double price) {\r\n this.name = name;\r\n this.price = price;\r\n quantity = 0;\r\n }", "public ItemPrice() {\n }", "Etf()\n {\n super();\n extended = 'A';\n price = 2176.33;\n number = 10;\n }", "public SalesPerson(String firstName, String lastName, String ppsNumber){\r\n //pulls the constructor with parameters from the superclass SalesEmployee\r\n super(firstName, lastName, ppsNumber);\r\n }", "public Soda(String _name, double _price, int _quantity){\n this.name = _name;\n this.price = _price;\n this.quantity = _quantity;\n }", "public PriceBreakdown() {\n }", "public SuperProduct() {\n\t\tsuper();\n\t}", "protected Product()\n\t{\n\t}", "public Component(String myName, String myType, double myWeight, double myPrice, String myDescription, boolean myObsolete, boolean myApproved)\n {\n this.name = myName;\n this.partNumber = numberOfParts++;\n this.type = myType;\n this.weight = myWeight;\n this.price = myPrice;\n this.description = myDescription;\n this.isObsolete = myObsolete;\n this.isApproved = myApproved;\n }", "public Vehicle(String vehicleName, int vehiclePerformance, int vehiclePrice) {\n\n super(vehicleName, vehiclePerformance, vehiclePrice);\n }", "public Product()\n\t{\n\t\tthis.name = \"\";\n\t\tthis.price = 0.0;\n\t\tthis.imported = false;\n\t\tthis.quantity = 0;\n\t\tthis.taxedCost = 0.0;\n\t}", "public Product(String name, double price, int quantity) {\r\n this.name = name;\r\n this.price = price;\r\n this.quantity = quantity;\r\n }", "public Pricing()\n\t{\n\t\tprice = INITIALPRICE;\n\t}", "public Item() \r\n\t{\r\n\t\tname = \"AbstractItem\";\r\n\t\tdescription = \"Example Item Generated\";\r\n\t\tprice = 0;\r\n\t}", "protected Product() {\n\t\t\n\t}", "public Item(String itemName, double itemPrice, int numPurchased)\n {\n \tname = itemName;\n \tprice = itemPrice;\n \tquantity = numPurchased;\n }", "public Product(String productName, float price, int quantity, String supplierName, String supplierPhone) {\n this.productName = productName;\n mProductPrice = price;\n productQuantity = quantity;\n this.supplierName = supplierName;\n this.supplierPhone = supplierPhone;\n }", "public BaseParameters(){\r\n\t}", "public CustomShirt(int itemID, String description, char colorCode, double price, int orders) {\n\n super( itemID, description, colorCode, price, orders);\n\n }", "private ProfitPerTariffType ()\n {\n super();\n }", "public VKApiPrice() {\n\n }", "protected PricingModel() {\n }", "public ProductImpl(ActivationID id, MarshalledObject data) \n throws RemoteException, IOException, ClassNotFoundException\n { \n super(id, 0);\n name = (String) data.get();\n System.out.println(\"Constructed \" + name);\n }", "public Item(int id, String name, int quantity, double price, Supplier supplier){\r\n toolId = id;\r\n toolName = name;\r\n toolQuantity = quantity;\r\n toolPrice = price;\r\n toolSupplier = supplier;\r\n }", "public Stock(String shortName, String companyName, String dateChecked, String currPrice,\n\t\t\tString divYield, String peRatio) {\n\t\tthis.shortName = shortName;\n\t\tthis.companyName = companyName;\n\t\tthis.dateChecked = dateChecked;\n\t\tthis.currPrice = currPrice;\n\t\tthis.divYield = divYield;\n\t\tthis.peRatio = peRatio;\n\t}", "public ShopArticle() {\r\n\t\tsuper();\r\n\t}", "public Product(final LocalDateTime createdAt,final String name,final BigDecimal price,final Status status) {\r\n\t\tthis.name=name;\r\n\t\tthis.price=price;\r\n\t\tthis.status=status;\r\n\t\tthis.createdAt=createdAt;\r\n\t}", "public ElectricCar(String mfr, String color, Model model, Vehicle.PowerSource power, \n\t\t double safety, int range, boolean awd, int price, int rch,String batteryType, int VIN)\n{\n\t super(mfr, color, model, Vehicle.PowerSource.ELECTRIC_MOTOR, safety, range, awd, price, VIN);\n\t rechargeTime = rch;\n\t batteryType = \"Lithium\";\n}", "public SpecialOffer() {\n\t\tsuper(org.jooq.examples.sqlserver.adventureworks.sales.tables.SpecialOffer.SpecialOffer);\n\t}", "public Car(String licensePlate, double fuelEconomy){\n this.licensePlate = licensePlate;\n this.fuelEconomy = fuelEconomy;\n}", "public Supermarket() {\n }", "public Item(String name, double price) {\n if(price < 0) throw new IllegalArgumentException();\n this.name = name;\n this.price = price;\n this.hasBulk = false;\n }", "public CD(int id,String name, String singer, int numberOfSongs, double price) {\r\n\t\tsuper();\r\n\t\tthis.id = id;\r\n\t\tthis.name = name;\r\n\t\tthis.singer = singer;\r\n\t\tthis.numberOfSongs = numberOfSongs;\r\n\t\tthis.price = price;\r\n\t}", "public Supermarket()\n {\n }", "Product(String name, int quantity, double price, double totalCost) {\n this.name = name;\n this.quantity = quantity;\n this.price = price;\n this.totalCost = totalCost;\n }", "Item(DukatAmount price){\r\n\t\tthis(0, new Weight(5), price);\r\n\t}", "Etf(char extended, double price, int number)\n {\n super();\n this.extended = extended;\n this.price = price;\n this.number = number;\n }", "public Supermarket() {\n }", "public Product() {\n\t\tthis.name = \"\";\n\t\tthis.price = 0;\n\t\tthis.quantity = 0;\n\t}", "protected Order(String custFName, String custLName, String custEmail, int orderID,\n Timestamp creationDate, double totalDue, String status, String salesFName,\n String salesLName,\n String salesEmail) {\n this.custFName = custFName;\n this.custLName = custLName;\n this.custEmail = custEmail;\n this.orderID = orderID;\n this.creationDate = creationDate;\n this.totalDue = totalDue;\n this.status = status;\n this.salesFName = salesFName;\n this.salesLName = salesLName;\n this.salesEmail = salesEmail;\n products = new ArrayList<>();\n }", "public SavingsAccount(double startBalance, double startInterestRate)\n {\n super(startBalance);\n setInterestRate(startInterestRate);\n System.out.println(\"Overloaded Constructor called.\");\n }", "public Product(String name, double price, int quantity) {\n\t\tthis.name=name;\n\t\tthis.price=price;\n\t\tthis.quantity=quantity;\n\t\t\n\t}", "public TradeData() {\r\n\r\n\t}", "public Trade() {\n\t}", "public Item_Record(Integer _Id_, String name_, String description_, String code_, Double price_, Double retailPrice_, Double costPrice_, Object _Search_, String[] _Types_, String _LastModified_, Integer _Version_) {\n super(Item_.ITEM_);\n\n set(0, _Id_);\n set(1, name_);\n set(2, description_);\n set(3, code_);\n set(4, price_);\n set(5, retailPrice_);\n set(6, costPrice_);\n set(7, _Search_);\n set(8, _Types_);\n set(9, _LastModified_);\n set(10, _Version_);\n }", "protected StockItem()\r\n \t{\r\n \t\tlimit = new LimitSystem(this);\r\n \t}", "public Employee(String n, double s)\n {\n name = n;\n salary = s;\n }", "public Generic(){\n\t\tthis(null);\n\t}", "protected PickaxeItem(Tier debug1, int debug2, float debug3, Item.Properties debug4) {\n/* 100 */ super(debug2, debug3, debug1, DIGGABLES, debug4);\n/* */ }", "public Partage() {\n }", "public Market() {\n }", "private WSPricingModel(String inDescription, PricingModel inPricingModel)\r\n\t{\r\n\t\tdescription = inDescription;\r\n\t\tpricingModel = inPricingModel;\r\n\t}", "public Product(String name, int price, int photoId) {\n this.name = name;\n this.price = price;\n this.profileID = photoId;\n }", "public Employee(String name, int id, String position, double salary) { \n super(name, id);\n this.position = position;\n this.salary = salary;\n }", "public TOfferGoodsRecord() {\n super(TOfferGoods.T_OFFER_GOODS);\n }", "public Product() {\n\t}", "public Food(String name, double price) {\n\t\tthis.name = name;\n\t\tthis.price = price;\n\t}", "public Car() {\r\n this(\"\", \"\", \"\", 0, Category.EMPTY, 0.00, \"\", 0, \"\", 0.00, \"\", DriveTrain.EMPTY,\r\n Aspiration.EMPTY, 0.00, 0.00, 0.00, 0.00, 0.0, 0.0, 0.0, 0.0, 0.0);\r\n }", "public Hourly (String eName, String eAddress, String ePhone,\r\nString socSecNumber, double rate)\r\n{\r\nsuper(eName, eAddress, ePhone, socSecNumber, rate);\r\n//IMPLEMENT THIS\r\n}", "public Driver(String name, String familyName, String license){\r\n\t super(name,familyName);\r\n\t this.license = license;\r\n\t salary = 0;\r\n\t fines = 0;\r\n\t addings = 0;\r\n }", "public Item() {\r\n this.name = \"\";\r\n this.description = \"\";\r\n this.price = 0F;\r\n this.type = \"\";\r\n this.available = 0;\r\n this.wholesaler = new Wholesaler();\r\n this.wholesalerId = 0;\r\n this.category = new Category();\r\n this.categoryId = 0; \r\n }", "ByCicle(int weight, String name) {\r\n //super keyword can be used to access the instance variables of superclass\r\n //\"super\" can also be used to invoke parent class constructor and method\r\n super(weight);//Accessign Superclass constructor and its variable\r\n //Global Variable=Local variable\r\n this.name = name;\r\n }", "public Product(String name, double price, boolean imported, int quantity)\n\t{\n\t\tthis.name = name;\n\t\tthis.price = price * quantity;\n\t\tthis.imported = imported;\n\t\tthis.quantity = quantity;\n\t}", "public Employee(String inName, double inSalary)\n\t{\n\t\tname = inName;\n\t\tsalary = inSalary;\n\t}", "public ProductType(String name, String spacecraft, String sensor,\n String description, String level)\n {\n this.name = name;\n this.spacecraft = spacecraft.toUpperCase();\n this.sensor = sensor;\n this.description = description;\n this.level = level;\n }", "public Item(String itemName, String itemDescription){\n this.itemName = itemName;\n this.itemDescription = itemDescription;\n}", "protected StockPrice() {\n\t\t// just for serializers\n\t}", "public PurchaseOrderItem () {\n\t\tsuper();\n\t}", "public Vehicle(String carClass, BigDecimal price) {\n this.carClass = carClass;\n this.price = price;\n }", "public CD(String aName, int someCapacity, String aType, int usedStorage)\n {\n super(aName, someCapacity, aType, usedStorage);\n }", "Stock()\n {\n super();\n }", "public XxGamVtaUniformsPricesLOVVORowImpl() {\n }", "public Ingredient(String name, double cost, double addOnPrice) {\n this.name = name;\n this.cost = cost;\n this.addOnPrice = addOnPrice;\n }", "@Test\n public void purchaseCustomConstructor_isCorrect() throws Exception {\n\n int purchaseId = 41;\n int userId = 99;\n int accountId = 6541;\n double price = 99.99;\n String date = \"02/19/2019\";\n String time = \"12:12\";\n String category = \"test category\";\n String location = \"test location\";\n String comment = \"test comment\";\n\n //Create empty purchase\n Purchase purchase = new Purchase(purchaseId, userId, accountId, price, date, time, category, location, comment);\n\n // Verify Values\n assertEquals(purchaseId, purchase.getPurchaseId());\n assertEquals(userId, purchase.getUserId());\n assertEquals(accountId, purchase.getAccountId());\n assertEquals(price, purchase.getPrice(), 0);\n assertEquals(date, purchase.getDate());\n assertEquals(time, purchase.getTime());\n assertEquals(category, purchase.getCategory());\n assertEquals(location, purchase.getLocation());\n assertEquals(comment, purchase.getComment());\n }", "public Car () {\n\n Make = \"\";\n Model = \"\";\n Year = 2017;\n Price = 0.00;\n }", "public MF_Price(double price, Date date) {\r\n\t\tthis.price = price;\r\n\t\tthis.date = date;\r\n\t\tthis.company = null;\r\n\t}", "public EmpName() {\n\t\tsuper(\"Aditi\",\"Tyagi\");\n\t\t//this(10);\n\t\tSystem.out.println(\"Employee name is Vipin\");\n\t\t\n\t}", "public Dog(String name, int size, int weight, int eyes, int legs, int tail, int teeth, String coat) {\n //super means to call a constructor from the class we are extending\n //can set values or call in the above constructor, your choice\n super(name, 1, 1, size, weight);\n //these are for the strictly dog paramters\n this.eyes = eyes;\n this.legs = legs;\n this.tail = tail;\n this.teeth = teeth;\n this.coat = coat;\n }", "public SavingsAccount()\n {\n super();\n this.interestRate = DEFAULT_RATE;\n System.out.println(\"Constructor is called.\");\n }", "public DetailPrice(DetailPrice source) {\n if (source.PriceTitle != null) {\n this.PriceTitle = new String(source.PriceTitle);\n }\n if (source.PriceName != null) {\n this.PriceName = new String(source.PriceName);\n }\n if (source.OriginalPrice != null) {\n this.OriginalPrice = new Float(source.OriginalPrice);\n }\n if (source.DiscountPrice != null) {\n this.DiscountPrice = new Float(source.DiscountPrice);\n }\n if (source.UnitPrice != null) {\n this.UnitPrice = new Float(source.UnitPrice);\n }\n if (source.UnitPriceDiscount != null) {\n this.UnitPriceDiscount = new Float(source.UnitPriceDiscount);\n }\n if (source.ChargeUnit != null) {\n this.ChargeUnit = new String(source.ChargeUnit);\n }\n if (source.OriginalPriceHigh != null) {\n this.OriginalPriceHigh = new String(source.OriginalPriceHigh);\n }\n if (source.DiscountPriceHigh != null) {\n this.DiscountPriceHigh = new String(source.DiscountPriceHigh);\n }\n if (source.UnitPriceHigh != null) {\n this.UnitPriceHigh = new String(source.UnitPriceHigh);\n }\n if (source.UnitPriceDiscountHigh != null) {\n this.UnitPriceDiscountHigh = new String(source.UnitPriceDiscountHigh);\n }\n }", "public Item(String name, String description, double price) {\n\t\tthis.name = name;\n\t\tthis.description = description;\n\t\tthis.price = price;\n\t\tformatter = NumberFormat.getCurrencyInstance();\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "public MF_Price() {\r\n\t\tthis.price = 0.00;\r\n\t\tthis.date = (Date) Calendar.getInstance().getTime();\r\n\t\tthis.company = null;\r\n\t}", "public ItemDescription(String itemName, int price, double tax) {\n this.itemName = itemName;\n this.price = price;\n this.tax = tax;\n }", "Vehicle() \n {\n System.out.println(\"Constructor of the Super class called\");\n noOfTyres = 5;\n accessories = true;\n brand = \"X\";\n counter++;\n }", "public Good(String name, double volume, String imgFilePath, double price) {\n this.name = name;\n this.volume = volume;\n this.imgFilePath = imgFilePath;\n this.price = price;\n }", "public AbstractPurchaseSubCategory()\r\n {\r\n }", "public InventoryItem(String name) { \n\t\tthis(name, 1);\n\t}", "public Basket(double price, String name, int quantityForSold, double priceOfProvider, Quantity quantity) {\n super(price, name, quantityForSold, priceOfProvider, quantity);\n }", "public ahr(aqu paramaqu)\r\n/* 20: */ {\r\n/* 21: 34 */ super(paramaqu);\r\n/* 22: 35 */ a(0.25F, 0.25F);\r\n/* 23: */ }", "public MF_Price(double price, String company) {\r\n\t\tthis.price = price;\r\n\t\tthis.company = company;\r\n\t\tthis.date = Calendar.getInstance().getTime();\r\n\t}", "private void __sep__Constructors__() {}", "public com.vodafone.global.er.decoupling.binding.request.BasePrice createBasePrice()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.BasePriceImpl();\n }", "public Shampoo(String manufacturer, String productName, double price, int minAge, int unit) {\n super(manufacturer, productName, price, minAge, unit);\n }", "public EmployeeSeller(String name, int age, float sallary, float quantityHours, float percentage) {\n super(name, age, sallary, quantityHours);\n this.percentage = percentage;\n }", "public Product(int productID, String productName, double costPrice, double sellingPrice, String productDescription, int amountInStock, int minimumStock) {\r\n this.productID = productID;\r\n this.productName = productName;\r\n this.costPrice = costPrice;\r\n this.sellingPrice = sellingPrice;\r\n this.productDescription = productDescription;\r\n this.amountInStock = amountInStock;\r\n this.minimumStock = minimumStock;\r\n \r\n }", "public ParameterizedInstantiateFactory() {\r\n super();\r\n }" ]
[ "0.6323391", "0.6284419", "0.62485874", "0.6240851", "0.6220526", "0.6200547", "0.61789364", "0.61624926", "0.61545825", "0.6128885", "0.60482603", "0.5991521", "0.5988132", "0.598571", "0.597865", "0.59629387", "0.5951342", "0.594166", "0.5934443", "0.5930267", "0.58943504", "0.5876051", "0.5869959", "0.5864349", "0.58617014", "0.58605576", "0.5846058", "0.5844883", "0.5839822", "0.58328104", "0.5827155", "0.58261913", "0.58254147", "0.5821987", "0.5821802", "0.58090395", "0.5785099", "0.57733274", "0.5772744", "0.5769576", "0.57658", "0.57566255", "0.5752885", "0.57388484", "0.5731396", "0.5730071", "0.57194895", "0.5714256", "0.57053113", "0.5697316", "0.5689446", "0.5683496", "0.5683154", "0.5680364", "0.5675856", "0.5672399", "0.5670961", "0.5667097", "0.5665524", "0.5664088", "0.56541675", "0.56509715", "0.56475145", "0.5647291", "0.56431365", "0.5641835", "0.5637971", "0.5618268", "0.5612651", "0.5611648", "0.56108665", "0.56051433", "0.5599548", "0.5599429", "0.5596112", "0.5589459", "0.55819046", "0.5581762", "0.5578291", "0.5571142", "0.55706", "0.5569004", "0.5556865", "0.55520546", "0.5547069", "0.5546656", "0.5545241", "0.55423266", "0.5533168", "0.5532218", "0.5531982", "0.55310225", "0.5525882", "0.552533", "0.55121255", "0.55089647", "0.5506122", "0.5504834", "0.54889023", "0.54880875" ]
0.623293
4
Sets the object's price
public void setPrice(double price) { this.price = price; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setPrice(Double price);", "public void setPrice(double price)\n {\n this.price = price;\n }", "public void setPrice(double price) {\r\n this.price = price;\r\n }", "public void setPrice(double price) {\r\n this.price = price;\r\n }", "public void setPrice(double price) {\r\n this.price = price;\r\n }", "public void setPrice(double price) {\n this.price = price;\n }", "public void setPrice(double price) {\n this.price = price;\n }", "public void setPrice(double price) {\n this.price = price;\n }", "public void setPrice(double price) {\n this.price = price;\n }", "public void setPrice(double price) {\n this.price = price;\n }", "public void setPrice(double price) {\n this.price = price;\n }", "public void setPrice(double price) {\n this.price = price;\n }", "public void setPrice(double value) {\n this.price = value;\n }", "public void setPrice(double value) {\n this.price = value;\n }", "public void setPrice(Double price) {\r\n this.price = price;\r\n }", "public void setPrice(Money price) {\n this.price = price;\n }", "public void setPrice(double price){this.price=price;}", "@Override\r\n\tpublic void setPrice(double p) {\n\t\tprice = p;\r\n\t}", "public void setPrice(Double price) {\n this.price = price;\n }", "public void setPrice(Double price) {\n this.price = price;\n }", "public void setPrice(double p)\r\n\t{\r\n\t\tprice = p;\r\n\t}", "@Override\n\tpublic void setPrice(double price) {\n\t\tconstantPO.setPrice(price);\n\t}", "public void setPrice(int price) {\n this.price = (double)price;\n }", "public void setPrice(double price) {\r\n\t\tthis.price = price;\r\n\t}", "public void setPrice(double price) {\r\n\t\tthis.price = price;\r\n\t}", "public void setPrice(double price) \n\t{\n\t\tthis.price = price;\n\t}", "public void setPrice(double p){\n\t\t// store into the instance variable price the value of the parameter p\n\t\tprice = p;\n\t}", "public void setPrice(double newPrice) {\r\n price = newPrice;\r\n }", "public void setPrice(Float price) {\r\n this.price = price;\r\n }", "public void setPrice(float price) {\n this.price = price;\n }", "public void setPrice(float price) {\n this.price = price;\n }", "public void setPrice (double ticketPrice)\r\n {\r\n price = ticketPrice;\r\n }", "public void setPrice(int price) {\r\n this.price = price;\r\n }", "public void setPrice(double price) \n\t{\n\t\tthis.price = price * quantity;\n\t}", "public void setPrice(Float price) {\n this.price = price;\n }", "public void setPrice(BigDecimal price) {\r\n this.price = price;\r\n }", "public void setPrice(BigDecimal price) {\r\n this.price = price;\r\n }", "public void setPrice(BigDecimal price) {\n this.price = price;\n }", "public void setPrice(BigDecimal price) {\n this.price = price;\n }", "public void setPrice(java.math.BigDecimal price) {\n this.price = price;\n }", "public void setPrice(int price) {\n this.price = price;\n }", "public void setPrice(double price) {\n\t\tthis.price = price;\n\t}", "public void setPrice(double price) {\n\t\tthis.price = price;\n\t}", "public void setPrice(double price) {\n\t\tthis.price = price;\n\t}", "@Override\n\tpublic void setPrice() {\n\t\tprice = 24.99;\n\n\t}", "public void setPrice(final BigDecimal price) {\n this.price = price;\n }", "public void setPrice(float itemPrice) \n {\n price = itemPrice;\n }", "protected void setPrice(float price) {\n\t\t\tthis.price = price;\n\t\t}", "public void setPrice(double p) {\n\t\tprice = p;\n\t}", "public void setPrice(int price) {\n\tthis.price = price;\n}", "public void setPrice(int value) {\n this.price = value;\n }", "public void setPrice(double price) {\n this.price = price;\n if (this.price < 0) {\n this.price = 0;\n }\n }", "public void setPrice(Double price) {\n\t\tthis.price = price;\n\t}", "protected void setPrice(DukatAmount price){\r\n\t\tif(canHaveAsPrice(price))\r\n\t\t\tthis.price = price;\r\n\t}", "public void setPrice(double price) {\n\t\tif(price > 0 )\n\t\t\tthis.price=price;\n\t}", "public void setPrice(Integer price) {\r\n this.price = price;\r\n }", "public void setPrice(Integer price) {\r\n this.price = price;\r\n }", "public void setPrice(java.lang.Integer _price)\n {\n price = _price;\n }", "public void setPotatoesPrice(double p);", "public void setPrice(Integer price) {\n this.price = price;\n }", "public void setPrice(Integer price) {\n this.price = price;\n }", "public void setPrice(Integer price) {\n this.price = price;\n }", "public void setPrice(Integer price) {\n this.price = price;\n }", "@Override\n\tpublic void setPrice(int price) {\n\t\t\n\t}", "public void setPrice(double x){\n\t\t\tprice = x;\t\n\t\t}", "public void setPrice(Number value) {\n setAttributeInternal(PRICE, value);\n }", "public Builder setPrice(int value) {\n bitField0_ |= 0x00000020;\n price_ = value;\n \n return this;\n }", "public void setPrice(Date price) {\n this.price = price;\n }", "public void setPrice(Money price) {\n\t\tif (price == null) {\n\t\t\tthis.price = new Money(0, 0);\n\t\t} else {\n\t\t\tthis.price = price;\n\t\t}\n\t}", "public void setPrice(Long price) {\n this.price = price;\n }", "public Builder setPrice(double value) {\n bitField0_ |= 0x00000010;\n price_ = value;\n onChanged();\n return this;\n }", "public void setPriceActual (BigDecimal PriceActual);", "public void setPrice(int price)\n {\n if(checker.isString(Integer.toString(price)))\n this.price = price;\n else\n this.price = 0;\n }", "public void setPrice(int price) {\n\t\tthis.price = price;\n\t\tlbl.setText(price+\" C\");\n\t}", "public void setPrice(int newPrice){\n productRelation.setCost(newPrice);\n }", "public void changePrice(Product p, int price){\r\n\t\tp.price = price;\r\n\t}", "public void setPrice(BigDecimal value) {\n setAttributeInternal(PRICE, value);\n }", "public void setPrice(java.lang.String price) {\n this.price = price;\n }", "public void setProductPrice(double productPrice) {\n this.productPrice = productPrice;\n }", "public void setPurchasePrice(double p)\n {\n this.purchasePrice = p;\n }", "public void setPriceEntered (BigDecimal PriceEntered);", "public void setPrice(String price) {\n\t\tthis.price = price;\n\t}", "public void changePrice(TripDTO trip, BigDecimal price);", "public void setPriceLimit (BigDecimal PriceLimit);", "protected void setItemPrice(Double itemPrice) {\n this.itemPrice = itemPrice;\n }", "public void setpPrice(double pPrice) {\n this.pPrice = pPrice;\n }", "public void setPrice (Product product) {\n\t\tpriceLbl.setText(product.getPrice() + \"\");\n\t\tpriceLbl.repaint();\n\t}", "public abstract void setTotalPrice();", "public void setCost(Money obj){\r\n \t//check if the object is null or not an instance of Money\r\n if(obj == null || !(obj instanceof Money)){\r\n \t//throw an exception\r\n throw new PizzaException(\"Exception in the setCost method: the object is null or not an instance of money\");\r\n }\r\n //casting\r\n Money m = (Money) obj;\r\n //set the cost to the clone of m\r\n this.cost = m.clone();\r\n }", "public static void setPrice() {\n double summe = 0.0;\n for (Object obj : dlm.getDisplayedArtikel()) {\n if (obj instanceof Article) {\n Article art = (Article) obj;\n if (!art.isIsAbfrage()) {\n if (((art.isJugendSchutz() && art.isJugendSchutzOk())) || !art.isJugendSchutz()) {\n if (art.isEloadingAmmountOk() && !art.isPriceZero()) {\n summe += ((Article) ((obj))).getPreis() * ((Article) ((obj))).getAmount();\n }\n }\n }\n } else if (obj instanceof Karte) {\n Karte card = (Karte) obj;\n summe += card.getAufladung() / 100;\n }\n }\n for (Object obj : dlm.getRemovedObjects()) {\n if (obj instanceof Article) {\n if (!((Article) ((obj))).isStorno_error()) {\n summe -= ((Article) ((obj))).getPreis() * ((Article) ((obj))).getAmount();\n }\n } else if (obj instanceof Karte) {\n Karte card = (Karte) obj;\n summe -= card.getAufladung() / 100;\n }\n }\n if (Math.round(summe) == 0) {\n summe = 0;\n }\n if (GUIOperations.isTraining()) {\n summe += 1000;\n }\n tfSumme.setText(String.format(\"%.2f\", summe));\n }", "public void changePrice(Booking booking, float price);", "public void setPriceLimitOld (BigDecimal PriceLimitOld);", "public void setPricePerSquareFoot(double newPricePerSquareFoot){\nif(newPricePerSquareFoot > 0){\npricePerSquareFoot = newPricePerSquareFoot;\n}\n}", "public void setBookPrice(Float bookPrice) {\n this.bookPrice = bookPrice;\n }", "public void setPriceList (BigDecimal PriceList);", "void setPrice(double price) throws NegativeNumberException {\n if (price <= 0) {\n throw new NegativeNumberException(\"Negative number.Try again.\");\n }\n this.price = price;\n }", "@Element \n public void setPrice(Long price) {\n this.price = price;\n }", "void setPrice(int price) {\n mPriceTextView.setText(StoreUtils.getPriceString(price, mCurrency));\n }", "public void setPrice(double price){\r\n\t\t\r\n\t\ttry{\r\n\t\t\tif(price>0)\r\n\t\t\tthis.price = price;\r\n\t\t\telse\r\n\t\t\t\tthrow new negativeNumberException();\r\n\t\t}catch (negativeNumberException ex){\r\n\t\t\tSystem.out.println(\"The price can not be negative, \"\r\n\t\t\t\t\t+ \"please reenter a positive value\");\r\n\t\t\tSystem.out.println(\"Enter a price:\");\r\n\t\t\tScanner input = new Scanner(System.in);\r\n\t\t\tdouble retry = input.nextDouble();\r\n\t\t\tsetPrice(retry);\r\n\t\t}\r\n\t\t\r\n\t}", "public void setPotatoesPrice(double p) {\n this.potatoesPrice = p;\n }" ]
[ "0.8221135", "0.8206174", "0.8166151", "0.8166151", "0.8166151", "0.8136819", "0.8136819", "0.8136819", "0.8136819", "0.8136819", "0.8136819", "0.8136819", "0.81082", "0.81082", "0.80644363", "0.8050868", "0.80277264", "0.80174536", "0.7981631", "0.7981631", "0.79490936", "0.7948434", "0.79109925", "0.790753", "0.790753", "0.78853726", "0.7848952", "0.78316355", "0.7826205", "0.7817162", "0.7817162", "0.78166413", "0.780842", "0.7797869", "0.7795677", "0.7793509", "0.7793509", "0.7791569", "0.7791569", "0.77824914", "0.7765664", "0.7752834", "0.7752834", "0.7752834", "0.7746232", "0.7725986", "0.771335", "0.77125186", "0.77103704", "0.7682207", "0.76191455", "0.7603756", "0.7583756", "0.75736916", "0.7569918", "0.7542059", "0.7542059", "0.7538433", "0.75296515", "0.7517289", "0.7517289", "0.7517289", "0.7517289", "0.7487348", "0.7474596", "0.7456934", "0.74260294", "0.7349087", "0.7345975", "0.7275017", "0.72742426", "0.7263727", "0.7256216", "0.722345", "0.7218455", "0.7181588", "0.7167546", "0.71241516", "0.71201533", "0.7095184", "0.706296", "0.70596194", "0.70346117", "0.7027487", "0.6991665", "0.69542253", "0.6949656", "0.68482536", "0.6823757", "0.6809582", "0.67929155", "0.6781144", "0.67788094", "0.676985", "0.6738561", "0.67372113", "0.672602", "0.67024094", "0.66963947", "0.6678897" ]
0.8183711
2
Returns the object's price
public double getPrice() { return this.price; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getPrice() {\n return price_;\n }", "public BigDecimal getPrice() {\n return price;\n }", "public BigDecimal getPrice() {\n return price;\n }", "public BigDecimal getPrice() {\n return price;\n }", "public BigDecimal getPrice() {\n return price;\n }", "public BigDecimal getPrice() {\n return price;\n }", "public Double getPrice() {\n return price;\n }", "public Double getPrice() {\n return price;\n }", "public BigDecimal getPrice() {\r\n return price;\r\n }", "public BigDecimal getPrice() {\r\n return price;\r\n }", "public Double getPrice() {\r\n return price;\r\n }", "public double getPrice() {\n return price;\n }", "public double getPrice() {\n return price_;\n }", "public double getPrice() {\r\n return price;\r\n }", "public double getPrice() {\r\n return price;\r\n }", "public double getPrice() {\r\n return price;\r\n }", "public double getPrice() {\r\n return price;\r\n }", "public double price() {\n return price;\n }", "public double getPrice() {\n return price;\n }", "public double getPrice() {\n return price;\n }", "public double getPrice() {\n return price;\n }", "public double getPrice() {\n return price;\n }", "public double getPrice() {\n return price;\n }", "public double getPrice() {\n return price;\n }", "public double getPrice() {\n return price;\n }", "public double getPrice() {\n return price;\n }", "public double getPrice() {\n return price;\n }", "public double getPrice() {\n return price;\n }", "public double getPrice() {\n return price;\n }", "public double getPrice(){\r\n\t\treturn price;\r\n\t}", "public double getPrice(){\n\t\treturn this.price;\n\t}", "public double getPrice() {\n return this.price;\n }", "public Double getPrice();", "public double getPrice(){\n\t\t\treturn price;\n\t\t}", "public double getPrice(){\n\t\treturn price;\n\t}", "@Override\r\n\tpublic double getPrice() {\n\t\treturn price;\r\n\t}", "public double getPrice(){\n\t\t\n\t\treturn price;\n\t}", "public BigDecimal getPrice()\n\t{\n\t\treturn price;\n\t}", "public double getPrice()\r\n {\r\n return price;\r\n }", "public double getPrice()\r\n {\r\n return this.price;\r\n }", "public double getPrice()\n {\n \treturn price;\n }", "public double getPrice();", "public Double getPrice() {\r\n\t\treturn price;\r\n\t}", "public double getPrice()\n {\n return price;\n }", "public java.math.BigDecimal getPrice() {\n return price;\n }", "public double getPrice() {\r\n\t\treturn this.price;\r\n\t}", "public double getPrice() {\r\n\t\treturn this.price;\r\n\t}", "public double getPrice() {\r\n\t\treturn this.price;\r\n\t}", "public double getPrice()\n\t{\n\t\treturn this.price;\n\t}", "public double getPrice() \n\t{\n\t\treturn price;\n\t}", "public double getPrice() \n\t{\n\t\treturn price;\n\t}", "public float getPrice() {\n return price;\n }", "public float getPrice() {\n return price;\n }", "public float getPrice() {\n return price;\n }", "public Double getPrice() {\n\t\treturn price;\n\t}", "double getPrice();", "double getPrice();", "double getPrice();", "public Money getPrice() {\n\t\treturn price;\n\t}", "public double getPrice() {\n\t\treturn price;\n\t}", "public double getPrice() {\n\t\treturn price;\n\t}", "public double getPrice() {\n\t\treturn price;\n\t}", "public double getPrice() {\n\t\treturn price;\n\t}", "public double getPrice() {\n\t\treturn price;\n\t}", "public BigDecimal\tgetPrice();", "public double getPrice() {\n\t\treturn this.price;\n\t\t\n\t}", "public double getPrice() {\n\t\treturn this.price;\n\t}", "public Money getPrice() {\n return price;\n }", "public float getPrice() {\n return _price;\n }", "public Float getPrice() {\n return price;\n }", "public Float getPrice() {\r\n return price;\r\n }", "@Override\n\tpublic double getPrice() {\n\t\treturn constantPO.getPrice();\n\t}", "public java.lang.Integer getPrice()\n {\n return price;\n }", "public double getPrice() {\n\t\t\treturn price;\n\t\t}", "protected float getPrice() {\n\t\t\treturn price;\n\t\t}", "public Integer getPrice() {\n return price;\n }", "public Integer getPrice() {\n return price;\n }", "public Integer getPrice() {\n return price;\n }", "public Integer getPrice() {\n return price;\n }", "public double getCost() {\n return price;\n }", "BigDecimal getPrice();", "public String getPrice() {\n return price;\n }", "public String getPrice() {\n return price;\n }", "public Number getPrice() {\n return (Number)getAttributeInternal(PRICE);\n }", "public Integer getPrice() {\r\n return price;\r\n }", "public Integer getPrice() {\r\n return price;\r\n }", "public Long getPrice() {\n return price;\n }", "public float getPrice() \n {\n return price;\n }", "public double getPrice(){\n\t\treturn Price; // Return the product's price\n\t}", "public long getPrice() {\n return price;\n }", "public BigDecimal getPrice() {\n return (BigDecimal)getAttributeInternal(PRICE);\n }", "public java.lang.String getPrice() {\n return price;\n }", "public int getPrice() {\n return price_;\n }", "@Override\n public double getPrice(){\n \n return currentPrice; \n }", "public double getPrice(){return price;}", "String getPrice();", "public BigDecimal getpPrice() {\n return pPrice;\n }", "public int getPrice() {\n return price;\n }", "String getPrice() {\n return Double.toString(price);\n }", "public int getPrice() {\n return price_;\n }" ]
[ "0.8150728", "0.8126985", "0.8126985", "0.8126985", "0.8126985", "0.8126985", "0.81243044", "0.81243044", "0.81242734", "0.81242734", "0.81157684", "0.81109583", "0.8110764", "0.81076723", "0.81076723", "0.81076723", "0.81076723", "0.8105839", "0.8100682", "0.8100682", "0.8100682", "0.8100682", "0.8100682", "0.8100682", "0.8100682", "0.8100682", "0.8100682", "0.8100682", "0.8100682", "0.80930525", "0.80904555", "0.8089427", "0.8082239", "0.8080069", "0.8066984", "0.8061683", "0.80541927", "0.80349225", "0.80265903", "0.80241716", "0.8018632", "0.80135405", "0.80130327", "0.79962957", "0.7982057", "0.79713005", "0.79713005", "0.79713005", "0.79666924", "0.7961502", "0.7961502", "0.7956365", "0.7956365", "0.7956365", "0.7951115", "0.7934896", "0.7934896", "0.7934896", "0.79324377", "0.7924159", "0.7924159", "0.7924159", "0.7924159", "0.7924159", "0.7923173", "0.79225457", "0.7919954", "0.7914359", "0.7902122", "0.7895621", "0.78779775", "0.7866576", "0.7861323", "0.78506476", "0.7849902", "0.784044", "0.784044", "0.784044", "0.784044", "0.7835311", "0.78310835", "0.78307575", "0.78307575", "0.7828539", "0.78204405", "0.78204405", "0.77868694", "0.77728593", "0.7771194", "0.77649266", "0.7710644", "0.7694405", "0.76891655", "0.7685103", "0.76796675", "0.76126736", "0.76085997", "0.76055837", "0.75982535", "0.7571617" ]
0.80875325
32
Sets the object's number
public void setNumber(int number) { this.number = number; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setNumber(int number)\n {\n Number = number;\n }", "public void setNumber(int number) {\r\n\t\tthis.num = number;\r\n\t}", "void setNumber(int num) {\r\n\t\tnumber = num;\r\n\t}", "public void setNumber(int number) {\n this.number = number;\n }", "public void setNumber(int number) {\r\n\t\tthis.number = number;\r\n\t}", "public void setNumber(Integer number) {\r\n this.number = number;\r\n }", "@Override\r\npublic void setNumber(int number) {\n\tsuper.setNumber(number);\r\n}", "public void setNumber(Integer number) {\n this.number = number;\n }", "public void setNum(int num) {\r\n this.num = num;\r\n }", "public void setNumber(int number) {\n\t\tthis.number = number;\n\t}", "public void setNumber(int number) {\n\t\tthis.number = number;\n\t}", "public void setNumber(int number) {\n\t\tthis.number = number;\n\t}", "public void setNumber(String newValue);", "public void setID(Number numID);", "public void setNum(Integer num) {\n this.num = num;\n }", "public void setNum(Integer num) {\n this.num = num;\n }", "public void setNum(int num) {\n\t\tthis.num = num;\n\t}", "public SeriesInstance setNumber( int theInteger) {\n\t\tmyNumber = new IntegerDt(theInteger); \n\t\treturn this; \n\t}", "public void setInstanceNumber(java.lang.Integer value) {\n __getInternalInterface().setFieldValue(INSTANCENUMBER_PROP.get(), value);\n }", "public void setNum (java.lang.Integer num) {\r\n\t\tthis.num = num;\r\n\t}", "public void setInstanceNumber(java.lang.Integer value) {\n __getInternalInterface().setFieldValue(INSTANCENUMBER_PROP.get(), value);\n }", "void set_num(ThreadContext tc, RakudoObject classHandle, double Value);", "public void setNumber(String name, int value) {\n itemNumbers.put(name, value);\n }", "public void setNumero(int index, int value){\r\n\t\tnumeros.set(index, value);\r\n\t}", "public static void setNum(Object holder, Object index, Object value) {\n\n\t\tsetObj(holder, index, new RubyFixnum(getRunTime(holder, index), Long.valueOf(value.toString())));\n\t}", "public void setNumero(int numero)\r\n/* 195: */ {\r\n/* 196:206 */ this.numero = numero;\r\n/* 197: */ }", "public void setCounter(int number){\n this.counter = number;\n }", "public Series setNumber( int theInteger) {\n\t\tmyNumber = new IntegerDt(theInteger); \n\t\treturn this; \n\t}", "public void setNumero(int numero) { this.numero = numero; }", "public void setNumber(String number) {\n this.number = number;\n }", "public SeriesInstance setNumber(IntegerDt theValue) {\n\t\tmyNumber = theValue;\n\t\treturn this;\n\t}", "private void setNumber(final int pos, final String number) {\n\t\tif (pos < 0 || pos >= this.objects.size()) {\n\t\t\tPreferences.this.objects.add(number);\n\t\t} else {\n\t\t\tPreferences.this.objects.set(pos, number);\n\t\t}\n\t\tPreferences.this.adapter.notifyDataSetChanged();\n\t}", "private void setObjId(int value) {\n \n objId_ = value;\n }", "private void setObjId(int value) {\n \n objId_ = value;\n }", "private void setObjId(int value) {\n \n objId_ = value;\n }", "private void setObjId(int value) {\n \n objId_ = value;\n }", "private void setObjId(int value) {\n \n objId_ = value;\n }", "private void setObjId(int value) {\n \n objId_ = value;\n }", "void setIdNumber(String idNumber);", "public void setNumber(String number) {\r\n\t\tthis.number = number;\r\n\t}", "public void setValue(int n) {\n\t\t\tthis.value = n;\n\t}", "public void setValue(Number value) {\n this.value = value;\n }", "public void setNumer(int numer)\n\t{\n\t\tthis.numer = numer;\n\t}", "void SetItemNumber(int ItemNumber);", "public Series setNumber(IntegerDt theValue) {\n\t\tmyNumber = theValue;\n\t\treturn this;\n\t}", "public void setNUMARGEO(int value) {\n this.numargeo = value;\n }", "public int getNumber(){\n\t\treturn number;\n\t}", "protected void setNumbertoZero() {\n\t\tnumber = 0;\n\t}", "public Numbers(int number) {\r\n\t\tthis.number = number;\r\n\t}", "void setIntValue(int value)\n {\n this.value = value;\n }", "public void setTuckNum(int NewValue){\n truck = NewValue;\n }", "@Override\n public void setAtomicNumber(int atomicNumber) {\n }", "public void setInteger(int value){}", "public void setNumDigits(int digits) {\r\n \r\n //Set Value\r\n numDigits = digits;\r\n \r\n }", "public int getNumber() {\r\n\t\treturn number;\r\n\t}", "public void setWinnumber(int Number) {\n\t\tif (Number != 0) {\n\t\t\tthis.winnumber = winnumber + Number;\n\t\t} else {\n\t\t\tthis.winnumber = 0;\n\t\t}\n\t}", "public void setValue(int value) {\r\n this.value = value;\r\n }", "public void setBikeNum(int NewValue){\n bike = NewValue;\n }", "public void setCardNo(int cardNumber);", "public int getNumber() {\n\t\treturn number;\n\t}", "public int getNumber() {\n\t\treturn number;\n\t}", "public int getNumber() {\n\t\treturn number;\n\t}", "public int getNumber() {\n\t\treturn number;\n\t}", "public void setProperty(Integer t) {\n\n\t\t}", "public int getNumber(){\n\treturn number;\n }", "public int getNumber() {\r\n return Number;\r\n }", "@JsonSetter(\"number\")\r\n public void setNumber (String value) { \r\n this.number = value;\r\n }", "public void setValue(int value)\n {\n this.value = value;\n }", "public void setInteger(int value);", "public void setNumer(float newNumer){\n\t\tnumer = newNumer;\n\t}", "public int getNumber() {\n\t\t\n\t\treturn number;\n\t}", "public void setValue(int value) {\n this.value = value;\n }", "public void setValue(int value) {\n this.value = value;\n }", "public void setValue(int value) {\n this.value = value;\n }", "public void setValue(int value);", "public void setValue(int value) {\n this.value = value;\n }", "public void setValue(int value) {\n this.value = value;\n }", "public int getNumber() {\r\n return number;\r\n }", "private\tNum(int num) { value = num; }", "public void setNumeroInicial(int numeroInicial)\r\n/* 185: */ {\r\n/* 186:198 */ this.numeroInicial = numeroInicial;\r\n/* 187: */ }", "public void setNumber(java.lang.String number) {\n this.number = number;\n }", "public static void setTrackNumber( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(model, instanceResource, TRACKNUMBER, value);\r\n\t}", "public void setInteger(int value) {\n this.value = value;\n }", "public void setInteger(int value) {\n this.value = value;\n }", "public Builder setPostNum(int value) {\n \n postNum_ = value;\n onChanged();\n return this;\n }", "public void setMemshipNumber(int value) {\n this.memshipNumber = value;\n }", "public com.dj.model.avro.LargeObjectAvro.Builder setRecordNum(java.lang.Integer value) {\n validate(fields()[1], value);\n this.recordNum = value;\n fieldSetFlags()[1] = true;\n return this;\n }", "public void setPhoneNuber(int value) {\r\n this.phoneNuber = value;\r\n }", "public static void SetNewNumber () {\n number = (int)(Math.random() * 9.1);\r\n\r\n // PROMPT THE USER\r\n System.out.println(\"A new number has been chosen.\");\r\n System.out.println();\r\n\r\n // SAVED ME WHEN DEBUGGING\r\n // System.out.println(number);\r\n }", "public int getNumber()\n {\n return this.number;\n }", "public void registriereNummer (int nr) {\n this.nr = nr;\n }", "public void setIntValue(int newValue){\n value = newValue; //set value to newValue\n }", "public void setDrawerNumber(int nr) {\r\n\t\ttxtNumber.setText(\"\" + nr);\r\n\t}", "public int getNumber() {\n return number;\n }", "private void setId() {\n id = count++;\n }", "public void setChildNum(int value) {\n this.childNum = value;\n }", "public void setValue(int value) {\r\n\t\tthis.value = value;\r\n\t}", "public void setValue(int value) {\r\n\t\tthis.value = value;\r\n\t}", "public void setValue(int value) {\r\n\t\tthis.value = value;\r\n\t}", "public void setValue(int value) {\r\n\t\tthis.value = value;\r\n\t}" ]
[ "0.7939619", "0.777788", "0.77248526", "0.7714193", "0.762038", "0.7580424", "0.7483743", "0.7479517", "0.7462855", "0.74612945", "0.74612945", "0.74612945", "0.72055614", "0.71848536", "0.7159293", "0.7159293", "0.71519834", "0.71315867", "0.7073389", "0.7049787", "0.7031723", "0.70287126", "0.6959201", "0.6928318", "0.6906989", "0.6893422", "0.68849546", "0.6862399", "0.6827557", "0.6824282", "0.678927", "0.6769198", "0.67582697", "0.67582697", "0.67582697", "0.67582697", "0.67582697", "0.67582697", "0.67501414", "0.6720877", "0.6665576", "0.6644619", "0.6634826", "0.6623189", "0.6552026", "0.6549997", "0.65393555", "0.65335935", "0.6530958", "0.65099776", "0.6502542", "0.64925396", "0.6489621", "0.64891034", "0.6481709", "0.647587", "0.64723665", "0.64487666", "0.6437618", "0.6424607", "0.6424607", "0.6424607", "0.6424607", "0.6414925", "0.6413928", "0.6408611", "0.6398988", "0.6397373", "0.6390844", "0.6389818", "0.63583654", "0.63508546", "0.63508546", "0.63508546", "0.6350176", "0.6345752", "0.6345752", "0.6344322", "0.63422525", "0.63271064", "0.6323089", "0.6320044", "0.6310091", "0.6310091", "0.63050956", "0.630415", "0.6282672", "0.6281786", "0.6276981", "0.6274323", "0.6261832", "0.62553954", "0.6253072", "0.62473476", "0.62456113", "0.62440634", "0.6236866", "0.6236866", "0.6236866", "0.6236866" ]
0.7807444
1
Returns the object's number
public int getNumber() { return this.number; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getObjectNumber();", "public int getNum() { return Num;}", "public int getNumber() {\r\n\t\treturn number;\r\n\t}", "public int getNumber() {\n\t\t\n\t\treturn number;\n\t}", "public int number() {\n return number;\n }", "public int getNumber() {\n\t\treturn number;\n\t}", "public int getNumber() {\n\t\treturn number;\n\t}", "public int getNumber() {\n\t\treturn number;\n\t}", "public int getNumber() {\n\t\treturn number;\n\t}", "public int getNum() {\n\treturn this.n;\n }", "public int getNumber(){\n\t\treturn number;\n\t}", "public int getNum() {\n return this.num;\n }", "public int getNum();", "public int getNumber() {\r\n return Number;\r\n }", "public final int getNumber() {\n return number;\n }", "public int getNumber() {\r\n return number;\r\n }", "Integer getSObjNum();", "public int getNum() {\r\n return num;\r\n }", "public Integer getNumber() {\n\t\treturn number;\n\t}", "public int getNumber() {\n return this.number;\n }", "public Number number() {\n return number;\n }", "public int getNum()\n {\n return num;\n }", "public int getNum()\n {\n return num;\n }", "public int getNum() {\n\t\treturn num;\n\t}", "public int getNumber() {\n\t\treturn i;\r\n\t}", "public int getNumber() {\n return number;\n }", "public int getNumber() {\n return field.getNumber();\n }", "public int getNumber()\n\t{\n\t\treturn myNumber;\n\t}", "public int getNumber(){\n\treturn number;\n }", "public Integer getNum() {\n return num;\n }", "public Integer getNum() {\n return num;\n }", "public Integer getNumber() {\r\n return number;\r\n }", "public Integer getObjNo() {\n\t\t\treturn objNo;\n\t\t}", "public int getNumber() {\n return this.number;\n }", "public Integer getNumber() {\n return number;\n }", "public int getObjectCounter() {\n return objectCounter;\n }", "public java.lang.Integer getNum () {\r\n\t\treturn num;\r\n\t}", "public int getNr() {\n return nr;\n }", "public String getNum() {\r\n return num;\r\n }", "public long getNumber(){\n return number;\r\n }", "public String getNum() {\n return num;\n }", "public String getNum() {\n return num;\n }", "public long getnNum() {\n return nNum;\n }", "public String getNumber() {\n\t\treturn getValue(\"number\");\n\t}", "public int getNumer()\n\t{\n\t\treturn numer;\n\t}", "public int getNumObjects(){\n return numObjects;\n }", "public int getNumber(){return number;}", "public int getValue(){\n return number;\n }", "public String getNumber() {\n return this.mNumber;\n }", "public String getNumber() \n\t{\n\t\treturn this.number;\n\t}", "public String number() {\n return number;\n }", "public int getNumber(){\r\n return num;\r\n }", "public int getNumberValue() {\r\n return number;\r\n }", "public String getNumber() {\r\n\t\treturn number;\r\n\t}", "int getNumber () { return number; }", "public java.lang.Object getEntityNumber() {\n return entityNumber;\n }", "java.lang.String getNumber();", "java.lang.String getNumber();", "java.lang.String getNumber();", "public int numericName()\n {\n return Factory.getID(this);\n }", "public String getNumber() {\n return number;\n }", "public String getNumber() {\n return number;\n }", "public String getNumber() {\n return number;\n }", "public String getNumber() {\n return number;\n }", "public int getNumber() {\n\t\treturn 666;\n\t}", "public String getNumber() {\n return (String) get(\"number\");\n }", "public int getObjId() {\n return instance.getObjId();\n }", "public int getObjId() {\n return instance.getObjId();\n }", "public int getObjId() {\n return instance.getObjId();\n }", "public int getObjId() {\n return instance.getObjId();\n }", "public int getObjId() {\n return instance.getObjId();\n }", "public int getObjId() {\n return instance.getObjId();\n }", "@Override\r\npublic int getNumber() {\n\treturn super.getNumber();\r\n}", "@Override\n\tpublic Long getNbInstance() {\n\t\treturn dao.getNb();\n\t}", "public int id() {\n return _num;\n }", "public int getNum() throws RemoteException {\n\t\treturn 0;\r\n\t}", "public String getInstanceNumber()\n {\n return m_instanceNumber;\n }", "int getNo() {\n\t\treturn no;\n\t}", "public java.lang.String getNumber() {\n return number;\n }", "public int getN() {\n return this.n;\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Integer getInstanceNumber() {\n return (java.lang.Integer)__getInternalInterface().getFieldValue(INSTANCENUMBER_PROP.get());\n }", "public long getN() {\n return n;\n }", "BigInteger getFieldNumber();", "public int getNumero() { return this.numero; }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Integer getInstanceNumber() {\n return (java.lang.Integer)__getInternalInterface().getFieldValue(INSTANCENUMBER_PROP.get());\n }", "public String getNumber(){\r\n return number;\r\n }", "public IntegerDt getNumber() { \n\t\tif (myNumber == null) {\n\t\t\tmyNumber = new IntegerDt();\n\t\t}\n\t\treturn myNumber;\n\t}", "public IntegerDt getNumber() { \n\t\tif (myNumber == null) {\n\t\t\tmyNumber = new IntegerDt();\n\t\t}\n\t\treturn myNumber;\n\t}", "public Long cniAsNumber() {\n return this.innerProperties() == null ? null : this.innerProperties().cniAsNumber();\n }", "public int getN() {\n return n;\n }", "public int getNumber()\n {\n return number;\n}", "public int getNumID() {\n return numID;\n }", "public int getNumero() {\n\t\treturn numero;\n\t}", "public int getNumero() {\n\t\treturn numero;\n\t}", "public int getNumero() {\n\t\treturn numero;\n\t}", "com.google.protobuf.ByteString getNumberBytes();", "public int getNumero() {\n return numero;\n }", "public Number getObjectVersionNumber() {\n return (Number)getAttributeInternal(OBJECTVERSIONNUMBER);\n }", "public int getN() {\n return n_;\n }", "public int getNo() {\n return no;\n }" ]
[ "0.839044", "0.73939216", "0.7349316", "0.7343422", "0.73380214", "0.73211324", "0.73211324", "0.73211324", "0.73211324", "0.73164845", "0.7307549", "0.72860223", "0.72361076", "0.7231044", "0.7228313", "0.7195458", "0.71802086", "0.71728224", "0.717222", "0.7163035", "0.7162354", "0.7159831", "0.7159831", "0.71508205", "0.71469957", "0.71446973", "0.7143907", "0.7138565", "0.7108639", "0.71055114", "0.71055114", "0.706447", "0.7055776", "0.70494515", "0.70204663", "0.6961564", "0.6919495", "0.69194937", "0.68886304", "0.6878711", "0.6875386", "0.6875386", "0.68460876", "0.6837516", "0.68368286", "0.6817284", "0.6813557", "0.680989", "0.6804359", "0.6801662", "0.6794354", "0.6784647", "0.6762196", "0.6761777", "0.67337865", "0.6727633", "0.6678848", "0.6678848", "0.6678848", "0.66731614", "0.6669541", "0.6669541", "0.6669541", "0.6669541", "0.66542226", "0.6647657", "0.6646146", "0.6646146", "0.6646146", "0.6646146", "0.6646146", "0.6646146", "0.6629901", "0.6620726", "0.66088283", "0.66049516", "0.6595981", "0.65938944", "0.6590688", "0.6579777", "0.6536084", "0.653577", "0.6527948", "0.65213203", "0.6514411", "0.6499937", "0.64967644", "0.64967644", "0.64839804", "0.64744174", "0.644893", "0.6426349", "0.6420532", "0.6420532", "0.6420532", "0.6416579", "0.64138365", "0.6412407", "0.640844", "0.64026934" ]
0.72209334
15
Sets the object's extended
public void setExtended(char extended) { this.extended = extended; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setExtended(boolean value) {\n this.extended = value;\n }", "public void setExtObject(IComponent ext){\n\t\textObj = ext;\n\t}", "public void setExtendable(boolean extendable)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(EXTENDABLE$22);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(EXTENDABLE$22);\r\n }\r\n target.setBooleanValue(extendable);\r\n }\r\n }", "void extend();", "public void xsetExtendable(org.apache.xmlbeans.XmlBoolean extendable)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlBoolean target = null;\r\n target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(EXTENDABLE$22);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.XmlBoolean)get_store().add_attribute_user(EXTENDABLE$22);\r\n }\r\n target.set(extendable);\r\n }\r\n }", "public boolean isExtended() {\n return extended;\n }", "protected void addExtendsPropertyDescriptor(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_Bean_extends_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Bean_extends_feature\", \"_UI_Bean_type\"),\n\t\t\t\t BeansPackage.Literals.BEAN__EXTENDS,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t false,\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n\t\t\t\t null,\n\t\t\t\t null));\n\t}", "public void extend(){\n\t\tsolenoid1.set(true);\n\t\tsolenoid2.set(true);\n\t}", "public boolean isExtended() {\n return isExtended;\n }", "public Binding setIsExtensible( boolean theBoolean) {\n\t\tmyIsExtensible = new BooleanDt(theBoolean); \n\t\treturn this; \n\t}", "public void EXTENDED() {\n ea = IMMWORD();\n }", "public Binding setIsExtensible(BooleanDt theValue) {\n\t\tmyIsExtensible = theValue;\n\t\treturn this;\n\t}", "public void setExtends(final SQLEngine engine) {\r\n _extends = engine;\r\n }", "public boolean extended() {\n // WRITE CODE BETWEEN THESE LINES -------------------------------------------------------- //\n // TODO: return the value of the m_extended flag.\n \n // ^^-----------------------------------------------------------------------------------^^ //\n return false;\n }", "public void extend() {\n if (ON < OLast / 2) {\n compress();\n return;\n }\n klasse o[] = (klasse[]) (new Object[2 * OSize]);\n System.arraycopy(O, 0, o, 0, OLast);\n OSize *= 2;\n O = o;\n }", "public boolean setToExtend(AccessGroup group)\n {\n if (!isParent(group))\n {\n this.extendGroup = group;\n if (this.extendGroup != null)\n {\n this.extendGroup_name = this.extendGroup.getName();\n }\n return true;\n }\n return false;\n }", "public Value makeExtendedScope() {\n checkNotUnknown();\n if (isExtendedScope())\n return this;\n Value r = new Value(this);\n r.flags |= EXTENDEDSCOPE;\n return canonicalize(r);\n }", "public IComponent getExtObject(){\n\t\treturn extObj;\n\t}", "public void hatchKickerExtend() {\n hatchkicker.set(true);\n }", "public boolean isExtending()\n {\n return this.extending;\n }", "public interface Extendable {\n void extend();\n}", "public RearHatchSet(boolean extend) {\n // Use requires() here to declare subsystem dependencies\n requires(Robot.rearHatch);\n this.extend = extend;\n }", "public void set(E obj) {\r\n throw new UnsupportedOperationException();\r\n }", "public VoucherExtendBriefEntity getVoucherExtend() {\n\t\treturn voucherExtend;\n\t}", "public void setExtension(java.lang.Object extension) {\r\n this.extension = extension;\r\n }", "public void setExtends(XMLClassDescriptor classDesc) {\n\n FieldDescriptor[] fields = null;\n //-- remove reference to previous extended descriptor\n if (_extends != null) {\n sortDescriptors();\n fields = _extends.getFields();\n for (int i = 0; i < fields.length; i++) {\n removeFieldDescriptor((XMLFieldDescriptor)fields[i]);\n }\n }\n\n this._extends = classDesc;\n\n //-- flatten out the hierarchy\n if (_extends != null) {\n fields = classDesc.getFields();\n for (int i = 0; i < fields.length; i++) {\n addFieldDescriptor((XMLFieldDescriptor)fields[i]);\n }\n }\n\n }", "public void setGeneralEncapsulatedObject(DataObject value) {\r\n\t\tBase.set(this.model, this.getResource(), GENERALENCAPSULATEDOBJECT, value);\r\n\t}", "public Object getExtension(){\n\t\treturn ext;\n\t}", "public Object caseExtensibleElement(ExtensibleElement object) {\n\t\treturn null;\n\t}", "@Override\n\tpublic void setActiveObject(UIBean obj) {\n\n\t}", "public Environment extend(Environment ext) throws AstCreatorException\n \t{\n \t\tEnvironment result = Environment.getFromBase(base, ext.getAnalysisPackage(), ext.getDefaultPackage());\n \n \t\tresult.setTemplateAnalysisPackage(base.getAnalysisPackage());\n \t\tresult.setTemplateDefaultPackage(base.getDefaultPackage());\n \n \t\t// 1 every class and interface from the base environment is added to result\n \t\taddBaseAstClassesAndInterfaces(result, base);\n \n \t\t// 2 include classes from the extension that we will need\n \t\tincludeClassesFromExtension(result, ext, base);\n \n \t\t// 3 include interfaces from the extension that we will need\n \t\tincludeInterfacesFromExtension(result, ext, base);\n \n \t\t// 4a generate new extension productions that is P and S interface\n \t\tMap<String, IInterfaceDefinition> iReplacementMap = generateExtensionInterfaces(result, ext, base);\n \n \t\t// 4b generate new base classes for the P and S interface generated in 4a\n \t\tMap<String, IClassDefinition> cReplacementMap = generateExtensionClasses(result, ext, base, iReplacementMap);\n \n \t\t// 5 Update classToType\n \t\tupdateClassToType(result,ext,base);\n \n \t\t// 6 Update super definitions\n \t\tupdateSuperDefinitions(result,ext,cReplacementMap);\n \n \t\t// 7 Update treeNode to interface mapping (that is the common implements relationship)\n \t\tupdateTreeNodeToInterface(result, ext,base, iReplacementMap);\n \n \t\t// 8 Fields on nodes from the ext environment may have unresolved types\n \t\tupdateFieldsWithUnresolvedTypes(result,ext,base);\n \n \t\treturn result;\n \t}", "public void setAttributes(IEntityObject obj) {\r\n\tDispenser dObj = (Dispenser) obj;\r\n\tdObj.pk = this.pk;\r\n\tdObj.versionInfoID = this.versionInfoID;\r\n\tdObj.interfaceID = this.interfaceID;\t\r\n\tdObj.setBlender(this.blender);\r\n }", "@Override\r\n\tpublic void shiftExtends() throws ParserException\r\n\t{\r\n\t\tchangeToState(new MDJ_19());\r\n\t}", "public void setVoucherExtend(VoucherExtendBriefEntity voucherExtend) {\n\t\tthis.voucherExtend = voucherExtend;\n\t}", "public void inAClass(AClass node) {\n TIdentifier id = node.getIdentifier();\n \n if (node.getExtension() == null && \n ! id.getText().equals(\"Object\")) {\n node.setExtension(\n new AExtension(new TIdentifier(\"Object\",id.getLine(),id.getPos())));\n }\n }", "public void setExtendedCreationDate(Date creationDate)\r\n {\r\n m_extendedCreationDate = creationDate;\r\n }", "public void setPDMessageMetadataExtensionAbstract(org.apache.xmlbeans.XmlObject pdMessageMetadataExtensionAbstract)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlObject target = null;\n target = (org.apache.xmlbeans.XmlObject)get_store().find_element_user(PDMESSAGEMETADATAEXTENSIONABSTRACT$1, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlObject)get_store().add_element_user(PDMESSAGEMETADATAEXTENSIONABSTRACT$0);\n }\n target.set(pdMessageMetadataExtensionAbstract);\n }\n }", "public abstract void setContentObject(Object object);", "@Override\n public void easyMode() {\n super.setHP(900);\n super.getFrontAttack().setBaseDamage(18.75);\n super.getRightAttack().setBaseDamage(18.75);\n super.getBackAttack().setBaseDamage(18.75);\n super.getLeftAttack().setBaseDamage(18.75);\n }", "@Override\n\tpublic void extends_(JDefinedClass cls) {\n\n\t}", "private void _setExtension(XSTCtrl_extensionType ext) {\n\n\t}", "protected abstract void _extends( ClassOutlineImpl derived, ClassOutlineImpl base );", "public void setgearExtendLights(){\n \tgearExtendLights.set(true);\n }", "public String getSkinExtends()\n {\n return _skinExtends;\n }", "private void setExtendedState(int maximizedBoth) {\n\t\t\n\t}", "public Boolean getIsExtensible() { \n\t\treturn getIsExtensibleElement().getValue();\n\t}", "public void setInheritall(boolean b) {\r\n this.inheritAll = b;\r\n }", "public char getExtended()\n {\n return this.extended;\n }", "public boolean getExtendable()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(EXTENDABLE$22);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_default_attribute_value(EXTENDABLE$22);\r\n }\r\n if (target == null)\r\n {\r\n return false;\r\n }\r\n return target.getBooleanValue();\r\n }\r\n }", "public void unsetExtendable()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_attribute(EXTENDABLE$22);\r\n }\r\n }", "public static void HookExtend(SimHookBase whom) {\r\n DoMore = whom;\r\n }", "@Override\n public void setObject(Object arg0)\n {\n \n }", "public boolean isSetExtendable()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().find_attribute_user(EXTENDABLE$22) != null;\r\n }\r\n }", "private void extendedSize(){\n setSize(600,400);\n }", "public void setObject(XSerial obj);", "public Environment extend(Environment ext) throws AstCreatorException\n\t{\n\t\tEnvironment result = Environment.getFromBase(base, ext.getAnalysisPackage(), ext.getDefaultPackage(), ext.getName());\n\n\t\tresult.setTemplateAnalysisPackage(base.getAnalysisPackage());\n\t\tresult.setTemplateDefaultPackage(base.getDefaultPackage());\n\n\t\tSystem.out.println(\"***********************************************\");\n\t\tSystem.out.println(\"AST Creator Extensions\");\n\t\tSystem.out.println(\"***********************************************\");\n\n\t\t// 1 every class and interface from the base environment is added to\n\t\t// result\n\t\taddBaseAstClassesAndInterfaces(result, base);\n\n\t\t// 2 include classes from the extension that we will need\n\t\tincludeClassesFromExtension(result, ext, base);\n\n\t\t// 3 include interfaces from the extension that we will need\n\t\tincludeInterfacesFromExtension(result, ext, base);\n\n\t\t// 4a generate new extension productions that is P and S interface\n\t\tMap<String, IInterfaceDefinition> iReplacementMap = generateExtensionInterfaces(result, ext, base);\n\n\t\t// 4b generate new base classes for the P and S interface generated in\n\t\t// 4a\n\t\tMap<String, IClassDefinition> cReplacementMap = generateExtensionClasses(result, ext, base, iReplacementMap);\n\n\t\t// 5 Update classToType\n\t\tupdateClassToType(result, ext, base);\n\n\t\t// 6 Update super definitions\n\t\tupdateSuperDefinitions(result, ext, cReplacementMap, iReplacementMap);\n\n\t\t// 7 Update treeNode to interface mapping (that is the common implements\n\t\t// relationship)\n\t\tupdateTreeNodeToInterface(result, ext, base, iReplacementMap);\n\n\t\t// 8 Fields on nodes from the ext environment may have unresolved types\n\t\tupdateFieldsWithUnresolvedTypes(result, ext, base);\n\n\t\treturn result;\n\t}", "public org.exolab.castor.mapping.ClassDescriptor getExtends()\n {\n return null;\n }", "public org.exolab.castor.mapping.ClassDescriptor getExtends()\n {\n return null;\n }", "public org.exolab.castor.mapping.ClassDescriptor getExtends()\n {\n return null;\n }", "public ClassDescriptor getExtends() {\n return _extends;\n }", "public void setDescriptorBase(Ed descriptorBase) {\n\n this.descriptorBase = descriptorBase;\n //Se descriptorBase existe, atribui este como seu parente\n// if(this.descriptorBase != null)\n// this.descriptorBase.setParent(this);\n }", "public void setExtras(org.datacontract.schemas._2004._07.ServiceSoap_UBL2__0_Models_Object.Extensible[] extras) {\n this.extras = extras;\n }", "public void setExtLst(org.openxmlformats.schemas.drawingml.x2006.main.CTOfficeArtExtensionList extLst)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.drawingml.x2006.main.CTOfficeArtExtensionList target = null;\n target = (org.openxmlformats.schemas.drawingml.x2006.main.CTOfficeArtExtensionList)get_store().find_element_user(EXTLST$28, 0);\n if (target == null)\n {\n target = (org.openxmlformats.schemas.drawingml.x2006.main.CTOfficeArtExtensionList)get_store().add_element_user(EXTLST$28);\n }\n target.set(extLst);\n }\n }", "void setSuperEffectiveFrom(List<Type> superEffectiveFrom) {\n this.superEffectiveFrom = superEffectiveFrom;\n }", "@Override\n\tpublic void extend(JSONItem obj)\n\t\t\tthrows ClassNotFoundException, NoSuchMethodException, SecurityException, InstantiationException,\n\t\t\tIllegalAccessException, IllegalArgumentException, InvocationTargetException, JSONValidationException {\n\n\t\tfor (int i = 0; i < obj.length(); ++i) {\n\t\t\ttry {\n\t\t\t\tJSONItem item = obj.getJSON(i);\n\n\t\t\t\t// extendValidator.validate (item);\n\n\t\t\t\tString clss = item.getString(\"class\");\n\t\t\t\tClass<?> cls = Class.forName(clss);\n\n\t\t\t\tObject instance = null;\n\t\t\t\tif (item.has(\"params\")) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tObject params = item.getJSON(\"params\");\n\t\t\t\t\t\tConstructor<?> ctor = cls.getConstructor(JSONItem.class);\n\t\t\t\t\t\tinstance = ctor.newInstance(params);\n\t\t\t\t\t} catch (JSONValidationException e) {\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (instance == null) {\n\t\t\t\t\tConstructor<?> ctor = cls.getConstructor();\n\t\t\t\t\tinstance = ctor.newInstance();\n\t\t\t\t}\n\t\t\t\tString key = item.getString(\"name\");\n\t\t\t\textend(key, instance);\n\t\t\t} catch (JSONValidationException 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}", "public void setExtClass(Class clas){\n\t\t\n\t\tthis.clas = clas;\n\t}", "public void setupConvenienceObjects();", "@Override\n protected void attachBaseContext(Context newBase) {\n super.attachBaseContext(CalligraphyContextWrapper.wrap(newBase));\n }", "@Override\n protected void attachBaseContext(Context newBase) {\n super.attachBaseContext(CalligraphyContextWrapper.wrap(newBase));\n }", "@Override\n protected void attachBaseContext(Context newBase) {\n super.attachBaseContext(CalligraphyContextWrapper.wrap(newBase));\n }", "@Override\n protected void attachBaseContext(Context newBase) {\n super.attachBaseContext(CalligraphyContextWrapper.wrap(newBase));\n }", "public AbstractClassExtend() {\n\t\tsuper(\"hello\");\n\t}", "public AccessGroup getExtendGroup()\n {\n return this.extendGroup;\n }", "public org.apache.xmlbeans.XmlBoolean xgetExtendable()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlBoolean target = null;\r\n target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(EXTENDABLE$22);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.XmlBoolean)get_default_attribute_value(EXTENDABLE$22);\r\n }\r\n return target;\r\n }\r\n }", "public\tvoid setobject(object obj) {\r\n\t\t oop.value=obj.value;\r\n\t\t oop.size=obj.size;\r\n\t\t \r\n\t}", "public ExtensionAttributes_() {\n }", "public void setObjet(Object messageObject) throws UtilsException;", "public void extend(String classQName, String[] extendedIdentifiers) {\r\n\t\tif (!regMap.containsKey(classQName)) {\r\n\t\t\tthrow new AutomationException(\"There is no [\" + classQName\r\n\t\t\t\t\t+ \"] in Widget Registory.\");\r\n\t\t}\r\n\t\tRegEntry regEntry = regMap.get(classQName);\r\n\t\tregEntry.addIdentifiers(extendedIdentifiers);\r\n\t\tregister(classQName, regEntry);\r\n\t}", "@Override\npublic void setAttributes() {\n\t\n}", "public ExtendedWorkObject(IElement element) {\r\n\t\tthis.element = element;\r\n\t\tthis.element.setWorkObject(this);\r\n\t}", "public void extendArray() {\n int index = size();\n Object[] temp = new Object[index + 1];\n for (int i=0; i < index; i++) {\n temp[i] = AL[i];\n }\n AL = temp;\n }", "public abstract void setContent(Object o);", "public java.lang.Object getExtension() {\r\n return extension;\r\n }", "public com.amazon.s3.GetObjectExtendedResponse getObjectExtended(com.amazon.s3.GetObjectExtended getObjectExtended);", "public DynamicModelPart setExtra(float[] extra) {\n this.extra = extra;\n return this;\n }", "public void setExtLst(org.openxmlformats.schemas.presentationml.x2006.main.CTExtensionList extLst)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.presentationml.x2006.main.CTExtensionList target = null;\n target = (org.openxmlformats.schemas.presentationml.x2006.main.CTExtensionList)get_store().find_element_user(EXTLST$14, 0);\n if (target == null)\n {\n target = (org.openxmlformats.schemas.presentationml.x2006.main.CTExtensionList)get_store().add_element_user(EXTLST$14);\n }\n target.set(extLst);\n }\n }", "public synchronized void setChanged() {\n super.setChanged();\n }", "private IExtendsContext createExtendsContext() throws RodinDBException {\n\t\tfinal IContextRoot ctx = createContext(\"ctx\");\n\t\treturn ctx.createChild(IExtendsContext.ELEMENT_TYPE, null, null);\n\t}", "public Node extend() {\n return node;\n }", "public void setInheritAll(boolean value) {\n inheritAll = value;\n }", "@Override\n\tprotected void on_object_picked_up(GfxObject object) {\n\n\t}", "public void activate() {\n\t\tpropertySupport.attachAll();\n\t}", "public void setExtra(ListaAttributi extra) {\r\n String oldExtra = this.extra;\r\n this.extra = extra;\r\n propertyChangeSupport.firePropertyChange (\"extra\", oldExtra, extra);\r\n }", "String getExtends();", "@Override\n\t\tpublic void set(E arg0) {\n\t\t\t\n\t\t}", "public void setProtected()\n {\n ensureLoaded();\n m_flags.setProtected();\n setModified(true);\n }", "public void setObject(Object obj) {\n\tObject bean = ((AxBridgeObject)obj).getJavaObject();\n\ttry {\n\t Class cls = bInfo.getBeanDescriptor().getCustomizerClass();\n\t if(cls != null) {\n\t\tcustomizer = (Customizer)cls.newInstance();\n\t\tcomp = (Component)customizer;\n\t\tcustomizer.setObject(bean);\n\t }\n\t \n\t //If no customizer, try property editors\n\t if(comp == null) {\n\t\tPropertyDescriptor[] pds = bInfo.getPropertyDescriptors();\n\t\tfor(int i=0;i<pds.length;i++) {\n\t\t cls = pds[i].getPropertyEditorClass();\n\t\t if(cls != null) {\n\t\t\t//System.out.println(cls.toString() + i);\n\t\t\tpropEditor = (PropertyEditor)cls.newInstance();\n\t\t\tif(propEditor.supportsCustomEditor()) {\n\t\t\t comp = propEditor.getCustomEditor();\n\t\t\t propEditor.setValue(bean);\n\t\t\t break;\n\t\t\t}\n\t\t }\n\t\t}\n\t }\n\t} catch(Throwable e) {\n\t e.printStackTrace();\n\t}\n }", "@Override\n public void setEdibleAnimals() {\n addPrey(Rabbit.SPECIES);\n }", "public EquipmentSetAccessBean ( javax.ejb.EJBObject o ) throws java.rmi.RemoteException {\n super(o);\n }", "public void setAbstract(boolean on) {\n if (on)\n setAccessFlags(getAccessFlags() | Constants.ACCESS_ABSTRACT);\n else\n setAccessFlags(getAccessFlags() & ~Constants.ACCESS_ABSTRACT);\n }" ]
[ "0.67990845", "0.64516675", "0.6436803", "0.6396166", "0.62846303", "0.6169278", "0.6056461", "0.5980042", "0.5929627", "0.5882998", "0.57711565", "0.5750577", "0.57337683", "0.57061565", "0.5629275", "0.56197834", "0.5496727", "0.5489628", "0.5439861", "0.5408855", "0.540418", "0.53779346", "0.53727096", "0.5346197", "0.532821", "0.5326891", "0.5281834", "0.5257732", "0.5249954", "0.52417195", "0.5216248", "0.52074873", "0.5157416", "0.5152104", "0.5151454", "0.51451856", "0.5139887", "0.51342976", "0.5133373", "0.51222825", "0.512076", "0.5058152", "0.5054434", "0.50327986", "0.50326955", "0.5030859", "0.5026265", "0.50245875", "0.5021062", "0.50153106", "0.50131017", "0.5009226", "0.50084573", "0.4997252", "0.49961427", "0.49584544", "0.49453753", "0.49453753", "0.49453753", "0.49443066", "0.49436522", "0.4937416", "0.49352196", "0.4924604", "0.49191186", "0.4916398", "0.49097517", "0.49020082", "0.49020082", "0.49020082", "0.49020082", "0.4898984", "0.48962718", "0.48894623", "0.48894146", "0.48834485", "0.4874302", "0.48709112", "0.4870005", "0.48649582", "0.48481736", "0.48322842", "0.4811002", "0.47911632", "0.47875503", "0.47728375", "0.47640392", "0.4750248", "0.4743622", "0.4735248", "0.47339624", "0.47261548", "0.4726139", "0.47244218", "0.47144854", "0.47114992", "0.471052", "0.47037265", "0.47033036", "0.46996218" ]
0.647378
1
Returns the object's extended
public char getExtended() { return this.extended; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isExtended() {\n return extended;\n }", "public boolean isExtended() {\n return isExtended;\n }", "public Object getExtension(){\n\t\treturn ext;\n\t}", "String getExtends();", "public IComponent getExtObject(){\n\t\treturn extObj;\n\t}", "public boolean extended() {\n // WRITE CODE BETWEEN THESE LINES -------------------------------------------------------- //\n // TODO: return the value of the m_extended flag.\n \n // ^^-----------------------------------------------------------------------------------^^ //\n return false;\n }", "public java.lang.Object getExtension() {\r\n return extension;\r\n }", "public ClassDescriptor getExtends() {\n return _extends;\n }", "public boolean getExtendable()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(EXTENDABLE$22);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_default_attribute_value(EXTENDABLE$22);\r\n }\r\n if (target == null)\r\n {\r\n return false;\r\n }\r\n return target.getBooleanValue();\r\n }\r\n }", "public VoucherExtendBriefEntity getVoucherExtend() {\n\t\treturn voucherExtend;\n\t}", "public org.exolab.castor.mapping.ClassDescriptor getExtends()\n {\n return null;\n }", "public org.exolab.castor.mapping.ClassDescriptor getExtends()\n {\n return null;\n }", "public org.exolab.castor.mapping.ClassDescriptor getExtends()\n {\n return null;\n }", "public Boolean getIsExtensible() { \n\t\treturn getIsExtensibleElement().getValue();\n\t}", "public com.amazon.s3.GetObjectExtendedResponse getObjectExtended(com.amazon.s3.GetObjectExtended getObjectExtended);", "public org.apache.xmlbeans.XmlBoolean xgetExtendable()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlBoolean target = null;\r\n target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(EXTENDABLE$22);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.XmlBoolean)get_default_attribute_value(EXTENDABLE$22);\r\n }\r\n return target;\r\n }\r\n }", "public boolean isExtending()\n {\n return this.extending;\n }", "public String getExtensionAttributes()\n {\n return extensionAttributes;\n }", "Extensions getExtensions() {\n return this.extensions;\n }", "public String extended() {\r\n final StringBuilder sb = new StringBuilder();\r\n if(type != null) sb.append(\"[\" + code() + \"] \");\r\n return sb + simple();\r\n }", "public AccessGroup getExtendGroup()\n {\n return this.extendGroup;\n }", "public String getSkinExtends()\n {\n return _skinExtends;\n }", "public Class<?> getExtendedClass() {\n return this._describedClass.getSuperclass();\n }", "public String getExtInfo() {\n return this.ExtInfo;\n }", "public Extension getExtension() {\n return extension;\n }", "void extend();", "public ExtendedLocation extendedLocation() {\n return this.extendedLocation;\n }", "public ExtendedLocation extendedLocation() {\n return this.extendedLocation;\n }", "public long pythonExtension()\n {\n return this.pythonObject;\n }", "public Object getExtraInformation() {\n\t\treturn extraInformation;\n\t}", "protected void addExtendsPropertyDescriptor(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_Bean_extends_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Bean_extends_feature\", \"_UI_Bean_type\"),\n\t\t\t\t BeansPackage.Literals.BEAN__EXTENDS,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t false,\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n\t\t\t\t null,\n\t\t\t\t null));\n\t}", "public Date getExtendedCreationDate()\r\n {\r\n return (m_extendedCreationDate);\r\n }", "public Value makeExtendedScope() {\n checkNotUnknown();\n if (isExtendedScope())\n return this;\n Value r = new Value(this);\n r.flags |= EXTENDEDSCOPE;\n return canonicalize(r);\n }", "public String getExtensions()\n {\n return ext;\n }", "@XmlAnyAttribute\n @JsonSerialize (using = AnyAttributeSerializer.class)\n public Map<QName, String> getExtensionAttributes() {\n return extensionAttributes;\n }", "public org.datacontract.schemas._2004._07.ServiceSoap_UBL2__0_Models_Object.Extensible[] getExtras() {\n return extras;\n }", "public TableReadCapabilityAttributesExtension _get_imfObject()\n {\n return (TableReadCapabilityAttributesExtension)_imfObject;\n }", "public void setExtended(boolean value) {\n this.extended = value;\n }", "@Updatable\n public String getExtendedStatistic() {\n return extendedStatistic;\n }", "Object getOtherprops();", "public Integer getExt1() {\n return ext1;\n }", "Object getBase();", "public Node extend() {\n return node;\n }", "ExtensionsType getExtensions();", "public String getExtensionClass()\n {\n return extensionClass;\n }", "public Bundle extra() {\n if (mExtra == null)\n mExtra = new Bundle();\n return mExtra;\n }", "public TDataObject getBaseDataObject(\n )\n {return baseDataObject;}", "public Object getExamineType() {\n\t\treturn ext;\n\t}", "public java.util.List<Extension> extension() {\n return getList(Extension.class, FhirPropertyNames.PROPERTY_EXTENSION);\n }", "public java.util.List<Extension> extension() {\n return getList(Extension.class, FhirPropertyNames.PROPERTY_EXTENSION);\n }", "public java.util.List<Extension> extension() {\n return getList(Extension.class, FhirPropertyNames.PROPERTY_EXTENSION);\n }", "public java.util.List<Extension> extension() {\n return getList(Extension.class, FhirPropertyNames.PROPERTY_EXTENSION);\n }", "public java.util.List<Extension> extension() {\n return getList(Extension.class, FhirPropertyNames.PROPERTY_EXTENSION);\n }", "public java.util.List<Extension> extension() {\n return getList(Extension.class, FhirPropertyNames.PROPERTY_EXTENSION);\n }", "public java.util.List<Extension> extension() {\n return getList(Extension.class, FhirPropertyNames.PROPERTY_EXTENSION);\n }", "public org.apache.xmlbeans.XmlObject getPDMessageMetadataExtensionAbstract()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlObject target = null;\n target = (org.apache.xmlbeans.XmlObject)get_store().find_element_user(PDMESSAGEMETADATAEXTENSIONABSTRACT$1, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "@objid (\"e20e1709-9e0b-4c6a-bf6c-3f3e7b57cdfe\")\n @Override\n boolean isExtension();", "@XmlAnyElement ( lax = true )\n @JsonSerialize ( using = AnyElementSerializer.class )\n public List<Object> getExtensionElements() {\n return extensionElements;\n }", "public String getExtendedStackTrace() {\n return getExtendedStackTrace(null);\n }", "public boolean isExtendedScope() {\n return (flags & EXTENDEDSCOPE) != 0;\n }", "public boolean isExtension() {\n\t\treturn true;\n\t}", "@Override\n public String getExtension() {\n return \".obj\";\n }", "public com.google.protobuf.ByteString getExtra() {\n return extra_;\n }", "public BooleanDt getIsExtensibleElement() { \n\t\tif (myIsExtensible == null) {\n\t\t\tmyIsExtensible = new BooleanDt();\n\t\t}\n\t\treturn myIsExtensible;\n\t}", "public abstract Object getUnderlyingObject();", "public java.beans.BeanInfo[] getAdditionalBeanInfo() {\n\tjava.lang.Class superClass;\n\tjava.beans.BeanInfo superBeanInfo = null;\n\n\ttry {\n\t\tsuperClass = getBeanDescriptor().getBeanClass().getSuperclass();\n\t} catch (java.lang.Throwable exception) {\n\t\treturn null;\n\t}\n\n\ttry {\n\t\tsuperBeanInfo = java.beans.Introspector.getBeanInfo(superClass);\n\t} catch (java.beans.IntrospectionException ie) {}\n\n\tif (superBeanInfo != null) {\n\t\tjava.beans.BeanInfo[] ret = new java.beans.BeanInfo[1];\n\t\tret[0] = superBeanInfo;\n\t\treturn ret;\n\t}\n\treturn null;\n}", "public VersionedMap getExtra ()\n {\n return extra;\n }", "public com.google.protobuf.ByteString getExtra() {\n return extra_;\n }", "public Class getExtClass(){\n\t\treturn clas;\n\t}", "public ExtendedHTMLDocument getEextendedHTMLDocument() {\r\n\r\n\t\treturn extendedHTMLDocument;\r\n\t}", "public static final ExtendedPlayer get(EntityPlayer player)\n\t{\n\t\treturn (ExtendedPlayer) player.getExtendedProperties(EXT_PROP_NAME);\n\t}", "public ObjectInfo getObjectInfo();", "Objet getObjetAlloue();", "public java.lang.String getExt1()\n {\n return this.ext1;\n }", "public String getExtendGroupName()\n {\n return this.extendGroup_name;\n }", "Properties getExtensionProperties(Object metadataID) throws Exception;", "public List<String> getExtensions() {\n if (this.extensions == null) {\n // alias?\n if (this.aliasOf != null) {\n return this.aliasOf.getExtensions();\n }\n }\n return this.extensions;\n }", "public boolean getIsExtensionsUsed() {\r\n\t\treturn mIsExtensionsUsed;\r\n\t}", "public Extent getExtent()\n {\n return this.getCurrentData().getExtent();\n }", "AdditionalRepresentation getAdditionalRepresentation();", "public boolean isSetExtendable()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().find_attribute_user(EXTENDABLE$22) != null;\r\n }\r\n }", "public org.openxmlformats.schemas.drawingml.x2006.main.CTOfficeArtExtensionList getExtLst()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.drawingml.x2006.main.CTOfficeArtExtensionList target = null;\n target = (org.openxmlformats.schemas.drawingml.x2006.main.CTOfficeArtExtensionList)get_store().find_element_user(EXTLST$28, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "public ObjectProperties getObjectProperties();", "public String getExtensions() {\n return extensions;\n }", "public String toString() {\n\t\treturn infExt + \" - \" + supExt;\n\t}", "public SchemaOrBoolean getAdditionalProperties() {\n\t\treturn additionalProperties;\n\t}", "public String getExtension() {\n return extension;\n }", "public String getExtension() {\n return extension;\n }", "public EntityInterface getDynamicExtensionsEntity()\r\n\t{\r\n\t\treturn entityInterface;\r\n\t}", "public String getExtension() {\n return extension;\n }", "public Object caseExtensibleElement(ExtensibleElement object) {\n\t\treturn null;\n\t}", "public String getSuperclass() {\n\t\treturn null;\n\t}", "@Override\n public String[] getExtensions() {\n return EXTENSIONS.clone();\n }", "public java.lang.String getExt2()\n {\n return this.ext2;\n }", "protected Map<String, Object> getAdditionalProperties()\n {\n return additionalProperties;\n }", "private JPanel getExtendedOptionsPanel() {\n\t\tif (extendedOptionsPanel == null) {\n\t\t\textendedOptionsPanel = new JPanel();\n\t\t\textendedOptionsPanel.setLayout(null);\n\t\t\textendedOptionsPanel.setBounds(new java.awt.Rectangle(2, 226, 465,\n\t\t\t\t\t62));\n\t\t\textendedOptionsPanel\n\t\t\t\t\t.setBorder(javax.swing.BorderFactory\n\t\t\t\t\t\t\t.createEtchedBorder(javax.swing.border.EtchedBorder.RAISED));\n\t\t\textendedOptionsPanel.add(getTypePolygonBufferPanel(), null);\n\t\t\textendedOptionsPanel.add(getNumBuffersPanel(), null);\n\t\t}\n\t\treturn extendedOptionsPanel;\n\t}", "public interface Extendable {\n void extend();\n}", "public Vertice GetExtremoInicial(){\r\n return this.Vi;\r\n }", "public String getExt2() {\n return ext2;\n }", "public org.openxmlformats.schemas.presentationml.x2006.main.CTExtensionList getExtLst()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.presentationml.x2006.main.CTExtensionList target = null;\n target = (org.openxmlformats.schemas.presentationml.x2006.main.CTExtensionList)get_store().find_element_user(EXTLST$14, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }" ]
[ "0.72109896", "0.70984316", "0.7057258", "0.70099145", "0.692318", "0.6796633", "0.67099625", "0.66950244", "0.6666644", "0.66092104", "0.6585284", "0.6585284", "0.6585284", "0.6546039", "0.6444632", "0.6418117", "0.6393968", "0.62384844", "0.6235552", "0.62122047", "0.6200044", "0.6196581", "0.6182683", "0.6165909", "0.6129923", "0.6080934", "0.60789645", "0.60789645", "0.60711765", "0.59487176", "0.59236354", "0.5898775", "0.58971846", "0.5894699", "0.5816117", "0.5806703", "0.5795975", "0.5790953", "0.5784631", "0.57482624", "0.5745367", "0.5744722", "0.5716823", "0.570304", "0.5691118", "0.56862485", "0.5681101", "0.56669897", "0.56651795", "0.56651795", "0.56651795", "0.56651795", "0.56651795", "0.56651795", "0.56651795", "0.5658738", "0.5648171", "0.56399024", "0.56398004", "0.56305635", "0.5614256", "0.56013453", "0.5601211", "0.5580543", "0.5578916", "0.5578372", "0.55731434", "0.5571298", "0.55643225", "0.55639815", "0.55444074", "0.5537343", "0.552183", "0.5517796", "0.55175537", "0.5508835", "0.54984003", "0.5486396", "0.54766244", "0.54332304", "0.5429202", "0.5426936", "0.5423591", "0.5422053", "0.54056495", "0.53900135", "0.5382477", "0.5382477", "0.53723764", "0.53671503", "0.536323", "0.5350199", "0.5344888", "0.53264326", "0.5326181", "0.53142256", "0.53095394", "0.53032017", "0.5294628", "0.5294307" ]
0.64903176
14
Calls the parent toString method and returns a String containing that information as well as the object's price and number fields.
@Override public String toString() { return super.toString() + " " + this.extended + " " + this.price + " " + this.number; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String toString() {\n return \"\" + year + \" \" + make + \" \" + model + \", \" + color + \", \" + getTrans() + \", $\" + price;\n }", "@Override\r\n public String toString() {\n return String.format(\"Title: %s%nPrice: %.2f%nDescription: %s%nRelease date: %s\",\r\n this.getTitle(), this.getPrice(), this.getDescription(), this.releaseDate);\r\n }", "public String toString()\n {\n \tNumberFormat fmt = NumberFormat.getCurrencyInstance();\n \tString item;\n \tif (name.length() >= 8)\n \t\titem = name + \"\\t\";\n \telse\n \t\titem = name + \"\\t\\t\";\n \treturn (item + \" \" + fmt.format(price) + \"\\t \" + quantity \n \t\t\t+ \"\\t\\t\" + fmt.format(price*quantity));\n }", "public String toString()\r\n\t{\r\n\t\tString output = \" \";\r\n\t\tString specialModifier = \" \";\r\n\t\tif(this.isSpecial())\r\n\t\t{\r\n\t\t\tspecialModifier = \" *\";\r\n\t\t}\r\n\t\t\t\r\n\t\toutput = String.format(\"%-9s%-5s%-19s%s%.2f\",getType(), specialModifier, this.getName(),\"$ \", this.getPrice());\r\n\t\t//code to be done here\r\n\t\t\r\n\t\t\r\n\t\treturn output;\r\n\t}", "public String toString() {\n if (inCatlog) {\n return name + \" \" + quantity + \" \" + price;\n }\n return name + \" \" + quantity;\n }", "@Override\r\n public String toString()\r\n {\r\n return String.format(\"%s: %n%s: %s (%s) %n%s: %d %n%s: $%,.2f\", \r\n \"invoice\", \"part number\", getPartNumber(), getPartDescription(), \r\n \"quantity\", getQuantity(), \"price per item\", getPricePerItem());\r\n }", "public String toString() {\n return getName() + \", \" + getAuthor() + \", \" + getPrice();\n }", "public String toString() {\r\n return \"Product: \" + this.product + \", Amount: \" + this.amount;\r\n }", "public String toString(){\n\t\tNumberFormat nf = NumberFormat.getCurrencyInstance();\r\n\t\tString lastprice = nf.format(this.price);\r\n\t\tString lasttprice = nf.format(this.bulkP);\r\n\t\tif (this.bulkQ == 0){\r\n\t\t\treturn (this.name + \", \" + lastprice);\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn this.name + \", \" + lastprice + \" (\" + bulkQ + \" for \" + lasttprice + \")\";\r\n\t\t}\r\n\t\t\r\n\t}", "public String toString(){\n\t String output = String.format(\"Ticket ##: %d\\nPrice: $%.2f\\n\", this.ticketNumber, this.getPrice());\n\t\treturn output;\n\t}", "@Override\r\n\tpublic String toString() {\r\n\t\treturn \"(\" + this.make + \", \" + this.yearMake + \", \" + this.numOfDoors + \", \" + this.price + \")\";\r\n\t}", "public String toString()\r\n {\r\n return super.toString() + \"\\nPrice: $\" + this.pizzaPrice();\r\n }", "public String toString(){\n\t\treturn String.format(\"Address: %s\\nType: %s\\nPrice: %.2f\\nOwner: %s\",getAddress(),getType(),getPrice(),getOwner());\n\t}", "@Override\n public String toString() {\n return \"stock: \" + stock + \"\\n\" +\n \"cost: \" + itemPrice + \"\\n\";\n }", "@Override\n\tpublic String toString() {\n\t\treturn String.format(\"%s: $%.2f\", name, price);\n\t}", "@Override\r\n\tpublic String toString()\r\n\t{\r\n\t\treturn new String(\"Le prix:\"+this.cost+\", Le tpsRep: \"+this.tpsRep);\r\n\t}", "public String toString(){\n return super.toString() +\n \"\\n\\tStock Price: $\" + currentStockPrice;\n }", "public String toString() {\n\t\tString str = \"\";\n\t\tstr = String.format(\"%.2f lbs. @ %.2f /lbs.\\n%s\\t%.2f \", this.getWeight(), getPrice(), this.getName(), this.getCost());\n\t\treturn str;\n\t}", "@Override\n public String toString(){\n return \"\" + item.name + \" \" + item.price + \" Coins\";\n }", "@Override\n public String toString() {\n String text = \"\";\n\n text += super.toString();\n text += \"Potatoes price per kilo: \" + potatoesPrice + \" €\"; \n return text;\n }", "@Override\r\n public String toString() \r\n { \r\n //Referenced: https://javarevisited.blogspot.com/2012/03/how-to-format-decimal-number-in-java.html\r\n DecimalFormat twoPlace = new DecimalFormat(\"##.00\");\r\n \r\n \r\n //Referenced: https://stackoverflow.com/questions/29038627/how-can-i-print-a-new-line-in-a-tostring-method-in-java\r\n return \"\\tFirst Name: \" + getFirstName() + \"\\n\" + \"\\tLast Name: \" + getLastName() + \"\\n\" + \"\\tTicket: \" + getTicketType() + \"(\" +getDesc() + \")\" \r\n + \"\\n\" + \"\\tPrice: $\" + twoPlace.format(getPrice()) + \"\\n\" + \"\\tVenue: \" + getVenueName() + \"\\n\" + \"\\tPerformance: \" + getPerformanceName() +\r\n \"\\n\" + \"\\tDate: \" + getPerformanceDate() + \"\\n\" + \"\\tTime: \" + getPerformanceTime();\r\n }", "public String toString(){\n return String.format(\"%s, %s, %s, %s, %s, %s\",make,model,variant, year, quantity,price);\n }", "public String toString() {\n\t\treturn \"\\t\" + this.getName() + \" \" + this.getAmount();\n\t}", "@Override\n public String toString() {\n return (getId() + \" \" + getName() + \" \" + getPrice() + \" \" + getStock() \n + \" \" + getMin() + \" \" + getMax());\n }", "public String toString() {\n return \"[Name: \" + itemName + \" Performance:\" + \" \" + itemAttribute + \" Price: \" + \" \" + itemPrice + \"]\";\n }", "@Override\n\tpublic String toString() {\n\t\treturn description + \", \" + billAmount + \", \" + tipAmount + \", \" + totalAmount;\n\t}", "public String toString()\n\t{\n\t\treturn this.value+\" \"+this.currency;\n\t}", "public String toString(){\n\t\treturn \"Title: \" + title + \"\\nAuthor: \" + author + \"\\nSubject: \" + subject + \"\\nisbn: \" + \n\t\t\t\t\tisbn + String.format( \"\\nPrice: $%.2f\", cost );\n\t}", "@Override\n public String toString() {\n StringBuilder builder = new StringBuilder();\n builder.append(itemName + \" \" + price + \"kr \" + tax + \"% \");\n return builder.toString();\n }", "@Override\n\tpublic String toString() {\n\t\tStringBuilder stringBuilder = new StringBuilder();\n\t\tstringBuilder\n\t\t\t\t.append(\"ID \").append(id).append(\"\\n\")\n\t\t\t\t.append(\"Date \").append(date).append(\"\\n\")\n\t\t\t\t.append(\"INVOICE_NUMBER \").append(invoiceNumber).append(\"\\n\")\n\t\t\t\t.append(\"CUSTOMER_ID \").append(customer.getId()).append(\"\\n\")\n\t\t\t\t.append(\"Name \").append(customer.getName()).append(\"\\n\")\n\t\t\t\t.append(\"Address \").append(customer.getAddress()).append(\"\\n\")\n\t\t\t\t.append(\"Products == \").append(\"\\n\");\n\t\tfor (Order o : orderList){\n\t\t\tstringBuilder\n\t\t\t\t\t.append(\"Product Manufac \").append(o.getManufacturer()).append(\"\\n\")\n\t\t\t\t\t.append(\"Product model \").append(o.getModel()).append(\"\\n\")\n\t\t\t\t\t.append(\"Product IEMI \").append(o.getImeiNumber()).append(\"\\n\")\n\t\t\t\t\t.append(\"Product Rate \").append(o.getRate()).append(\"\\n\")\n\t\t\t\t\t.append(\"Product ID\").append(o.getP().getId()).append(\"\\n\");\n\t\t}\n\t\tstringBuilder.append(\"Payment Mode \").append(paymentMode).append(\"\\n\");\n\t\treturn stringBuilder.toString();\n\t}", "public String toString()\n\t{\n\t\treturn (super.toString() + \" Weight: \" + weight + \" oz. Price: \" + cost());\n\t}", "public String toString() {\n if(this.getName()==null) {\n String output = String.format(\"%40.2f\\n\", this.getCost());\n return output;\n }else {\n String output = String.format(\"%-15s(IceCream)%15.2f\\n\\n%s(IceCream) calories:%.0f\\n\\n\",\n this.getName(),this.getCost(),this.getName(),this.getCalories());\n return output;\n /**\n * @return A string with the data from this class such as the name, cost, calories and formats the string by using the String.format method.\n */\n }\n\n }", "@Override\n public String toString() {\n\n //convert cents to dollars using cents2dollarsAndCents\n String output = DessertShoppe.cents2dollarsAndCents(this.getCost());\n //create string storing cost in a string \n String costLength = Integer.toString(this.getCost());\n //find spacing needed between name and cost in reciept by subtracting 30(total spaces) by \n //length of name and length of cost\n int spacing = 30 - super.getName().length() - costLength.length() - 1;\n //loop through an add a space each time up to \"spacing\" integer\n for (int i = 0; i < spacing; i++) {\n output = \" \" + output;\n }\n //return name of cookie along with cost along with the right format posting amount of pounds with cost per pound\n return this.weight + \" lbs. \" + \"@ $\" + DessertShoppe.cents2dollarsAndCents(this.pricePerLbs) + \" /lb.\\n\" + this.getName() + output;\n }", "@Override\n public String toString() {\n return \"Floor: \" + floor + \" Total Price: \" + price + \" Vehicle Type: \" + vehicleType + \" Hours: \" + hours; \n }", "@Override\n public String toString() {\n return super.toString() + pizzaPrice() + \".00\\n\";\n }", "@Override\n public String toString() {\n return product.toString() + \", Quantity: \" + quantity;\n }", "@Override\n public String toString() {\n return (getName() + \" (\" + getCost() + \")\");\n }", "public String toString()\r\n\t{\r\n\t\treturn String.format(\"%6d \" + super.getDescription() + \" \" +\r\n\t\t\t\tsuper.getPriority() + \" \" + \"%5d \" + super.getStatus() + \r\n\t\t\t\tdate, super.getIDNumber(), super.getOrder()); //make the Strings both a set length somehow\r\n\t}", "public String toString() {\n return String.format(\"%s:%n\\t%-10s: %s%n\\t%-10s: %s%n\\t%-10s: $%.2f%n\\t%-10s: %s%n\\t%-10s: %s%n\", \n \"Boat\", \"Model\", getVehicleModel(), \"Color\", getVehicleColor(), \"Cost\", getVehicleCost(), \n \"Type\", getBoatType(), \"Made of\", getBoatConstruct());\n }", "@Override\r\n public String toString() {\r\n \treturn \"{ id : \" + getId() + \", costo : \\\"\" + getCosto() + \", fecha : \\\"\" + getFecha() + \"\\\" }\" ; \r\n }", "public java.lang.String toString() {\n\t\tString s=\"\";\n\t\ts+=String.format(\"%.2f\", weight);\n\t\t//s+=Double.toString(weight);\n\t\ts+=\" lbs. @ \";\n\t\ts+=DessertShoppe.cents2dollarsAndCents(price_per_pound);\n\t\ts+=\" /lb.\\t \\n\";\n\t\ts+=String.format(\"%-25s%6s\\n\",name, DessertShoppe.cents2dollarsAndCents(this.getCost()));\n\t\treturn s;\n\t}", "public String toString() {\n return (\"Item: \" + itemCode + \" \" + itemName + \" \" + itemQuantityInStock + \" price: $\" + df.format(itemPrice) +\" cost: $\"+ df.format(itemCost) + \" farm supplier: \" + farmName);\n }", "public String toString(){\r\n String output = \"\";\r\n //Display the name \r\n output += this.name;\r\n //Turn the cost int in cents to a string in dollars\r\n String totalcost = DessertShoppe.cents2dollarsAndCents(getCost());\r\n //Print out a space between the name and where the cost needs to be\r\n for (int i = this.name.length(); i < DessertShoppe.RECEIPT_WIDTH - totalcost.length(); i++){\r\n output+=\" \";\r\n }\r\n //Print outt he cost string with the dollar sign\r\n output += totalcost;\r\n return output;\r\n \r\n }", "public String toString() {\n\t\tNumberFormat currency = NumberFormat.getCurrencyInstance();\n return \"\" + id + \"\\t\\t\" + currency.format(income) + \"\\t\" + members;\n }", "public void toStrings() {\n String output = \"\";\n output += \"Gen Price: $\" + genPrice + \"0\"+ \"\\n\";\n output += \"Bronze Price: $\" + bronzePrice +\"0\"+ \"\\n\";\n output += \"Silver Price: $\" + silverPrice +\"0\"+ \"\\n\";\n output += \"Gold Price: $\" + goldPrice +\"0\"+ \"\\n\";\n output += \"Vip Price: $\" + vipPrice +\"0\"+ \"\\n\";\n System.out.println(output);\n }", "public String toString(){\n return storeName + \"\\n\" + \n \t\tstoreAdress + \"\\n\" +\n \t\tdate + \"\\n\" + \n \t\ttime + \"\\n\" +\n \t\titemList + \"\\n\" +\n \t\t\"total price \" + totalPrice + \"\\n\" +\n \t\t\"total VAT price \" + String.format(\"%.2f\",totalVATPrice) + \"\\n\" +\n \t\t\"payed amount \" + cash + \"\\n\" +\n \t\t\"money back \" + change + \"\\n\" +\n \t\t\"discount \" + discount + \"\\n\";\n }", "public String toString() {\n\t\treturn String.format( \"%s: %s\\n%s: $%,.2f; %s:%.2f\",\r\n\t\t\t\t \"commission employee\", super.toString(),\r\n\t\t\t\t \"gross sales\", getGrossSales(),\r\n\t\t\t\t \"commission rate\", getCommissionRate() );\r\n\t}", "@Override\r\n\tpublic String toString() {\n\t\tString string=\"[\"+product.getName()+\" \"+number+\"]\";\r\n\t\treturn string;\r\n\t}", "@Override\n public String toString() {\n String printString;\n if (cents == 0) {\n printString = String.format(\"$%d.00\", dollars);\n } else {\n printString = String.format(\"$%d.%d\", dollars, cents);\n }\n return printString;\n }", "public String toString() {\n String ret = \"\\n*****\" + title + \"*****\" + \"\\n\" + description + \"\\nBusiness Contact: \" + contact\n + \"\\nSupply List: \";\n for (String supply : supplies) {\n ret += \"\\n-\" + supply;\n }\n ret += \"\\nPrice: $\" + price + \"\\n\";\n return ret;\n }", "@Override\n public String toString()\n {\n String str = \"\";\n str += \"\\n********* Receipt *********\\n\";\n str += \"Order Number: \" + orderNum + \"\\nDate: \" + date + \"\\n\";\n str += \"Bartender: \" + bartenderName + \", \" + \"Customer: \" + customerName + \"\\n\";\n str += \"Drinks: \";\n\n for(DrinkAndQuantity d : drinksAndQuantities){\n str += d.toString() + \", \";\n }\n str = str.substring(0, str.length() - 2);\n \n //get payment info\n String payValue = \"\";\n String payType = \"\";\n if(paid){\n payValue = \" Yes,\";\n payType = paymentType;\n }else{\n payValue = \" No,\";\n payType = paymentType;\n }\n \n str += \"\\n\";\n str += \"Paid: \" + payValue + \" \" + paymentType;\n \n //get price\n NumberFormat formatter = NumberFormat.getCurrencyInstance();\n String totalCurrency = formatter.format(totalPrice);\n str += \"\\n\";\n str += \"Total: \" + totalCurrency;\n str += \"\\n***************************\\n\";\n return str;\n }", "@Override\r\n\tpublic String toString() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\treturn \"Id: \" + this.id + \"\\tName: \" + this.name + \"\\tSinger: \" + this.singer \r\n\t\t\t\t+ \"\\tNumber of songs: \" + this.numberOfSongs + \"\\tPrice: \" + this.price;\r\n\t}", "public String toString() {\r\n int totalPrice = 0;\r\n for (Ticket ticket : tickets) {\r\n totalPrice += ticket.price;\r\n }\r\n StringBuilder stringBuilder = new StringBuilder();\r\n stringBuilder.append(\"Costo totale : \").append(totalPrice);\r\n stringBuilder.append(String.format(\" Itinerario numero: \", itinerary.id+1));\r\n for (Ticket ticket : tickets) {\r\n stringBuilder.append(String.format(\"(Ticket numero %d prezzo %d) + \",ticket.ticketNumber, ticket.price));\r\n }\r\n if (tickets.size() == 0)\r\n stringBuilder.append(\"Itinerario non possibile\");\r\n else\r\n stringBuilder.setLength(stringBuilder.length()-2);\r\n return stringBuilder.toString();\r\n\r\n }", "public String toString() {\r\n\t\treturn super.display() + \"\\n\" + listAllCards() + \r\n\t\t\t\t\"Purchased tickets: \\n\" + listAllTickets() +\r\n\t\t\t\t\"___________________________________________\";\r\n\t}", "public String toString()\n\t{\n\t\tField[] fields = this.getClass().getDeclaredFields();\n\t\tint i, max = fields.length;\n\t\tString fieldName = \"\";\n\t\tString fieldType = \"\";\n\t\tString ret = \"\";\n\t\tString value = \"\";\n\t\tboolean skip = false;\n\t\tint j = 0;\n\t\tfor(i = 0; i < max; i++)\n\t\t{\n\t\t\tfieldName = fields[i].getName().toString();\n\t\t\tfieldType = fields[i].getType().toString();\n\t\t\tif(i == 0)\n\t\t\t{\n\t\t\t\tret += \"{\";\n\t\t\t}\n\t\t\tif(fieldType.equals(\"int\") || fieldType.equals(\"long\") || fieldType.equals(\"float\") || fieldType.equals(\"double\") || fieldType.equals(\"boolean\"))\n\t\t\t{\n\t\t\t\ttry \n\t\t\t\t{\n\t\t\t\t\tvalue = fields[i].get(this).toString();\n\t\t\t\t} \n\t\t\t\tcatch (Exception e) \n\t\t\t\t{\n\t\t\t\t\tvalue = \"0\";\n\t\t\t\t}\n\t\t\t\tskip = false;\n\t\t\t}\n\t\t\telse if(fieldType.contains(\"String\"))\n\t\t\t{\n\t\t\t\ttry \n\t\t\t\t{\n\t\t\t\t\tvalue = \"\\\"\"+Utility.escapeJSON((String) fields[i].get(this))+\"\\\"\";\n\t\t\t\t} \n\t\t\t\tcatch (Exception e) \n\t\t\t\t{\n\t\t\t\t\tvalue = \"\\\"\"+\"\\\"\";\n\t\t\t\t}\n\t\t\t\tskip = false;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tvalue = \"\\\"\"+\"\\\"\";\n\t\t\t\tskip = true;\n\t\t\t}\n\t\t\tif(!skip)\n\t\t\t{\n\t\t\t\tif(j > 0)\n\t\t\t\t{\n\t\t\t\t\tret += \",\";\n\t\t\t\t}\n\t\t\t\tj++;\n\t\t\t\tret += \"\\r\\n\\t\\\"\"+fieldName+\"\\\":\"+value;\n\t\t\t}\n\t\t\tif(i == max-1)\n\t\t\t{\n\t\t\t\tret += \"\\r\\n}\";\n\t\t\t}\n\t\t}\n\t\treturn ret;\n\t}", "@Override\n public String toString() {\n String out = name + \", \" + price;\n if(!hasBulk) return out;\n out+= \" (\" + NumberFormat.getCurrencyInstance().format(bulkPrice) + \" for \" + (int)bulk + \")\";\n return out;\n }", "public String toString() {\n StringBuilder str = new StringBuilder(); \n str.append(\"NAME\\t TICKER\\t PRICE\\t # SHARES\\t\\n\"); \n str.append(String.format(\"%1$-\" + 15 + \"s\", \"NAME\") +\n String.format(\"%1$-\" + 15 + \"s\", \"TICKER\") +\n String.format(\"%1$-\" + 15 + \"s\", \"PRICE\") +\n String.format(\"%1$-\" + 15 + \"s\", \"# SHARES\")); \n /*\n for (Stock s : stocks) {\n str.append(String.format(\"%1$-\" + 15 + \"s\", s.getName()) +\n String.format(\"%1$-\" + 15 + \"s\", s.getTicker()) + \n String.format(\"%1$-\" + 15 + \"s\", s.getCurrentPrice().toString()) + \n String.format(\"%1$-\" + 15 + \"s\", s.getVolume())); \n str.append(\"\\n\");\n }\n */\n return str.toString(); \n }", "public String toString() {\n\t\treturn(\"\\nComputer Info:\" +\n\t\t\t \"\\nBrand: \" + brand +\n\t\t\t \"\\nModel: \" + model +\n\t\t\t \"\\nSN: \" + SN +\n\t\t\t \"\\nPrice: \" + price);\n\t}", "public String toString() {\n\t\treturn \"[\"+this.produto + \"]\" + \"[\"+ this.preco + \"]\"+\"[\"+ this.quantidade+\"]\";\n\t\t\t\t\n\t}", "public String toString() {\n\t\treturn getUserName() + \" quote: \" + getProduct() + \" \" + buy.getPrice() + \" x \" + buy.getRemainingVolume() \n\t\t\t\t+ \" (Original Vol: \" + buy.getOriginalVolume() + \", CXL'd Vol: \" + buy.getCancelledVolume()\n\t\t\t\t+ \") [\" + buy.getId() + \"]\"+ \" - \" + sell.getPrice() + \" x \" + sell.getRemainingVolume()\n\t\t\t\t+ \" (Original Vol: \" + sell.getOriginalVolume() + \", CXL'd Vol: \" + sell.getCancelledVolume()\n\t\t\t\t+ \") [\" + sell.getId() + \"]\";\n\t}", "public String toString() {\r\n\t\tString retVal = \"Description: \" + getDescription()+ \" Cost: \" + getCost() + \" Calories: \" + getCalories() ;\r\n\t\treturn retVal;\r\n\t}", "@Override\n public String toString() {\n int width = DessertShoppe.RECEIPT_WIDTH; //get the width of the receipt\n int widthCand = width - (super.getName()).length(); //get the width of the candy receipt\n\n //get all of the information needed to output for the given candy\n String output = this.weight + \" lbs. @ $\" + DessertShoppe.cents2dollarsAndCents(this.pricePerLbs) + \" /lb. \\n\" + super.getName();\n String candCost = DessertShoppe.cents2dollarsAndCents(this.getCost()); //get the cost of the candy\n output += String.format(\"%\" + widthCand + \"s%n\", candCost); //format the line to fi properly to the receipt\n return output; //return the formatted output\n }", "@Override\r\n public String toString() {\r\n String out = \"\";\r\n out += \"ID :\" + ID + AdsConstants.NEWLINE \r\n + \"title : \" + title + AdsConstants.NEWLINE \r\n + \"price : \" + price + AdsConstants.NEWLINE\r\n + \"price/m2 : \" + pricePerMeter + AdsConstants.NEWLINE\r\n + \"area : \" + area + AdsConstants.NEWLINE\r\n + \"city : \" + city + AdsConstants.NEWLINE\r\n + \"district : \" + district + AdsConstants.NEWLINE\r\n + \"street : \" + street + AdsConstants.NEWLINE\r\n + \"rooms : \" + numBedrooms + AdsConstants.NEWLINE\r\n + \"bathrooms : \" + numBathrooms + AdsConstants.NEWLINE\r\n + \"floor : \" + floor + AdsConstants.NEWLINE\r\n + \"floors in building : \" + numFloors + AdsConstants.NEWLINE\r\n + \"construction year : \" + constructionYear + AdsConstants.NEWLINE\r\n + \"description : \" + description + AdsConstants.NEWLINE\r\n + \"link : \" + link + AdsConstants.NEWLINE;\r\n \r\n return out;\r\n }", "@Override\n\tpublic String toString()\n\t\t{\n\t\tStringBuilder builder = new StringBuilder();\n\t\tbuilder.append(\"Voiture [prix=\");\n\t\tbuilder.append(this.prix);\n\t\tbuilder.append(\", poids=\");\n\t\tbuilder.append(this.poids);\n\t\tbuilder.append(\"]\");\n\t\treturn builder.toString();\n\t\t}", "public String toString()\r\n\t{\r\n\t\tString str = \"\"; \r\n\t\t\r\n\t\tfor(Option o : option)\r\n\t\t\tstr += o.getClass().getSimpleName() + \" \" + \"(\"+o.getPrix()+\"€)\"; \r\n\t\treturn ( \"+ \" + this.getMarque().getName() + \" : \" + getNom() + \" \" + this.moteur.toString() + \" \" + \"(\"+String.valueOf(getPrix())+\"€)\" + \" [\"+ str +\"]\" + \" d'une valeur totale de \" + this.prixTotal() + \" €\\n\" ) ; \r\n\t}", "@Override\r\n\tpublic String toString() {\r\n\t\treturn \"Refueling [OrderID=\" + OrderID + \", ownerID=\" + ownerID + \", CarNumber=\" + CarNumber + \", GasStation=\"\r\n\t\t\t\t+ GasStation + \", address=\" + address + \", GasType=\" + GasType + \", RateForLiter=\" + RateForLiter\r\n\t\t\t\t+ \", Qunatity=\" + Qunatity + \", Price=\" + Price + \", Date=\" + Date + \", pumpNumber=\" + pumpNumber\r\n\t\t\t\t+ \", service=\" + service + \", time=\" + time + \", saleID=\" + saleID + \"]\";\r\n\t}", "public String toString() {\r\n return this.date + getTab() + this.closingPrice + \" --> \" + this.futureOpeningPrice;\r\n }", "@Override public String toString() {\n return(trackingNumber + \" \" + type + \" \" + specification + \" \" + mailing + \" \" + weight + \" \" + volume);\n }", "@Override String toString();", "@Override\n\tpublic String toString() {\n\t\treturn amount + \" \" + currency; \n\t}", "@Override\n public String toString() {\n // TODO: Using Serializer\n return Serializer.toByteArray(this).toString();\n }", "@Override\r\n String toString();", "@Override public String toString();", "@Override\n\t//for log purposes only\n\tpublic String toString() {\n\t\treturn \"[\" + id + \", \" + business_id + \", \" + \"image\" + \", \" + details\n\t\t\t\t+\",\"+ category +\",\"+ price + \"]\";\n\t}", "public String toString(){\n return getName() + getDetails() + getPhone();\n }", "@Override\n\tpublic String toString() {\n\t\tStringBuffer result = new StringBuffer();\n\t\t\n\t\tresult.append(\"orderYear:\" + this.orderYear);\n\t\tresult.append(\"clashDate:\" + this.clashDate);\n\t\tresult.append(\"clashBirthYear:\" + this.clashBirthYear);\n\t\tresult.append(\"name:\" + this.name);\n\t\tresult.append(\"householder:\" + this.householder);\n\t\t\n\t\treturn result.toString();\n\t}", "public String toString() {\n\t\treturn String.format(\"%.0f-%s note [%d]\", this.getValue(),this.getCurrency(),this.getSerial());\n\t}", "@Override // Inherited from the Object class.\n public String toString() {\n return \"gear: \" + gear + \" cadence: \" + cadence + \" speed: \" + speed +\n \" name: \" + name;\n }", "@Override\n public String toString()\n {\n return String.format(\"%s %s%s: $%,.2f%n%s: %.2f%n\", \"commission\", super\n .toString(), \"gross sales\", getGrossSales(), \"commission rate\",\n getCommissionRate());\n }", "public String toString() {\n\treturn \"--------------------\" +\n\t\t\t\"\\n ID: \" + this.book_id +\n\t\t\t\"\\n Title: \" + this.title +\n\t\t\t\"\\n Author: \" + this.author +\n\t\t\t\"\\n Year: \" + this.year +\n\t\t\t\"\\n Edition: \" + this.edition +\n\t\t\t\"\\n Publisher: \" + this.publisher +\n\t\t\t\"\\n ISBN: \" + this.isbn +\n\t\t\t\"\\n Cover: \" + this.cover +\n\t\t\t\"\\n Condition: \" + this.condition +\n\t\t\t\"\\n Price: \" + this.price +\n\t\t\t\"\\n Notes: \" + this.notes +\n\t\t\t\"\\n--------------------\";\n}", "@Override\n\tpublic String toString()\n\t{\n\t\tint qty = quantity;\n\n\t\tif ( qty > 999 )\n\t\t\tqty = 999;\n\n\t\treturn Utility.pad(title, TITLE_LENGTH) + ' ' + Utility.pad(qty, QUANTITY_LENGTH) + ' ' + status.getCode() + ' ' + Utility.pad(price, PRICE_LENGTH);\n\t}", "public String toString() {\n return ToStringBuilder.reflectionToString(this);\n }", "public String toString()\n\t{\n\t\treturn String.format(\"%-25s%-15s\\n%-25s%-15s\\n%-25s%-15s\\n%-25s%-15d\\n%-25s%-15s\\n%-25s$%,-13.2f\", \n\t\t\t\t \t\t \t \"Name\", this.getName(), \"Address:\", this.getAddress(), \"Telephone number:\", this.getTelephone(), \n\t\t\t\t \t\t \t \"Customer Number:\", this.getCustNum(), \"Email notifications:\", this.getSignedUp() == true ? \"Yes\" : \"No\",\n\t\t\t\t \t\t \t \"Purchase amount:\", this.getCustomerPurchase());\n\t}", "public String toString() {\n return \"{ isbn: '\" + this.isbn + \"', title:'\" + this.title + \"', year: '\"\n + this.year + \"'}\";\n }", "public String toString() {\n System.out.println(this.getName() +\":\");\n System.out.println(\"Balance: $\" + this.getBalance());\n System.out.println(\"Monthly Interest: $\" + this.getMonthlyInterest());\n System.out.println(\"Date Created: \" + this.getDateCreated());\n System.out.println();\n return \"\";\n }", "@Override\n public String toString() {\n return new Gson().toJson(this);\n }", "@Override\n\tpublic String toString() {\n\t\treturn \"Holder = \" + getHolder()\n\t\t\t\t+ \" Balance = \" + getBalance()\n\t\t\t\t+ \" Creation Date = \" + getCreationDate().toString();\n\t}", "@Override\n public String toString (){\n return \"Party name is \" + this.partyName + \" total cost is \" + this.totalCost;\n }", "@Override\n public String toString(){\n return String.format(\"%s%s%s%n%s%s%n \",super.toString(),\"The taxes is \",calcTaxes(),\n \"The total cost is \",calcCost());\n }", "@Override\n\tpublic String toString() \n {\n\t\tString output_variable=super.toString()+\"\\nDISCOUNT PERCENTAGE : \"+discountRate+\"\\n\"+\n\t\t\t\"PRICE AFTER DISCOUNT : \"+getUnitPrice();\n\t\treturn output_variable;\n\t}", "public String toString() {\n String output = \"The bag of bouncy balls cost $\" + this.price + \" and contains these balls:\";\n for (BouncyBall b: bBalls) {\n output += b.toString() + \"\\n\";\n }\n return output;\n }", "@Override\n public /*final*/ String toString() {\n return name + \" / \" + address + \" / \" + salary;\n }", "@Override\r\n\tpublic String toString();", "@Override\n public String toString() {\n StringBuilder builder = new StringBuilder();\n if(validItem) {\n builder.append(amount);\n builder.append(\"x\\t\" + itemInfo.getName() + \"\\n\");\n builder.append(\"Item description:\\n\" + itemInfo.getDescription() + \"\\n\");\n } else {\n builder.append(\"INVALID ITEM\\n\");\n }\n builder.append(\"Running total: \");\n builder.append(salePrice);\n builder.append(\"\\n\");\n return builder.toString();\n }", "public String toString() {\n final StringBuilder buffer = new StringBuilder() ;\n final DecimalFormat df = new DecimalFormat( \"#00.00\" ) ;\n\n buffer.append( StringUtil.rightPad( this.symbol, 20 ) ) ;\n buffer.append( StringUtil.leftPad( \"\" + getNumActiveCashUnits(), 5 ) ) ;\n buffer.append( StringUtil.leftPad( df.format( this.avgCashUnitPrice ), 10 ) ) ;\n buffer.append( StringUtil.leftPad( df.format( this.realizedProfit ), 10 ) ) ;\n buffer.append( StringUtil.leftPad( df.format( getUnRealizedCashProfit() ), 10 ) ) ;\n\n return buffer.toString() ;\n }", "@Override\n public String toString(){\n String s = \"\";\n for(int i = 0; i < stock.size(); i++){\n s += \"Number: \" + i + \"\\n\" + stock.get(i).toString() + \"\\n\";\n }\n return s;\n }", "public String toString() {\n\t\treturn super.toString();\n\t\t// This gives stack overflows:\n\t\t// return ToStringBuilder.reflectionToString(this);\n\t}", "public String toString() {\n final StringBuffer sb = new StringBuffer();\n sb.append(\"\\n [ Id: \" + id + \" ]\");\n sb.append(\"\\n [ ClassName: \" + className + \" ]\");\n sb.append(\"\\n [ MethodName : \" + methodName + \" ]\");\n if (bextraInfo) {\n for (int i = 0; i < extraInfo.length; i++) {\n sb.append(\n \"\\n [ Parameter \" + i + \" : \" + extraInfo[i]\n + \" ]\");\n }\n }\n sb.append(\"\\n [ Calendar: \" + cal + \" ]\");\n sb.append(\"\\n [ TimeMillis: \" + timeMillis + \" ] \");\n sb.append(\"\\n \");\n return sb.toString();\n }", "@Override\n public String toString() {\n final StringBuilder sb = new StringBuilder(\"AbstractStock{\");\n sb.append(\"stockSymbol='\").append(stockSymbol).append('\\'');\n sb.append(\", lastDividend=\").append(formatter.format(lastDividend));\n sb.append(\", parValue=\").append(formatter.format(parValue));\n sb.append(\", stockPrice=\").append(formatter.format(stockPrice));\n sb.append('}');\n return sb.toString();\n }", "public String toString(){ \n\t\tString s = String.format(\"%s: %d, rating: %f, price:%f\", TITLE, YEAR_RELEASED, user_rating, getPrice());\n\t\treturn s; \n\t}" ]
[ "0.7639203", "0.7636561", "0.761229", "0.76084495", "0.75986505", "0.75831515", "0.75803477", "0.75788397", "0.754419", "0.7542515", "0.75320715", "0.7523225", "0.7519028", "0.747472", "0.7456658", "0.74418575", "0.7440514", "0.7438833", "0.74290323", "0.7425461", "0.7422977", "0.7412966", "0.7410061", "0.7395103", "0.735748", "0.733182", "0.72937775", "0.72881526", "0.7285796", "0.72694093", "0.72683847", "0.7254011", "0.72507805", "0.7238082", "0.72379076", "0.7204978", "0.71838516", "0.7170889", "0.71616095", "0.71599144", "0.7153806", "0.7149928", "0.7146525", "0.71434486", "0.714174", "0.71415126", "0.71354663", "0.7130298", "0.712887", "0.7121906", "0.7115665", "0.7111882", "0.7106921", "0.70962423", "0.7088998", "0.7081606", "0.7067191", "0.7062573", "0.7050214", "0.7047871", "0.7040627", "0.70340884", "0.7025258", "0.7021282", "0.7020113", "0.7015607", "0.7013504", "0.701294", "0.70030725", "0.69962543", "0.69952625", "0.6994941", "0.6993222", "0.69927746", "0.6992145", "0.6991473", "0.6990683", "0.6978366", "0.6975057", "0.6970706", "0.69659334", "0.69632095", "0.69611174", "0.69595563", "0.6946028", "0.6944719", "0.69409466", "0.6934946", "0.69293433", "0.69231486", "0.6922467", "0.69182116", "0.69161016", "0.6913825", "0.6910427", "0.69093174", "0.6909086", "0.6907463", "0.6906374", "0.6899687" ]
0.8303827
0
Calculates the cost of the Etf by multiplying price by number
@Override public double cost() { return this.price * this.number; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "double computePrintingCost(double price){\n //TODO calculate price and return it\n return price * printer.countCharactersPrinted();\n }", "double calculatePrice();", "public double calculateCost() {\n double output = price * (1 + taxRate);\n return output;\n }", "private void calculatePrice(int quantity) {\n int price = quantity * priceOfCoffee;\n }", "public void printCost() {\r\n double cost;\r\n cost = quantity * price;\r\n System.out.printf(\"Total cost = $%.2f\", cost);\r\n }", "public double cost()\n\t{\n\t\treturn (price * weight);\n\t}", "public static double calculations(int quantity, double cost) {\r\n\tdouble price = 0;\r\n\tprice = quantity*cost;\r\n\treturn price = price+calculateTax(price);\r\n\t}", "private int calculatePrice() {\n int price = numberOfCoffees * 5;\n\n return price;\n\n\n }", "private void calculatePrice(int quantity, int pricePerCup) {\n int price = quantity * pricePerCup;\n }", "public double calcCost() {\n if (pizzaSize.equals(\"small\")) {\n return 10.0 + ((cheeseToppings + pepperoniToppings + veggieToppings) * 2);\n\n }\n else if (pizzaSize.equals(\"medium\")) {\n return 12.0 + ((cheeseToppings + pepperoniToppings + veggieToppings) * 2);\n }\n else {\n return 14.0 + ((cheeseToppings + pepperoniToppings + veggieToppings) * 2);\n }\n }", "float calculatePrice () \n\t{\n\t\tfloat final_price = 0;\n\t\tfinal_price = (float)(price * quantity); // price * number of items\n\t\tfinal_price += final_price*(.10); // add tax\n\t\tif(perishable.equals(\"P\"))\n\t\t{\n\t\t\tfloat ship = (float)(20* weight)*quantity; // add shipping\n\t\t\tship += ship*.20;\n\t\t\tfinal_price += ship;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tfinal_price += (20* weight)*quantity; // add shipping\n\t\t}\n\t\treturn final_price;\n\t}", "double ComputeCost(double order, double tipPercent, double serviceRating, double foodRating)\r\n {\r\n // kazda gwiazdka to 2 procent od sumy zamówienia\r\n return order + order * (tipPercent/100) + (serviceRating * 0.02) * order + (foodRating * 0.02) * order;\r\n }", "public double calcCost() {\n // $2 per topping.\n double cost = 2 * (this.cheese + this.pepperoni + this.ham);\n // size cost\n switch (this.size) {\n case \"small\":\n cost += 10;\n break;\n case \"medium\":\n cost += 12;\n break;\n case \"large\":\n cost += 14;\n break;\n default:\n }\n return cost;\n }", "@Override\n\tpublic double cost() {\n\t\tdouble price = good.cost();\n\t\treturn price+price/2;\n\t}", "private double calcuFcost() {\n\t\treturn num * configMap.get('r') + (num-1) * configMap.get('l') + num * configMap.get('f') + configMap.get('t');\n\t}", "private void calculatePrice() {\n\t\tint temp = controller.getQualityPrice(hotel.getText(), quality.getText());\n\n\t\ttemp *= getDays();\n\n\t\tif (discountChoice > 0) {\n\t\t\tdouble discountTmp = (double) discountChoice / 100;\n\t\t\ttemp *= (1.00 - discountTmp);\n\t\t}\n\n\t\tprice.setText(Integer.toString(temp));\n\n\t}", "double getCost();", "double getCost();", "public double getCost() {\n return quantity*ppu;\n\n }", "void calculate() {\n if (price <= 1000)\n price = price - (price * 2 / 100);\n else if (price > 1000 && price <= 3000)\n price = price - (price * 10 / 100);\n else\n price = price - (price * 15 / 100);\n }", "public double calculatePrice(){\r\n\t\treturn getBasePrice()+getBasePrice()*getVat()+(getBasePrice()+getBasePrice()*getVat())*0.3;\r\n\t}", "public double calculatingCostO(int quantity)\n { \n cost = 750 + (0.25 * quantity);\n return cost;\n \n }", "public float getTotalPrice(){\n return price * amount;\n }", "@Override\n public double calcCost() {\n return calcSalesFee()+calcTaxes();\n }", "double getTotalCost();", "@Override\n\tpublic double getCost() {\n\t\treturn price * weight; // cost = price of the candy * weight of candies\n\t}", "public void compute(){\r\n\r\n\t\ttotalCost=(capAmount*CAPCOST)+(hoodyAmount*HOODYCOST)+(shirtAmount*SHIRTCOST);\r\n\t}", "public double getCost() {\n return price;\n }", "@Override\n public int getCost() {\n int price = (int) Math.round(this.weight * this.pricePerLbs); //get the price of the cookies in the form of an int\n return price; //return the price\n\n }", "public abstract double getCost();", "public int calcMarketPrice() {\r\n player = Context.getInstance().getPlayer();\r\n //Random r = new Random();\r\n int techLevel = player.getCurrentPlanet().getTechLevel();\r\n Event event = player.getCurrentPlanet().getEvent();\r\n Resource resource = player.getCurrentPlanet().getResource();\r\n double price = basePrice;\r\n price += (ipl * (techLevel - mtlb)) + variance;\r\n if (player.getCurrentPlanet().getTechLevel() == this.ttp) {\r\n price *= Context.TECH_PRICE_MULT;\r\n }\r\n if (event.equals(this.ie)) {\r\n price *= event.getUpMult();\r\n } else if (event.equals(this.de)) {\r\n price *= event.getDownMult();\r\n }\r\n if (resource.equals(this.cr)) {\r\n price *= resource.getDownMult();\r\n } else if (resource.equals(this.er)) {\r\n price *= resource.getUpMult();\r\n }\r\n price *= (((double) player.getTrader() / DFIFTY) + 1.0);\r\n int finalPrice = (int) price;\r\n if (player.getTrader() > 0) {\r\n double discountedPrice = price;\r\n double trader = (double) player.getTrader();\r\n discountedPrice -= (price) * (4.0 * trader / PERCENT);\r\n return (int) discountedPrice;\r\n } else {\r\n return finalPrice;\r\n }\r\n }", "public int getCost() {\n\t\treturn (int) Math.round(weight*price_per_pound);\n\t\t\n\t}", "@Override\r\n\tpublic double getCost() {\r\n\t\tdouble total = 0;\r\n\t\t\r\n\t\tfor(Product p: parts) {\r\n\t\t\ttotal += p.getCost();\r\n\t\t}\r\n\t\t\r\n\t\treturn total;\r\n\t}", "public double calculateCost(Purchase purchase);", "double calculateNewPrice(double discount_rate, double price);", "@Override\n\tpublic double cost() {\n\t\treturn Double.parseDouble(rateOfLatte);\n\t}", "private void calcPrice() {\n double itemPrice = 0;\n \n //get price of burger (base)\n if (singleRad.isSelected())\n {\n itemPrice = 3.50;\n }\n else \n {\n itemPrice = 4.75;\n }\n \n //check options add to item price\n if(cheeseCheckbox.isSelected())\n itemPrice = itemPrice += 0.50;\n if(baconCheckbox.isSelected())\n itemPrice = itemPrice += 1.25;\n if(mealCheckbox.isSelected())\n itemPrice = itemPrice += 4.00;\n \n //include the quantity for the item price\n int quantity= 1;\n if (quantityTextField.getText().equals(\"\"))\n quantityTextField.setText(\"1\");\n quantity = Integer.parseInt(quantityTextField.getText());\n itemPrice = itemPrice * quantity;\n\n \n //show the price no $ symbol\n \n itemPriceTextField.setText(d2.format(itemPrice));\n }", "public abstract double cost(List<Drink> drinks, Double originalPrice, String pattern);", "public double cost() {\n\t\t\n\t\treturn 150.00;\n\t}", "public int calculatePrice() {\n int price = 5;\n if(hasWhippedCream) {\n price += 1;\n }\n if(hasChocolate) {\n price += 2;\n }\n return quantity * price;\n }", "@Override\n public int getCost() {\n return iceCreamPrice + topPrice;\n }", "public static double Cost(double boxes, double Cost) {\n\tdouble pay = boxes * Cost;\n\treturn pay;\n}", "double purchasePrice();", "@Override\n\tpublic double getPrice() {\n\n\t\tfor(Car temPart:listPart){\n\t\t\tthis.totalCost +=temPart.getPrice();\n\t\t}\n\t\treturn totalCost;\n\t}", "private void calculateCosts() {\r\n lb_CubicSum.setText(UtilityFormat.getStringForLabel(getColmunSum(tc_Volume)) + \" €\");\r\n lb_MaterialCostSum.setText(UtilityFormat.getStringForLabel(getColmunSum(tc_Price)) + \" €\");\r\n lb_CuttingTimeSum.setText(UtilityFormat.getStringForLabel(getColmunSum(tc_CuttingHours)) + \" €\");\r\n lb_CuttingCostSum.setText(UtilityFormat.getStringForLabel(getColmunSum(tc_CuttingPrice)) + \" €\");\r\n lb_TotalCosts.setText(UtilityFormat.getStringForLabel(getColmunSum(tc_CuttingPrice) + getColmunSum(tc_Price)) + \" €\");\r\n\r\n ModifyController.getInstance().setProject_constructionmaterialList(Boolean.TRUE);\r\n }", "BigDecimal getPrice();", "public void calcPrice() {\r\n\t\tsuper.price = 3 * super.height;\r\n\t}", "@Override\n public USMoney calculatePrice() {\n USMoney sumPrice = new USMoney();\n for (int i = 0; i < curArrayIndex; i++) {\n sumPrice = sumPrice.add(items[i].getPrice());\n if (items[i].isFragile()) {\n sumPrice.addTo(10, 0);\n }\n }\n sumPrice.addTo(100, 0);\n return sumPrice;\n }", "public double calcular_costo() {\n\t\t return 1.3*peso+30 ;\n\t}", "double getPrice();", "double getPrice();", "double getPrice();", "public double getCost() {\n\t\t\n\t\tdouble cost = 0;\n\t\t\n\t\tif (Objects.equals(Size, \"small\"))\n\t\t\tcost = 7.00;\n\t\telse if (Objects.equals(Size, \"medium\"))\n\t\t\tcost = 9.00;\n\t\telse if (Objects.equals(Size, \"large\"))\n\t\t\tcost = 11.00;\n\t\t\n\t\tcost += (Cheese - 1)*1.50;\n\t\tcost += Ham*1.50;\n\t\tcost += Pepperoni*1.50;\n\t\t\n\t\treturn cost;\t\t\n\t}", "public double getCost() {\n\t\treturn 1.25;\n\t}", "int getCost();", "int getCost();", "int getCost();", "public double calculatePrice(Model model)\n\t{\n\t\t//sum each of the price components price value\n\t\tString finalprice = \"\";\n\t\tdouble pc_price = -1, lower_limit = -1, upper_limit = -1, function_price = -1,finalvalue=0;\n\t\tfor(PriceComponent pc : this.priceComponents)\n\t\t{\n\t\t\tpc_price = -1; lower_limit = -1; upper_limit = -1;function_price = -1;\n\t\t\t//get the variables and define their value\n\t\t\tif(pc.getPriceFunction() != null)\n\t\t\t{\n\t\t\t\tif (pc.getPriceFunction().getSPARQLFunction() != null) {\n\t\t\t\t\tcom.hp.hpl.jena.query.Query q = ARQFactory.get().createQuery(pc.getPriceFunction().getSPARQLFunction());\n\t\t\t\t\tQueryExecution qexecc = ARQFactory.get().createQueryExecution(q, model);\t\n\t\t\t\t\t\n\t\t\t\t\tResultSet rsc = qexecc.execSelect();\n//\t\t\t\t\tSystem.out.println(q.toString());\n\t\t\t\t\tfunction_price = rsc.nextSolution().getLiteral(\"result\").getDouble();// final result is store in the ?result variable of the query\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (pc.getComponentCap() != null) {\n\t\t\t\tupper_limit = pc.getComponentCap().getValue();\n\t\t\t}\n\n\t\t\tif (pc.getComponentFloor() != null) {\n\t\t\t\tlower_limit =pc.getComponentFloor().getValue();\n\t\t\t}\n\n\t\t\tif (pc.getPrice() != null) {\n\t\t\t\tpc_price = pc.getPrice().getValue();\n\t\t\t}\n\t\t\t\n\t\t\tif(function_price >=0)\n\t\t\t{\n\t\t\t\tif(function_price > upper_limit && upper_limit >= 0)\n\t\t\t\t\tfunction_price = upper_limit;\n\t\t\t\telse if(function_price < lower_limit && lower_limit >=0)\n\t\t\t\t\tfunction_price = lower_limit;\n\t\t\t}\n\t\t\t\n\t\t\tif(pc_price >= 0)\n\t\t\t{\n\t\t\t\tif(pc_price > upper_limit && upper_limit >=0)\n\t\t\t\t\tpc_price = upper_limit;\n\t\t\t\telse if(pc_price < lower_limit && lower_limit >= 0)\n\t\t\t\t\tpc_price = lower_limit;\n\t\t\t}\n\t\t\t\n\t\t\tif(pc.getPrice() != null && pc.getPriceFunction() != null)\n\t\t\t\tSystem.out.println(\"Dynamic and static price? offer->\"+this.name+\",pc->\"+pc.getName() + \"price ->\"+pc_price);//throw expection?\n\t\t\t\n\t\t\t\n\t\t\tif(pc.isDeduction())\n\t\t\t{\n\t\t\t\tif(function_price >= 0)\n\t\t\t\t{\n\t\t\t\t\tfinalprice = finalprice+\" - \" +function_price;\n\t\t\t\t\tfinalvalue-=function_price;\n\t\t\t\t}\n\t\t\t\tif(pc_price >= 0)\n\t\t\t\t{\n\t\t\t\t\tfinalprice = finalprice+\" - \" +pc_price;\n\t\t\t\t\tfinalvalue-=pc_price;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(function_price >= 0)\n\t\t\t\t{\n\t\t\t\t\tfinalprice = finalprice+\" + \" +function_price;\n\t\t\t\t\tfinalvalue+=function_price;\n\t\t\t\t}\n\t\t\t\tif(pc_price >= 0)\n\t\t\t\t{\n\t\t\t\t\tfinalprice = finalprice+\" + \" +pc_price;\n\t\t\t\t\tfinalvalue+=pc_price;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//conditions to verify that the final price is inside the interval defined by the lower and upper limit, in case these exist\n\t\tif(this.getPriceCap() != null)\n\t\t{\n\t\t\tif(this.getPriceCap().getValue() >= 0 && finalvalue < this.getPriceCap().getValue())\n\t\t\t\tfinalvalue = this.getPriceCap().getValue();\n\t\t}\n\t\tif(this.getPriceFloor() != null)\n\t\t{\n\t\t\tif(this.getPriceFloor().getValue() >= 0 && finalvalue > this.getPriceFloor().getValue())\n\t\t\t\tfinalvalue = this.getPriceFloor().getValue();\n\t\t}\n\t\t\t\t\n\t\treturn finalvalue;\n\t}", "public double calculatePrice() {\r\n\t\treturn menuItem.getPrice() * quantity;\t\r\n\t}", "@Override\n public double getCost() {\n\t return 13;\n }", "@Override\n\tpublic double cost() {\n\t\treturn 2.19;\n\t}", "public double getProductCost() {\r\n\t\treturn (this.getPricePerUnit() * this.getNumUnits());\r\n\t}", "public void totalprice(float tprice)\n {\n \t this.mTotalPrice=tprice;\n }", "private String getBillPrice() {\n double cost = 0.00;\n\n for (MenuItem item : bill.getItems()) {\n cost += (item.getPrice() * item.getQuantity());\n cost += item.getExtraIngredientPrice();\n cost -= item.getRemovedIngredientsPrice();\n }\n\n return String.format(\"%.2f\", cost);\n }", "public double calculatePrice(double a, int b) {\n\t\treturn a * b;\r\n\t}", "double setCost(double cost);", "public void setCost(double value) {\n this.cost = value;\n }", "double calculateDeliveryCost(Cart cart);", "public double price(){\n if (basePrice() >1000){\n return basePrice() *0.95;\n }else\n return basePrice() * 0.98;\n }", "@Pure\n\tdouble getCost();", "public double calculatePrice(Order order){\r\n return order.quantity * order.itemPrice -\r\n Math.max(0, order.quantity - 500) * order.itemPrice * 0.05 +\r\n Math.min(order.quantity * order.itemPrice * 0.1, 100);\r\n }", "public double getCost() {\n double price = 0;\n price += this.numPizzas * this.pizzaType.getCost();\n if(this.numPizzas >= 20) // Discount if >=20 pizzas\n return price * 0.9;\n else if(this.numPizzas >= 10) // Discount if between 10 and 20 pizzas\n return price * 0.95;\n return price; // No discount\n }", "public static double foodCaloriesToElectronVolts(double num) { return (num*2.6*Math.exp(22)); }", "public float totalCost() {\r\n float total = 0;\r\n for (int i=0; i<numItems; i++) {\r\n total += cart[i].getPrice();\r\n }\r\n return total;\r\n }", "public double calculateSubTotal() {\n return candy.getPrice() * quantity;\n\n }", "abstract public double getPrice();", "public void setCost(double cost){\n this.cost = cost;\n }", "@Override\n\tvoid get_cost_per_sqarefeet() {\n\t\tcost=1800;\n\t}", "@Override\n\tpublic double cost() {\n\t\treturn 10000;\n\t}", "public double calculatePrice() {\n return 0;\n }", "BigDecimal calculateTotalPrice(Order order);", "private void displayPrice(int number) {\n }", "public BigDecimal\tgetPrice();", "public float getPrice(float litres, float area, float cost) {\n\t\t\n\t\tfloat value = (litres * area) / cost;\n\t\treturn value;\n\t}", "public void calculate(View v) {\n EditText inputBill = findViewById(R.id.inputBill);\n EditText inputTipPercent = findViewById(R.id.inputTipPercent);\n String num1Str = inputBill.getText().toString();\n String num2Str = inputTipPercent.getText().toString();\n\n // multiply Bill by Tip to get Tip in dollars\n double num1 = Double.parseDouble(num1Str);\n double num2 = Double.parseDouble(num2Str);\n double tipInDollar = num1 * (num2 / 100);\n double total = num1 + tipInDollar;\n\n // show tip in dollars\n TextView lblTipAmount = findViewById(R.id.lblTipAmount);\n lblTipAmount.setText(String.valueOf(tipInDollar));\n\n // show total price with tip included\n TextView lblTotalAmount = findViewById(R.id.lblTotalAmount);\n lblTotalAmount.setText(String.valueOf(total));\n }", "public BigDecimal getCostPrice() {\n return costPrice;\n }", "public void calculateOrderCost(){\n int tmpCost=0;\n for (Vehicle v : vehicleList){\n tmpCost+=v.getCost();\n }\n totalCost=tmpCost;\n }", "public void calculateCost()\n\t{\n\t\tLogManager lgmngr = LogManager.getLogManager(); \n\t\tLogger log = lgmngr.getLogger(Logger.GLOBAL_LOGGER_NAME);\n\t\tString s = \"\";\n\t\tint costperfeet = 0;\n\t\tif (this.materialStandard.equals(\"standard materials\") && this.fullyAutomated == false)\n\t\t\tcostperfeet = 1200;\n\t\telse if (this.materialStandard.equals(\"above standard materials\") && this.fullyAutomated == false)\n\t\t\tcostperfeet = 1500;\n\t\telse if(this.materialStandard.equals(\"high standard materials\") && this.fullyAutomated == false)\n\t\t\tcostperfeet = 1800;\n\t\telse if (this.materialStandard.equals(\"high standard materials\") && this.fullyAutomated == true)\n\t\t\tcostperfeet = 2500;\n\t\t\n\t\tint totalCost = costperfeet * this.totalArea;\n\t\t/*s = \"Total Cost of Construction is :- \";\n\t\twriter.printf(\"%s\" + totalCost, s);\n\t\twriter.flush();*/\n\t\tlog.log(Level.INFO, \"Total Cost of Construction is :- \" + totalCost);\n\t}", "public BigDecimal getPriceActual();", "public static void setPrice() {\n double summe = 0.0;\n for (Object obj : dlm.getDisplayedArtikel()) {\n if (obj instanceof Article) {\n Article art = (Article) obj;\n if (!art.isIsAbfrage()) {\n if (((art.isJugendSchutz() && art.isJugendSchutzOk())) || !art.isJugendSchutz()) {\n if (art.isEloadingAmmountOk() && !art.isPriceZero()) {\n summe += ((Article) ((obj))).getPreis() * ((Article) ((obj))).getAmount();\n }\n }\n }\n } else if (obj instanceof Karte) {\n Karte card = (Karte) obj;\n summe += card.getAufladung() / 100;\n }\n }\n for (Object obj : dlm.getRemovedObjects()) {\n if (obj instanceof Article) {\n if (!((Article) ((obj))).isStorno_error()) {\n summe -= ((Article) ((obj))).getPreis() * ((Article) ((obj))).getAmount();\n }\n } else if (obj instanceof Karte) {\n Karte card = (Karte) obj;\n summe -= card.getAufladung() / 100;\n }\n }\n if (Math.round(summe) == 0) {\n summe = 0;\n }\n if (GUIOperations.isTraining()) {\n summe += 1000;\n }\n tfSumme.setText(String.format(\"%.2f\", summe));\n }", "private CharSequence calculateTotalPrice() {\n float totalPrice = 0.0f;\n totalPrice += UserScreen.fishingRodQuantity * 25.50;\n totalPrice += UserScreen.hockeyStickQuantity * 99.99;\n totalPrice += UserScreen.runningShoesQuantity * 85.99;\n totalPrice += UserScreen.proteinBarQuantity * 5.25;\n totalPrice += UserScreen.skatesQuantity * 50.79;\n return Float.toString(totalPrice);\n }", "public float getPrice(String code){\n\t \t\n\t \t ProduceNode p = LinkedList.first.next;\n\t \t for(int i=0; i<LinkedList.getLength(); i++)\n\t \t\t{\n\t \t\t if(p.data.getCode().equals(code))\n\t \t\t\n\t \t\t\treturn p.data.getPrice();\n\t \t p = p.next;\n\t \t\t}\n\t \t return 0.00f; \n\t }", "public void calculateCost() {\n \tdouble costToShipPack;\n \tint numOfPacks = 1;\n \t\n \tfor(Package p: this.packages) {\n \t\tcostToShipPack = 3 + (p.calcVolume() - 1);\n \t\tthis.totalAmounts.put(\"Package \"+numOfPacks, costToShipPack);\n \t\tnumOfPacks++;\n \t}\n \t\n }", "public double calcTotal(){\n\t\tdouble total; // amount to be returned\n\t\t\n\t\t// add .50 cents for any milk that isn't whole or skim, and .35 cents for flavoring\n\t\tif ((milk != \"whole\" && milk != \"skim\") && flavor != \"no\"){\n\t\t\tcost += 0.85;\t\n\t\t}\n\t\t\n\t\t// add .35 cents for flavoring\n\t\telse if (flavor != \"no\"){\n\t\t\tcost += 0.35;\t\n\t\t}\n\t\t\n\t\t// add .50 cents for milk that isn't whole or skim\n\t\telse if (milk != \"whole\" && milk != \"skim\"){\n\t\t\tcost += 0.50;\n\t\t}\n\t\t\n\t\telse{\n\t\t}\n\t\t\n\t\t// add .50 cents for extra shot of espresso\n\t\tif (extraShot != false){\n\t\t\ttotal = cost + 0.50;\n\t\t}\n\t\telse\n\t\t\ttotal = cost;\n\t\t\n\t\treturn total;\n\t}", "public double getPrice()\n\t{\n\t\treturn this.totalPrice + this.getFlightCosts() + this.excursionSubTotal\n\t\t\t\t+ this.getLodgingCost();\n\t}", "void setCost(double cost);", "public abstract int getCost();", "public abstract int getCost();", "public abstract int getCost();", "Sum getMultiplier();" ]
[ "0.6991205", "0.6977344", "0.6977079", "0.6880554", "0.685816", "0.67364997", "0.67234576", "0.6689609", "0.6655126", "0.6640917", "0.6598223", "0.6562455", "0.6562197", "0.6559596", "0.65439945", "0.65226674", "0.64909106", "0.64909106", "0.6488158", "0.64442575", "0.64339244", "0.6433084", "0.6412772", "0.64011073", "0.6393", "0.63792324", "0.637056", "0.636616", "0.63542736", "0.6347206", "0.63427246", "0.63404983", "0.63267326", "0.6317182", "0.63077575", "0.6306009", "0.629904", "0.62754875", "0.6209368", "0.6203839", "0.6181229", "0.61622894", "0.6158613", "0.6148557", "0.61467296", "0.61458105", "0.61381716", "0.61329997", "0.61295915", "0.6120668", "0.6120668", "0.6120668", "0.610508", "0.60879135", "0.6061564", "0.6061564", "0.6061564", "0.6059547", "0.6055133", "0.6054829", "0.6049115", "0.60454863", "0.60436785", "0.60372794", "0.6036731", "0.6036489", "0.60200566", "0.60129076", "0.6006648", "0.6003321", "0.60012084", "0.5998322", "0.5989805", "0.59811854", "0.5978781", "0.5969005", "0.5948537", "0.59478563", "0.594502", "0.5942549", "0.59391415", "0.59136206", "0.5908891", "0.589993", "0.5892298", "0.58916175", "0.5891305", "0.5882199", "0.58671576", "0.5864196", "0.58532935", "0.5845694", "0.58455485", "0.58430934", "0.5842849", "0.58319384", "0.5824363", "0.5824363", "0.5824363", "0.5819503" ]
0.7373127
0
bu fonsiyon time limiti gecemedi. 475 / 476 test cases passed.
public static String reverseString(String s) { String reverse = ""; int length = s.length(); for(int i=0; i<length; i++){ //reverse += (s.charAt(length-1-i) + ""); reverse = reverse.concat(s.charAt(length-i-1) + ""); } return reverse; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(timeout = 4000)\n public void test12() throws Throwable {\n Player player0 = new Player();\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"y\");\n player0.reset(true);\n Player player1 = new Player((-1817));\n player0.reset(false);\n System.setCurrentTimeMillis((short)4919);\n System.setCurrentTimeMillis((short)4919);\n player1.isJoinOK(player0, false);\n System.setCurrentTimeMillis(2413L);\n }", "protected int maxTimeout() { return 15*1000*1000; }", "@Test(timeout = 4000)\n public void test05() throws Throwable {\n Player player0 = new Player();\n player0.setZ(0.0F);\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n player0.gangStrength();\n player0.getX();\n player0.setMoney((-291.8F));\n System.setCurrentTimeMillis(3085L);\n }", "@Test(timeout = 4000)\n public void test25() throws Throwable {\n String string0 = EWrapperMsgGenerator.tickOptionComputation(3033, 611, 186.275786794074, (-1.0), 186.275786794074, 40);\n assertEquals(\"id=3033 unknown: vol = 186.275786794074 delta = -1.0\", string0);\n }", "@Test(timeout = 4000)\n public void test27() throws Throwable {\n String string0 = EWrapperMsgGenerator.tickPrice(Integer.MAX_VALUE, Integer.MAX_VALUE, 0.0, (-2146710316));\n assertEquals(\"id=2147483647 unknown=0.0 canAutoExecute\", string0);\n }", "@Test\n public void testTimeOutOn() {\n // set up the world\n World world = makeWorld();\n \n // make the projectile\n ProjectileDefinition projectileDefinition = new ProjectileDefinition(0,\n \"testProjectileBaseCase\", \"resources/projectiles/test.png\", 0,\n 0, 1, 30, true, 10000, false, 0);\n\n Entity projectile = ProjectileEntities.createProjectile(world,\n projectileDefinition, 30, 30, null);\n \n ProjectileComponent pc = world.getComponent(projectile, ProjectileComponent.class).get();\n \n // Go just below the 10\n for (double total = 0; Math.abs(total - 10) > 0.01; total += 0.2) {\n // run the world\n world.process(total, 0.2);\n \n // the projectile should be there\n assertTrue(\"There should be a projectile that's alive\", \n isProjectileAlive(world, projectile));\n }\n \n world.process(10, 0.2);\n \n assertTrue(\"The projectile should be destroyed\", \n isProjectileDestroyed(world, projectile));\n }", "@Test(timeout = 4000)\n public void test49() throws Throwable {\n String string0 = EWrapperMsgGenerator.currentTime((-532L));\n assertEquals(\"current time = -532 (Dec 31, 1969 11:51:08 PM)\", string0);\n }", "@Test(timeout = 4000)\n public void test15() throws Throwable {\n Discretize discretize0 = new Discretize(\"\");\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"\");\n discretize0.listOptions();\n String[] stringArray0 = discretize0.getOptions();\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(4, stringArray0.length);\n }", "@Test(groups = { \"simple\" }, timeOut = TIMEOUT)\n public void maxValueExceedingDefinedLimitStillWorksWithoutException() throws Exception {\n\n this.beforeTest(CosmosMetricCategory.DEFAULT);\n\n try {\n Tag dummyOperationTag = Tag.of(TagName.Operation.toString(), \"TestDummy\");\n Timer latencyMeter = Timer\n .builder(\"cosmos.client.op.latency\")\n .description(\"Operation latency\")\n .maximumExpectedValue(Duration.ofSeconds(300))\n .publishPercentiles(0.95, 0.99)\n .publishPercentileHistogram(true)\n .tags(Collections.singleton(dummyOperationTag))\n .register(this.meterRegistry);\n latencyMeter.record(Duration.ofSeconds(600));\n\n Meter requestLatencyMeter = this.assertMetrics(\n \"cosmos.client.op.latency\",\n true,\n dummyOperationTag);\n\n List<Measurement> measurements = new ArrayList<>();\n requestLatencyMeter.measure().forEach(measurements::add);\n\n assertThat(measurements.size()).isEqualTo(3);\n\n assertThat(measurements.get(0).getStatistic().getTagValueRepresentation()).isEqualTo(\"count\");\n assertThat(measurements.get(0).getValue()).isEqualTo(1);\n assertThat(measurements.get(1).getStatistic().getTagValueRepresentation()).isEqualTo(\"total\");\n assertThat(measurements.get(1).getValue()).isEqualTo(600 * 1000); // transform into milliseconds\n assertThat(measurements.get(2).getStatistic().getTagValueRepresentation()).isEqualTo(\"max\");\n assertThat(measurements.get(2).getValue()).isEqualTo(600 * 1000); // transform into milliseconds\n } finally {\n this.afterTest();\n }\n }", "public static void printTimelimit() {\n\t\n\tSystem.out.println(\"Time Limit \" + timeLimit);\n\t\n}", "public void testTime()\n {\n SudokuTimer test = new SudokuTimer();\n\n mTimer.start();\n test.start();\n\n for (int i = 0; i < 1000000000; i++)\n {\n }\n\n assertTrue(mTimer.toString().equals(test.toString()));\n\n mTimer.stop();\n\n for (int i = 0; i < 1000000000; i++)\n {\n }\n\n assertFalse(mTimer.toString().equals(test.toString()));\n\n test.stop();\n mTimer.start();\n\n for (int i = 0; i < 1000000000; i++)\n {\n }\n\n mTimer.stop();\n\n //checks to the nearest second\n assertEquals(mTimer.getElapsedTime() / 1000,\n test.getElapsedTime() / 1000);\n }", "@Test(timeout = 4000)\n public void test50() throws Throwable {\n String string0 = EWrapperMsgGenerator.tickEFP((-2147), 10, 10, \".^|7={wR>bl,rlfYN\", 10, 484, \".^|7={wR>bl,rlfYN\", 484, 484);\n assertEquals(\"id=-2147 bidOptComp: basisPoints = 10.0/.^|7={wR>bl,rlfYN impliedFuture = 10.0 holdDays = 484 futureExpiry = .^|7={wR>bl,rlfYN dividendImpact = 484.0 dividends to expiry = 484.0\", string0);\n }", "@Test\r\n void timeoutNotExceeded() {\n assertTimeout(ofMinutes(2), () -> {\r\n // Perform task that takes less than 2 minutes.\r\n });\r\n }", "protected int minTimeout() { return 500; }", "@Test\n @Tag(\"slow\")\n public void testSTANDMPS() {\n CuteNetlibCase.doTest(\"STANDMPS.SIF\", \"1406.0175\", null, NumberContext.of(7, 4));\n }", "@Test\n\t\tpublic void woeIsMeUnreachabletest() {\n\t\t\tassertTrue(System.currentTimeMillis() > 0);\n\t\t}", "@Test\n\tpublic void test() throws InterruptedException {\n\t\tString firstTime = Time.main();\n\t\tString[] splitFirst = firstTime.split(\":\");\n\t\tThread.sleep(5000);\n\t\tString secondTime = Time.main();\n\t\tString[] splitSecond = secondTime.split(\":\");\n\t\t\n\t\t\n\t\tif(Integer.parseInt(splitFirst[2])>=55) //if first time was >= 55 seconds\n\t\t{\n\t\t\tassertEquals(Integer.parseInt(splitSecond[2]),(Integer.parseInt(splitFirst[2])+5)%60); //seconds should increase by 5 mod 60\n\n\t\t\tif(Integer.parseInt(splitFirst[1])==59) //if first time was 59 minutes\n\t\t\t{ \n\t\t\t\tassertTrue(splitFirst[1].equals(\"00\")); //reset to zero minutes\n\t\t\t\t\n\t\t\t\tif(Integer.parseInt(splitFirst[0])==23) //if first time was 23 hours\n\t\t\t\t\tassertTrue(splitFirst[0].equals(\"00\")); //reset to zero hours\n\t\t\t\telse //if first time is not 23 hours\n\t\t\t\t\tassertEquals(Integer.parseInt(splitFirst[0])+1, Integer.parseInt(splitSecond[0])); //hours should increase by 1\n\t\t\t}\n\t\t\telse //if first time was not 59 minutes\n\t\t\t{\n\t\t\t\tassertEquals(Integer.parseInt(splitFirst[1])+1, Integer.parseInt(splitSecond[1])); //minutes should increase by 1\n\t\t\t\tassertTrue(splitFirst[0].equals(splitSecond[0])); //hours should not change\n\t\t\t}\n\t\t}\n\t\telse //if first time was <= 55 seconds\n\t\t{\n\t\t\tassertEquals(Integer.parseInt(splitSecond[2]),(Integer.parseInt(splitFirst[2])+5)); //seconds should increase by 5\n\t\t\tassertTrue(splitFirst[1].equals(splitSecond[1])); //minutes should not change\n\t\t\tassertTrue(splitFirst[0].equals(splitSecond[0])); //hours should not change\n\t\t\t\n\t\t}\n\t\t\n\t}", "public String waitTimeConroller(long start) throws NumberFormatException, IOException {\n\t\t\t\tdouble sec = waitTimeCalculatior(start)/1000;\n\t\t\t\tlong testStart = convertStringToLong(fileScanner(\"start.time\"));\n\t\t\t\tint limit = 0;\n\t\t\t\t\n\t\t\t\tif ((sec >= 15) && (sec < 30)) { limit = 15; }\n\t\t\t\tif ((sec >= 30) && (sec < 60)) { limit = 30; }\n\t\t\t\tif (sec >= 60) { limit = 60; }\n\t\t\t\t\n\t\t\t\tif (sec >= 15) {\n\t\t\t\tfileWriterPrinter(\"Waiting time exceeded limit of \" + new DecimalFormat(\"0.000\").format(limit) + \" seconds!\");\n\t\t\t\tfileWriter(\"wait.log\", \" Test: #\" + fileScanner(\"test.num\"));\t\n\t\t\t\tfileWriter(\"wait.log\", \" Started: \" + convertCalendarMillisecondsAsLongToDateTimeHourMinSec(testStart));\n\t\t\t\tfileWriter(\"wait.log\", \" Event: \" + convertCalendarMillisecondsAsLongToDateTimeHourMinSec(start));\n\t\t\t\tfileWriter(\"wait.log\", \" XML Path: \" + fileScanner(\"xml.path\"));\n\t\t\t\tfileWriter(\"wait.log\", \" Waiting time is \" + sec + \" sec, which exceeds limit of \" + new DecimalFormat(\"0.000\").format(limit) + \" seconds!\");\n\t\t\t\tfileWriterPrinter(\"wait.log\", \"\");\n\t\t\t\t}\n\t\t\t\treturn padNum(sec);\n\t\t\t}", "@Test(timeout = 4000)\n public void test14() throws Throwable {\n FileSystemHandling.shouldThrowIOException((EvoSuiteFile) null);\n Player player0 = new Player(4906);\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"Qw_WlDP-TE\");\n Player player1 = new Player(4906);\n Player player2 = new Player((-1098));\n player0.setJoinOK(player2, false);\n player1.setJoinOK(player0, true);\n player0.isJoinOK(player2, true);\n System.setCurrentTimeMillis(4906);\n }", "@Test\n public void testTimeOutOver() {\n // set up the world\n World world = makeWorld();\n \n // make the projectile\n ProjectileDefinition projectileDefinition = new ProjectileDefinition(0,\n \"testProjectileBaseCase\", \"resources/projectiles/test.png\", 0,\n 0, 1, 30, true, 10000, false, 0);\n\n Entity projectile = ProjectileEntities.createProjectile(world,\n projectileDefinition, 30, 30, null);\n \n world.getComponent(projectile, ProjectileComponent.class).get();\n \n // Go just below the 10\n for (double total = 0; Math.abs(total - 10) > 0.01 && total < 10;\n total += 0.3) {\n // run the world\n world.process(total, 0.3);\n \n // the projectile should be there\n assertTrue(\"There should be a projectile that's alive\", \n isProjectileAlive(world, projectile));\n }\n \n world.process(10.2, 0.3);\n \n assertTrue(\"The projectile should be destroyed\", \n isProjectileDestroyed(world, projectile));\n }", "@Test(timeout = 4000)\n public void test52() throws Throwable {\n String string0 = EWrapperMsgGenerator.tickSize(6372, 3, 2146363568);\n assertEquals(\"id=6372 askSize=2146363568\", string0);\n }", "@Test\n @Tag(\"slow\")\n public void test25FV47() {\n CuteNetlibCase.doTest(\"25FV47.SIF\", \"5501.845888286646\", null, NumberContext.of(7, 4));\n }", "public static void main(String[] args) throws InterruptedException {\n int limit = args.length == 1 ? Integer.parseInt(args[0]) : 1000;\n int[] values = new int[20000000];\n values[500000] = -2;\n values[1000000] = -1;\n values[1500000] = -3;\n long[] times = new long[limit];\n for (int round = 0; round < limit; round++) {\n long start = System.currentTimeMillis();\n int smallest = min(values);\n long end = System.currentTimeMillis();\n times[round] = end - start;\n }\n System.out.println(\"Average time taken (ms): \" + Arrays.stream(times).sum() / limit);\n }", "@Test\n public void testHighLimitAlarm() throws Exception {\n it(\"monitor should set a high alarm when receiving real encoder high limit using real HCD to generate data\");\n testLimitAlarm(highLimitAlarm, 2000.0, AssemblyTestData.maxReasonableStage);\n }", "@Test\n void should_ReturnRunWithIn500Ms_when_1000ListItemsIsGiven(){\n //given\n List<Apartment> apartments = new ArrayList<>();\n for (int i = 0; i < 1000; i++) {\n apartments.add(ApartmentRaterTest.this.randomApartmentGenerator.generate());\n }\n\n //when\n Executable executable = () -> ApartmentRater.calculateAverageRating(apartments);\n\n assertTimeout(Duration.ofMillis(500), executable);\n\n }", "@Test\n @Tag(\"slow\")\n public void testKEN_07() {\n CuteNetlibCase.doTest(\"KEN-07.SIF\", \"-6.795204433816869E8\", \"-1.61949281194431E8\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test11() throws Throwable {\n Player player0 = new Player((-310));\n FileSystemHandling.shouldThrowIOException((EvoSuiteFile) null);\n player0.isConnected();\n System.setCurrentTimeMillis(1392409281320L);\n }", "private static float tock(){\n\t\treturn (System.currentTimeMillis() - startTime);\n\t}", "@Test\n public void testTimelyTest() {\n }", "@Test(timeout = 4000)\n public void test19() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.getCutPoints((-2276));\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n }", "@Test(timeout = 4000)\n public void test05() throws Throwable {\n String string0 = EWrapperMsgGenerator.tickOptionComputation(98, (-2146523664), 1.0, 0.0, 98, 568.38);\n assertEquals(\"id=98 unknown: vol = 1.0 delta = 0.0\", string0);\n }", "public static void main(String[] args) throws Exception {\n getBestTime();\n }", "@Test\n public void testLowLimitAlarm() throws Exception {\n it(\"monitor should set a low alarm when receiving real encoder low limit using real HCD to generate data\");\n testLimitAlarm(lowLimitAlarm, 0.0, 100.0);\n }", "@Test(timeout = 4000)\n public void test15() throws Throwable {\n FileSystemHandling.shouldThrowIOException((EvoSuiteFile) null);\n Player player0 = new Player(4906);\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"Qw_WlDP-TE\");\n Player player1 = new Player((short)4919);\n player0.setJoinOK(player1, false);\n boolean boolean0 = player0.isJoinOK(player1, false);\n assertTrue(boolean0);\n assertEquals(0L, player1.getTimeOfDeath());\n assertFalse(player1.isDead());\n assertEquals(10.0F, player1.getX(), 0.01F);\n assertTrue(player1.isConnected());\n assertEquals(0.0F, player1.getY(), 0.01F);\n assertEquals(1, player1.getStrength());\n assertEquals(0, player1.getPictureId());\n assertEquals(\"Player4919\", player1.toString());\n assertEquals(\"0.0.0.0\", player1.getIP());\n }", "private static boolean m34124lF(long j) {\n AppMethodBeat.m2504i(114773);\n if (sJU == null) {\n AppMethodBeat.m2505o(114773);\n return false;\n }\n C4990ab.m7417i(\"MicroMsg.TrafficClickFlow\", \"clickObjects : %s\", sJU.toString());\n for (int i = 0; i < sJU.size(); i++) {\n if (Math.abs(j - ((C22439a) sJU.get(i)).time) < 10000) {\n AppMethodBeat.m2505o(114773);\n return true;\n }\n }\n AppMethodBeat.m2505o(114773);\n return false;\n }", "int getTestDuration() {\n return config.big ? TEST_TIME_SECONDS : TEST_TIME_SECONDS / 10;\n }", "@Test\n public void is_restaurant_open_should_return_true_if_time_is_between_opening_and_closing_time_Failure_Scenario(){\n\n int isRestaurantOpened = restaurant.isRestaurantOpen().size();\n restaurant.isRestaurantOpen(\"Invalid Input\");\n assertEquals(\"Invalid Input\",restaurant.isRestaurantOpen().size());\n System.out.println(\"Enter proper timing in proper format 23:00:00\")\n\n }", "@Test(timeout = 4000)\n public void test28() throws Throwable {\n String string0 = EWrapperMsgGenerator.tickPrice((-1), 13, Integer.MAX_VALUE, 0);\n assertEquals(\"id=-1 modelOptComp=2.147483647E9 noAutoExecute\", string0);\n }", "@Test\n public void testHighLimitEvent() throws Exception {\n it(\"monitor should set a high alarm when receiving simulated encoder high limit\");\n testLimitEvent(testHighLimitEvent, highLimitAlarm);\n }", "@Test(priority=8)\n\tpublic void campaign_user_with_valid_limit() throws URISyntaxException, ClientProtocolException, IOException, ParseException{\n\t\ttest = extent.startTest(\"campaign_user_with_valid_limit\", \"To validate whether user is able to get campaign through campaign/user api with valid limit value\");\n\t\ttest.assignCategory(\"CFA GET /campaign/user API\");\n\t\ttest_data = HelperClass.readTestData(class_name, \"campaign_user_with_valid_limit\");\n\t\tList<NameValuePair> nvps = new ArrayList<NameValuePair>();\n\t\tnvps.add(new BasicNameValuePair(\"limit\", String.valueOf(Constants.GROUP_LEVEL)));\n\t\tCloseableHttpResponse response = HelperClass.make_get_request(\"/v2/campaign/user\", access_token, nvps);\n\t\tAssert.assertTrue(!(response.getStatusLine().getStatusCode() == 500 || response.getStatusLine().getStatusCode() == 401), \"Invalid status code is displayed. \"+ \"Returned Status: \"+response.getStatusLine().getStatusCode()+\" \"+response.getStatusLine().getReasonPhrase());\n\t\ttest.log(LogStatus.INFO, \"Execute campaign/user api method with valid limit value\");\n\t\tBufferedReader rd = new BufferedReader(new InputStreamReader(response.getEntity().getContent()));\n\t\tString line = \"\";\n\t\twhile ((line = rd.readLine()) != null) {\n\t\t // Convert response to JSON object\t\n\t\t JSONParser parser = new JSONParser();\n\t\t JSONObject response_json = (JSONObject) parser.parse(line);\n\t\t JSONArray camp_data_array = (JSONArray)response_json.get(\"data\");\n\t\t Assert.assertEquals(response_json.get(\"result\"), \"success\", \"API does not return success when valid limit value is entered.\");\n\t\t test.log(LogStatus.PASS, \"API returns success when valid limit value is entered.\");\n\t\t Assert.assertEquals(response_json.get(\"err\"), null, \"err is not null when valid limit value is entered.\");\n\t\t test.log(LogStatus.PASS, \"err is null when valid limit value is entered.\");\n\t\t // Check whether campaign list returns number of records defined in limit\n\t\t Assert.assertEquals(camp_data_array.size(), Constants.GROUP_LEVEL, \"Campaign list does not return number of records defined in limit\");\n\t\t test.log(LogStatus.PASS, \"Check whether campaign list returns number of records defined in limit\");\n\t\t JSONObject first_campaign = (JSONObject) camp_data_array.get(0);\n\t\t JSONArray campaign_users = (JSONArray) first_campaign.get(\"users\");\n\t\t Assert.assertFalse(campaign_users.size() == Constants.GROUP_LEVEL,\"Users list is also limited with limit value\");\n\t\t test.log(LogStatus.INFO, \"Check Users list is also limited with limit value\");\n\t\t}\n\t}", "public void testGetStartTime() {\n assertTrue(mb.getStartTime() > -1);\n }", "public static void dormir(long milis)\r\n\t{\r\n\t\tlong inicial=System.currentTimeMillis();\r\n\t\twhile(System.currentTimeMillis()-inicial < milis) {/*Esperar a que pase el tiempo*/}\r\n\t}", "@Test\n @Tag(\"slow\")\n public void testSTANDGUB() {\n CuteNetlibCase.doTest(\"STANDGUB.SIF\", \"1257.6995\", null, NumberContext.of(7, 4));\n }", "@Test public void shouldGive240MinFor950cent() {\r\n // Three hours: $1.5+2.0+3.0\r\n assertEquals( 4 * 60 /*minutes*/ , rs.calculateTime(950) ); \r\n }", "@Test\n public void test_distanceLinaireSurX_distanceLinaireSurX_ParcourOptimum_Pour_4villes() {\n\n Pays pays = new Pays(4);\n\n int positionY = (int) (Math.random() * 50);\n\n pays.setPositionVille(0, new Point(2, positionY));\n pays.setPositionVille(1, new Point(3, positionY));\n pays.setPositionVille(2, new Point(4, positionY));\n pays.setPositionVille(3, new Point(5, positionY));\n\n brutForceV3.recherche(pays, 0);\n\n assertEquals(\"0>1>2>3>0\", brutForceV3.getParcours().getVillesEmprunté());\n assertEquals(brutForceV3.getParcours().getDistance(),\n parcoursVilles(pays, brutForceV3.getParcours().getVillesEmprunté(),\">\"));\n\n }", "@Test\n @Tag(\"slow\")\n public void testWOOD1P() {\n CuteNetlibCase.doTest(\"WOOD1P.SIF\", \"1.44290241157344\", \"9.99999999999964\", NumberContext.of(7, 4));\n }", "void finnPrimtall(){\n\t\tlong antPrimtall = maxtall;\r\n\t\tantPrimtall=antPrimtall*antPrimtall;\r\n\t\tlong time=maxtall/2666666;\r\n\t\tSystem.out.println(\"tester for antPrimtall: \" + antPrimtall);\r\n\t\tlong tid = System.nanoTime();\r\n\t\tfor (long i=antPrimtall-100; i<antPrimtall; i++) {\r\n\t\t\tSystem.out.print(i + \" = \");\r\n\t\t\tfaktorisering(i);\r\n\t\t\tSystem.out.println(\" \");\r\n\t\t\ttry{Thread.sleep(time);}catch(Exception e){}\r\n\t\t}\r\n\t\tSystem.out.println(\"tid pa sekvensiel faktorisering: \" + ((System.nanoTime()-tid)/1000000.0) + \" ms\");\r\n\t\tSystem.out.println();\r\n\t}", "@Test\n @Tag(\"slow\")\n public void testMODSZK1() {\n CuteNetlibCase.doTest(\"MODSZK1.SIF\", \"320.6197293824883\", null, NumberContext.of(7, 4));\n }", "public int getNortpTimeout();", "@Test\n @Tag(\"slow\")\n public void testWOODW() {\n CuteNetlibCase.doTest(\"WOODW.SIF\", \"1.30447633308416\", \"6.463675062936\", NumberContext.of(7, 4));\n }", "@Test\n public void test_distanceLinaireSurY_ParcourOptimum_Pour_4villes() {\n\n Pays pays = new Pays(4);\n\n int positionX = (int) (Math.random() * 50);\n\n pays.setPositionVille(0, new Point(positionX, 2));\n pays.setPositionVille(1, new Point(positionX, 3));\n pays.setPositionVille(2, new Point(positionX, 4));\n pays.setPositionVille(3, new Point(positionX, 5));\n\n brutForceV3.recherche(pays, 0);\n\n assertEquals(\"0>1>2>3>0\", brutForceV3.getParcours().getVillesEmprunté());\n assertEquals(brutForceV3.getParcours().getDistance(),\n parcoursVilles(pays, brutForceV3.getParcours().getVillesEmprunté(),\">\"));\n\n }", "private void checkTimeout() {\n val timeout = config.getInt(\"timeout\");\n\n checkArgument(timeout >= 1000, \"timeout is less than 1000!\");\n }", "static void runIt() throws IOException {\n\t\t String inFName = \"resource/C-large.in\";\n//\t\tString outFName = \"resource/C-small.out\";\n\t\t String outFName = \"resource/C-large.out\";\n\n\t\tBufferedReader in = new BufferedReader(new FileReader(inFName));\n\t\tPrintWriter out = new PrintWriter(new File(outFName));\n\n\t\tint testCases = Integer.parseInt(in.readLine());\n\n\t\tfor (int i = 0; i < testCases; ++i) {\n\n\t\t\tString line[] = in.readLine().split(\" \");\n//\t\t\tSystem.out.println(line);\n\t\t\tStringBuilder output = new StringBuilder();\n\t\t\toutput.append(\"Case #\" + (i + 1) + \": \");\n\n\t\t\tint R = Integer.parseInt(line[0]);\n\t\t\tint K = Integer.parseInt(line[1]);\n\t\t\tlong euros = 0;\n\t\t\tint pass = 0;\n\t\t\tline = in.readLine().split(\" \");\n\t\t\tVector<Integer> queue = new Vector<Integer>();\n\t\t\tVector<Integer> first = new Vector<Integer>();\n\t\t\tfor (String string : line) {\n\t\t\t\tqueue.add(Integer.parseInt(string));\n\t\t\t\tfirst.add(Integer.parseInt(string));\n\t\t\t\t\n\t\t\t}\n\n\n\t\t\tfor (int time = 0; time < R; ++time) {\n\t\t\t\tint p = 0;\n\t\t\t\twhile (true) {\n\t\t\t\t\tif (p < queue.size()) {\n\t\t\t\t\t\tInteger g = queue.elementAt(p++);\n\t\t\t\t\t\tif (pass + g <= K) {\n\t\t\t\t\t\t\tpass += g;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tfor (int kk = 1; kk < p; ++kk) {\n\t\t\t\t\tInteger m = queue.remove(0);\n\t\t\t\t\tqueue.add(m);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\teuros += pass;\n\t\t\t\tpass=0;\n\t\t\t\tif(queue.equals(first)){\n\t\t\t\t\tint s = R/(time+1);\n\t\t\t\t\teuros*=s;\n\t\t\t\t\ttime *=s;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\toutput.append(euros);\n\t\t\tSystem.out.println(output);\n\t\t\tout.println(output);\n\t\t}\n\n\t\tin.close();\n\t\tout.flush();\n\t\tout.close();\n\t}", "@Test\n @Tag(\"slow\")\n public void testFIT1P() {\n CuteNetlibCase.doTest(\"FIT1P.SIF\", \"9146.378092420955\", null, NumberContext.of(7, 4));\n }", "@Override\n public void run() {\n time_ = (int) (System.currentTimeMillis() - startTime_) / 1000;\n updateUI();\n\n if (time_ >= maxTime_) {\n // Log.v(VUphone.tag, \"TimerTask.run() entering timeout\");\n handler_.post(new Runnable() {\n public void run() {\n report(true);\n }\n });\n }\n }", "private static void testLongLoop() {\n test(1000 * 1000 * 1000);\n //uncomment the following line to see the hand-written cache performance\n //testManual( 1000 * 1000 * 1000 );\n }", "private static void testLongLoop() {\n test(1000 * 1000 * 1000);\n //uncomment the following line to see the hand-written cache performance\n //testManual( 1000 * 1000 * 1000 );\n }", "@Test\n\tpublic void test() {\n\t\tGameStart game = new GameStart();\n\t\tnew LwjglApplication(game, \"Unit Test\", 800, 600, false);\n\n\t\tint beginningLives = game.gameScreen.info.lives();\n\t\ttry \n\t\t{\n\t\t\tThread.sleep(11000); // Waiting eleven seconds for ultimate death...\n\t\t} \n\t\tcatch(InterruptedException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\tSystem.out.println(\"start: \" + beginningLives + \", end: \" + game.gameScreen.info.lives());\n\t\tassertTrue(game.gameScreen.info.lives() < beginningLives);\n\t}", "@Test\r\n void timeoutNotExceededWithResult() {\n String actualResult = assertTimeout(ofMinutes(2), () -> {\r\n return \"a result\";\r\n });\r\n assertEquals(\"a result\", actualResult);\r\n }", "int getWaitTime();", "@Test(timeout = 4000)\n public void test24() throws Throwable {\n String string0 = EWrapperMsgGenerator.tickOptionComputation((-2236), 13, (-1732.5392580492), (-1581.22787), (-1732.5392580492), (-1732.5392580492));\n assertEquals(\"id=-2236 modelOptComp: vol = N/A delta = N/A: modelPrice = N/A: pvDividend = N/A\", string0);\n }", "@Test(timeout = 5000)\n public void dynamicTest5() {\n int[] hourlyVolume = generateRandomHourlyVolume(3000, 80, \"are you going to maths camp?\".hashCode());\n int[] fullServiceCapacity = {100,90,80,70,60,50,50,20,20,10};\n int[] regularServiceCapacity = {80,40,40,20,20,60};\n int[] minorServiceCapacity = {20, 40, 60, 60};\n int expectedResult = 33005;\n Assert.assertEquals(expectedResult, Dynamic.optimalLossDynamic(hourlyVolume, fullServiceCapacity, regularServiceCapacity, minorServiceCapacity));\n }", "@Test\n public void testLowLimitEvent() throws Exception {\n it(\"monitor should set a low alarm when receiving simulated encoder low limit\");\n testLimitEvent(testLowLimitEvent, lowLimitAlarm);\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 }", "@Test(timeout = 4000)\n public void test14() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.getBinRangesString(2607);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n }", "@Test\n @Tag(\"slow\")\n public void testSHIP04L() {\n CuteNetlibCase.doTest(\"SHIP04L.SIF\", \"1793324.5379703548\", null, NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n public void testOSA_07() {\n CuteNetlibCase.doTest(\"OSA-07.SIF\", \"535722.517299352\", \"4332086.205299969\", NumberContext.of(7, 4));\n }", "@Test\n public void testGetTime() throws InterruptedException {\n Thread.sleep(5);\n assertTrue(chatMessage.getTime().before(new Date()));\n }", "@Test(timeout = 4000)\n public void test48() throws Throwable {\n String string0 = EWrapperMsgGenerator.realtimeBar(1, 845L, 251L, (-2474L), 1521.6451568161, 845L, 0L, 1, 3197);\n assertEquals(\"id=1 time = 845 open=251.0 high=-2474.0 low=1521.6451568161 close=845.0 volume=0 count=3197 WAP=1.0\", string0);\n }", "public void testGetLoopTime_least() throws ConfigurationException {\n CommandOptions co = new CommandOptions();\n ArgsOptionParser p = new ArgsOptionParser(co);\n p.parse(\"--min-loop-time\", \"5\", \"--min-loop-time\", \"0\");\n assertEquals(0, co.getLoopTime());\n }", "@Test\n @Tag(\"slow\")\n public void testPILOT_WE() {\n CuteNetlibCase.doTest(\"PILOT-WE.SIF\", \"-2720107.5328449034\", \"20770.464669007524\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n public void testFIT1D() {\n CuteNetlibCase.doTest(\"FIT1D.SIF\", \"-9146.378092421019\", \"80453.99999999999\", NumberContext.of(7, 4));\n }", "boolean hasSolverTimeLimitSeconds();", "@Test\n public void testLongBackoffTime() throws Exception {\n runJob(3, 2, 5, false);\n\n // Fail 3 times with a 3 second backoff factor. Wait 10 seconds. Should fail\n // because 3 + 9 = 12 > 10\n try {\n runJob(3, 3, 10, false);\n Assert.fail(\"Excepted exception\");\n } catch (AssertionError e) {\n // expected;\n }\n\n // Fail 3 times with a 3 second backoff factor. Wait 15 seconds. Should\n // succeed\n // because 3 + 9 = 12 < 15\n runJob(3, 3, 15, false);\n }", "public static void main(String[] args) {\n int currentLimit = 45 ; // try 45 , 65 ,90\n\n if (currentLimit >70 ) {\n System.out.println(\" you are speeding more than 70 --POINT TAKEN !! \");\n } else if (currentLimit > 60 ) {\n //System.out.println(\"your speed is less thank 70 but more than 60 \");\n System.out.println(\"your are speeding more than 60 and less than 70 -- WARNING TAKEN\");\n } else {\n System.out.println(\"KEEP DRIVING\");\n }\n\n\n }", "public String waitTimeConroller(long start, int limit, String elementName) throws NumberFormatException, IOException {\n\t\t\t\tdouble sec = waitTimeCalculatior(start)/1000;\n\t\t\t\tlong testStart = convertStringToLong(fileScanner(\"start.time\"));\n\t\t\t\t\n\t\t\t\tif ((sec >= limit) && (sec >= 15)) {\n\t\t\t\tfileWriterPrinter(\"Waiting time exceeded limit of \" + new DecimalFormat(\"0.000\").format(limit) + \" seconds!\");\n\t\t\t\tfileWriter(\"wait.log\", \" Test: #\" + fileScanner(\"test.num\"));\t\n\t\t\t\tfileWriter(\"wait.log\", \" Started: \" + convertCalendarMillisecondsAsLongToDateTimeHourMinSec(testStart));\n\t\t\t\tfileWriter(\"wait.log\", \" Event: \" + convertCalendarMillisecondsAsLongToDateTimeHourMinSec(start));\n\t\t\t\tfileWriter(\"wait.log\", \" XML Path: \" + fileScanner(\"xml.path\"));\n\t\t\t\tfileWriter(\"wait.log\", \" Waiting \" + sec + \" sec for \" + elementName + \", which exceeds limit of \" + new DecimalFormat(\"0.000\").format(limit) + \" seconds!\");\n\t\t\t\tfileWriterPrinter(\"wait.log\", \"\");\n\t\t\t\t}\n\t\t\t\treturn padNum(sec);\n\t\t\t}", "@Test\n @Tag(\"slow\")\n public void testSCFXM3() {\n CuteNetlibCase.doTest(\"SCFXM3.SIF\", \"54901.2545497515\", null, NumberContext.of(7, 4));\n }", "public static void main(String[] args) { \n\t\tint[] try1 = new int[1000000000];\n\t\tRandom rand = new Random();\n\t\tfor(int i = 0; i < try1.length; i++) {\n\t\t\ttry1[i] = rand.nextInt();\n\t\t}\n // System.out.println(toString1(try1));\n\t\tLong startTime = new Long(System.currentTimeMillis());\n\t\tquickSortIn(try1, 0, try1.length - 1, 20);\n\t\tLong endTime = new Long(System.currentTimeMillis());\n\t\tSystem.out.println(endTime.intValue() - startTime.intValue());\n // System.out.println(toString1(try1));\n\n\n // Which test to run?\n\t // test();\n\t // test2();\n\t // test3();\n\t // test4();\n\t\n\t}", "@Test\n @Tag(\"slow\")\n public void testSHIP08L() {\n CuteNetlibCase.doTest(\"SHIP04L.SIF\", \"1793324.5379703548\", null, NumberContext.of(7, 4));\n }", "@Test\n\tvoid testCost() {\n\t\tint nbCores = 16;\n\t\tlong duration = 2000;\n\t\tDate requestDate = new Date(\"01/01/2000\");\n\t\tJob j1 = new Job(nbCores,requestDate,duration,mediumQ);//16 cores less than 1h\n\t\tJob j2 = new Job(nbCores*2,requestDate,duration,mediumQ);//32 cores less than 1h\n\t\tJob j3 = new Job(nbCores*2+1,requestDate,duration,mediumQ);//33 cores less than 1h\n\t\tJob j4 = new Job(nbCores,requestDate,duration*2,mediumQ);//16 cores more than 1h\n\t\tJob j5 = new Job(nbCores*2+1,requestDate,duration*2,mediumQ);//33 cores more than 1h\n\t\tassertEquals(j1.getCost(),0.05f);\n\t\tassertEquals(j2.getCost(),0.05f);\n\t\tassertEquals(j3.getCost(),0.1f);\n\t\tassertEquals(j4.getCost(),0.1f);\n\t\tassertEquals(j5.getCost(),0.2f);\n\t}", "@Test(timeout = 4000)\n public void test14() throws Throwable {\n Discretize discretize0 = new Discretize(\"'B1of2'\");\n int[] intArray0 = new int[8];\n intArray0[0] = 18;\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"'B1of2'\");\n discretize0.listOptions();\n String[] stringArray0 = discretize0.getOptions();\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(6, stringArray0.length);\n }", "@Test\n @LargeTest\n public void testEJTimerTracking_TopAndTempAllowlisting() throws Exception {\n setDischarging();\n setProcessState(ActivityManager.PROCESS_STATE_RECEIVER);\n final long gracePeriodMs = 5 * SECOND_IN_MILLIS;\n setDeviceConfigLong(QcConstants.KEY_EJ_GRACE_PERIOD_TEMP_ALLOWLIST_MS, gracePeriodMs);\n setDeviceConfigLong(QcConstants.KEY_EJ_GRACE_PERIOD_TOP_APP_MS, gracePeriodMs);\n Handler handler = mQuotaController.getHandler();\n spyOn(handler);\n\n JobStatus job1 = createExpeditedJobStatus(\"testEJTimerTracking_TopAndTempAllowlisting\", 1);\n JobStatus job2 = createExpeditedJobStatus(\"testEJTimerTracking_TopAndTempAllowlisting\", 2);\n JobStatus job3 = createExpeditedJobStatus(\"testEJTimerTracking_TopAndTempAllowlisting\", 3);\n JobStatus job4 = createExpeditedJobStatus(\"testEJTimerTracking_TopAndTempAllowlisting\", 4);\n JobStatus job5 = createExpeditedJobStatus(\"testEJTimerTracking_TopAndTempAllowlisting\", 5);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(job1, null);\n }\n assertNull(mQuotaController.getEJTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE));\n List<TimingSession> expected = new ArrayList<>();\n\n // Case 1: job starts in TA grace period then app becomes TOP\n long start = JobSchedulerService.sElapsedRealtimeClock.millis();\n mTempAllowlistListener.onAppAdded(mSourceUid);\n mTempAllowlistListener.onAppRemoved(mSourceUid);\n advanceElapsedClock(gracePeriodMs / 2);\n synchronized (mQuotaController.mLock) {\n mQuotaController.prepareForExecutionLocked(job1);\n }\n setProcessState(ActivityManager.PROCESS_STATE_TOP);\n advanceElapsedClock(gracePeriodMs);\n // Wait for the grace period to expire so the handler can process the message.\n Thread.sleep(gracePeriodMs);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStopTrackingJobLocked(job1, job1, true);\n }\n assertNull(mQuotaController.getEJTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE));\n\n advanceElapsedClock(gracePeriodMs);\n\n // Case 2: job starts in TOP grace period then is TAed\n start = JobSchedulerService.sElapsedRealtimeClock.millis();\n setProcessState(ActivityManager.PROCESS_STATE_TOP);\n setProcessState(ActivityManager.PROCESS_STATE_IMPORTANT_BACKGROUND);\n advanceElapsedClock(gracePeriodMs / 2);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(job2, null);\n mQuotaController.prepareForExecutionLocked(job2);\n }\n mTempAllowlistListener.onAppAdded(mSourceUid);\n advanceElapsedClock(gracePeriodMs);\n // Wait for the grace period to expire so the handler can process the message.\n Thread.sleep(gracePeriodMs);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStopTrackingJobLocked(job2, null, false);\n }\n assertNull(mQuotaController.getEJTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE));\n\n advanceElapsedClock(gracePeriodMs);\n\n // Case 3: job starts in TA grace period then app becomes TOP; job ends after TOP grace\n mTempAllowlistListener.onAppAdded(mSourceUid);\n mTempAllowlistListener.onAppRemoved(mSourceUid);\n advanceElapsedClock(gracePeriodMs / 2);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(job3, null);\n mQuotaController.prepareForExecutionLocked(job3);\n }\n advanceElapsedClock(SECOND_IN_MILLIS);\n setProcessState(ActivityManager.PROCESS_STATE_TOP);\n advanceElapsedClock(gracePeriodMs);\n // Wait for the grace period to expire so the handler can process the message.\n Thread.sleep(gracePeriodMs);\n setProcessState(ActivityManager.PROCESS_STATE_IMPORTANT_BACKGROUND);\n advanceElapsedClock(gracePeriodMs);\n start = JobSchedulerService.sElapsedRealtimeClock.millis();\n // Wait for the grace period to expire so the handler can process the message.\n Thread.sleep(2 * gracePeriodMs);\n advanceElapsedClock(gracePeriodMs);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStopTrackingJobLocked(job3, job3, true);\n }\n expected.add(createTimingSession(start, gracePeriodMs, 1));\n assertEquals(expected,\n mQuotaController.getEJTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE));\n\n advanceElapsedClock(gracePeriodMs);\n\n // Case 4: job starts in TOP grace period then app becomes TAed; job ends after TA grace\n setProcessState(ActivityManager.PROCESS_STATE_TOP);\n setProcessState(ActivityManager.PROCESS_STATE_IMPORTANT_BACKGROUND);\n advanceElapsedClock(gracePeriodMs / 2);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(job4, null);\n mQuotaController.prepareForExecutionLocked(job4);\n }\n advanceElapsedClock(SECOND_IN_MILLIS);\n mTempAllowlistListener.onAppAdded(mSourceUid);\n advanceElapsedClock(gracePeriodMs);\n // Wait for the grace period to expire so the handler can process the message.\n Thread.sleep(gracePeriodMs);\n mTempAllowlistListener.onAppRemoved(mSourceUid);\n advanceElapsedClock(gracePeriodMs);\n start = JobSchedulerService.sElapsedRealtimeClock.millis();\n // Wait for the grace period to expire so the handler can process the message.\n Thread.sleep(2 * gracePeriodMs);\n advanceElapsedClock(gracePeriodMs);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStopTrackingJobLocked(job4, job4, true);\n }\n expected.add(createTimingSession(start, gracePeriodMs, 1));\n assertEquals(expected,\n mQuotaController.getEJTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE));\n\n advanceElapsedClock(gracePeriodMs);\n\n // Case 5: job starts during overlapping grace period\n setProcessState(ActivityManager.PROCESS_STATE_TOP);\n advanceElapsedClock(SECOND_IN_MILLIS);\n setProcessState(ActivityManager.PROCESS_STATE_IMPORTANT_BACKGROUND);\n advanceElapsedClock(SECOND_IN_MILLIS);\n mTempAllowlistListener.onAppAdded(mSourceUid);\n advanceElapsedClock(SECOND_IN_MILLIS);\n mTempAllowlistListener.onAppRemoved(mSourceUid);\n advanceElapsedClock(gracePeriodMs - SECOND_IN_MILLIS);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(job5, null);\n mQuotaController.prepareForExecutionLocked(job5);\n }\n advanceElapsedClock(SECOND_IN_MILLIS);\n start = JobSchedulerService.sElapsedRealtimeClock.millis();\n // Wait for the grace period to expire so the handler can process the message.\n Thread.sleep(2 * gracePeriodMs);\n advanceElapsedClock(10 * SECOND_IN_MILLIS);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStopTrackingJobLocked(job5, job5, true);\n }\n expected.add(createTimingSession(start, 10 * SECOND_IN_MILLIS, 1));\n assertEquals(expected,\n mQuotaController.getEJTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE));\n }", "public static void main(String[] args) throws ParseException {\n String beginWorkDate = \"8:00:00\";//上班时间\n String endWorkDate = \"12:00:00\";//下班时间\n SimpleDateFormat sdf = new SimpleDateFormat(TimeUtil.DF_ZH_HMS);\n long a = TimeUtil.countMinutes(sdf.parse(beginWorkDate),sdf.parse(endWorkDate));\n System.out.println(a/30);\n\n String beginRestDate = \"8:30:00\";//休息时间\n String endRestDate = \"9:00:00\";\n long e = TimeUtil.countMinutes(sdf.parse(beginWorkDate),sdf.parse(beginRestDate));\n long f = TimeUtil.countMinutes(sdf.parse(beginWorkDate),sdf.parse(endRestDate));\n\n String beginVactionDate = \"10:00:00\";//请假时间\n String endVactionDate = \"11:00:00\";\n long b= TimeUtil.countMinutes(sdf.parse(beginWorkDate),sdf.parse(beginVactionDate));\n long c= TimeUtil.countMinutes(sdf.parse(beginWorkDate),sdf.parse(endVactionDate));\n\n String time = \"9:00:00\";//被别人预约的\n long d = TimeUtil.countMinutes(sdf.parse(beginWorkDate),sdf.parse(time));\n List<Integer> num = new ArrayList<>();\n num.add((int) (d/30));\n\n String myTime = \"11:30:00\";//我约的\n long g = TimeUtil.countMinutes(sdf.parse(beginWorkDate),sdf.parse(myTime));\n List<Integer> mynum = new ArrayList<>();\n mynum.add((int) (g/30));\n\n\n List<Date> yes = new ArrayList<>();//能约\n List<Date> no = new ArrayList<>();//不能约\n List<Date> my = new ArrayList<>();//我约的\n for (int i = 0; i < a/30; i ++) {\n Date times = TimeUtil.movDateForMinute(sdf.parse(beginWorkDate), i * 30);\n System.out.println(sdf.format(times));\n yes.add(times);\n if ((i >= e / 30 && i < f / 30) || (i >= b / 30 && i < c / 30)) {\n //休息时间,请假时间\n no.add(times);\n yes.remove(times);\n continue;\n }\n for (Integer n : num) {\n if (i == n) {\n //被预约时间\n no.add(times);\n yes.remove(times);\n }\n }\n for (Integer n : mynum) {\n if (i == n) {\n //被预约时间\n my.add(times);\n }\n }\n }\n }", "@Test(priority=5)\n\tpublic void campaign_user_with_invalid_limit() throws ClientProtocolException, IOException, URISyntaxException, ParseException{\n\t\ttest = extent.startTest(\"campaign_user_with_invalid_limit\", \"To validate whether user is able to get campaign through campaign/list api with invalid limit\");\n\t\ttest.assignCategory(\"CFA GET /campaign/user API\");\n\t\ttest_data = HelperClass.readTestData(class_name, \"campaign_user_with_invalid_limit\");\n\t\tString[] values = test_data.get(1).split(\",\");\n\t\t// Add parameters in request\n\t\tfor(String limit_value : values){\n\t\t\tList<NameValuePair> nvps = new ArrayList<NameValuePair>();\n\t\t\tnvps.add(new BasicNameValuePair(\"limit\", limit_value));\n\t\t\tCloseableHttpResponse response = HelperClass.make_get_request(\"/v2/campaign/user\", access_token, nvps);\n\t\t\tAssert.assertTrue(!(response.getStatusLine().getStatusCode() == 500 || response.getStatusLine().getStatusCode() == 401), \"Invalid status code is displayed. \"+ \"Returned Status: \"+response.getStatusLine().getStatusCode()+\" \"+response.getStatusLine().getReasonPhrase());\n\t\t\tif(limit_value.equals(\"abc\"))\n\t\t\t\ttest.log(LogStatus.INFO, \"Execute campaign/list api method with char limit value\");\n\t\t\telse if(limit_value.equals(\"!@$#\"))\n\t\t\t\ttest.log(LogStatus.INFO, \"Execute campaign/list api method with special character limit value\");\n\t\t\telse if(limit_value.equals(\"123abc\"))\n\t\t\t\ttest.log(LogStatus.INFO, \"Execute campaign/list api method with alpahnumric character limit value\");\n\t\t\tBufferedReader rd = new BufferedReader(new InputStreamReader(response.getEntity().getContent()));\n\t\t\tString line = \"\";\n\t\t\twhile ((line = rd.readLine()) != null) {\n\t\t\t\tJSONParser parser = new JSONParser();\n\t\t\t\tJSONObject json = (JSONObject) parser.parse(line);\n\t\t\t\tString message = json.get(\"message\").toString();\n\t\t\t\tAssert.assertEquals(message, \"Validation errors\", \"Invalid message value is returned in response when invalid limit value is passed\");\t\t\n\t\t\t\tJSONArray errors_array = (JSONArray)json.get(\"errors\");\n\t\t\t\tJSONObject error_data = (JSONObject) errors_array.get(0);\n\t\t\t\tString error_code = error_data.get(\"code\").toString();\n\t\t\t\tAssert.assertEquals(error_code, \"INVALID_REQUEST_PARAMETER\", \"Invalid code value is returned in response when invalid limit value is passed\");\n\t\t\t\tString in_value = error_data.get(\"in\").toString();\n\t\t\t\tAssert.assertEquals(in_value, \"query\", \"Invalid in value is returned in response when invalid limit value is passed\");\n\t\t\t\tString message_value = error_data.get(\"message\").toString();\n\t\t\t\tAssert.assertEquals(message_value, \"Invalid parameter (limit): Expected type integer but found type string\", \"Invalid message value is returned in response when invalid limit value is passed\");\n\t\t\t\tString name_value = error_data.get(\"name\").toString();\n\t\t\t\tAssert.assertEquals(name_value, \"limit\", \"Invalid name value is returned in response when invalid limit value is passed\");\n\t\t\t\tJSONArray error_path = (JSONArray)error_data.get(\"path\");\n\t\t\t\tAssert.assertTrue(error_path.isEmpty(), \"path is not blank when invalid limit value is passed\");\n\t\t\t\tJSONArray sub_error_array = (JSONArray) error_data.get(\"errors\");\n\t\t\t\tJSONObject sub_error_data = (JSONObject) sub_error_array.get(0);\n\t\t\t\tString sub_error_code = sub_error_data.get(\"code\").toString();\n\t\t\t\tAssert.assertEquals(sub_error_code, \"INVALID_TYPE\", \"Invalid code value is returned in response when invalid limit value is passed\");\n\t\t\t\tString sub_error_message = sub_error_data.get(\"message\").toString();\n\t\t\t\tAssert.assertEquals(sub_error_message, \"Expected type integer but found type string\", \"Invalid message value is returned in response when invalid limit value is passed\");\n\t\t\t\tJSONArray sub_error_path = (JSONArray)sub_error_data.get(\"path\");\n\t\t\t\tAssert.assertTrue(sub_error_path.isEmpty(), \"path is not blank when blank limit value is passed\");\n\t\t\t\tAssert.assertEquals(sub_error_message, \"Expected type integer but found type string\", \"Invalid message value is returned in response when invalid limit value is passed\");\n\t\t\t\tif(limit_value.equals(\"abc\"))\n\t\t\t\t\ttest.log(LogStatus.PASS, \"Check whether proper validation message is displayed when characters limit value is passed.\");\n\t\t\t\telse if(limit_value.equals(\"!@$#\"))\n\t\t\t\t\ttest.log(LogStatus.PASS, \"Check whether proper validation message is displayed when special characters limit value is passed.\");\n\t\t\t\telse if(limit_value.equals(\"123abc\"))\n\t\t\t\t\ttest.log(LogStatus.PASS, \"Check whether proper validation message is displayed when alphanumeric characters limit value is passed.\");\n\t\t\t}\t\n\t\t}\t\n\t}", "@Test(timeout = 5000)\n public void graphTest_runtime() {\n int v=1000*50, e=v*6;\n graph g = graph_creator(v,e,1);\n // while(true) {;}\n }", "private void vuoronKaikkiHeitotHeitetty() {\n while (heittojaJaljella < 1) {\n if (tulosLaitettu) {\n break;\n }\n try {\n Thread.sleep(100);\n } catch (InterruptedException ex) {\n System.out.println(\"Ei ole laitettu tulosta\");\n }\n }\n }", "@Test(priority=10)\n\tpublic void campaign_user_with_2000_limit() throws URISyntaxException, ClientProtocolException, IOException, ParseException{\n\t\ttest = extent.startTest(\"campaign_user_with_2000_limit\", \"To validate whether user is able to get campaign through campaign/user api with 2000 limit value\");\n\t\ttest.assignCategory(\"CFA GET /campaign/user API\");\n\t\tList<NameValuePair> nvps = new ArrayList<NameValuePair>();\n\t\tnvps.add(new BasicNameValuePair(\"limit\", String.valueOf(Constants.MAX_LIMIT)));\n\t\tCloseableHttpResponse response = HelperClass.make_get_request(\"/v2/campaign/user\", access_token, nvps);\n\t\tAssert.assertTrue(!(response.getStatusLine().getStatusCode() == 500 || response.getStatusLine().getStatusCode() == 401), \"Invalid status code is displayed. \"+ \"Returned Status: \"+response.getStatusLine().getStatusCode()+\" \"+response.getStatusLine().getReasonPhrase());\n\t\ttest.log(LogStatus.INFO, \"Execute campaign/user api method with valid parameter\");\n\t\tBufferedReader rd = new BufferedReader(new InputStreamReader(response.getEntity().getContent()));\n\t\tString line = \"\";\n\t\twhile ((line = rd.readLine()) != null) {\t \n\t\t // Convert response to JSON object\t\n\t\t JSONParser parser = new JSONParser();\n\t\t JSONObject response_json = (JSONObject) parser.parse(line);\n\t\t JSONArray camp_data_array = (JSONArray)response_json.get(\"data\");\n\t\t Assert.assertEquals(response_json.get(\"result\"), \"success\", \"API does not return success when valid limit value is entered.\");\n\t\t test.log(LogStatus.PASS, \"API returns success when valid 2000 value is entered.\");\n\t\t Assert.assertEquals(response_json.get(\"err\"), null, \"err is not null when 2000 limit value is entered.\");\n\t\t test.log(LogStatus.PASS, \"err is null when valid limit value is entered.\");\n\t\t // Check whether campaign/users returns number of records defined in limit\n\t\t Assert.assertFalse(camp_data_array.size() == 100, \"campaign/users is returning 100 records\");\n\t\t test.log(LogStatus.PASS, \"Check whether campaign/users returns success when 2000 limit value is passed\");\n\t\t}\n\t}", "@Test(timeout = 4000)\n public void test23() throws Throwable {\n String string0 = EWrapperMsgGenerator.tickOptionComputation(29, 13, 1.7976931348623157E308, 1.7976931348623157E308, 1.7976931348623157E308, 0.0);\n assertEquals(\"id=29 modelOptComp: vol = N/A delta = N/A: modelPrice = N/A: pvDividend = 0.0\", string0);\n }", "@Test\r\n public void test_customTimeOutValues() throws InterruptedException {\r\n //\r\n // keep track of each task started, along with the timeout it was given\r\n // and time it started\r\n //\r\n final Map<String, Pair<Long, Long>> timeoutAndStartTimeByMessage = new ConcurrentHashMap<String, Pair<Long, Long>>();\r\n\r\n //\r\n // store all errors in a list, as we shouldn't make our assertions in a\r\n // separate thread\r\n //\r\n final List<String> errors = new ArrayList<String>();\r\n\r\n //\r\n // As all the tasks will timeout, keep a latch to ensure they've all\r\n // been processed\r\n // so as not to end the test too soon. This should be preferable to\r\n // simply sleeping\r\n // for a given amount of time\r\n //\r\n final int numberOfTasksToStart = 5;\r\n final CountDownLatch numberOfTasksLatch = new CountDownLatch(numberOfTasksToStart);\r\n\r\n //\r\n // each task will be started with a different timeout value, which will\r\n // be in increments of this value\r\n //\r\n final long timeoutInterval = 50;\r\n\r\n //\r\n // we will assert each timeout does not occur before it's timeout, but\r\n // also no later than a given margin for error. This is done because\r\n // this test would also pass if all tasks were given the same large\r\n // expiry value (i.e. if we start tasks to expire at 10, 20 and 30\r\n // milliseconds, they would all have expired by 1 second, but that isn't\r\n // what would be expected).\r\n //\r\n // The margin for error is given to be the same as the timeout interval\r\n //\r\n final long marginForError = timeoutInterval / 2;\r\n\r\n //\r\n // the callback will populate the errors collection (potentially)\r\n //\r\n final IExpiryAction<String> timeoutAction = new IExpiryAction<String>() {\r\n\r\n @Override\r\n public void onTimeout(final String payload) {\r\n final long now = System.currentTimeMillis();\r\n numberOfTasksLatch.countDown();\r\n\r\n final Pair<Long, Long> value = timeoutAndStartTimeByMessage.get(payload);\r\n if (value == null) {\r\n errors.add(\"No value found for \" + payload);\r\n } else {\r\n final Long timeExpiry = value.getFirst();\r\n final Long timeStarted = value.getSecond();\r\n\r\n final long duration = now - timeStarted.longValue();\r\n\r\n //\r\n // assert the duration is within an expected period\r\n //\r\n final long minExpected = timeExpiry.longValue() - marginForError;\r\n final long maxExpected = timeExpiry.longValue() + marginForError;\r\n\r\n if (duration < minExpected) {\r\n errors.add(String.format(\"%s expired after %d ms\", payload, Long.valueOf(duration)));\r\n } else {\r\n if (duration > maxExpected) {\r\n errors.add(String.format(\"%s took too long to expire after %d ms\", payload,\r\n Long.valueOf(duration)));\r\n }\r\n }\r\n }\r\n }\r\n };\r\n final ExpiryViceroy<String> taskDelegate = ExpiryViceroy.start(timeoutAction, 1, TimeUnit.SECONDS);\r\n\r\n for (int taskCount = numberOfTasksToStart; taskCount >= 1; taskCount--) {\r\n final long timeout = taskCount * timeoutInterval;\r\n final String message = \"interval \" + timeout;\r\n\r\n //\r\n // no tasks will be acknowledged as complete, so they should all\r\n // time out\r\n //\r\n taskDelegate.onStartTask(message, timeout, TimeUnit.MILLISECONDS);\r\n\r\n final Pair<Long, Long> value = new Pair<Long, Long>(Long.valueOf(timeout), Long.valueOf(System\r\n .currentTimeMillis()));\r\n timeoutAndStartTimeByMessage.put(message, value);\r\n }\r\n\r\n //\r\n // ensure all tasks have completed\r\n //\r\n numberOfTasksLatch.await(1, TimeUnit.MINUTES);\r\n taskDelegate.stop();\r\n\r\n //\r\n // assert no infractions have occurred within the callback\r\n //\r\n // TODO\r\n // Assert.assertTrue(Lists.toString(Consts.NEW_LINE, errors), errors.isEmpty());\r\n }", "@Test\n @Tag(\"slow\")\n public void testGFRD_PNC() {\n CuteNetlibCase.doTest(\"GFRD-PNC.SIF\", \"6902235.999548811\", null, NumberContext.of(7, 4));\n }", "public boolean CheckTimeInLevel(){\n \n Long comparetime = ((System.nanoTime() - StartTimeInLevel)/1000000000);\n \n return (comparetime>TILData.critpoints.get((int)speed));\n // stop tetris because this subject is an outlier for this level\n \n \n }", "@Test(timeout = 4000)\n public void test40() throws Throwable {\n NaiveBayesMultinomialText naiveBayesMultinomialText0 = new NaiveBayesMultinomialText();\n naiveBayesMultinomialText0.setUseStopList(true);\n assertTrue(naiveBayesMultinomialText0.getUseStopList());\n }", "public static void main(String[] args) {\n\t\t\n\t\tint A[]= new int[100000000];\n\t\tfor(int i = 0; i < 100000000; i++) {\n\t\t A[i] = (int)(Math.random() * 100) + 1;\n }\n double duration = 0;\n long end = 0;\n long start = 0;\n start = System.currentTimeMillis();\n System.out.println(start);\n MinValueIndex(A, 6);\n end = System.currentTimeMillis();\n\t\tduration = end-start;\n\t\tSystem.out.println(end); \n\t\tduration = duration / 5;\n\t\tSystem.out.println(duration);\n\t}", "private void test(NFV root) throws Exception{\n\t\tlong beginAll=System.currentTimeMillis();\n\t\tNFV rootTest = init(root);\n\t\tlong endAll=System.currentTimeMillis();\n //System.out.println(\"Total time -> \" + ((endAll-beginAll)/1000) + \"s\");\n\t\trootTest.getPropertyDefinition().getProperty().forEach(p ->{\n \tif(p.isIsSat()){\n\t\t\t\tmaxTotTime = maxTotTime<(endAll-beginAll)? (endAll-beginAll) : maxTotTime;\n\t\t\t\tSystem.out.print(\"time: \" + (endAll-beginAll) + \"ms;\");\n\t\t\t\ttotTime += (endAll-beginAll);\n \t\tnSAT++;\n \t}\n \telse{\n \t\tnUNSAT++;\n \t}\n });\n return;\n\t}", "@Test\n @Tag(\"slow\")\n public void testSHIP04S() {\n CuteNetlibCase.doTest(\"SHIP04S.SIF\", \"1798714.7004453915\", null, NumberContext.of(7, 4));\n }", "private int verifyWithMultipleThreads(int rateLimit, int timeWindowInSeconds, int threadCount, final int taskCount) throws InterruptedException, ExecutionException\n {\n long errorInMs = 10;\n long startTime = System.nanoTime();\n final QuotaRateLimiter rateLimiter = new QuotaRateLimiter(rateLimit, timeWindowInSeconds);\n executeWithThreadPool(rateLimiter, threadCount, taskCount);\n int estimatedCompletionTimeInMs = (int) Math.floor((taskCount * 2 - rateLimit) * timeWindowInSeconds * 1000.0d / rateLimit);\n Assert.assertTrue(\"Should take at least \" + estimatedCompletionTimeInMs + \"ms to complete\",\n System.nanoTime() - startTime >= (estimatedCompletionTimeInMs - errorInMs) * 1e6);\n // Sleep for another time window\n Thread.sleep(timeWindowInSeconds * 1000);\n rateLimiter.acquire(2);\n Assert.assertEquals(\"Remaining limit should be reset to the max minus 2\",\n rateLimit - 2, rateLimiter.getRemainingLimitForTesting());\n return estimatedCompletionTimeInMs / 1000;\n }", "@Test(timeout = 4000)\n public void test050() throws Throwable {\n HomeEnvironment homeEnvironment0 = new HomeEnvironment();\n homeEnvironment0.setVideoQuality((-5305));\n int int0 = homeEnvironment0.getVideoQuality();\n assertEquals((-5305), int0);\n }", "@Test\n @Tag(\"slow\")\n public void testCZPROB() {\n CuteNetlibCase.doTest(\"CZPROB.SIF\", \"2185196.6988565763\", \"3089066.71321333\", NumberContext.of(7, 4));\n }", "public static void main(String[] args) {\n\t\tjava.util.Scanner input = new java.util.Scanner (System.in);\r\n\t\tlong millis = 0;\r\n\t\tboolean works = true;\r\n\t\t\r\n\t\t//petlja koja kontrolise pravilan unos broja milisekundi\r\n\t\twhile (works){\r\n\t\t\ttry{\r\n\t\t\t\tSystem.out.print(\"Unesite broj milisekundi: \");\r\n\t\t\t\tmillis = input.nextLong();\r\n\t\t\t\t\r\n\t\t\t\tif(millis <= 0){\r\n\t\t\t\t\tSystem.out.println(\"Unesite cijeli broj veci od 0!\");\t\t//nepravilan unos ponavlja petlju\r\n\t\t\t\t\tworks = true;\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tworks = false;\r\n\t\t\t\t}\r\n\t\t\t}catch (InputMismatchException ex){\r\n\t\t\t\tSystem.out.println(\"Nemoguc unos. Pokusajte ponovo!\");\r\n\t\t\t\tinput.nextLine();\r\n\t\t\t}\r\n\t\t}\r\n\t\t //poziv metode za pretvaranje broja milisekundi u sate, minute i sekunde\r\n\t\tString time = convertMillis(millis); \r\n\t\tSystem.out.println(\"\\n\" + millis + \" milisekundi pretvoreno u format vremena hh:mm:ss je: \" + time);\r\n\t\tinput.close();\r\n\t}", "@Test(timeout = 4000)\n public void test06() throws Throwable {\n String string0 = EWrapperMsgGenerator.tickOptionComputation(4, (-1897), 0.0, 325.9241391306, 13, 1470.6510545);\n assertEquals(\"id=4 unknown: vol = 0.0 delta = N/A\", string0);\n }", "static int timer (long maxTime, int loopSteps) {\r\n\t\tlong TStart = System.currentTimeMillis(); //starting time\r\n\t\tlong TEnd = TStart + maxTime; \r\n\t\tint t=0;\r\n\t\twhile (System.currentTimeMillis() <= TEnd) { //\r\n\t\t\tt++; //loop counter \r\n\t\t\tif (t % loopSteps == 0) { \r\n\t\t\t\tSystem.out.println(\"Number of loops: \"+t);\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"Total number of loops: \"+t); \r\n\t\treturn t;\r\n\t}" ]
[ "0.63881296", "0.62598455", "0.6167789", "0.61585224", "0.60659635", "0.6050821", "0.6042556", "0.6033041", "0.60326153", "0.60282964", "0.60227585", "0.59769773", "0.5976321", "0.5954113", "0.59391415", "0.59229976", "0.5914567", "0.5867262", "0.58617604", "0.5850027", "0.5844726", "0.5842897", "0.5832242", "0.58288014", "0.5827675", "0.58252144", "0.58203614", "0.5814615", "0.58056486", "0.5800584", "0.5785907", "0.578236", "0.57640165", "0.5759444", "0.57543916", "0.5748024", "0.57406706", "0.57406217", "0.57350904", "0.57330275", "0.5728711", "0.5713322", "0.57113695", "0.5707157", "0.57030773", "0.5702401", "0.57004076", "0.5696819", "0.5694726", "0.5685992", "0.56679875", "0.56644624", "0.5663923", "0.56630164", "0.5659637", "0.5659344", "0.5659344", "0.5646075", "0.5641556", "0.56415004", "0.56300133", "0.562991", "0.5628883", "0.56270313", "0.5625614", "0.56221056", "0.5619472", "0.5616437", "0.5614821", "0.5612991", "0.5611714", "0.56074554", "0.5606818", "0.56037724", "0.55980724", "0.55959684", "0.5594527", "0.5586644", "0.55835986", "0.55801374", "0.5579808", "0.5579177", "0.5578574", "0.5574446", "0.55742717", "0.55722785", "0.557088", "0.5567723", "0.55631757", "0.5560411", "0.5559931", "0.55587053", "0.55575514", "0.5550732", "0.55487216", "0.5541851", "0.55332136", "0.5519971", "0.5517915", "0.5513603", "0.55105597" ]
0.0
-1
bu daha hizli calisti
public static String reverseString2(String s) { int length = s.length(); char[] arr = s.toCharArray(); for(int i=0; i< length / 2; i++){ char temp = arr[i]; arr[i] = arr[length-1-i]; arr[length-1-i] = temp; } return new String(arr); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void cajas() {\n\t\t\n\t}", "private String elaboraIncipit() {\n String testo = VUOTA;\n\n if (usaHeadIncipit) {\n testo += elaboraIncipitSpecifico();\n testo += A_CAPO;\n }// fine del blocco if\n\n return testo;\n }", "private static void statistique(){\n\t\tfor(int i = 0; i<7; i++){\n\t\t\tfor(int j = 0; j<7; j++){\n\t\t\t\tfor(int l=0; l<jeu.getJoueurs().length; l++){\n\t\t\t\t\tif(jeu.cases[i][j].getCouleurTapis() == jeu.getJoueurs()[l].getNumJoueur()){\n\t\t\t\t\t\tjeu.getJoueurs()[l].setTapis(jeu.getJoueurs()[l].getTapisRest()+1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tJoueur j;\n\t\tSystem.out.println(\"// Fin de la partie //\");\n\t\tfor(int i=0; i<jeu.getJoueurs().length; i++) {\n\t\t\tj =jeu.getJoueurs()[i];\n\t\t\tSystem.out.println(\"Joueur \"+ (j.getNumJoueur()+1) + \" a obtenue \"+j.getTapisRest()+j.getMonnaie()+\" points\" );\n\t\t}\n\t}", "public abstract String dohvatiKontakt();", "void berechneUmfang() {\r\n\t\tfor (int i = 1; i < m_ANZAHL_POINTS; i++) {\r\n\t\t\tm_umfang += m_pointArray[i].distance(m_pointArray[i-1]);\t\t\r\n\t\t}\r\n\t}", "public void aumentarMinas(){\n\r\n if(espM==false){\r\n minascerca++;\r\n }\r\n }", "@Override\n\tvoid geraDados() {\n\n\t}", "public void xuLyThemPhieuThanhToan(){\n //Ngat chuoi\n String strTongTien = txtTongTien.getText().trim();\n String[] tongTien = strTongTien.split(\"\\\\s\");\n String strTienPhaiTra = txtTienPhaiTra.getText().trim();\n String[] tienPhaiTra = strTienPhaiTra.split(\"\\\\s\");\n\n //xu ly them vao data base\n PhieuThanhToanSevice phieuThanhToanSevice = new PhieuThanhToanSevice();\n int x = phieuThanhToanSevice.themPhieuThanhToan(txtMaPTT.getText().trim(),\n cbbMaPDK.getSelectedItem().toString(),\n Integer.valueOf(txtSoThang.getText().trim()),\n txtNgayTT.getText().trim(), Float.valueOf(tongTien[0]), Float.valueOf(tienPhaiTra[0]));\n\n if (x > 0) {\n JOptionPane.showMessageDialog(null, \"Thanh toán thành công\");\n } else {\n JOptionPane.showMessageDialog(null, \"Thanh toán thất bại\");\n return;\n }\n\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 void estiloAcierto() {\r\n\t\t /**Bea y Jose**/\t\t\r\n \r\n\t}", "static void cetak_data(String nama, int usia) {\n int tahun_sekarang = 2020, tahun_lahir = tahun_sekarang - usia;\r\n System.out.println(\"---------\\nNama Saya : \" + nama + \"\\nUsia Saya : \" + usia + \"\\nTahun Lahir : \" + tahun_lahir);\r\n }", "public int fondMagasin(){\n\tint total =this.jeton;\n\tfor(Caisse c1 : this.lesCaisses){\n\ttotal = c1.getTotal()+total;\n\t}\n\treturn total;\n}", "public void obtener() {\r\n \t\r\n \tif (raiz!=null)\r\n {\r\n int informacion = raiz.dato;\r\n raiz = raiz.sig;\r\n end = raiz;\r\n System.out.println(\"Obtenemos el dato de la cima: \"+informacion);\r\n }\r\n else\r\n {\r\n System.out.println(\"No hay datos en la pila\");\r\n }\r\n }", "public void limpiar() {\n\t//txtBuscar.setText(\"\");\n\n\t// codTemporal.setText(\"\");\n\thabilita(true, false, false, false, false, true, false, true, true);\n }", "@Override\r\n\tpublic void hacerSonido() {\n\t\tSystem.out.print(\"miau,miau -- o depende\");\r\n\t\t\r\n\t}", "@Override\npublic String toString() {// PARA MOSTRAR LOS DATOS DE ESTA CLASE\n// TODO Auto-generated method stub\nreturn MuestraCualquiera();\n}", "public static void pocetniMeni() {\r\n\t\tSystem.out\r\n\t\t\t\t.println(\"***********************************************\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 1 ako zelite vidjeti kalendar(za dati mjesec i godinu)\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 2 za pregled podsjetnika za dati mjesec i godinu\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 3 da pregledate podsjetnik za datu godinu\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 4 ako zelite da pogledate sve podsjetnike!\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 5 ako zelite da upisete neki podsjetnik!\\n\"\r\n\t\t\t\t\t\t+ \":::::::::::::::::::::::::::::::::::::::::::::::\");\r\n\t}", "@Override\n public void cantidad_Ataque(){\n ataque=5+2*nivel+aumentoT;\n }", "private String elaboraAvvisoScrittura() {\n String testo = VUOTA;\n\n if (usaHeadNonScrivere) {\n testo += TAG_NON_SCRIVERE;\n testo += A_CAPO;\n }// end of if cycle\n\n return testo;\n }", "@Override\n\tpublic void teclaCorrigeDigitada() {\n\t\t\n\t}", "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}", "private void comerFantasma(Fantasma fantasma) {\n // TODO implement here\n }", "public void eisagwgiFarmakou() {\n\t\t// Elegxw o arithmos twn farmakwn na mhn ypervei ton megisto dynato\n\t\tif(numOfMedicine < 100)\n\t\t{\n\t\t\tSystem.out.println();\t\n\t\t\tmedicine[numOfMedicine] = new Farmako();\t\n\t\t\tmedicine[numOfMedicine].setCode(rnd.nextInt(1000000)); // To sistima dinei automata ton kwdiko tou farmakou\n\t\t\tmedicine[numOfMedicine].setName(sir.readString(\"DWSTE TO ONOMA TOU FARMAKOU: \")); // Zitaw apo ton xristi na mou dwsei to onoma tou farmakou\n\t\t\tmedicine[numOfMedicine].setPrice(sir.readPositiveFloat(\"DWSTE THN TIMH TOU FARMAKOU: \")); // Pairnw apo ton xristi tin timi tou farmakou\n\t\t\tSystem.out.println();\n\t\t\t// Elegxos monadikotitas tou kwdikou tou farmakou\n\t\t\th = rnd.nextInt(1000000);\n\t\t\tfor(int i = 0; i < numOfMedicine; i++)\n\t\t\t{\n\t\t\t\tif(medicine[i].getCode() == h)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"O KWDIKOS AUTOS YPARXEI HDH!\");\n\t\t\t\t\th = rnd.nextInt(10);\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t\tnumOfMedicine++;\n\t\t}\n\t\t// An xeperastei o megistos arithmos farmakwn\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"DEN MPOREITE NA EISAGETE ALLA FARMAKA!\");\n\t\t\tSystem.out.println(\"EXEI SYMPLHRWTHEI O PROVLEPOMENOS ARITHMOS!\");\n\t\t}\n\t}", "private void limpiarDatos() {\n\t\t\n\t}", "float znajdzOstatecznaCene()\n\t{\n\t\t//getInput(\"znajdzOstatecznaCene\");\n\t\t//print (\"znajdzOstatecznaCene \"+iteracja);\n\t\t\n\t\t//debug\n\t\tBoolean debug = false;\n\t\tif (LokalneCentrum.getCurrentHour().equals(\"03:00\"))\n\t\t{\n\t\t\tprint(\"03:00 on the clock\",debug);\n\t\t\tdebug=false;\n\t\t}\n\t\t\n\t\t//wszystkie ceny jakie byly oglaszan ne na najblizszy slot w \n\t\tArrayList<Float> cenyNaNajblizszySlot =znajdzOstatecznaCeneCenaNaNajblizszeSloty();\n\t\t\n\t\t\n\t\t//Stworzenie cen w raportowaniu\n\t\tint i=0;\n\t\twhile (i<cenyNaNajblizszySlot.size())\n\t\t{\n\t\t\trynekHistory.kontraktDodajCene(cenyNaNajblizszySlot.get(i));\n\t\t\ti++;\n\t\t}\n\t\t\n\t\tprint(\"ceny na najblizszy slot \"+cenyNaNajblizszySlot.size());\n\n\t\t\n\t\t//do rpzerobienia problemu minimalizacji na maksymalizacje\n\t\tint inverter =-1;\n\t\t\n\t\ti=0;\n\t\tfloat cena =cenyNaNajblizszySlot.get(i);\n\t\tfloat minimuCena =cena;\t\t\n\t\tfloat minimumValue =inverter*funkcjaRynku2(cena, false,true);\n\t\ti++;\n\t\t\n\t\trynekHistory.kontraktDodajWartoscFunkcjiRynku(funkcjaRynku2(cena, false), minimuCena);\n\t\t\n\t\twhile (i<cenyNaNajblizszySlot.size())\n\t\t{\n\t\t\tcena =cenyNaNajblizszySlot.get(i);\n\t\t\tfloat value =inverter*funkcjaRynku2(cena, false,true);\t\t\t\n\n\t\t\trynekHistory.kontraktDodajWartoscFunkcjiRynku(funkcjaRynku2(cena, false), cena);\n\n\t\t\tif (value<minimumValue)\n\t\t\t{\n\t\t\t\tminimuCena =cena;\n\t\t\t\tminimumValue = value;\n\n\t\t\t}\n\t\t\t\n\t\t\ti++;\n\t\t}\n\t\t\n\t\tif(debug)\n\t\t{\n\t\t\tgetInput(\"03:00 end\");\n\t\t}\n\t\t\n\t\t//getInput(\"znajdzOstatecznaCene - nto finished\");\n\t\treturn minimuCena;\n\t\t\n\t}", "String[] chiediSecondaScommessa();", "@Override\n\tpublic void maasHesapla() {\n\t\tSystem.out.println(\"isciler icin maas 5000 tl \");\n \t\t\n\t}", "@SuppressWarnings(\"SuspiciousMethodCalls\")\n private int houve_estouro()\n {\n int retorno = 0;\n boolean checar = false;\n for (Map.Entry i: janela.entrySet())\n {\n if (janela.get(i.getKey()).isEstouro())\n {\n janela.get(i.getKey()).setEstouro(false);\n retorno =(int) i.getKey();\n checar = true;\n break;\n }\n }\n for(Map.Entry i2: janela.entrySet()) janela.get(i2.getKey()).setEstouro(false);\n if(checar) return retorno;\n else return -69;\n }", "public void MieiOrdini()\r\n {\r\n getOrdini();\r\n\r\n }", "@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di friggere un uovo\";\r\n }", "private String creaElenco() {\n String testoTabella ;\n String riga = CostBio.VUOTO;\n ArrayList listaPagine = new ArrayList();\n ArrayList listaRiga;\n HashMap mappaTavola = new HashMap();\n String cognomeText;\n int num;\n int taglioPagine = Pref.getInt(CostBio.TAGLIO_COGNOMI_PAGINA);\n String tag = \"Persone di cognome \";\n ArrayList titoli = new ArrayList();\n titoli.add(LibWiki.setBold(\"Cognome\"));\n titoli.add(LibWiki.setBold(\"Voci\"));\n\n for (Map.Entry<String, Integer> mappa: mappaCognomi.entrySet()) {\n\n cognomeText = mappa.getKey();\n num = mappa.getValue();\n if (num >= taglioPagine) {\n cognomeText = tag + cognomeText + CostBio.PIPE + cognomeText;\n cognomeText = LibWiki.setQuadre(cognomeText);\n cognomeText = LibWiki.setBold(cognomeText);\n }// end of if cycle\n\n listaRiga = new ArrayList();\n listaRiga.add(cognomeText);\n listaRiga.add(num);\n listaPagine.add(listaRiga);\n\n }// end of for cycle\n mappaTavola.put(Cost.KEY_MAPPA_SORTABLE_BOOLEAN, true);\n mappaTavola.put(Cost.KEY_MAPPA_TITOLI, titoli);\n mappaTavola.put(Cost.KEY_MAPPA_RIGHE_LISTA, listaPagine);\n testoTabella = LibWiki.creaTable(mappaTavola);\n\n return testoTabella;\n }", "public void asetaTeksti(){\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "public int extraer ()\n {\n if (raiz!=null)\n {\n int informacion = raiz.edad;\n raiz = raiz.sig;\n return informacion;\n }\n else\n {\n System.out.println(\"La lista se encuentra vacia\");\n return 0;\n }\n }", "public void carroNoAgregado(){\n System.out.println(\"No hay un parqueo para su automovil\");\n }", "private void sonucYazdir() {\n\t\talinanPuan = (int)(((float)alinanPuan / (float)toplamPuan) * 100);\n\t\tSystem.out.println(\"\\nSınav Bitti..!\\n\" + soruSayisi + \" sorudan \" + dogruSayaci + \" tanesine\"\n\t\t\t\t\t\t+ \" doğru cevap verdiniz.\\nPuan: \" + alinanPuan + \"/\" + toplamPuan);\n\t}", "public Asiakas(){\n\t\tid++;\n\t\tbussiNumero = new Random().nextInt(OmaMoottori.bussienMaara);\n\t\tsaapumisaika = Kello.getInstance().getAika();\n\t}", "public void zapisUrok() {\r\n\r\n\t\taktualnyZostatok = getZostatok() * urokovaSadzba / 100;\r\n\t\tsetVklad(aktualnyZostatok);\r\n\r\n\t}", "float getMonatl_kosten();", "public void orina() {\n System.out.println(\"Que bien me quedé! Deposito vaciado.\");\n }", "@Override\n\tpublic void preparar() {\n\t\tSystem.out.println(\"massa, presunto, queijo, calabreza e cebola\");\n\t\t\n\t}", "public void eisagwgiAstheni() {\n\t\t// Elegxw o arithmos twn asthenwn na mhn ypervei ton megisto dynato\n\t\tif(numOfPatient < 100)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tpatient[numOfPatient] = new Asthenis();\n\t\t\tpatient[numOfPatient].setFname(sir.readString(\"DWSTE TO ONOMA TOU ASTHENH: \")); // Pairnei to onoma tou asthenh apo ton xrhsth\n\t\t\tpatient[numOfPatient].setLname(sir.readString(\"DWSTE TO EPWNYMO TOU ASTHENH: \")); // Pairnei to epitheto tou asthenh apo ton xrhsth\n\t\t\tpatient[numOfPatient].setAMKA(rnd.nextInt(1000000)); // To sistima dinei automata ton amka tou asthenous\n\t\t\tSystem.out.println();\n\t\t\t\n\t\t\t//Elegxos monadikotitas tou amka tou astheni\n\t\t\th = rnd.nextInt(1000000);\n\t\t\tfor(int i = 0; i < numOfPatient; i++)\n\t\t\t{\n\t\t\t\tif(patient[i].getAMKA() == h)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"O KWDIKOS AUTOS YPARXEI HDH!\");\n\t\t\t\t\th = rnd.nextInt(1000000);\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t\tnumOfPatient++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"DEN MPOREITE NA EISAGETE ALLOUS ASTHENEIS!\");\n\t\t\tSystem.out.println(\"EXEI SYMPLHRWTHEI O PROVLEPOMENOS ARITHMOS!\");\n\t\t}\n\t}", "@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di cuocere il pollo\";\r\n }", "public void trenneVerbindung();", "public void anazitisiSintagisVaseiHmerominias() {\n\t\tDate firstDt = null, lastDt = null;\n\t\ttmp_2 = 0;\n\t\tif(numOfPrescription != 0)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\" STOIXEIA SYNTAGWN\");\n\t\t\t// Emfanizw oles tis syntages\n\t\t\tfor(int j = 0; j < numOfPrescription; j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"\\n \" + j + \". STOIXEIA SYNTAGHS: \");\n\t\t\t\tprescription[j].print();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\t// Zitaw apo ton xrhsth to xroniko euros kata to opoio exei graftei sintagh\n\t\t\tfirstDt = sir.readDate(\"DWSTE ARXIKH HMEROMHNIA: \");\n\t\t\tlastDt = sir.readDate(\"DWSTE TELIKH HMEROMHNIA: \");\n\t\t\tSystem.out.println();\n\t\t\tfor(i = 0; i < numOfPrescription; i++)\n\t\t\t{\n\t\t\t\t// An h hmeromhnia eggrafhs ths syntaghs einai anamesa sta xronika oria pou exei dwsei o xrhsths ektypwnetai\n\t\t\t\tif(firstDt.before(prescription[i].getDate()) && (lastDt.after(prescription[i].getDate()))) \n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"VRETHIKE SYNTAGH!\");\n\t\t\t\t\tprescription[i].print();\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\ttmp_2++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(tmp_2 == 0)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"DEN YPARXEI SYNTAGH METAKSY:\" + firstDt + \" KAI: \" + lastDt);\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"DEN YPARXOUN DIATHESIMES SYNTAGES!\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public void verEstado(){\n for(int i = 0;i <NUMERO_AMARRES;i++) {\n System.out.println(\"Amarre nº\" + i);\n if(alquileres.get(i) == null) {\n System.out.println(\"Libre\");\n }\n else{\n System.out.println(\"ocupado\");\n System.out.println(alquileres.get(i));\n } \n }\n }", "public abstract java.lang.String getAcma_cierre();", "public void calcular() {\n int validar, c, d, u;\n int contrasena = 246;\n c = Integer.parseInt(spiCentenas.getValue().toString());\n d = Integer.parseInt(spiDecenas.getValue().toString());\n u = Integer.parseInt(spiUnidades.getValue().toString());\n validar = c * 100 + d * 10 + u * 1;\n //Si es igual se abre.\n if (contrasena == validar) {\n etiResultado.setText(\"Caja Abierta\");\n }\n //Si es menor nos indica que es mas grande\n if (validar < contrasena) {\n etiResultado.setText(\"El número secreto es mayor\");\n }\n //Si es mayot nos indica que es mas pequeño.\n if (validar > contrasena) {\n etiResultado.setText(\"El número secreto es menor\");\n }\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public void eisagwgiGiatrou() {\n\t\t// Elegxw o arithmos twn iatrwn na mhn ypervei ton megisto dynato\n\t\tif(numOfDoctors < 100)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tdoctor[numOfDoctors] = new Iatros();\n\t\t\tdoctor[numOfDoctors].setFname(sir.readString(\"DWSTE TO ONOMA TOU GIATROU: \")); // Pairnei apo ton xristi to onoma tou giatrou\n\t\t\tdoctor[numOfDoctors].setLname(sir.readString(\"DWSTE TO EPWNYMO TOU GIATROU: \")); // Pairnei apo ton xristi to epitheto tou giatrou\n\t\t\tdoctor[numOfDoctors].setAM(rnd.nextInt(1000000)); // To sistima dinei automata ton am tou giatrou\n\t\t\tSystem.out.println();\n\t\t\t\n\t\t\t// Elegxos monadikotitas tou am tou giatrou\n\t\t\th = rnd.nextInt(1000000);\n\t\t\tfor(int i = 0; i < numOfDoctors; i++)\n\t\t\t{\n\t\t\t\tif(doctor[i].getAM() == h)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"O KWDIKOS AUTOS YPARXEI HDH!\");\n\t\t\t\t\th = rnd.nextInt(1000000);\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t\tnumOfDoctors++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"DEN MPOREITE NA EISAGETE ALLOUS GIATROUS!\");\n\t\t\tSystem.out.println(\"EXEI SYMPLHRWTHEI O PROVLEPOMENOS ARITHMOS!\");\n\t\t}\n\t}", "public String cargarDatos()\r\n/* 137: */ {\r\n/* 138:163 */ limpiar();\r\n/* 139:164 */ return \"\";\r\n/* 140: */ }", "private void xuLyThanhToanDichVu() {\n if(checkGia(txtThanhToanDVSoLuongCu.getText())== false){\n JOptionPane.showMessageDialog(null, \"Số lượng không hợp lệ. Vui lòng kiểm tra lại!\");\n txtThanhToanDVSoLuongCu.requestFocus();\n return;\n }//Kiem tra so luong cu\n \n if(checkGia(txtThanhToanDVSoLuongMoi.getText())== false){\n JOptionPane.showMessageDialog(null, \"Số lượng không hợp lệ. Vui lòng kiểm tra lại!\");\n txtThanhToanDVSoLuongMoi.requestFocus();\n return;\n }//kiem tra so luong moi\n \n float soLuongCu = Float.valueOf(txtThanhToanDVSoLuongCu.getText().trim());\n float soLuongMoi = Float.valueOf(txtThanhToanDVSoLuongMoi.getText().trim());\n float soLuong = soLuongMoi - soLuongCu;\n txtThanhToanDVSoLuong.setText(soLuong+\"\");\n tongCong += soLuong * Float.valueOf(txtThanhToanDVGiaDV.getText().trim());\n txtThanhToanTongCong.setText(tongCong+\" VNĐ\");\n \n }", "public String editar()\r\n/* 441: */ {\r\n/* 442:445 */ return null;\r\n/* 443: */ }", "private void laskeMatkojenPituus() {\n matkojenpituus = 0.0;\n\n for (Matka m : matkat) {\n matkojenpituus += m.getKuljettumatka();\n }\n\n }", "public void ordenaPontos(){\r\n\t\tloja.ordenaPontos();\r\n\t}", "public void calculEtatSuccesseur() { \r\n\t\tboolean haut = false,\r\n\t\t\t\tbas = false,\r\n\t\t\t\tgauche = false,\r\n\t\t\t\tdroite = false,\r\n\t\t\t\thautGauche = false,\r\n\t\t\t\tbasGauche = false,\r\n\t\t\t\thautDroit = false,\r\n\t\t\t\tbasDroit = false;\r\n\t\t\r\n\t\tString blanc = \" B \";\r\n\t\tString noir = \" N \";\r\n\t\tfor(Point p : this.jetonAdverse()) {\r\n\t\t\tString [][]plateau;\r\n\t\t\tplateau= copieEtat();\r\n\t\t\tint x = (int) p.getX();\r\n\t\t\tint y = (int) p.getY();\r\n\t\t\tif(this.joueurActuel.getCouleur() == \"noir\") { //dans le cas ou le joueur pose un pion noir\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tif(p.getY()>0 && p.getY()<plateau[0].length-1 && p.getX()>0 && p.getX()<plateau.length-1) { //on regarde uniquement le centre du plateaau \r\n\t\t\t\t\t//on reinitialise x,y et plateau a chaque étape\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t\r\n\t\t\t\t\tdroite = getDroite(x,y,blanc);\r\n\t\t\t\t\thaut = getHaut(x, y, blanc);\r\n\t\t\t\t\tbas = getBas(x, y, blanc);\r\n\t\t\t\t\tgauche = getGauche(x, y, blanc);\r\n\t\t\t\t\thautDroit = getDiagHautdroite(x, y, blanc);\r\n\t\t\t\t\thautGauche = getDiagHautGauche(x, y, blanc);\r\n\t\t\t\t\tbasDroit = getDiagBasDroite(x, y, blanc);\r\n\t\t\t\t\tbasGauche = getDiagBasGauche(x, y, blanc);\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(this.plateau[x][y-1]==noir) {//regarder si à gauche du pion blanc il y a un pion noir\r\n\r\n\t\t\t\t\t\t//on regarde si il est possible de poser un pion noir à droite\r\n\t\t\t\t\t\tif(droite) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == blanc) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = noir;\r\n\t\t\t\t\t\t\t\ty++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=noir;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, noir, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//1\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(this.plateau[x-1][y]==noir) {//regardre au dessus si le pion est noir\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(bas) {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == blanc) {\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tplateau[x][y]= noir;\r\n\t\t\t\t\t\t\t\tx++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=noir;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, noir, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//2\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(this.plateau[x][y+1]==noir) { //regarde a droite si le pion est noir\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(gauche) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == blanc) {\r\n\t\t\t\t\t\t\t\tplateau[x][y]= noir;\r\n\t\t\t\t\t\t\t\ty--;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=noir;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, noir, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//3\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\tif(this.plateau[x+1][y] == noir) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(haut) {\r\n\t\t\t\t\t\t\t//System.out.println(\"regarde en dessous\");\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == blanc) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = noir;\r\n\t\t\t\t\t\t\t\tx--;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=noir;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, noir, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//4\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t//diaghautgauche\r\n\t\t\t\t\tif(this.plateau[x+1][y+1]==noir) {\r\n\t\t\t\t\t\tif(hautGauche) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == blanc) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = noir;\r\n\t\t\t\t\t\t\t\tx--;\r\n\t\t\t\t\t\t\t\ty--;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=noir;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, noir, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//5\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t//diagbasGauche\r\n\t\t\t\t\tif(this.plateau[x-1][y+1]==noir) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(basGauche) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == blanc) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = noir;\r\n\t\t\t\t\t\t\t\tx++;\r\n\t\t\t\t\t\t\t\ty--;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=noir;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, noir, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}//6\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t//diaghautDroit : OK!\r\n\t\t\t\t\tif(this.plateau[x+1][y-1]==noir) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(hautDroit) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == blanc) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = noir;\r\n\t\t\t\t\t\t\t\tx--;\r\n\t\t\t\t\t\t\t\ty++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=noir;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, noir, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}//7\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t//diagBasDroit\r\n\t\t\t\t\tif(this.plateau[x-1][y-1]==noir) {\r\n\t\t\t\t\t\tif(basDroit) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == blanc) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = noir;\r\n\t\t\t\t\t\t\t\tx++;\r\n\t\t\t\t\t\t\t\ty++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=noir;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, noir, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t\t//System.out.println(\"ajouté!\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//8\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\telse {//si le joueur actuel a les pions blanc\r\n\t\t\t\tif(p.getY()>0 && p.getY()<plateau[0].length-1 && p.getX()>0 && p.getX()<plateau.length-1) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\tif(this.plateau[x][y-1]==blanc) {//regarder si à gauche du pion blanc il y a un pion noir\r\n\t\t\t\t\t\t//on regarde si il est possible de poser un pion noir à droite\r\n\t\t\t\t\t\tif(getDroite(x,y,noir)) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == noir) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = blanc;\r\n\t\t\t\t\t\t\t\ty++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=blanc;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, blanc, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t}//1.1\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(this.plateau[x-1][y]==blanc) {//regardre au dessus si le pion est noir\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(getBas(x, y, noir)) {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == noir) {\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tplateau[x][y]= blanc;\r\n\t\t\t\t\t\t\t\tx++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=blanc;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, blanc, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//2.2\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(this.plateau[x][y+1]==blanc) { //regarde a droite si le pion est noir\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(getGauche(x, y, noir)) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == noir) {\r\n\t\t\t\t\t\t\t\tplateau[x][y]= blanc;\r\n\t\t\t\t\t\t\t\ty--;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=blanc;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, blanc, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//3.3\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\tif(this.plateau[x+1][y] == blanc) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(getHaut(x, y, noir)) {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == noir) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = blanc;\r\n\t\t\t\t\t\t\t\tx--;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=blanc;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, blanc, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//4.4\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t//diaghautgauche\r\n\t\t\t\t\tif(this.plateau[x+1][y+1]==blanc) {\r\n\t\t\t\t\t\tif(getDiagHautGauche(x,y,noir)) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == noir) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = blanc;\r\n\t\t\t\t\t\t\t\tx--;\r\n\t\t\t\t\t\t\t\ty--;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]= blanc;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, blanc, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//5.5\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t//diagbasGauche\r\n\t\t\t\t\tif(this.plateau[x-1][y+1]==blanc) {\r\n\t\t\t\t\t\tif(getDiagBasGauche(x,y,noir)) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == noir) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = blanc;\r\n\t\t\t\t\t\t\t\tx++;\r\n\t\t\t\t\t\t\t\ty--;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=blanc;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, blanc, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//6.6\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t//diaghautDroit\r\n\t\t\t\t\tif(this.plateau[x+1][y-1]==blanc) {\r\n\t\t\t\t\t\tif(getDiagHautdroite(x,y,noir)) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == noir) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = blanc;\r\n\t\t\t\t\t\t\t\tx--;\r\n\t\t\t\t\t\t\t\ty++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=blanc;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, blanc, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}//7.7\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t//diagBasDroit\r\n\t\t\t\t\tif(this.plateau[x-1][y-1]==blanc) {\r\n\t\t\t\t\t\tif(getDiagBasDroite(x,y,noir)) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == noir) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = blanc;\r\n\t\t\t\t\t\t\t\tx++;\r\n\t\t\t\t\t\t\t\ty++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=blanc;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, blanc, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//8.8\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void yas(){\n System.out.println(namn);\n \n try{\n String fraga = \"SELECT TEXT FROM INLAGG WHERE RUBRIK = 'Borttappad strumpa'\";\n String XD = db.fetchSingle(fraga);\n System.out.println(XD);\n txtInlagg.append(XD);\n }\n catch(InfException e){\n JOptionPane.showMessageDialog(null, \"Kunde ej hämta inlägg\");\n }\n }", "public static void dormir(){\n System.out.print(\"\\033[H\\033[2J\");//limpia pantalla\n System.out.flush();\n int restoDeMana; //variables locales a utilizar\n int restoDeVida;\n if(oro>=30){ //condicion de oro para recuperar vida y mana\n restoDeMana=10-puntosDeMana;\n puntosDeMana=puntosDeMana+restoDeMana;\n restoDeVida=150-puntosDeVida;\n puntosDeVida=puntosDeVida+restoDeVida;\n //descotando oro al jugador\n oro=oro-30;\n System.out.println(\"\\nrecuperacion satisfactoria\");\n }\n else{\n System.out.println(\"no cuentas con 'Oro' para recuperarte\");\n }\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public void zeraEmpates() {\r\n contaEmpates = 0;\r\n }", "private void xuLyThemSD(){\n if (checkNgay(txtNgaySD.getText())==false){\n JOptionPane.showMessageDialog(null, \"Ngày sử dụng phải thuộc dạng [YYYY-MM-DD].\\n Vui lòng kiểm tra lại!\");\n txtNgaySD.requestFocus();\n return;\n }//kiem tra ngay su dung\n \n if (checkGia(txtGiaDV.getText())==false){\n JOptionPane.showMessageDialog(null, \"Ngày sử dụng phải là ký tự số.\\n Vui lòng kiểm tra lại!\");\n txtGiaDV.requestFocus();\n return;\n }//kiem tra gia dich vu\n \n \n SuDungService suDungService = new SuDungService();\n int x = suDungService.themSuDung(cbbMaDV.getSelectedItem().toString(),\n cbbMaKH.getSelectedItem().toString(),\n txtNgaySD.getText(), Float.valueOf(txtGiaDV.getText()));\n \n if (x>0){\n hienThiSuDung();\n JOptionPane.showMessageDialog(null, \"Đã thêm!\");\n }else{\n JOptionPane.showMessageDialog(null, \"Thêm thất bại!\");\n cbbMaDV.requestFocus();\n return;\n }\n }", "public void Ganhou() {\n\t\tString[] g = new String[10]; \n\t\tg[0] = m[0][0] + m[0][1] + m[0][2];\n\t\tg[1] = m[1][0] + m[1][1] + m[1][2];\n\t\tg[2] = m[2][0] + m[2][1] + m[2][2];\n\t\t\n\t\tg[3] = m[0][0] + m[1][0] + m[2][0];\n\t\tg[4] = m[0][1] + m[1][1] + m[2][1];\n\t\tg[5] = m[0][2] + m[1][2] + m[2][2];\n\t\t\n\t\tg[6] = m[0][0] + m[1][1] + m[2][2];\n\t\tg[7] = m[2][0] + m[1][1] + m[0][2];\n\t\tg[8] = \"0\";\n\t\tg[9] = \"0\";\n\t\t\n\t\tfor(int i= 0; i<10; i++) {\n\t\t\tif(g[i].equals(\"XXX\")){\n\t\t\t\tJOptionPane.showMessageDialog(null,\"X GANHOU\");\n\t\t\t\tacabou = true;\n\t\t\t\temp = 0; \n\t\t\t\tbreak;\n\t\t\t} else if (g[i].equals(\"OOO\")) {\n\t\t\t\tJOptionPane.showMessageDialog(null,\"O GANHOU\");\n\t\t\t\tacabou = true;\n\t\t\t\tbreak;\n\t\t\t} \n\t\t}\n\t\t\n\t\tif (emp == 9) {\n\t\t\tJOptionPane.showMessageDialog(null,\"EMPATOU\");\t\n\t\t\tacabou = true;\n\t\t}\n\t}", "Reserva Obtener();", "public void loescheEintrag() {\n\t\tzahl = 0;\n\t\tistEbenenStart = false;\n\t}", "public void notificaAlgiocatore(int azione, Giocatore g) {\n\r\n }", "public void pridejNovePivo ()\n\t{\n\t\n\t\tpivo = pivo + PRODUKCE;\n\t\t\n\t}", "public ArrayList<String> ExcutarCalculo(ArrayList<String> linha, String tipo){\n ArrayList<String> cod = new ArrayList();\n String reg, rv1, rv2;\n \n /*Verifica se a variavel tem registrador*/\n reg = r.getRegistrador(linha.get(0));\n if(linha.size() == 3){//x = n\n rv1 = r.getRegistrador(linha.get(2));//Verifica se é variavel\n \n if(reg == null){\n reg = \"r\"+(r.getMax()+1);\n r.Add(linha.get(0), reg);\n } \n \n if(rv1 == null)\n cod.add(\"load \"+reg+\", \"+linha.get(2));\n else\n cod.add(\"load \"+reg+\", \"+rv1);\n }else{\n ArrayList<String> aux = new ArrayList();\n String[] ordem = new String[100];\n String [][]operador = {{\"(\",\"\"},{\"*\",\"mult\"},{\"/\",\"div\"},{\"+\",\"add\"},{\"-\",\"sub\"}};\n String []temp = {\"ra\",\"rb\",\"rc\",\"rd\",\"re\",\"rf\"};\n Boolean ctr = false;\n int i, j, k, tl, ctrTemp, r1, r2, pos;\n \n for(i = 0; i < 100; i++){\n ordem[i] = \"\";\n } \n \n tl = ctrTemp = 0;\n for(i = 0; i < 5; i++){\n for(j = 0; j < linha.size(); j++){\n if(linha.get(j).contains(operador[i][0])){\n if(i == 0){\n /* min = verificaRegistradores(linha.get(j+1),linha.get(j+3),temp);\n \n if(min == -1){\n ordem[tl++] = \"load \"+temp[ctrTemp++]+\", \"+linha.get(j+1);//Carrega val no registrador t1\n ordem[tl++] = \"load \"+temp[ctrTemp++]+\", \"+linha.get(j+3);//Carrega val no registrador t2\n }\n \n \n for(k = 0; k < 5; k++){\n if(linha.get(j+2).contains(operador[k][0])){ \n if(operador[k][1].equals(\"add\")){\n if(tipo.equals(\"int\"))\n ordem[tl] += \"addi\";\n else\n ordem[tl] += \"addf\";\n }\n \n k = 5;\n }\n }\n \n ordem[tl] += \" \"+temp[ctrTemp-2];//temp3 por conta de reuso\n ordem[tl] += \", \"+temp[ctrTemp-1];//temp2\n ordem[tl] += \", \"+temp[ctrTemp-2];//temp1\n tl++;\n \n for(k = 0; k < 5; k++)//( ate )\n linha.remove(j);\n linha.add(j,temp[ctrTemp-2]);\n \n if(min == -1)\n ctrTemp -= 1;\n else\n ctrTemp = 0;*/\n }else{\n rv1 = r.getRegistrador(linha.get(j-1));\n rv2 = r.getRegistrador(linha.get(j+1));\n \n r1 = verificaRegistradores(linha.get(j-1),temp);\n if(r1 == -1){//Nenhum registrador\n if(rv1 == null)\n ordem[tl++] = \"load \"+temp[ctrTemp++]+\", \"+linha.get(j-1);//Carrega val no registrador t1\n else\n ordem[tl++] = \"move \"+temp[ctrTemp++]+\", \"+rv1;\n }\n r2 = verificaRegistradores(linha.get(j+1),temp);\n if(r2 == -1){//Nenhum registrador\n if(rv2 == null)\n ordem[tl++] = \"load \"+temp[ctrTemp++]+\", \"+linha.get(j+1);//Carrega val no registrador t2\n else\n ordem[tl++] = \"move \"+temp[ctrTemp++]+\", \"+rv2;//Carrega val no registrador t2\n } \n \n pos = ctrTemp;//como posso entrar no mult ou no add\n if(operador[i][1].equals(\"mult\") || operador[i][1].equals(\"div\")){\n ctrTemp -= 2;\n \n if(operador[i][1].equals(\"mult\")){\n aux = mult(linha.get(j-1), linha.get(j+1), tipo, temp[ctrTemp++]);\n }else\n if(operador[i][1].equals(\"div\")){\n aux = div(linha.get(j-1), linha.get(j+1), tipo, temp[ctrTemp++]);\n }\n \n tl -= 2;\n for(k = 0; k < aux.size(); k++){\n ordem[tl++] = aux.get(k);\n }\n pos = ctrTemp-1;\n \n if(r1!= -1 && r2 != -1)\n ctrTemp -= 2;\n /*else\n ctrTemp -= 1;*/\n }else\n if(operador[i][1].equals(\"add\") || operador[i][1].equals(\"sub\")){\n if(operador[i][1].equals(\"sub\")){\n ordem[tl-1] = \"load \"+temp[ctrTemp-1]+\", -\"+linha.get(j+1);\n }\n \n if(tipo.equals(\"int\"))\n ordem[tl] += \"addi\";\n else\n ordem[tl] += \"addf\";\n \n ordem[tl] += \" \"+temp[ctrTemp-2];//temp3\n ordem[tl] += \", \"+temp[ctrTemp-1];//temp2\n ordem[tl] += \", \"+temp[ctrTemp-2];//temp1\n tl++;\n pos = ctrTemp-2;\n \n if(r1!= -1 && r2 != -1)\n ctrTemp -= 2;\n else\n ctrTemp -= 1;\n }\n \n for(k = 0; k < 3; k++)\n linha.remove(j-1);\n linha.add(j-1,temp[pos]);\n }\n ctr = true;//Faz repetir denovo caso adicione;\n }\n }\n if(ctr){\n i--;//Controla pra só sair quando tiver excluido todas operacoes desse tipo\n ctr = false;\n }\n }\n for(k = 0; k < tl; k++){\n cod.add(ordem[k]);\n }\n\n if(reg == null){\n reg = \"r\"+(r.getMax()+1);\n r.Add(linha.get(0), reg);\n }\n cod.add(\"move \"+reg+\", \"+temp[ctrTemp-1]);\n ctrTemp = 0;\n }\n \n return cod;\n }", "public void sendeSpielfeld();", "void desconto_final(){\n setDesconto_final(this.inss + this.irpf);\n System.out.println(\"desconto_total = R$ \" + arredondar(this.desconto_final));\n }", "public int MasalarmasaEkle(String masa_adi) {\n baglanti vb = new baglanti();\r\n vb.baglan();\r\n try {\r\n int masa_no = 0;\r\n // masalar tablosundaki en son id ye gore masa_no yu getirir\r\n String sorgu = \"select masa_no from masalar where idmasalar= (select idmasalar from masalar order by idmasalar desc limit 0, 1)\";\r\n ps = vb.con.prepareStatement(sorgu);\r\n rs = ps.executeQuery(sorgu);\r\n while (rs.next()) {\r\n masa_no = rs.getInt(1);\r\n }\r\n masa_no = masa_no + 1;\r\n String sorgu2 = \"insert into masalar (masa_no, masa_adi) values (\" + masa_no + \", '\" + masa_adi + \"')\";\r\n ps = vb.con.prepareStatement(sorgu2);\r\n ps.executeUpdate();\r\n String sorgu3 = \"insert into masa_durum (masa_no, durum) values (\" + masa_no + \", 0)\";\r\n ps = vb.con.prepareStatement(sorgu3);\r\n ps.executeUpdate();\r\n return masa_no;\r\n } catch (Exception e) {\r\n Logger.getLogger(masalar.class.getName()).log(Level.SEVERE, null, e);\r\n return 0;\r\n }\r\n finally{\r\n try {\r\n vb.con.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(masalar.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n }", "public static void quienHaGanado(Mano[] jugadores, int actual,int carro){\n if(jugadores[actual].getNPiezas()!=0){\n boolean dosIguales=false;\n actual=0;\n for (int i = 1; i < jugadores.length; i++) {\n if(jugadores[i].getPuntuacion()==jugadores[actual].getPuntuacion()){//El jug i y el actual tienen la misma putnuacion\n if(i==carro){//el jugador i es el carro\n actual=i;\n dosIguales=false;\n }\n else if(actual==carro){//el jugador actual es el carro\n dosIguales=false;\n }\n else{//ninguno es el carro y hay que acudir a un metodo para nombrar a los dos ganadores.\n dosIguales=true;\n }\n }\n if(jugadores[i].getPuntuacion()<jugadores[actual].getPuntuacion()){//el jugador i tiene menor puntuacion que el jugador actual\n actual=i;\n dosIguales=false;\n }\n }\n if(dosIguales){\n System.out.println(\"pene\");\n Excepciones.cambiarColorAzul(\"Y los GANADORES SON....\");\n for (int i = 0; i < jugadores.length; i++) {\n if (jugadores[i].getPuntuacion()==jugadores[actual].getPuntuacion()) {\n //System.out.println(\"\\t\\t\\u001B[34mEl jugador nº- \"+(i+1)+\": \"+jugadores[i].getNombre());\n Excepciones.cambiarColorAzul(\"\\t\\tEl jugador nº- \"+(i+1)+\": \"+jugadores[i].getNombre());\n }\n }\n System.out.println(\"\\u001B[30m\");\n }\n else{\n Excepciones.cambiarColorAzul(\"Y el GANADOR ES....\");\n //System.out.println(\"\\t\\t\\u001B[34mEl jugador nº- \"+(actual+1)+\": \"+jugadores[actual].getNombre()+\"\\u001B[30m\");\n Excepciones.cambiarColorAzul(\"\\t\\tEl jugador nº- \"+(actual+1)+\": \"+jugadores[actual].getNombre());\n }\n }\n else {\n Excepciones.cambiarColorAzul(\"Y el GANADOR ES....\");\n //System.out.println(\"\\t\\t\\u001B[34mEl jugador nº- \"+(actual+1)+\": \"+jugadores[actual].getNombre()+\"\\u001B[30m\");\n Excepciones.cambiarColorAzul(\"\\t\\tEl jugador nº- \"+(actual+1)+\": \"+jugadores[actual].getNombre());\n }\n }", "public static void atacar(){\n int aleatorio; //variables locales a utilizar\n Random numeroAleatorio = new Random(); //declarando variables tipo random para aleatoriedad\n int ataqueJugador;\n //acciones de la funcion atacar sobre vida del enemigo\n aleatorio = (numeroAleatorio.nextInt(20-10+1)+10);\n ataqueJugador= ((nivel+1)*10)+aleatorio;\n puntosDeVidaEnemigo= puntosDeVidaEnemigo-ataqueJugador;\n \n }", "@Override//sobrescribir metodo\n public String getDescripcion(){\n return hamburguesa.getDescripcion()+\" + lechuga\";//retorna descripcion del oobj hamburguesa y le agrega +lechuga\n }", "private void tallennaTiedostoon() {\n viitearkisto.tallenna();\n }", "private void peliLoppuuUfojenTuhoamiseen() {\n if (tuhotut == Ufolkm) {\n ingame = false;\n Loppusanat = \"STEVE HOLT!\";\n }\n }", "public static void Promedio(){\n int ISumaNotas=0;\n int IFila=0,ICol=0;\n int INota;\n float FltPromedio;\n for(IFila=0;IFila<10;IFila++)\n {\n ISumaNotas+=Integer.parseInt(StrNotas[IFila][1]);\n }\n FltPromedio=ISumaNotas/10;\n System.out.println(\"El promedio de la clase es:\"+FltPromedio);\n }", "void tampilKarakterA();", "public logicaEnemigos(){\n\t\t//le damos una velocidad inicial al enemigo\n\t\tsuVelocidad = 50;\n\t\tsuDireccionActual = 0.0;\n\t\tposX = 500 ;\n\t\tposY = 10;\n\t}", "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 void Ordenamiento() {\n\n\t}", "@Override\r\n public String getUsoMaggiore() {\n int maxpacchetti=0;\r\n int npacchetti=0;\r\n String a;\r\n Map<String, String> mappatemp=new HashMap<>();\r\n Iterator<Map<String, String>> iterator;\r\n iterator = getUltimaEntry().iterator();\r\n System.out.println(getUltimaEntry().size());\r\n\t\twhile (iterator.hasNext()) {\r\n \r\n\t\t\tMap<String, String> m = iterator.next();\r\n //si fa la ricerca della più utilizzata all'inerno della mappa\r\n \r\n npacchetti=Integer.parseInt(m.get(\"RX-OK\"))+Integer.parseInt(m.get(\"TX-OK\"));\r\n System.out.println(maxpacchetti);\r\n if (maxpacchetti<npacchetti){\r\n maxpacchetti=npacchetti;\r\n mappatemp.put(\"Iface\",m.get(\"Iface\"));\r\n mappatemp.put(\"Pacchetti_TX+RX_OK\",String.valueOf(npacchetti));\r\n \r\n }\r\n }\r\n \r\n try {\r\n String json = new ObjectMapper().writeValueAsString(mappatemp);\r\n System.out.println(json);\r\n \r\n \r\n if (json!=null) return json ;\r\n } catch (JsonProcessingException ex) {\r\n Logger.getLogger(NetstatSingleton.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n \r\n \r\n \r\n return \"NOT WORKING\";\r\n \r\n }", "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}", "protected void pretragaGledalac() {\n\t\tString Gledalac=tfPretraga.getText();\r\n\r\n\t\tObject[]redovi=new Object[9];\r\n\t\tdtm.setRowCount(0);\r\n\t\t\r\n\t\tfor(Rezervacije r:Kontroler.getInstanca().vratiRezervacije()) {\r\n\t\t\tif(r.getImePrezime().toLowerCase().contains(Gledalac.toLowerCase())) {\r\n\t\t\t\r\n\t\t\t\tredovi[0]=r.getID_Rez();\r\n\t\t\t\tredovi[1]=r.getImePrezime();\r\n\t\t\t\tredovi[2]=r.getImePozorista();\r\n\t\t\t\tredovi[3]=r.getNazivPredstave();\r\n\t\t\t\tredovi[4]=r.getDatumIzvodjenja();\r\n\t\t\t\tredovi[5]=r.getVremeIzvodjenja();\r\n\t\t\t\tredovi[6]=r.getScenaIzvodjenja();\r\n\t\t\t\tredovi[7]=r.getBrRezUl();\r\n\t\t\t\tredovi[8]=r.getCenaUlaznica();\r\n\t\t\t\tdtm.addRow(redovi);\r\n\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}", "private String elaboraRitorno() {\n String testo = VUOTA;\n String titoloPaginaMadre = getTitoloPaginaMadre();\n\n if (usaHeadRitorno) {\n if (text.isValid(titoloPaginaMadre)) {\n testo += \"Torna a|\" + titoloPaginaMadre;\n testo = LibWiki.setGraffe(testo);\n }// fine del blocco if\n }// fine del blocco if\n\n return testo;\n }", "public static void MostrarPerroSegunEstadia(Perro BaseDeDatosPerros[], int codPerro){\n String razaDeceada, razaPerro;\r\n int diasDeEstadia; \r\n razaDeceada=IngresarRazaCorrecta();\r\n \r\n for (int i = 0; i < codPerro; i++) {\r\n razaPerro=BaseDeDatosPerros[i].getRaza();\r\n diasDeEstadia=BaseDeDatosPerros[i].getCantDias();\r\n if (razaDeceada.equalsIgnoreCase(razaPerro)&&(diasDeEstadia>20)) {\r\n System.out.println(\"____________________________________________\");\r\n System.out.println(BaseDeDatosPerros[i].toString());\r\n System.out.println(\"____________________________________________\");\r\n \r\n }\r\n }\r\n \r\n }", "public static void main(String[] args) {\n int yaricap=4;\n double alan= 4*4*Constans.pi;\n\n\n // kullanicidan alacaginiz saat , dakika ve gun bilgisinin saniyeyey ceviriniz\n\n int gun =23;\n int saat=7;\n int dakika=25;\n\n int saniyeCinsinden =\n gun * Constants.hourInDay *Constants.minuteInHour* Constants.secondInMinute+\n saat* Constants.minuteInHour* Constants.secondInMinute+\n dakika * Constants.secondInMinute;\n System.out.println(\"saniyeCinsinden = \" + saniyeCinsinden);\n\n\n }", "public int esquinas(){\n int v=0;\n if (fila==0 && columna==0){\n if(automata.getElemento(fila,columna+1)!=null && automata.getElemento(fila,columna+1).isVivo()){v++;}\n if(automata.getElemento(fila+1,columna+1)!=null && automata.getElemento(fila+1,columna+1).isVivo()){v++;}\n if(automata.getElemento(fila+1,columna)!=null && automata.getElemento(fila+1,columna).isVivo()){v++;}\n }\n else if(fila==0 && columna==15){\n if(automata.getElemento(fila,columna-1)!=null && automata.getElemento(fila,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila+1,columna-1)!=null && automata.getElemento(fila+1,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila+1,columna)!=null && automata.getElemento(fila+1,columna).isVivo()){v++;}\n }\n else if(fila==15 && columna==0){\n if(automata.getElemento(fila-1,columna)!=null && automata.getElemento(fila-1,columna).isVivo()){v++;}\n if(automata.getElemento(fila-1,columna+1)!=null && automata.getElemento(fila-1,columna+1).isVivo()){v++;}\n if(automata.getElemento(fila,columna+1)!=null && automata.getElemento(fila,columna+1).isVivo()){v++;}\n }\n else if(fila==15 && columna==15){\n if(automata.getElemento(fila-1,columna)!=null && automata.getElemento(fila-1,columna).isVivo()){v++;}\n if(automata.getElemento(fila-1,columna-1)!=null && automata.getElemento(fila-1,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila,columna-1)!=null && automata.getElemento(fila,columna-1).isVivo()){v++;}\n }\n return v;\n }", "void establecerPuntoFM(int pos){\n this.emisoraFMActual = pos;\n }", "@Override\n public void affiche(){\n System.out.println(\"Loup : \\n points de vie : \"+this.ptVie+\"\\n pourcentage d'attaque : \"+this.pourcentageAtt+\n \"\\n dégâts d'attaque : \"+this.degAtt+\"\\n pourcentage de parade :\"+this.pourcentagePar+\n \"\\n position : \"+this.pos.toString());\n\n }", "private String tulostuksenApu(){\r\n String apu = \"Rivitiedosto: \";\r\n for(int i = 0; i<rivitiedot.length; i++){\r\n apu = apu + i+\": \";\r\n for(int k = 1; k <= rivitiedot[i].getKoko(); k++){\r\n apu = apu + \" \"+rivitiedot[i].get(k);\r\n }\r\n apu = apu + \" \";\r\n }\r\n\r\n return apu;\r\n }", "public String annulerRv(){\n\t\t// Traitement ici ... \n\t\treturn AFFICHER;\n\t}", "public void ektypwsiFarmakou() {\n\t\t// Elegxw an yparxoun farmaka\n\t\tif(numOfMedicine != 0)\n\t\t{\n\t\t\tfor(int i = 0; i < numOfMedicine; i++)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"INFO FOR MEDICINE No.\" + (i+1) + \":\");\n\t\t\t\tmedicine[i].print();\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"DEN YPARXOUN DIATHESIMA FARMAKA PROS EMFANISH!\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "private void remplirUtiliseData() {\n\t}", "void berechneFlaeche() {\n\t}", "public void introducirhora(){\n int horadespertar; \n }", "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}", "private void remplirPrestaraireData() {\n\t}", "int getSumaAdunata();", "public static void main(String[] args) {\n\t\t\r\n\t\tclass Ulamek{\r\n\t\t\tprivate int licznik, mianownik;\r\n\r\n\t\t\tpublic void ustawLicznik (int l){\r\n\t\t\t\tlicznik=l;\r\n\t\t\t}\r\n\t\t\tpublic void ustawMianownik (int m){\r\n\t\t\t\tmianownik=m;\r\n\t\t\t}\r\n\t\t\tpublic void ustawUlamek (int u1, int u2){\r\n\t\t\t\tlicznik=u1;\r\n\t\t\t\tmianownik=u2;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tpublic void wyswietl (){\r\n\t\t\t\t\r\n\t\t\t\tint przod, reszta, przod_dlugosc, mianownik_dlugosc, licznik_dlugosc;\r\n\t\t\t\tString przod_zamiana, mianownik_string, licznik_string;\r\n\t\t\t\tdouble wynik;\r\n\t\t\t\t\r\n\t\t\t\tif (mianownik!=0 && licznik !=0){\r\n\t\t\t\tprzod=licznik/mianownik;\r\n\t\t\t\treszta=licznik-(przod*mianownik);\r\n\t\t\t\tprzod_zamiana=\"\"+przod;\r\n\t\t\t\tprzod_dlugosc=przod_zamiana.length();\r\n\t\t\t\twynik=1.0*licznik/mianownik;\r\n\t\t\t\t\r\n\t\t\t\tif(reszta!=0){\r\n\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\tint licznik = 0;\r\n\t\t\t\t\tdo{\r\n\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t licznik++;\r\n\t\t\t\t\t}while (licznik!=przod_dlugosc);\r\n\t\t\t\tSystem.out.println(reszta);\r\n\t\t\t}\r\n\r\n\t\t\t\t//zamiana na stringa i liczenie\r\n\t\t\t\tmianownik_string=\"\"+mianownik;\r\n\t\t\t\tmianownik_dlugosc=mianownik_string.length();\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t//brak calości\r\n\t\t\t\tif(przod==0){\r\n\t\t\t\tSystem.out.print(\" \"+\" \"+\" \");\r\n\t\t\t\tint licznik3 = 0;\r\n\t\t\t\tdo{\r\n\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t licznik3++;\r\n\t\t\t\t}while (licznik3!=mianownik_dlugosc);\r\n\t\t\t System.out.print(\" = \"+wynik);\r\n\r\n\t\t\t System.out.println();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\r\n\r\n\t\t\t\tif(przod!=0){\r\n\t\t\t\tSystem.out.print(\" \"+przod+\" \");\r\n\t\t\t\tint licznik3 = 0;\r\n\t\t\t\tdo{\r\n\t\t\t\t\tif(reszta!=0){\r\n\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t}\r\n\t\t\t\t licznik3++;\r\n\t\t\t\t}while (licznik3!=mianownik_dlugosc);\r\n\t\t\t System.out.print(\" = \"+wynik);\r\n\r\n\t\t\t System.out.println();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif(reszta!=0){\r\n\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\tint licznik2 = 0;\r\n\t\t\t\tdo{\r\n\t\t\t\t\tif(reszta!=0){\r\n\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t licznik2++;\r\n\t\t\t\t\t\r\n\t\t\t\t}while (licznik2!=przod_dlugosc);\r\n\t\t\t\tSystem.out.println(mianownik);\r\n\t\t\t System.out.println();\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\t//jezeli blad \r\n\t\t\t\t\tmianownik_string=\"\"+mianownik;\r\n\t\t\t\t\tmianownik_dlugosc=mianownik_string.length();\r\n\t\t\t\t\tlicznik_string=\"\"+licznik;\r\n\t\t\t\t\tlicznik_dlugosc=licznik_string.length();\r\n\t\t\t\t\tif(licznik_dlugosc>mianownik_dlugosc){\r\n\t\t\t\t\t\tmianownik_dlugosc=licznik_dlugosc;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//gora\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t//if(licznik==0){\r\n\t\t\t\t\t//System.out.print(\" \");\r\n\t\t\t\t\t//}\r\n\r\n\t\t\t\t\tSystem.out.println(licznik);\r\n\t\t\t\t\t\r\n\t\t\t\t\t//srodek\r\n\t\t\t\t\tSystem.out.print(\" \"+\" \"+\" \");\r\n\t\t\t\t\t\r\n\t\t\t\t\tint licznik3 = 0;\r\n\t\t\t\t\tdo{\r\n\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t licznik3++;\r\n\t\t\t\t\t}while (licznik3!=mianownik_dlugosc);\r\n\t\t\t\t System.out.print(\" = \"+\"ERR\");\r\n\r\n\t\t\t\t System.out.println();\r\n\t\t\t\t\t\r\n\t\t\t\t //dol\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t\t\tSystem.out.println(mianownik);\r\n\t\t\t\t\t System.out.println();\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t Ulamek u1=new Ulamek();\r\n\t\t Ulamek u2=new Ulamek();\r\n\r\n\t\t u1.ustawLicznik(3);\r\n\t\t u1.ustawMianownik(5);\r\n\r\n\t\t u2.ustawLicznik(142);\r\n\t\t u2.ustawMianownik(8);\r\n\r\n\t\t u1.wyswietl();\r\n\r\n\r\n\r\n\r\n\r\n\r\n\t\t \r\n\t\t u2.wyswietl();\r\n\r\n\r\n\r\n\r\n\t\t u2.ustawUlamek(100,0);\r\n\r\n\r\n\t\t u2.wyswietl();\r\n\r\n\t}", "public void hitunganRule1(){\n penebaranBibitSedikit = 1200;\r\n hariPanenSedang = 50;\r\n \r\n //menentukan niu\r\n nBibit = (1500 - penebaranBibitSedikit) / (1500 - 500);\r\n \r\n //menentukan niu hari panen sedang\r\n if ((hariPanenSedang >=40) && (hariPanenSedang <=80)) {\r\n nPanen = (hariPanenSedang - 40) / (80 - 40);\r\n }\r\n \r\n //tentukan alpha predikat (karena grafik segitiga)\r\n if (nBibit < nPanen) {\r\n a1 = nBibit;\r\n }else if (nBibit > nPanen) {\r\n a1 = nPanen;\r\n }\r\n \r\n //tentukan Z1\r\n z1 = (penebaranBibitSedikit + hariPanenSedang) * 700;\r\n System.out.println(\"a1 = \" + String.valueOf(a1));\r\n System.out.println(\"z1 = \" + String.valueOf(z1));\r\n }", "public void mostrarFatura() {\n\n int i;\n System.err.println(\"Fatura do contrato:\\n\");\n\n if (hospedesCadastrados.isEmpty()) {//caso nao existam hospedes\n System.err.println(\"Nao existe hospedes cadastrados\\n\");\n\n } else {\n System.err.println(\"Digite o cpf do hospede:\\n\");\n\n listarHospedes();\n int cpf = verifica();\n for (i = 0; i < hospedesCadastrados.size(); i++) {//roda os hospedes cadastrados\n if (hospedesCadastrados.get(i).getCpf() == cpf) {//pega o hospede pelo cpf\n if (hospedesCadastrados.get(i).getContrato().isSituacao()) {//caso a situacao do contrato ainda estaja ativa\n\n System.err.println(\"Nome do hospede:\" + hospedesCadastrados.get(i).getNome());\n System.err.println(\"CPF:\" + hospedesCadastrados.get(i).getCpf() + \"\\n\");\n System.err.println(\"Servicos pedidos:\\nCarros:\");\n if (!(hospedesCadastrados.get(i).getContrato().getCarrosCadastrados() == null)) {\n System.err.println(hospedesCadastrados.get(i).getContrato().getCarrosCadastrados().toString());\n System.err.println(\"Total do serviço de aluguel de carros R$:\" + hospedesCadastrados.get(i).getContrato().getContaFinalCarros() + \"\\n\");//;\n } else {\n System.err.println(\"\\nO hospede nao possui carros cadastrados!\\n\");\n }\n System.err.println(\"Quartos:\");\n if (!(hospedesCadastrados.get(i).getContrato().getQuartosCadastrados() == null)) {\n System.err.println(hospedesCadastrados.get(i).getContrato().getQuartosCadastrados().toString());\n System.err.println(\"Total do servico de quartos R$:\" + hospedesCadastrados.get(i).getContrato().getContaFinalQuartos() + \"\\n\");//;\n } else {\n System.err.println(\"\\nO hospede nao possui Quartos cadastrados!\\n\");\n }\n System.err.println(\"Restaurante:\");\n System.err.println(\"Total do servico de restaurante R$: \" + hospedesCadastrados.get(i).getContrato().getValorRestaurante() + \"\\n\");\n System.err.println(\"Total de horas de BabySitter contratatas:\" + hospedesCadastrados.get(i).getContrato().getHorasBaby() / 45 + \"\\n\"\n + \"Total do servico de BabySitter R$:\" + hospedesCadastrados.get(i).getContrato().getHorasBaby() + \"\\n\");\n System.err.println(\"Total Fatura final: R$\" + hospedesCadastrados.get(i).getContrato().getContaFinal());\n //para limpar as disponibilidades dos servicos\n //carros, quarto, contrato e hospede\n //é necessario remover o hospede?\n// \n\n } else {//caso o contrato esteja fechado\n System.err.println(\"O hospede encontra-se com o contrato fechado!\");\n }\n }\n\n }\n }\n }" ]
[ "0.67743766", "0.61798614", "0.6164554", "0.6107561", "0.61071175", "0.605559", "0.60524386", "0.6050391", "0.6008548", "0.6000192", "0.5986239", "0.59685063", "0.59669876", "0.59507257", "0.59443074", "0.5933186", "0.5927659", "0.592437", "0.59129375", "0.5912793", "0.5900569", "0.5878192", "0.5855113", "0.5847989", "0.5841302", "0.5833126", "0.5830427", "0.5830063", "0.58184165", "0.58120096", "0.5810347", "0.58054054", "0.57935065", "0.5786093", "0.5786076", "0.5783052", "0.5776206", "0.57717484", "0.57698774", "0.5769024", "0.57553846", "0.5750693", "0.5748816", "0.5740845", "0.5736764", "0.5729024", "0.57280463", "0.5724862", "0.5723585", "0.5721436", "0.5708449", "0.57056564", "0.5704821", "0.5704498", "0.57017905", "0.5700569", "0.5700399", "0.5699628", "0.5693988", "0.5687759", "0.5681247", "0.5680936", "0.5680275", "0.5675215", "0.5671858", "0.5671414", "0.56650615", "0.5662765", "0.5660325", "0.565656", "0.56522334", "0.56411904", "0.56393516", "0.5635713", "0.56327295", "0.56247586", "0.5623645", "0.5623369", "0.56206214", "0.5618537", "0.56171095", "0.5607842", "0.5605993", "0.5599868", "0.5596161", "0.5594038", "0.55937433", "0.5592048", "0.5590603", "0.5589198", "0.5584261", "0.5582603", "0.5579887", "0.5579666", "0.5579316", "0.55774623", "0.5573193", "0.5572896", "0.5572804", "0.5563349", "0.55633026" ]
0.0
-1
/ local scope, cache on
public void testConversionsWithoutHandler() throws Exception { VelocityEngine ve = createEngine(false); testConversions(ve, "test_conv.vtl", "test_conv_without_handler"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCached() {\n }", "StackManipulation cached();", "@Override\n public boolean isCaching() {\n return false;\n }", "@Produces\n\t@ApplicationScoped\n\tpublic org.infinispan.AdvancedCache<Long, String> getLocalRequestCache() {\n\t\torg.infinispan.Cache<Long,String> basicCache = getLocalCacheManager().getCache(\"client-request-cache\",true);\n\t\treturn basicCache.getAdvancedCache();\n\t}", "public MultiCache () {\n super();\n this.locals = new ArrayList<Coordinates>();\n this.stage = 0;\n }", "public void clearLocalCache()\n/* */ {\n/* 345 */ super.clearCache();\n/* */ }", "public boolean isCached() {\n return true;\n }", "protected void createLookupCache() {\n }", "@Override\n\tpublic boolean isCaching() {\n\t\treturn false;\n\t}", "private CacheWrapper<AccessPointIdentifier, Integer> createCache() {\n return new CacheWrapper<AccessPointIdentifier, Integer>() {\n \n @Override\n public void put(AccessPointIdentifier key, Integer value) {\n cache.put(key, value);\n }\n \n @Override\n public Integer get(AccessPointIdentifier key) {\n if (cache.containsKey(key)) {\n hitRate++;\n }\n return cache.get(key);\n }\n \n \n };\n }", "Object getValueFromLocalCache(Object key);", "private Stack cacheStack(String ename) {\n\t\tStack s = pkCache.get(ename);\n\t\tif (s == null) {\n\t\t\ts = new Stack();\n\t\t\tpkCache.put(ename, s);\n\t\t}\n\t\treturn s;\n\t}", "public Map<Integer, Integer> getLocalCache() {\n return localCache;\n }", "public void gotCachedData() {\n\t\tneedsRecaching = false;\n\t}", "public void limpaCache()\n\t{\n\t\tpoolMensagens.clear();\n\t}", "protected final <T> T getLocalCache(CacheKeyMain<T> key, Callable<T> caller){\n try {\n return key.cast(spanMainCache.get(key, caller));\n } catch (ExecutionException e) {\n throw new RuntimeException(e.getCause());\n }\n }", "protected Cache cache(RequestContext ctx) {\n String serviceId = serviceId(ctx);\n if (serviceId != null) {\n return cacheManager.getCache(serviceId);\n }\n return null;\n }", "public void storeInCache() {\r\n lockValueStored = IN_CACHE;\r\n }", "protected boolean getStravaUseCache()\n {\n return true;\n }", "public StackManipulation cached() {\n return new Cached(this);\n }", "public interface SquadAttentionLocalCache extends LocalCache {\n\n /**\n * 缓存内容排序\n * \n * @param category 缓存类型\n * @param orderByStr 排序变量\n * @param orderByType 排序方式\n * @param count 取多少条\n * @return\n */\n public List<AttentionCache> sort(LocalCacheEnum category, String orderByStr,\n CacheOrderByEnum orderByType, int count);\n\n}", "public interface Caching {\n\t\n\t/**\n\t * ititialize resources for a cache\n\t *\n\t */\n\tvoid init();\n\t\n\t/**\n\t * clear cache\n\t *\n\t */\n\tvoid clear();\n\n}", "protected final <T> Optional<T> getLocalCache(CacheKeyOptional<T> key,\n Callable<Optional<T>> caller\n ){\n try {\n return key.cast(spanOptionalCache.get(key, caller));\n } catch (ExecutionException e) {\n throw new RuntimeException(e.getCause());\n }\n }", "public Reachable(){\n\t\t\n\t\t\n\t}", "public static Cache getCache(PageContext pc, int scope)\n {\n return (Cache)pc.getAttribute(Constants.JSPTAG_CACHE_KEY, scope);\n }", "public interface PermissionService {\n\n @Caching()\n public SysPermission findByUrl(String url);\n\n}", "protected void cacheLoadThroughSubjects()\n {\n }", "public void cacheableQuery() throws HibException;", "Cache<String, YourBean> getMyCache() {\n\treturn myCache;\n }", "private void init() {\n clearCaches();\n }", "abstract public IWorldStateCache clientWorldStateCache();", "boolean isCacheInitialized();", "public void cacheResult(CsclAppointeeMaster csclAppointeeMaster);", "protected final <T> List<T> getLocalCache(CacheKeyList<T> key,\n Callable<List<T>> caller\n ){\n try {\n return key.cast(spanListCache.get(key, caller));\n } catch (ExecutionException e) {\n throw new RuntimeException(e.getCause());\n }\n }", "private EmbeddedCacheManager getLocalCacheManager() {\n\t\tGlobalConfiguration glob = new GlobalConfigurationBuilder()\n\t\t\t.globalJmxStatistics().allowDuplicateDomains(true).enable().build();\n\t\n\t\torg.infinispan.configuration.cache.Configuration loc = new org.infinispan.configuration.cache.ConfigurationBuilder()\n\t\t\t.expiration().lifespan(1,TimeUnit.DAYS)\n\t\t\t.build();\n\t\t\n\t\treturn new DefaultCacheManager(glob, loc, true);\n\t}", "@Test\n public void testCoh3710_get()\n {\n doExpiryOpTest(new Runnable()\n {\n public void run()\n {\n assertNull(getNamedCache(getCacheName0()).get(Integer.valueOf(1)));\n }\n });\n }", "@PostConstruct\n public void initCache() {\n cache = Collections.synchronizedMap(new HashMap<>(cacheCapacity, 1));\n }", "int getCacheConcurrency();", "public void reuse() {}", "public void cacheResult(DataEntry dataEntry);", "public Cache getCache(String name)\r\n/* 39: */ {\r\n/* 40:64 */ return (Cache)this.cacheMap.get(name);\r\n/* 41: */ }", "protected void createLookupCache()\n/* */ {\n/* 1260 */ this.lookup = new SimpleCache(1, Math.max(getSize() * 2, 64));\n/* */ }", "@Override\r\n public void setCaching(int parseInt) {\n\r\n }", "boolean isCachingEnabled();", "public void setUsed(){\n\t\talreadyUsed = true;\n\t}", "private static JassExpr addCacheVariableSmart(JassTranslator translator, final JassFunction f,\n\t\t\tfinal List<JassStatement> result, Expr e, ExprTranslationResult fromExpr) {\n\t\tExprTranslationResult er = e.jassTranslateExpr(translator, f);\n\t\tresult.addAll(fromExpr.getStatements());\n\t\tJassExpr r;\n\t\tif (er.getStatements().size() == 0 && er.getExprSingle() instanceof JassExprAtomic) {\n\t\t\tr = er.getExprSingle();\n\t\t} else {\n\t\t\tJassVar loopEndVar = translator.getNewTempVar(f, \"integer\");\n\t\t\tresult.addAll(er.getStatements());\n\t\t\tresult.add(JassStmtSet(loopEndVar.getName(), er.getExprSingle()));\n\t\t\tr = JassExprVarAccess(loopEndVar.getName());\n\t\t}\n\t\treturn r;\n\t}", "long getCacheHits();", "private void CacheAsyncTaskFunctions(){\n\n //handle the functions dealing with async\n for(String func : asyncFunc){\n\n //cache the removed sections\n AsyncTaskRemoval remove = new AsyncTaskRemoval(refact, func);\n remove.RemoveSection();\n\n //remove the section from the original code\n refact = remove.refact;\n asyncCached.put(func, remove.removedSection);\n }\n\n //prompt user\n System.out.println(\"(1) Caching all the Async Functions and references to global variables\\n\");\n DisplaySleep();\n\n }", "public void init() {\n\t\tif (cache != null) {\n\t\t\tcache.dispose();\n\t\t\tcache = null;\n\t\t}\n\t\tcache = cacheFactory.create(CacheFactoryDirective.NoDCE, \"test\");\n\t}", "interface Cache {\n\n /** @return A cache entry for given path string or <code>null</code> (if file cannot be read or too large to cache).\n * This method increments CacheEntry reference counter, caller must call {@link #checkIn(CacheEntry)} to release returned entry (when not null). */\n CacheEntry checkOut(CacheEntryLoader cacheEntryLoader);\n\n /**\n * Method to release cache entry previously obtained from {@link #checkOut(CacheEntryLoader)} call.\n * This method decrements CacheEntry reference counter.\n */\n void checkIn(CacheEntry key);\n\n /** Invalidates cached entry for given path string (if it is cached) */\n void invalidate(String pathString);\n\n void rename(String fromPathString, String toPathString);\n\n// /** Preload given file path in cache (if cache has vacant spot). Preloading happens in background. Preloaded pages initially have zero reference counter. */\n// void preload (String pathString);\n\n /** Clears the cache of all entries (even if some entries are checked out) */\n void clear();\n\n /** Allocates entry of given size for writing.\n * It will not be visible to others until caller calls {@link #update(String, CacheEntry)}.*/\n CacheEntry alloc(long size);\n\n /** Registers recently writtien cache entry as available for reading */\n void update(String pathString, CacheEntry cacheEntry);\n}", "@Override\n public void filter(ContainerRequestContext requestContext, ContainerResponseContext responseContext) throws IOException {\n if (requestContext.getProperty(CACHE_USED) == null && responseContext.getEntity() instanceof Result) {\n Result result = (Result) responseContext.getEntity();\n String requestPath = requestContext.getUriInfo().getPath();\n\n log.info(\"{} - caching result: {}\", requestPath, result);\n\n cache.putIfAbsent(requestPath, result);\n }\n }", "public boolean isUseCache() {\n return mUseCache;\n }", "public static void loadCache() {\n\t\t // it is the temporary replacement to database. We should use DB instead\n\t Circle circle = new Circle();\n\t circle.setId(\"1\");\n\t shapeMap.put(circle.getId(),circle);\n\n\t Square square = new Square();\n\t square.setId(\"2\");\n\t shapeMap.put(square.getId(),square);\n\n\t Rectangle rectangle = new Rectangle();\n\t rectangle.setId(\"3\");\n\t \n\t Circle circle2 = new Circle();\n\t circle2.setId(\"4\");\n\t circle2.setType(\"Big Circle\");\n\t shapeMap.put(circle2.getId(),circle2);\n\t shapeMap.put(rectangle.getId(), rectangle);\n\t }", "public CacheEntry searchWithCache(String name) {\n CacheEntry entry = cacheHit(name);\n \n if (entry != null) return entry;\n \n // we grab serial number first; the worst that will happen is we cache a later\n // update with an earlier serial number, which would just flush anyway\n Object token = getCacheToken();\n DynamicMethod method = searchMethodInner(name);\n \n return method != null ? addToCache(name, method, token) : addToCache(name, UndefinedMethod.getInstance(), token);\n }", "private UtilsCache() {\n\t\tsuper();\n\t}", "void resetCache();", "public void cacheResult(ua.org.gostroy.guestbook.model.Entry3 entry3);", "public void enterScope() {\n\t\tmap.add(new HashMap<K, V>());\n\t}", "synchronized HashMap flushTemporaryPrototypeCache() {\n HashMap c = _pcache;\n _pcache = null;\n return c;\n }", "@Scheduled(fixedDelay = 98)\n public void cacheStats() {\n SalesAmount salesAmount = statsService.retrieveNextSalesAmount();\n LocalDateTime now = LocalDateTime.now(clock).withNano(0);\n while (salesAmount != null && !salesAmount.getTime().isAfter(Instant.now(clock))) {\n /*\n Because sales requests are processed sequentially, this way we don't need to care about increasing the\n aggregated sales amount in parallel and use Atomic data structures.\n */\n SalesAmountPerSecond salesAmountPerSecond = statsService.getLastSalesAmountPerSecond();\n if (null != salesAmountPerSecond && salesAmountPerSecond.getTime().equals(now)) {\n salesAmountPerSecond.addSalesAmount(salesAmount.getAmount());\n } else {\n statsService.addSalesAmountPerSecond(new SalesAmountPerSecond(\n salesAmount.getAmount(),\n 1,\n now));\n }\n salesAmount = statsService.retrieveNextSalesAmount();\n }\n }", "protected Cache<Request, Result> getNetspeakCache() {\n return this.netspeakCache;\n }", "public boolean useCache() {\n return !pathRepositoryCache.isEmpty();\n }", "public void cacheBusRouteData()\n\t{\t\n\t\tdataMap = BusRouteDataFileReader.readAndCacheBusRouteData(this.pathname);\n\t}", "public void dereferenceCache() {\n this.cache = null;\n }", "public void refreshObjectCache();", "private CacheObject<K, V> getCacheObject(K key){\n return this.cache.get(key);\n }", "@Test\n public void eternal() {\n Cache<Integer, Integer> c = new Cache2kBuilder<Integer, Integer>() {}\n .eternal(true)\n /* ... set loader ... */\n .build();\n target.setCache(c);\n assertTrue(extractHandler() instanceof TimingHandler.EternalImmediate);\n }", "public interface ICache {\n\t\n\t/**\n\t * <p>\n\t * get the Cached Object from cache pool by the cache String key\n\t * @param key\n\t * @return\n\t */\n\tpublic Object get(String key);\n\t\n\t\n\t\n\t/**\n\t * <p>\n\t * \n\t * @param key\n\t * @return old cache object \n\t */\n\tpublic Object put(String key,Object value);\n\t\n\t/**\n\t * <p>\n\t * get the Cached Object from cache pool by the cache String key quietly,\n\t * without update the statistic data\n\t * @param key\n\t * @return\n\t */\n\tpublic Object getQuiet(String key);\n\t\n\t\n\t/**\n\t * <p>\n\t * remove the cached object from cache pool by the cache String key\n\t * @param key\n\t * @return\n\t */\n\tpublic Object remove(String key);\n\t\n\t/**\n\t * <p>\n\t * free specied size mem\n\t * @param size unit in Byte\n\t * @return\n\t */\n\tpublic long free(long size);\n\t\n\t\n\t/**\n\t * <p>\n\t * flush to the underly resource\n\t */\n\tpublic void flush();\n\t\n}", "private void pageCacheChanged() {\n // Ok to have a race here, see the field javadoc.\n if (!pageCacheChanged)\n pageCacheChanged = true;\n }", "protected void initializeCache() {\n if (cacheResults && initialized) {\n dataCache = new HashMap<String, Map<String, Map<String, BaseAttribute>>>();\n }\n }", "@Test\n public void testFindViaCache() {\n Integer hitRate1 = hitRate;\n Integer foundId = accessPointDimensionDao.foreignKeyValueFor(connection, AccessPointIdentifier.TEST);\n assertEquals(hitRate1, hitRate); // No change expected yet\n \n Integer hitRate2 = hitRate;\n Integer foundId2 = accessPointDimensionDao.foreignKeyValueFor(connection, AccessPointIdentifier.TEST);\n assertEquals(hitRate, new Integer(hitRate2+1)); // A cache hit is expected\n }", "public interface GlobalCacheManager {\n void ensureGlobalCacheExistAndWritable();\n\n Path getGlobalPackageCachePath(String packagePath);\n\n Path getGlobalGoBinCache(String relativePath);\n\n Optional<GlobalCacheMetadata> getMetadata(Path packagePath);\n\n /**\n * Locks global cache directory of {@code dependency}, and call the {@code callable}\n *\n * @param dependency dependency to be locked\n * @param callable code to be executed under lock\n * @param <T> return value type of callable\n * @return the return value of callable\n * @throws Exception exception thrown by callable\n */\n <T> T runWithGlobalCacheLock(GolangDependency dependency, Callable<T> callable) throws Exception;\n\n void updateCurrentDependencyLock(GolangDependency dependency);\n\n boolean currentRepositoryIsUpToDate(NotationDependency dependency);\n}", "public OldOldCache()\n {\n this(DEFAULT_UNITS);\n }", "private void loadCache(Context ctx, ImageLoader img) {\r\n RequestOptions options = getCommonOptions(img);\r\n options.diskCacheStrategy(DiskCacheStrategy.ALL);\r\n\r\n Glide.with(ctx).load(img.getUrl()).apply(options).into(img.getImgView());\r\n }", "private final void setupLocal0() {\n assert _profile==null;\n _fs = new Futures();\n _profile = new MRProfile(this);\n _profile._localstart = System.currentTimeMillis();\n _topLocal = true;\n // Check for global vs local work\n int selfidx = H2O.SELF.index();\n int nlo = subShift(selfidx);\n assert nlo < _nhi;\n final int nmid = (nlo+_nhi)>>>1; // Mid-point\n if( !_run_local && nlo+1 < _nhi ) { // Have global work?\n _profile._rpcLstart = System.currentTimeMillis();\n _nleft = remote_compute(nlo+1,nmid);\n _profile._rpcRstart = System.currentTimeMillis();\n _nrite = remote_compute( nmid,_nhi);\n _profile._rpcRdone = System.currentTimeMillis();\n }\n _lo = 0; _hi = _fr.anyVec().nChunks(); // Do All Chunks\n // If we have any output vectors, make a blockable Futures for them to\n // block on.\n // get the Vecs from the K/V store, to avoid racing fetches from the map calls\n _fr.vecs();\n setupLocal(); // Setup any user's shared local structures\n _profile._localdone = System.currentTimeMillis();\n }", "@Test\n\tpublic void testQueryCaching(){\n\t\tqueryCache();\n\t\tqueryCache2();\n\t}", "public FontCache getFontCache() {\n/* 158 */ return fontCache;\n/* */ }", "@Override\n\tpublic void cacheResult(LocalRichInfo localRichInfo) {\n\t\tentityCache.putResult(LocalRichInfoModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tLocalRichInfoImpl.class, localRichInfo.getPrimaryKey(),\n\t\t\tlocalRichInfo);\n\n\t\tlocalRichInfo.resetOriginalValues();\n\t}", "private final void setupLocal() {\n _topLocal = true;\n // Check for global vs local work\n if( _nlo >= 0 && _nlo < _nhi-1 ) { // Have global work?\n // Note: some top-level calls have no other global work, so\n // \"topLocal==true\" does not imply \"nlo < nhi-1\".\n int selfidx = H2O.SELF.index();\n if( _nlo < selfidx ) _nleft = remote_compute(_nlo, selfidx );\n if( selfidx+1 < _nhi ) _nrite = remote_compute(selfidx+1,_nhi);\n }\n _lo = 0; _hi = _fr.firstReadable().nChunks(); // Do All Chunks\n // If we have any output vectors, make a blockable Futures for them to\n // block on.\n if( _fr.hasAppendables() )\n _fs = new Futures();\n init(); // Setup any user's shared local structures\n }", "@Override\n\tpublic void setCaching(boolean caching) {\n\t\t\n\t}", "public PlayerContinuousSnap getCache(Player player) {\n\t\treturn this.cached.get(player);\n\t}", "private void invalidateCache() {\n\t}", "@Override\n public void filter(ContainerRequestContext requestContext) throws IOException {\n String requestPath = requestContext.getUriInfo().getPath();\n\n Result cachedResult = cache.get(requestPath);\n if (cachedResult != null) {\n log.info(\"{} - responding with cached result: {}\", requestPath, cachedResult);\n\n requestContext.setProperty(CACHE_USED, Boolean.TRUE);\n\n requestContext.abortWith(\n Response.ok(cachedResult).type(MediaType.APPLICATION_JSON).build());\n } else {\n log.info(\"{} - no result in cache\", requestPath);\n }\n }", "private boolean updateCache(String type) {\n\t\treturn false;\n\t}", "public boolean existCache() {\n return false;\n }", "private FixtureCache() {\n\t}", "public void cacheResult(com.Hotel.model.Hotel hotel);", "public boolean isLocal()\n {\n return true;\n }", "public static void startCaching() {\n\t\t/*\n\t\t * component caching happens if the collection exists\n\t\t */\n\t\tfor (ComponentType aType : ComponentType.values()) {\n\t\t\tif (aType.preLoaded == false) {\n\t\t\t\taType.cachedOnes = new HashMap<String, Object>();\n\t\t\t}\n\t\t}\n\t}", "void cachePositions(Collection<Position> positions);", "private ImageCache(Context context) {\n int memClass = ((ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE)).getMemoryClass();\n memClass = memClass > 32 ? 32 : memClass;\n\n final int cacheSize = 1024 * 1024 * memClass / 8;\n memoryCache = new LruCache<String, Bitmap>(cacheSize) {\n protected int sizeOf(String key, Bitmap bitmap) {\n return bitmap.getRowBytes() * bitmap.getHeight();\n }\n };\n\n File cacheDir = DiskLruCache.getDiskCacheDir(context, DISK_CACHE_SUB_DIR);\n diskCache = DiskLruCache.openCache(context, cacheDir, DISK_CACHE_SIZE);\n }", "public void loadCache() {\r\n\t\tint rango = getEmpleadoActual().getRango();\r\n\t\tArrayList<String> idsDptos = getEmpleadoActual().getDepartamentosId();\r\n\t\t\r\n\t\t// Para todos los departamentos a los que pertenezca el empleado\r\n\t\tfor (int nd=0; nd<idsDptos.size(); nd++){\r\n\t\t\tString dep = idsDptos.get(nd);\r\n\t\t\tint numvendedor = getEmpleadoActual().getEmplId();\r\n\r\n\t\t\tif (!alive) return;\r\n\t\t\tsetProgreso(\"Cargando contratos dpto \"+dep, 50);\r\n\t\t\tcontratos = controlador.getListaContratosDpto(dep);\r\n\t\t\tsetProgreso(\"Cargando contratos dpto \"+dep, 100);\r\n\r\n\t\t\tif (!alive) return;\r\n\t\t\tsetProgreso(\"Cargando empleados dpto \"+dep, 25);\r\n\t\t\templeados = controlador.getEmpleadosDepartamento(getEmpleadoActual().getEmplId(),dep);\r\n\t\t\tsetProgreso(\"Cargando empleados dpto \"+dep, 100);\r\n\t\t\t\r\n\t\t\t//Prueba ordenación empleados\r\n//\t\t\tfor (int i = 0; i < empleados.size(); i++) {\r\n//\t\t\t\tSystem.out.println(empleados.get(i).getPosicion());\r\n//\t\t\t}\r\n\t\t\tordenaEmpleados();\r\n//\t\t\tfor (int i = 0; i < empleados.size(); i++) {\r\n//\t\t\t\tSystem.out.println(empleados.get(i).getPosicion());\r\n//\t\t\t}\r\n\t\t\t//Fin PRueba\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif (!alive) return;\r\n\t\t\tif (rango == 1) { // Si es un empleado, coger turnos de su departamento\r\n\t\t\t\tsetProgreso(\"Cargando turnos dpto \"+dep, 70);\r\n\t\t\t\tturnos = controlador.getListaTurnosEmpleadosDpto(dep);\r\n\t\t\t\tsetProgreso(\"Cargando turnos dpto \"+dep, 100);\r\n\t\t\t} else if (rango == 2) { // Si es un jefe, coger turnos de todos los departamentos\r\n\t\t\t\tArrayList<String> temp = new ArrayList<String>();\r\n\t\t\t\ttemp = controlador.getDepartamentosJefe(numvendedor);\r\n\t\t\t\tfor (int i=0; i<temp.size(); i++)\r\n\t\t\t\t\tdepartamentosJefe.add(controlador.getDepartamento(temp.get(i)));\r\n\t\t\t\t//TODO borrar si al final no se usa\r\n\t//\t\t\tsetProgreso(\"Cargando jefes de departamento\", 60);\r\n\t//\t\t\tnumeroJefesDepartamento = controlador.getNumVendedorTodosJefes();\r\n\t//\t\t\tnombreJefesDepartamento = controlador.getNombreTodosJefes();\r\n\t\t\t\tsetProgreso(\"Cargando turnos dpto \"+dep, 70);\r\n\t\t\t\tArrayList<Turno> turnosDep = new ArrayList<Turno>();\r\n\t\t\t\tfor (int i=0; i<departamentosJefe.size(); i++) {\r\n\t\t\t\t\tturnosDep = controlador.getListaTurnosEmpleadosDpto(departamentosJefe.get(i).getNombreDepartamento());\r\n\t\t\t\t\tfor (int j=0; j<turnosDep.size(); j++) {\r\n\t\t\t\t\t\tturnos.add(turnosDep.get(j));\r\n\t\t\t\t\t}\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\tsetProgreso(\"Cargando turnos dpto \"+dep, 100);\r\n\t\t\t\t\r\n\t\t\t} else {\r\n\t\t\t\tSystem.err.println(\"Vista\\t:: Tipo de empleado inválido para cargar la cache.\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(rango==1){//si es un empleado guardamos las ventas que éste ha hecho en un año\r\n\t\t\tjava.util.Date fecha = new java.util.Date();//cogemos la fecha del sistema\r\n\t\t\tvector_ventas=controlador.getVentas(this.getEmpleadoActual().getEmplId(),fecha.getYear()+1900);\r\n\t\t}else if(rango==2){//si es un jefe almacenamos la suma de las ventas de todos los empleados de este departamento durante un año\r\n\t\t\tjava.util.Date fecha = new java.util.Date();//cogemos la fecha del sistema\r\n\t\t\tvector_ventas=controlador.getVentasJefe(this.empleados,fecha.getYear()+1900);\r\n\t\t}\r\n\t\tSystem.out.println(\"Cache cargada\");\r\n\t}", "protected boolean initLocalData() {\n return true;\n }", "@Override\r\n\t\t\tpublic void onUseCacheDoInUI() {\n\t\t\t}", "@Override\r\n\t\t\tpublic void onUseCacheDoInUI() {\n\t\t\t}", "public void dispose() {\n/* 105 */ this.cache.clear();\n/* */ }", "@Override\n public CacheAPI getCacheAPI() {\n return null;\n }", "public abstract boolean isCachable();", "@Override\n\tprotected String getCacheName() {\n\t\treturn null;\n\t}", "public ExprMatrix withCache();", "protected boolean getUsed(){\n\t\treturn alreadyUsed;\n\t}" ]
[ "0.6817479", "0.64545333", "0.63047725", "0.62229395", "0.6176698", "0.6158766", "0.60886914", "0.6065882", "0.60447943", "0.6001848", "0.59646046", "0.5959289", "0.5953453", "0.5908512", "0.5889388", "0.58881855", "0.57477987", "0.5745466", "0.57431304", "0.5724697", "0.5711353", "0.5709088", "0.5707779", "0.56871617", "0.5652308", "0.5621539", "0.56194806", "0.56117177", "0.55987865", "0.5579775", "0.5571924", "0.5569708", "0.5561631", "0.5561457", "0.5556853", "0.5554456", "0.5549028", "0.5543788", "0.5543526", "0.55434114", "0.5541133", "0.55364835", "0.5535894", "0.55354255", "0.5528892", "0.5520091", "0.55193615", "0.55165774", "0.5514101", "0.5513136", "0.5507442", "0.5505389", "0.5502819", "0.55010426", "0.5499723", "0.54890335", "0.5486304", "0.54655904", "0.54652363", "0.5461488", "0.5460374", "0.5454939", "0.54532015", "0.5447083", "0.5435842", "0.5435766", "0.54295045", "0.54284734", "0.54183257", "0.54163504", "0.5402546", "0.5380169", "0.53792644", "0.53792256", "0.5374187", "0.5373335", "0.5372318", "0.5368124", "0.5365249", "0.5364453", "0.5362407", "0.5359693", "0.5348744", "0.5342868", "0.53410363", "0.53360933", "0.53352106", "0.5327338", "0.5326847", "0.53132784", "0.5303357", "0.5297922", "0.529792", "0.52963924", "0.52963924", "0.5294765", "0.5288871", "0.5283474", "0.52812654", "0.5278555", "0.5277862" ]
0.0
-1
/ local scope, cache on
public void testConversionsWithHandler() throws Exception { VelocityEngine ve = createEngine(true); testConversions(ve, "test_conv.vtl", "test_conv_with_handler"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCached() {\n }", "StackManipulation cached();", "@Override\n public boolean isCaching() {\n return false;\n }", "@Produces\n\t@ApplicationScoped\n\tpublic org.infinispan.AdvancedCache<Long, String> getLocalRequestCache() {\n\t\torg.infinispan.Cache<Long,String> basicCache = getLocalCacheManager().getCache(\"client-request-cache\",true);\n\t\treturn basicCache.getAdvancedCache();\n\t}", "public MultiCache () {\n super();\n this.locals = new ArrayList<Coordinates>();\n this.stage = 0;\n }", "public void clearLocalCache()\n/* */ {\n/* 345 */ super.clearCache();\n/* */ }", "public boolean isCached() {\n return true;\n }", "protected void createLookupCache() {\n }", "@Override\n\tpublic boolean isCaching() {\n\t\treturn false;\n\t}", "private CacheWrapper<AccessPointIdentifier, Integer> createCache() {\n return new CacheWrapper<AccessPointIdentifier, Integer>() {\n \n @Override\n public void put(AccessPointIdentifier key, Integer value) {\n cache.put(key, value);\n }\n \n @Override\n public Integer get(AccessPointIdentifier key) {\n if (cache.containsKey(key)) {\n hitRate++;\n }\n return cache.get(key);\n }\n \n \n };\n }", "Object getValueFromLocalCache(Object key);", "private Stack cacheStack(String ename) {\n\t\tStack s = pkCache.get(ename);\n\t\tif (s == null) {\n\t\t\ts = new Stack();\n\t\t\tpkCache.put(ename, s);\n\t\t}\n\t\treturn s;\n\t}", "public Map<Integer, Integer> getLocalCache() {\n return localCache;\n }", "public void gotCachedData() {\n\t\tneedsRecaching = false;\n\t}", "public void limpaCache()\n\t{\n\t\tpoolMensagens.clear();\n\t}", "protected final <T> T getLocalCache(CacheKeyMain<T> key, Callable<T> caller){\n try {\n return key.cast(spanMainCache.get(key, caller));\n } catch (ExecutionException e) {\n throw new RuntimeException(e.getCause());\n }\n }", "protected Cache cache(RequestContext ctx) {\n String serviceId = serviceId(ctx);\n if (serviceId != null) {\n return cacheManager.getCache(serviceId);\n }\n return null;\n }", "public void storeInCache() {\r\n lockValueStored = IN_CACHE;\r\n }", "protected boolean getStravaUseCache()\n {\n return true;\n }", "public StackManipulation cached() {\n return new Cached(this);\n }", "public interface SquadAttentionLocalCache extends LocalCache {\n\n /**\n * 缓存内容排序\n * \n * @param category 缓存类型\n * @param orderByStr 排序变量\n * @param orderByType 排序方式\n * @param count 取多少条\n * @return\n */\n public List<AttentionCache> sort(LocalCacheEnum category, String orderByStr,\n CacheOrderByEnum orderByType, int count);\n\n}", "public interface Caching {\n\t\n\t/**\n\t * ititialize resources for a cache\n\t *\n\t */\n\tvoid init();\n\t\n\t/**\n\t * clear cache\n\t *\n\t */\n\tvoid clear();\n\n}", "protected final <T> Optional<T> getLocalCache(CacheKeyOptional<T> key,\n Callable<Optional<T>> caller\n ){\n try {\n return key.cast(spanOptionalCache.get(key, caller));\n } catch (ExecutionException e) {\n throw new RuntimeException(e.getCause());\n }\n }", "public Reachable(){\n\t\t\n\t\t\n\t}", "public static Cache getCache(PageContext pc, int scope)\n {\n return (Cache)pc.getAttribute(Constants.JSPTAG_CACHE_KEY, scope);\n }", "public interface PermissionService {\n\n @Caching()\n public SysPermission findByUrl(String url);\n\n}", "protected void cacheLoadThroughSubjects()\n {\n }", "public void cacheableQuery() throws HibException;", "Cache<String, YourBean> getMyCache() {\n\treturn myCache;\n }", "private void init() {\n clearCaches();\n }", "abstract public IWorldStateCache clientWorldStateCache();", "boolean isCacheInitialized();", "public void cacheResult(CsclAppointeeMaster csclAppointeeMaster);", "protected final <T> List<T> getLocalCache(CacheKeyList<T> key,\n Callable<List<T>> caller\n ){\n try {\n return key.cast(spanListCache.get(key, caller));\n } catch (ExecutionException e) {\n throw new RuntimeException(e.getCause());\n }\n }", "private EmbeddedCacheManager getLocalCacheManager() {\n\t\tGlobalConfiguration glob = new GlobalConfigurationBuilder()\n\t\t\t.globalJmxStatistics().allowDuplicateDomains(true).enable().build();\n\t\n\t\torg.infinispan.configuration.cache.Configuration loc = new org.infinispan.configuration.cache.ConfigurationBuilder()\n\t\t\t.expiration().lifespan(1,TimeUnit.DAYS)\n\t\t\t.build();\n\t\t\n\t\treturn new DefaultCacheManager(glob, loc, true);\n\t}", "@Test\n public void testCoh3710_get()\n {\n doExpiryOpTest(new Runnable()\n {\n public void run()\n {\n assertNull(getNamedCache(getCacheName0()).get(Integer.valueOf(1)));\n }\n });\n }", "@PostConstruct\n public void initCache() {\n cache = Collections.synchronizedMap(new HashMap<>(cacheCapacity, 1));\n }", "int getCacheConcurrency();", "public void reuse() {}", "public void cacheResult(DataEntry dataEntry);", "public Cache getCache(String name)\r\n/* 39: */ {\r\n/* 40:64 */ return (Cache)this.cacheMap.get(name);\r\n/* 41: */ }", "protected void createLookupCache()\n/* */ {\n/* 1260 */ this.lookup = new SimpleCache(1, Math.max(getSize() * 2, 64));\n/* */ }", "@Override\r\n public void setCaching(int parseInt) {\n\r\n }", "boolean isCachingEnabled();", "public void setUsed(){\n\t\talreadyUsed = true;\n\t}", "private static JassExpr addCacheVariableSmart(JassTranslator translator, final JassFunction f,\n\t\t\tfinal List<JassStatement> result, Expr e, ExprTranslationResult fromExpr) {\n\t\tExprTranslationResult er = e.jassTranslateExpr(translator, f);\n\t\tresult.addAll(fromExpr.getStatements());\n\t\tJassExpr r;\n\t\tif (er.getStatements().size() == 0 && er.getExprSingle() instanceof JassExprAtomic) {\n\t\t\tr = er.getExprSingle();\n\t\t} else {\n\t\t\tJassVar loopEndVar = translator.getNewTempVar(f, \"integer\");\n\t\t\tresult.addAll(er.getStatements());\n\t\t\tresult.add(JassStmtSet(loopEndVar.getName(), er.getExprSingle()));\n\t\t\tr = JassExprVarAccess(loopEndVar.getName());\n\t\t}\n\t\treturn r;\n\t}", "long getCacheHits();", "private void CacheAsyncTaskFunctions(){\n\n //handle the functions dealing with async\n for(String func : asyncFunc){\n\n //cache the removed sections\n AsyncTaskRemoval remove = new AsyncTaskRemoval(refact, func);\n remove.RemoveSection();\n\n //remove the section from the original code\n refact = remove.refact;\n asyncCached.put(func, remove.removedSection);\n }\n\n //prompt user\n System.out.println(\"(1) Caching all the Async Functions and references to global variables\\n\");\n DisplaySleep();\n\n }", "public void init() {\n\t\tif (cache != null) {\n\t\t\tcache.dispose();\n\t\t\tcache = null;\n\t\t}\n\t\tcache = cacheFactory.create(CacheFactoryDirective.NoDCE, \"test\");\n\t}", "interface Cache {\n\n /** @return A cache entry for given path string or <code>null</code> (if file cannot be read or too large to cache).\n * This method increments CacheEntry reference counter, caller must call {@link #checkIn(CacheEntry)} to release returned entry (when not null). */\n CacheEntry checkOut(CacheEntryLoader cacheEntryLoader);\n\n /**\n * Method to release cache entry previously obtained from {@link #checkOut(CacheEntryLoader)} call.\n * This method decrements CacheEntry reference counter.\n */\n void checkIn(CacheEntry key);\n\n /** Invalidates cached entry for given path string (if it is cached) */\n void invalidate(String pathString);\n\n void rename(String fromPathString, String toPathString);\n\n// /** Preload given file path in cache (if cache has vacant spot). Preloading happens in background. Preloaded pages initially have zero reference counter. */\n// void preload (String pathString);\n\n /** Clears the cache of all entries (even if some entries are checked out) */\n void clear();\n\n /** Allocates entry of given size for writing.\n * It will not be visible to others until caller calls {@link #update(String, CacheEntry)}.*/\n CacheEntry alloc(long size);\n\n /** Registers recently writtien cache entry as available for reading */\n void update(String pathString, CacheEntry cacheEntry);\n}", "@Override\n public void filter(ContainerRequestContext requestContext, ContainerResponseContext responseContext) throws IOException {\n if (requestContext.getProperty(CACHE_USED) == null && responseContext.getEntity() instanceof Result) {\n Result result = (Result) responseContext.getEntity();\n String requestPath = requestContext.getUriInfo().getPath();\n\n log.info(\"{} - caching result: {}\", requestPath, result);\n\n cache.putIfAbsent(requestPath, result);\n }\n }", "public boolean isUseCache() {\n return mUseCache;\n }", "public static void loadCache() {\n\t\t // it is the temporary replacement to database. We should use DB instead\n\t Circle circle = new Circle();\n\t circle.setId(\"1\");\n\t shapeMap.put(circle.getId(),circle);\n\n\t Square square = new Square();\n\t square.setId(\"2\");\n\t shapeMap.put(square.getId(),square);\n\n\t Rectangle rectangle = new Rectangle();\n\t rectangle.setId(\"3\");\n\t \n\t Circle circle2 = new Circle();\n\t circle2.setId(\"4\");\n\t circle2.setType(\"Big Circle\");\n\t shapeMap.put(circle2.getId(),circle2);\n\t shapeMap.put(rectangle.getId(), rectangle);\n\t }", "public CacheEntry searchWithCache(String name) {\n CacheEntry entry = cacheHit(name);\n \n if (entry != null) return entry;\n \n // we grab serial number first; the worst that will happen is we cache a later\n // update with an earlier serial number, which would just flush anyway\n Object token = getCacheToken();\n DynamicMethod method = searchMethodInner(name);\n \n return method != null ? addToCache(name, method, token) : addToCache(name, UndefinedMethod.getInstance(), token);\n }", "private UtilsCache() {\n\t\tsuper();\n\t}", "void resetCache();", "public void cacheResult(ua.org.gostroy.guestbook.model.Entry3 entry3);", "public void enterScope() {\n\t\tmap.add(new HashMap<K, V>());\n\t}", "synchronized HashMap flushTemporaryPrototypeCache() {\n HashMap c = _pcache;\n _pcache = null;\n return c;\n }", "@Scheduled(fixedDelay = 98)\n public void cacheStats() {\n SalesAmount salesAmount = statsService.retrieveNextSalesAmount();\n LocalDateTime now = LocalDateTime.now(clock).withNano(0);\n while (salesAmount != null && !salesAmount.getTime().isAfter(Instant.now(clock))) {\n /*\n Because sales requests are processed sequentially, this way we don't need to care about increasing the\n aggregated sales amount in parallel and use Atomic data structures.\n */\n SalesAmountPerSecond salesAmountPerSecond = statsService.getLastSalesAmountPerSecond();\n if (null != salesAmountPerSecond && salesAmountPerSecond.getTime().equals(now)) {\n salesAmountPerSecond.addSalesAmount(salesAmount.getAmount());\n } else {\n statsService.addSalesAmountPerSecond(new SalesAmountPerSecond(\n salesAmount.getAmount(),\n 1,\n now));\n }\n salesAmount = statsService.retrieveNextSalesAmount();\n }\n }", "protected Cache<Request, Result> getNetspeakCache() {\n return this.netspeakCache;\n }", "public boolean useCache() {\n return !pathRepositoryCache.isEmpty();\n }", "public void cacheBusRouteData()\n\t{\t\n\t\tdataMap = BusRouteDataFileReader.readAndCacheBusRouteData(this.pathname);\n\t}", "public void dereferenceCache() {\n this.cache = null;\n }", "public void refreshObjectCache();", "private CacheObject<K, V> getCacheObject(K key){\n return this.cache.get(key);\n }", "@Test\n public void eternal() {\n Cache<Integer, Integer> c = new Cache2kBuilder<Integer, Integer>() {}\n .eternal(true)\n /* ... set loader ... */\n .build();\n target.setCache(c);\n assertTrue(extractHandler() instanceof TimingHandler.EternalImmediate);\n }", "public interface ICache {\n\t\n\t/**\n\t * <p>\n\t * get the Cached Object from cache pool by the cache String key\n\t * @param key\n\t * @return\n\t */\n\tpublic Object get(String key);\n\t\n\t\n\t\n\t/**\n\t * <p>\n\t * \n\t * @param key\n\t * @return old cache object \n\t */\n\tpublic Object put(String key,Object value);\n\t\n\t/**\n\t * <p>\n\t * get the Cached Object from cache pool by the cache String key quietly,\n\t * without update the statistic data\n\t * @param key\n\t * @return\n\t */\n\tpublic Object getQuiet(String key);\n\t\n\t\n\t/**\n\t * <p>\n\t * remove the cached object from cache pool by the cache String key\n\t * @param key\n\t * @return\n\t */\n\tpublic Object remove(String key);\n\t\n\t/**\n\t * <p>\n\t * free specied size mem\n\t * @param size unit in Byte\n\t * @return\n\t */\n\tpublic long free(long size);\n\t\n\t\n\t/**\n\t * <p>\n\t * flush to the underly resource\n\t */\n\tpublic void flush();\n\t\n}", "private void pageCacheChanged() {\n // Ok to have a race here, see the field javadoc.\n if (!pageCacheChanged)\n pageCacheChanged = true;\n }", "protected void initializeCache() {\n if (cacheResults && initialized) {\n dataCache = new HashMap<String, Map<String, Map<String, BaseAttribute>>>();\n }\n }", "@Test\n public void testFindViaCache() {\n Integer hitRate1 = hitRate;\n Integer foundId = accessPointDimensionDao.foreignKeyValueFor(connection, AccessPointIdentifier.TEST);\n assertEquals(hitRate1, hitRate); // No change expected yet\n \n Integer hitRate2 = hitRate;\n Integer foundId2 = accessPointDimensionDao.foreignKeyValueFor(connection, AccessPointIdentifier.TEST);\n assertEquals(hitRate, new Integer(hitRate2+1)); // A cache hit is expected\n }", "public interface GlobalCacheManager {\n void ensureGlobalCacheExistAndWritable();\n\n Path getGlobalPackageCachePath(String packagePath);\n\n Path getGlobalGoBinCache(String relativePath);\n\n Optional<GlobalCacheMetadata> getMetadata(Path packagePath);\n\n /**\n * Locks global cache directory of {@code dependency}, and call the {@code callable}\n *\n * @param dependency dependency to be locked\n * @param callable code to be executed under lock\n * @param <T> return value type of callable\n * @return the return value of callable\n * @throws Exception exception thrown by callable\n */\n <T> T runWithGlobalCacheLock(GolangDependency dependency, Callable<T> callable) throws Exception;\n\n void updateCurrentDependencyLock(GolangDependency dependency);\n\n boolean currentRepositoryIsUpToDate(NotationDependency dependency);\n}", "public OldOldCache()\n {\n this(DEFAULT_UNITS);\n }", "private void loadCache(Context ctx, ImageLoader img) {\r\n RequestOptions options = getCommonOptions(img);\r\n options.diskCacheStrategy(DiskCacheStrategy.ALL);\r\n\r\n Glide.with(ctx).load(img.getUrl()).apply(options).into(img.getImgView());\r\n }", "private final void setupLocal0() {\n assert _profile==null;\n _fs = new Futures();\n _profile = new MRProfile(this);\n _profile._localstart = System.currentTimeMillis();\n _topLocal = true;\n // Check for global vs local work\n int selfidx = H2O.SELF.index();\n int nlo = subShift(selfidx);\n assert nlo < _nhi;\n final int nmid = (nlo+_nhi)>>>1; // Mid-point\n if( !_run_local && nlo+1 < _nhi ) { // Have global work?\n _profile._rpcLstart = System.currentTimeMillis();\n _nleft = remote_compute(nlo+1,nmid);\n _profile._rpcRstart = System.currentTimeMillis();\n _nrite = remote_compute( nmid,_nhi);\n _profile._rpcRdone = System.currentTimeMillis();\n }\n _lo = 0; _hi = _fr.anyVec().nChunks(); // Do All Chunks\n // If we have any output vectors, make a blockable Futures for them to\n // block on.\n // get the Vecs from the K/V store, to avoid racing fetches from the map calls\n _fr.vecs();\n setupLocal(); // Setup any user's shared local structures\n _profile._localdone = System.currentTimeMillis();\n }", "@Test\n\tpublic void testQueryCaching(){\n\t\tqueryCache();\n\t\tqueryCache2();\n\t}", "public FontCache getFontCache() {\n/* 158 */ return fontCache;\n/* */ }", "@Override\n\tpublic void cacheResult(LocalRichInfo localRichInfo) {\n\t\tentityCache.putResult(LocalRichInfoModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tLocalRichInfoImpl.class, localRichInfo.getPrimaryKey(),\n\t\t\tlocalRichInfo);\n\n\t\tlocalRichInfo.resetOriginalValues();\n\t}", "private final void setupLocal() {\n _topLocal = true;\n // Check for global vs local work\n if( _nlo >= 0 && _nlo < _nhi-1 ) { // Have global work?\n // Note: some top-level calls have no other global work, so\n // \"topLocal==true\" does not imply \"nlo < nhi-1\".\n int selfidx = H2O.SELF.index();\n if( _nlo < selfidx ) _nleft = remote_compute(_nlo, selfidx );\n if( selfidx+1 < _nhi ) _nrite = remote_compute(selfidx+1,_nhi);\n }\n _lo = 0; _hi = _fr.firstReadable().nChunks(); // Do All Chunks\n // If we have any output vectors, make a blockable Futures for them to\n // block on.\n if( _fr.hasAppendables() )\n _fs = new Futures();\n init(); // Setup any user's shared local structures\n }", "@Override\n\tpublic void setCaching(boolean caching) {\n\t\t\n\t}", "public PlayerContinuousSnap getCache(Player player) {\n\t\treturn this.cached.get(player);\n\t}", "private void invalidateCache() {\n\t}", "@Override\n public void filter(ContainerRequestContext requestContext) throws IOException {\n String requestPath = requestContext.getUriInfo().getPath();\n\n Result cachedResult = cache.get(requestPath);\n if (cachedResult != null) {\n log.info(\"{} - responding with cached result: {}\", requestPath, cachedResult);\n\n requestContext.setProperty(CACHE_USED, Boolean.TRUE);\n\n requestContext.abortWith(\n Response.ok(cachedResult).type(MediaType.APPLICATION_JSON).build());\n } else {\n log.info(\"{} - no result in cache\", requestPath);\n }\n }", "private boolean updateCache(String type) {\n\t\treturn false;\n\t}", "public boolean existCache() {\n return false;\n }", "private FixtureCache() {\n\t}", "public void cacheResult(com.Hotel.model.Hotel hotel);", "public boolean isLocal()\n {\n return true;\n }", "public static void startCaching() {\n\t\t/*\n\t\t * component caching happens if the collection exists\n\t\t */\n\t\tfor (ComponentType aType : ComponentType.values()) {\n\t\t\tif (aType.preLoaded == false) {\n\t\t\t\taType.cachedOnes = new HashMap<String, Object>();\n\t\t\t}\n\t\t}\n\t}", "void cachePositions(Collection<Position> positions);", "private ImageCache(Context context) {\n int memClass = ((ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE)).getMemoryClass();\n memClass = memClass > 32 ? 32 : memClass;\n\n final int cacheSize = 1024 * 1024 * memClass / 8;\n memoryCache = new LruCache<String, Bitmap>(cacheSize) {\n protected int sizeOf(String key, Bitmap bitmap) {\n return bitmap.getRowBytes() * bitmap.getHeight();\n }\n };\n\n File cacheDir = DiskLruCache.getDiskCacheDir(context, DISK_CACHE_SUB_DIR);\n diskCache = DiskLruCache.openCache(context, cacheDir, DISK_CACHE_SIZE);\n }", "public void loadCache() {\r\n\t\tint rango = getEmpleadoActual().getRango();\r\n\t\tArrayList<String> idsDptos = getEmpleadoActual().getDepartamentosId();\r\n\t\t\r\n\t\t// Para todos los departamentos a los que pertenezca el empleado\r\n\t\tfor (int nd=0; nd<idsDptos.size(); nd++){\r\n\t\t\tString dep = idsDptos.get(nd);\r\n\t\t\tint numvendedor = getEmpleadoActual().getEmplId();\r\n\r\n\t\t\tif (!alive) return;\r\n\t\t\tsetProgreso(\"Cargando contratos dpto \"+dep, 50);\r\n\t\t\tcontratos = controlador.getListaContratosDpto(dep);\r\n\t\t\tsetProgreso(\"Cargando contratos dpto \"+dep, 100);\r\n\r\n\t\t\tif (!alive) return;\r\n\t\t\tsetProgreso(\"Cargando empleados dpto \"+dep, 25);\r\n\t\t\templeados = controlador.getEmpleadosDepartamento(getEmpleadoActual().getEmplId(),dep);\r\n\t\t\tsetProgreso(\"Cargando empleados dpto \"+dep, 100);\r\n\t\t\t\r\n\t\t\t//Prueba ordenación empleados\r\n//\t\t\tfor (int i = 0; i < empleados.size(); i++) {\r\n//\t\t\t\tSystem.out.println(empleados.get(i).getPosicion());\r\n//\t\t\t}\r\n\t\t\tordenaEmpleados();\r\n//\t\t\tfor (int i = 0; i < empleados.size(); i++) {\r\n//\t\t\t\tSystem.out.println(empleados.get(i).getPosicion());\r\n//\t\t\t}\r\n\t\t\t//Fin PRueba\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif (!alive) return;\r\n\t\t\tif (rango == 1) { // Si es un empleado, coger turnos de su departamento\r\n\t\t\t\tsetProgreso(\"Cargando turnos dpto \"+dep, 70);\r\n\t\t\t\tturnos = controlador.getListaTurnosEmpleadosDpto(dep);\r\n\t\t\t\tsetProgreso(\"Cargando turnos dpto \"+dep, 100);\r\n\t\t\t} else if (rango == 2) { // Si es un jefe, coger turnos de todos los departamentos\r\n\t\t\t\tArrayList<String> temp = new ArrayList<String>();\r\n\t\t\t\ttemp = controlador.getDepartamentosJefe(numvendedor);\r\n\t\t\t\tfor (int i=0; i<temp.size(); i++)\r\n\t\t\t\t\tdepartamentosJefe.add(controlador.getDepartamento(temp.get(i)));\r\n\t\t\t\t//TODO borrar si al final no se usa\r\n\t//\t\t\tsetProgreso(\"Cargando jefes de departamento\", 60);\r\n\t//\t\t\tnumeroJefesDepartamento = controlador.getNumVendedorTodosJefes();\r\n\t//\t\t\tnombreJefesDepartamento = controlador.getNombreTodosJefes();\r\n\t\t\t\tsetProgreso(\"Cargando turnos dpto \"+dep, 70);\r\n\t\t\t\tArrayList<Turno> turnosDep = new ArrayList<Turno>();\r\n\t\t\t\tfor (int i=0; i<departamentosJefe.size(); i++) {\r\n\t\t\t\t\tturnosDep = controlador.getListaTurnosEmpleadosDpto(departamentosJefe.get(i).getNombreDepartamento());\r\n\t\t\t\t\tfor (int j=0; j<turnosDep.size(); j++) {\r\n\t\t\t\t\t\tturnos.add(turnosDep.get(j));\r\n\t\t\t\t\t}\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\tsetProgreso(\"Cargando turnos dpto \"+dep, 100);\r\n\t\t\t\t\r\n\t\t\t} else {\r\n\t\t\t\tSystem.err.println(\"Vista\\t:: Tipo de empleado inválido para cargar la cache.\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(rango==1){//si es un empleado guardamos las ventas que éste ha hecho en un año\r\n\t\t\tjava.util.Date fecha = new java.util.Date();//cogemos la fecha del sistema\r\n\t\t\tvector_ventas=controlador.getVentas(this.getEmpleadoActual().getEmplId(),fecha.getYear()+1900);\r\n\t\t}else if(rango==2){//si es un jefe almacenamos la suma de las ventas de todos los empleados de este departamento durante un año\r\n\t\t\tjava.util.Date fecha = new java.util.Date();//cogemos la fecha del sistema\r\n\t\t\tvector_ventas=controlador.getVentasJefe(this.empleados,fecha.getYear()+1900);\r\n\t\t}\r\n\t\tSystem.out.println(\"Cache cargada\");\r\n\t}", "protected boolean initLocalData() {\n return true;\n }", "@Override\r\n\t\t\tpublic void onUseCacheDoInUI() {\n\t\t\t}", "@Override\r\n\t\t\tpublic void onUseCacheDoInUI() {\n\t\t\t}", "public void dispose() {\n/* 105 */ this.cache.clear();\n/* */ }", "@Override\n public CacheAPI getCacheAPI() {\n return null;\n }", "public abstract boolean isCachable();", "@Override\n\tprotected String getCacheName() {\n\t\treturn null;\n\t}", "public ExprMatrix withCache();", "protected boolean getUsed(){\n\t\treturn alreadyUsed;\n\t}" ]
[ "0.6817479", "0.64545333", "0.63047725", "0.62229395", "0.6176698", "0.6158766", "0.60886914", "0.6065882", "0.60447943", "0.6001848", "0.59646046", "0.5959289", "0.5953453", "0.5908512", "0.5889388", "0.58881855", "0.57477987", "0.5745466", "0.57431304", "0.5724697", "0.5711353", "0.5709088", "0.5707779", "0.56871617", "0.5652308", "0.5621539", "0.56194806", "0.56117177", "0.55987865", "0.5579775", "0.5571924", "0.5569708", "0.5561631", "0.5561457", "0.5556853", "0.5554456", "0.5549028", "0.5543788", "0.5543526", "0.55434114", "0.5541133", "0.55364835", "0.5535894", "0.55354255", "0.5528892", "0.5520091", "0.55193615", "0.55165774", "0.5514101", "0.5513136", "0.5507442", "0.5505389", "0.5502819", "0.55010426", "0.5499723", "0.54890335", "0.5486304", "0.54655904", "0.54652363", "0.5461488", "0.5460374", "0.5454939", "0.54532015", "0.5447083", "0.5435842", "0.5435766", "0.54295045", "0.54284734", "0.54183257", "0.54163504", "0.5402546", "0.5380169", "0.53792644", "0.53792256", "0.5374187", "0.5373335", "0.5372318", "0.5368124", "0.5365249", "0.5364453", "0.5362407", "0.5359693", "0.5348744", "0.5342868", "0.53410363", "0.53360933", "0.53352106", "0.5327338", "0.5326847", "0.53132784", "0.5303357", "0.5297922", "0.529792", "0.52963924", "0.52963924", "0.5294765", "0.5288871", "0.5283474", "0.52812654", "0.5278555", "0.5277862" ]
0.0
-1
Return and initialize engine
private VelocityEngine createEngine(boolean withConversionsHandler) throws Exception { VelocityEngine ve = new VelocityEngine(); ve.setProperty( Velocity.VM_PERM_INLINE_LOCAL, Boolean.TRUE); ve.setProperty(Velocity.RUNTIME_LOG_INSTANCE, log); ve.setProperty(RuntimeConstants.RESOURCE_LOADER, "file"); ve.setProperty(RuntimeConstants.FILE_RESOURCE_LOADER_PATH, TEST_COMPARE_DIR + "/conversion"); if (withConversionsHandler) { ve.setProperty(RuntimeConstants.EVENTHANDLER_METHODEXCEPTION, PrintException.class.getName()); } else { ve.setProperty(RuntimeConstants.CONVERSION_HANDLER_CLASS, "none"); } ve.init(); return ve; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void initEngine() {\n \n }", "@Override\n public void initEngine() {\n \n }", "public Engine() {\n super(0,0,0,0,null, \"ENGINE\");\n }", "void init(@NotNull final AIEngine engine);", "public static Engine getEngine(){\n Engine engine = null;\n try {\n engine = mapper.readValue(new File(Constants.ENGINE_FILE_PATH), Engine.class);\n } catch ( Exception e ) {\n e.printStackTrace();\n }\n return engine;\n }", "private void initializeEngine() {\n engine.setDecayDelay(emotionalAgent.decayTimeMillis());\n\n // Get decay steps parameter from ADF if exists and set decay steps in engine\n engine.setDecaySteps(emotionalAgent.decayStepsToMin());\n\n // Set engine initialized\n engine.setInitialized(true);\n }", "public void setEngine(Engine engine);", "public static Engine getEngineInstance(String from, String to)\r\n\t\t\tthrows InitializeException {\r\n\t\tif (engineInstance == null) {\r\n\t\t\tEngineContext context = new EngineContext();\r\n\t\t\tProperties prop = loadConfig();\r\n\t\t\tcontext.config(prop);\r\n\t\t\tcontext.init(from, to);\r\n\t\t\tengineInstance = new Engine(context);\r\n\t\t}\r\n\t\treturn engineInstance;\r\n\t}", "private Engine() {\n\n }", "void start() throws EngineException;", "private TracingEngine getEngine() {\n try {\n return engine.get(\"\", reloadEngine());\n } catch (final ExecutionException e) {\n return new NoopTracingEngine();\n }\n }", "public Engine getEngine() {\n return engine;\n }", "private void initializeEngine() {\n try {\n mRtcEngine = RtcEngine.create(getBaseContext(), getString(R.string.agora_app_id), mRtcEventHandler);\n } catch (Exception e) {\n Log.e(\"VIDEO.CALL\", Log.getStackTraceString(e));\n throw new RuntimeException(\"NEED to check rtc sdk init fatal error\\n\" + Log.getStackTraceString(e));\n }\n }", "public void gameEngineInitializer() {\n\t\t\r\n\t\tthis.sputacchioGameEngine = new SputacchioGameEngine(supportDeck, mainDeck, mainBoard, players, gamestate, playerDoingTurnNumber);// da implementare alla fine\r\n\t\tthis.classicGameEngine = new ClassicGameEngine(supportDeck, mainDeck, mainBoard, players, gamestate, playerDoingTurnNumber, engineUtility, filter);\r\n\t\t\r\n\t\tthis.gamestate.setCurrentGameType(GameType.CLASSICGAME);//si dovrebbe iniziare dal cucù ma facciamo dopo\r\n\t\tthis.gamestate.setCurrentHandNumber(INITIALHANDNUMBER);\r\n\t\tthis.givePersonalJolly();\r\n\t\t\r\n\t\tthis.classicGameEngine.distributeHands();//queste due si fanno all'inizio di ogni mano, non sono da fare solo la prima volta e basta\r\n\t\tthis.classicGameEngine.substituteJolly();\r\n\t\t\r\n\t\tmainEngine();\r\n\t\t//TODO ci vuole un metodo che, a parte la prima chiamata di Server Room, chiama il sotto-engine giusto in base a game type. Se classic game engine fa una return per segnalare\r\n\t\t//che la mano è finita perchè nessuno ha carte in mano, game engine deve ridare le 6 carte o settare l'ultima mano, o la mano della scala obbligatoria, e cambiare chi inizia a cucù.\r\n\t\t//Poi penso che debba chiamare Filter per mostrare a entrambi cosa accade, stampare le nuove carte e dichiarare l'inizio del cucù.\r\n\t}", "public static synchronized Engine resetEngine() {\n if (engineInstance != null) {\n engineInstance = new Engine();\n }\n return engineInstance;\n }", "public void init(GameEngine engine) throws IOException, ClassNotFoundException, InstantiationException, IllegalAccessException {\n\t\tif(this.engine != null) {\n\t\t\tthrow new IllegalStateException(\"The world has already been initialised.\");\n\t\t} else {\n\t\t\tthis.engine = engine;\n\t\t\tthis.eventManager = new EventManager(engine);\n\t\t\tthis.tickManager = new TickManager();\n\t\t\tthis.registerGlobalEvents();\n\t\t\tthis.loadConfiguration();\n\t\t}\n\t}", "@Override\r\n public EngineInjection createEngineInjection() {\r\n return new Turbofan();\r\n }", "public void init() {\n\t\tif (!Rengine.versionCheck()) {\n\t\t System.err.println(\"** Version mismatch - Java files don't match library version.\");\n\t\t System.exit(1);\n\t\t}\n\t\t\n\t\tString[] args = {\"--vanilla\"};\n\t\tre = new Rengine(args, false, new TextConsole());\n\t\t\n\t\t// the engine creates R is a new thread, so we should wait until it's ready\n if (!re.waitForR()) {\n System.out.println(\"Cannot load R\");\n return;\n }\n\t\t\n\t}", "public void setEngine(Engine engine) {\n this.engine = engine;\n }", "@Override\r\n\tpublic void engine() {\n\t\t\r\n\t}", "public StartupHandler(){\r\n\t\tloadGameFiles();\r\n\t\tnew Engine();\r\n\t}", "public static Engine getInstance() {\n if (engineInstance == null) {\n synchronized (Engine.class) {\n if (engineInstance == null) {\n engineInstance = new Engine();\n }\n }\n }\n return engineInstance;\n }", "public String getEngine() {\n return this.engine;\n }", "public void engineOn(){\n engine = true;\n }", "public void setEngine(String engine) {\n this.engine = engine;\n }", "@Override\n\tpublic Engine onLoadEngine() {\n\t\tthis.mCamera = new Camera(0, 0, CAMERA_WIDTH, CAMERA_HEIGHT);\n\t\treturn new Engine(new EngineOptions(true, ScreenOrientation.LANDSCAPE, new RatioResolutionPolicy(CAMERA_WIDTH, CAMERA_HEIGHT), this.mCamera));\n\t}", "private ClientExecutorEngine() {\n ClientConfigReader.readConfig();\n DrillConnector.initConnection();\n HzConfigReader.readConfig();\n }", "public void EngineInit() {\n TrustManager[] trustAllCerts = new TrustManager[] { new X509TrustManager() {\n public X509Certificate[] getAcceptedIssuers() {\n return new X509Certificate[] {};\n }\n\n public void checkClientTrusted(X509Certificate[] chain,\n String authType) throws CertificateException {\n }\n\n public void checkServerTrusted(X509Certificate[] chain,\n String authType) throws CertificateException {\n }\n } };\n\n try {\n\n\n //取得SSL的SSLContext实例\n SSLContext sslContext = SSLContext.getInstance(\"TLS\");\n sslContext.init(null,trustAllCerts,new java.security.SecureRandom());\n sslEngine = sslContext.createSSLEngine();\n sslEngine.setUseClientMode(true);\n\n } catch(NoSuchAlgorithmException e) {\n } catch(KeyManagementException e) {\n }\n SSLSession session = sslEngine.getSession();\n int appBufferMax = session.getApplicationBufferSize();\n int netBufferMax = session.getPacketBufferSize();\n Log.i(\"123\", \"EngineInit: appBufferMax:\"+appBufferMax + \"netBufferMax:\"+netBufferMax);\n ByteBuffer mTunSSRAppData = ByteBuffer.allocate(appBufferMax);\n ByteBuffer mTunSSRWrapData = ByteBuffer.allocate(netBufferMax);\n ByteBuffer peerAppData = ByteBuffer.allocate(appBufferMax);\n ByteBuffer peerNetData = ByteBuffer.allocate(netBufferMax);\n }", "@Override\n\tpublic Engine onLoadEngine(){\n\t\tmEngine=new Engine(new EngineOptions(true, ScreenOrientation.PORTRAIT, new FillResolutionPolicy(), new Camera(0, 0, MoveBackground.WIDTH, MoveBackground.height)));\n\t\treturn mEngine;\n\t}", "public Engine build() {\n this.extensions.add(new CoreExtension());\n \n // load extensions\n this.extensions.forEach(extension -> {\n this.renderers.putAll(extension.getRenderers());\n this.directives.putAll(extension.getDirectives());\n this.nodeParsers.putAll(extension.getNodeParsers());\n this.filters.putAll(extension.getFilters());\n this.tests.putAll(extension.getTests());\n this.unaryOperators.putAll(extension.getUnaryOperators());\n this.binaryOperators.putAll(extension.getBinaryOperators());\n this.factories.addAll(extension.getNodeVisitorFactories());\n this.safeNodes.addAll(extension.getSafeNodes());\n });\n \n // create an operator token parser\n TokenParser unaryOperatorParser = TokenParser.in(TokenType.OPERATOR, this.unaryOperators.keySet().toArray(new String[]{}));\n TokenParser binaryOperatorParser = TokenParser.in(TokenType.OPERATOR, this.binaryOperators.keySet().toArray(new String[]{}));\n TokenParser operatorParser = unaryOperatorParser.or(binaryOperatorParser);\n \n // create a execute token parser\n TokenParser executeOpenParser = TokenParser.from(TokenType.EXECUTE_OPEN, compile(quote(this.executeOpen)), false);\n TokenParser executeCloseParser = TokenParser.from(TokenType.EXECUTE_CLOSE, compile(quote(this.executeClose)), false);\n TokenParser executeParser = executeOpenParser.then(NAME).then(operatorParser.or(EXPRESSION).until(executeCloseParser));\n this.starts.add(this.executeOpen);\n \n // create a print token parser\n TokenParser printOpenParser = TokenParser.from(TokenType.PRINT_OPEN, compile(quote(this.printOpen)), false);\n TokenParser printCloseParser = TokenParser.from(TokenType.PRINT_CLOSE, compile(quote(this.printClose)), false);\n TokenParser printParser = printOpenParser.then(operatorParser.or(EXPRESSION).until(printCloseParser));\n this.starts.add(this.printOpen);\n \n // create a comment token parser\n TokenParser commentOpenParser = TokenParser.from(TokenType.COMMENT_OPEN, compile(quote(this.commentOpen)), false);\n TokenParser commentCloseParser = TokenParser.from(TokenType.COMMENT_CLOSE, compile(quote(this.commentClose)), false);\n TokenParser commentInner = TokenParser.until(TokenType.TEXT, this.commentClose);\n TokenParser commentParser = commentOpenParser.then(commentInner.optional()).then(commentCloseParser);\n this.starts.add(this.commentOpen);\n \n // create a text token parser\n TokenParser leadingText = TokenParser.until(TokenType.TEXT, this.starts);\n TokenParser text = TokenParser.from(TokenType.TEXT, Pattern.compile(\"^.*\", Pattern.DOTALL | Pattern.MULTILINE), false);\n \n TokenParser principal = commentParser.or(executeParser).or(printParser).or(leadingText).zeroOrMore().then(text.optional()).then(EOF);\n this.tokenizerBuilder.parser(principal);\n Tokenizer tokenizer = this.tokenizerBuilder.build();\n \n ExpressionParser expressionParser = new ExpressionParser(this.unaryOperators, this.binaryOperators);\n \n Engine engine = new Engine(this.environment, expressionParser,\n renderers, directives, nodeParsers, \n filters, tests, factories, safeNodes,\n tokenizer);\n return engine;\n }", "public Engine() throws Exception {\n\t\t// User interface initialization\n\t\tif (Setting.LOCAL_MODE) {\n\t\t\ttry {\n\t\t\t\tSystem.out.println(\"Initializing the user interface\");\n\t\t\t\tui = new UserInterface(this);\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t\t// Scenario initialization\n\t\tscenario = new Scenario(ui);\n\n\t\t// load tool, drug and patient through scenario\n\t\tTool[] tools = scenario.readTool();\n\t\tDrug[] drugMap = scenario.readDrug();\n\t\tPatient patient = scenario.readPatient();\n\t\tif (Setting.LOCAL_MODE) {\n\t\t\tfor (Tool tool : tools) {\n\t\t\t\tui.addTool(tool);\n\t\t\t}\n\t\t\tui.addDrug(drugMap);\n\t\t\tui.setPatientInfo(patient);\n\t\t}\n\n\t\t// set simulator and evaluator\n\t\tsimulator = new Simulator(patient);\n\t\tevaluator = new Evaluator(this);\n\t\t// Start looping\n\t\ttimer.scheduleAtFixedRate(new CoreTimerTask(1000, this), 0, 1000);\n\t}", "private WrappedEngine() {\n logger = new ONDEXCoreLogger();\n addONDEXListener(logger);\n pluginLogger = new ONDEXPluginLogger();\n EnvironmentVariable ev = new EnvironmentVariable(\"ONDEX VAR=\" + Config.ondexDir);\n ev.setLog4jLevel(Level.INFO);\n fireEventOccurred(ev);\n }", "public static void init() {\n if (initialized) {\n return;\n }\n initialized = true;\n DebugOptions.DEV_ROOT_PATH = \"engine/src/main/resources/\";\n GL20 mockGL = new MockGL();\n Gdx.gl = mockGL;\n Gdx.gl20 = mockGL;\n\n ServiceRegistry serviceRegistry = new ServiceRegistry();\n serviceRegistry\n .with(FacadeModuleConfig.class)\n .lifetime(Lifetime.Singleton)\n .use(TestModuleConfig::new);\n serviceRegistry\n .with(ModulePathScanner.class)\n .lifetime(Lifetime.Singleton);\n\n final HeadlessApplication application = new HeadlessApplication(new SolApplication(100, serviceRegistry), new HeadlessApplicationConfiguration());\n game = ((SolApplication) application.getApplicationListener()).getGame();\n }", "private static void initSPARQLAnythingEngine() {\n\t\t// Register the JSON-LD parser factory for extension .json\n\t\tReaderRIOTFactory parserFactoryJsonLD = new RiotUtils.ReaderRIOTFactoryJSONLD();\n\t\tRDFParserRegistry.registerLangTriples(RiotUtils.JSON, parserFactoryJsonLD);\n\t\t// Setup FX executor\n\t\tJenaSystem.init();\n\t\tQC.setFactory(ARQ.getContext(), FacadeX.ExecutorFactory);\n\t}", "public static EngineBuilderFactory getInstance() {\n if (instance == null) {\n instance = new EngineBuilderFactory();\n }\n\n return instance;\n }", "public void initializeEngines() {\n\t\tfor (int i=0; i < _engineNumber; i++) {\n\t\t\tengineList.add(new Engine(\"Engine_\" + i, \"\", 0.0, 0.0, 0.0, _theAircraft));\n\t\t}\n\t}", "public interface Engine {\n\n String run();\n\n}", "public LSMEngine<T> build() {\n return lsmEngine;\n }", "public static IXccdfEngine createEngine(IPlugin plugin) {\r\n \treturn new OEMEngine(plugin, SystemEnumeration.ANY);\r\n }", "public ESEngine addESEngine() {\n\t\treturn new ESUFOEngine(); // Specific to regular UFO\n\t}", "private void testInitializeEngine() {\r\n\t\r\n\t\t/*\tInitialization of variables\t*/\r\n\t\tPointerByReference phEngine = new PointerByReference();\r\n\t\tint nScale = 16;\r\n\t\tint nMaxFace = 10;\r\n\t\tPointer pWorkMem = C_Library.INSTANCE.malloc(WORKBUF_SIZE);\r\n\t\t\r\n\t\t/*\tInitialization of engine\t*/\r\n\t\tNativeLong nRet = AFD_FSDK_Library.INSTANCE.AFD_FSDK_InitialFaceEngine(\r\n\t\t\t\tAPPID, SDKKey, pWorkMem, WORKBUF_SIZE, phEngine, \r\n\t\t\t\t_AFD_FSDK_OrientPriority.AFD_FSDK_OPF_0_HIGHER_EXT, nScale, nMaxFace\r\n\t\t);\r\n\t\t\r\n\t\t/*\tEngine assignment\t*/\r\n\t\tthis.phEngineFD = phEngine;\r\n\t\t\r\n\t\t/*\tPrint information\t*/\r\n\t\tSystem.out.println(\"Result of initialization of engine: \" + nRet.longValue());\r\n\t\tSystem.out.println(phEngine);\r\n\t\tSystem.out.println(phEngine.getPointer());\r\n\t\tSystem.out.println(phEngine.getValue());\r\n\t}", "@Override\n\tpublic void init(EngineConfig config) throws ServiceException\n\t{\n\t\t\n\t}", "public static void init() {\n startTime = System.currentTimeMillis();\n if (clientExecutorEngine == null) {\n clientExecutorEngine = new ClientExecutorEngine();\n HzClient.initClient();\n }\n }", "@Override\r\n\tpublic void engine() {\r\n\t\t// TODO Auto-generated method stub\t\t\r\n\t}", "private void initMapEngine() {\n String path = new File(m_activity.getExternalFilesDir(null), \".here-map-data\")\n .getAbsolutePath();\n // This method will throw IllegalArgumentException if provided path is not writable\n com.here.android.mpa.common.MapSettings.setDiskCacheRootPath(path);\n\n MapEngine.getInstance().init(new ApplicationContext(m_activity), new OnEngineInitListener() {\n @Override\n public void onEngineInitializationCompleted(Error error) {\n if (error == Error.NONE) {\n /*\n * Similar to other HERE Android SDK objects, the MapLoader can only be\n * instantiated after the MapEngine has been initialized successfully.\n */\n getMapPackages();\n } else {\n Log.e(TAG, \"Failed to initialize MapEngine: \" + error);\n new AlertDialog.Builder(m_activity).setMessage(\n \"Error : \" + error.name() + \"\\n\\n\" + error.getDetails())\n .setTitle(R.string.engine_init_error)\n .setNegativeButton(android.R.string.cancel,\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(\n DialogInterface dialog,\n int which) {\n m_activity.finish();\n }\n }).create().show();\n }\n }\n });\n }", "public static EcoreFactory init() {\r\n\t\ttry {\r\n\t\t\tEcoreFactory theEcoreFactory = (EcoreFactory)EPackage.Registry.INSTANCE.getEFactory(\"http://lumaqq.tsinghua.edu/ecore/edu/tsinghua/lumaqq/ecore\"); \r\n\t\t\tif (theEcoreFactory != null) {\r\n\t\t\t\treturn theEcoreFactory;\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (Exception exception) {\r\n\t\t\tEcorePlugin.INSTANCE.log(exception);\r\n\t\t}\r\n\t\treturn new EcoreFactoryImpl();\r\n\t}", "private void initialisation()\n\t{\n\t\tdaoFactory = new DaoFactory();\n\n\t\ttry\n\t\t{\n\t\t\tequationStandardSessions = EquationCommonContext.getContext().getGlobalProcessingEquationStandardSessions(\n\t\t\t\t\t\t\tsession.getSessionIdentifier());\n\t\t}\n\t\tcatch (Exception eQException)\n\t\t{\n\t\t\tif (LOG.isErrorEnabled())\n\t\t\t{\n\t\t\t\tStringBuilder message = new StringBuilder(\"There is a problem creating Global processing the sessions\");\n\t\t\t\tLOG.error(message.toString(), eQException);\n\t\t\t}\n\t\t}\n\t}", "public GameEngine getEngine() {\n\t\treturn engine;\n\t}", "public Engine(){\n name = \"Basic Engine\";\n moveDeduction = 1;\n }", "public static IXccdfEngine createEngine(IPlugin plugin, SystemEnumeration... systems) {\r\n \treturn new OEMEngine(plugin, systems);\r\n }", "@Override\n public void initialise(GameEngine engine, Context rootContext) {\n TypeHandlerLibrary typeHandlerLibrary = rootContext.get(TypeHandlerLibrary.class);\n Gson gson = new GsonBuilder().setPrettyPrinting().create();\n Serializer<GsonPersistedData> serializer = new Serializer<>(\n typeHandlerLibrary,\n new GsonPersistedDataSerializer(),\n new GsonPersistedDataWriter(gson),\n new GsonPersistedDataReader(gson)\n );\n autoConfigManager = new AutoConfigManager(serializer);\n typeHandlerLibrary.addTypeHandlerFactory(new AutoConfigTypeHandlerFactory(typeHandlerLibrary));\n rootContext.put(AutoConfigManager.class, autoConfigManager);\n\n autoConfigManager.loadConfigsIn(rootContext);\n }", "@Override\r\n\tpublic void configEngine(Engine me) {\n\r\n\t}", "public RenderEngine() {\n\t\twindow = Window.getInstance();\n\t\t\n\t\ttestEntity = new Entity(\"skull/skull.obj\", \"./res/models/skull/skull.png\", new Vector3f(0,0,0), new Vector3f(0,0,0));\n\t\ttestEntity.getWorldTransform().setScaling(new Vector3f(0.01f,0.01f,0.01f));\n\t\t\n\t\ttestEntity2 = new Entity(\"dummy/dummy.obj\", \"./res/models/dummy/dummy.jpg\", new Vector3f(0,8,0), new Vector3f(0,0,0));\n\t\ttestEntity2.getWorldTransform().setScaling(new Vector3f(0.05f,0.05f,0.05f));\n\t\t\n\t\ttestLight = new Light(new Vector3f(-5,5,-5), new Vector3f(1,1,1));\n\t\ttestLight.getWorldTransform().setScaling(new Vector3f(0.1f,0.1f,0.1f));\n\t\t\n\t\tsky = new SkyDome();\n\t\t\n\t}", "public abstract void init();", "public abstract void init();", "public abstract void init();", "public abstract void init();", "public abstract void init();", "public abstract void init();", "public abstract void init();", "public abstract void init();", "public abstract void init();", "public abstract void init();", "public synchronized static void init() {\n if (!isInitialized()) {\n if (processEngines == null) {\n // Create new map to store process-engines if current map is\n // null\n processEngines = new HashMap<String, ProcessEngine>();\n }\n ClassLoader classLoader = ReflectUtil.getClassLoader();\n Enumeration<URL> resources = null;\n try {\n resources = classLoader.getResources(\"activiti.cfg.xml\");\n } catch (IOException e) {\n throw new ActivitiIllegalArgumentException(\"problem retrieving activiti.cfg.xml resources on the classpath: \" + System.getProperty(\"java.class.path\"), e);\n }\n\n // Remove duplicated configuration URL's using set. Some\n // classloaders may return identical URL's twice, causing duplicate\n // startups\n Set<URL> configUrls = new HashSet<URL>();\n while (resources.hasMoreElements()) {\n configUrls.add(resources.nextElement());\n }\n for (Iterator<URL> iterator = configUrls.iterator(); iterator.hasNext();) {\n URL resource = iterator.next();\n log.info(\"Initializing process engine using configuration '{}'\", resource.toString());\n initProcessEngineFromResource(resource);\n }\n\n try {\n resources = classLoader.getResources(\"activiti-context.xml\");\n } catch (IOException e) {\n throw new ActivitiIllegalArgumentException(\"problem retrieving activiti-context.xml resources on the classpath: \" + System.getProperty(\"java.class.path\"), e);\n }\n while (resources.hasMoreElements()) {\n URL resource = resources.nextElement();\n log.info(\"Initializing process engine using Spring configuration '{}'\", resource.toString());\n initProcessEngineFromSpringResource(resource);\n }\n\n setInitialized(true);\n } else {\n log.info(\"Process engines already initialized\");\n }\n }", "@Override\n\tpublic void hasEngine() {\n\t\t\n\t}", "public EngineSwitch() {\n\t\tif (modelPackage == null) {\n\t\t\tmodelPackage = EnginePackage.eINSTANCE;\n\t\t}\n\t}", "public RobotEngine (){\r\n\t\tthis.fuel = 100;\r\n\t\tthis.recycledMaterial = 0;\r\n\t\tthis.container = new ItemContainer ();\r\n\t\tthis.direction = Direction.NORTH;\r\n\t\tthis.navega = new NavigationModule();\r\n\t}", "public static EsoFactory init()\r\n {\r\n try\r\n {\r\n EsoFactory theEsoFactory = (EsoFactory)EPackage.Registry.INSTANCE.getEFactory(\"http://www.cau.de/cs/kieler/sim/eso/Eso\"); \r\n if (theEsoFactory != null)\r\n {\r\n return theEsoFactory;\r\n }\r\n }\r\n catch (Exception exception)\r\n {\r\n EcorePlugin.INSTANCE.log(exception);\r\n }\r\n return new EsoFactoryImpl();\r\n }", "public Engine getEngine_test() {\n\t\treturn engine;\n\t}", "public static EditorFactory init() {\n\t\ttry {\n\t\t\tEditorFactory theEditorFactory = (EditorFactory)EPackage.Registry.INSTANCE.getEFactory(\"http://opaeum.org/uimetamodel/editor/1.0\"); \n\t\t\tif (theEditorFactory != null) {\n\t\t\t\treturn theEditorFactory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new EditorFactoryImpl();\n\t}", "@Test\n\tpublic void createJmeterEngine() {\n\t\ttry {\n\t\t\tString currentPath = new File(jmeterHomePath).getCanonicalPath();\n\t\t\tJMeterUtils.setJMeterHome(currentPath);\n\t\t\tSystem.out.println(\"Setting Jmeter Home: \" + currentPath);\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tSystem.setProperty(JMeter.JMETER_NON_GUI, \"true\");\n\t\tjEngine = new StandardJMeterEngine();\n\t\tassertNotNull(jEngine);\n // jmeter.properties\n JMeterUtils.loadJMeterProperties(jmeterPropertiesFile);\n \t\tJMeterUtils.initLogging();// you can comment this line out to see extra log messages of i.e. DEBUG level\n\t\tJMeterUtils.initLocale();\n //return jEngine;\n\t}", "private void initEngineAndJoinChannel() {\n // Join and start call\n initializeEngine();\n setupVideoConfig();\n setupLocalVideo();\n joinChannel();\n }", "public static GameEngine getInstance() {\n return INSTANCE;\n }", "public void startEngine(){\r\n isEngineRunning = true;\r\n System.out.println(\"[i] Engine is running.\");\r\n }", "Analytics_Engine createAnalytics_Engine();", "public static interface Engine\n\t\t{\n\t\t\tpublic void spinWheels();\n\t\t}", "public static VelocityEngine getVelocityEngine(){\n if(velocityEngine == null)\n init();\n return velocityEngine;\n }", "public void startEngine() {\n if (!isLoaded) {\n currentSpeed = 0.1;\n }\n }", "public AbstractSearchEngine() {}", "public abstract void initialize();", "public abstract void initialize();", "public abstract void initialize();", "private void init() {\n safeLevel = config.getSafeLevel();\n \n // Construct key services\n loadService = config.createLoadService(this);\n posix = POSIXFactory.getPOSIX(new JRubyPOSIXHandler(this), RubyInstanceConfig.nativeEnabled);\n javaSupport = new JavaSupport(this);\n \n if (RubyInstanceConfig.POOLING_ENABLED) {\n executor = new ThreadPoolExecutor(\n RubyInstanceConfig.POOL_MIN,\n RubyInstanceConfig.POOL_MAX,\n RubyInstanceConfig.POOL_TTL,\n TimeUnit.SECONDS,\n new SynchronousQueue<Runnable>(),\n new DaemonThreadFactory());\n }\n \n // initialize the root of the class hierarchy completely\n initRoot();\n \n // Set up the main thread in thread service\n threadService.initMainThread();\n \n // Get the main threadcontext (gets constructed for us)\n ThreadContext tc = getCurrentContext();\n \n // Construct the top-level execution frame and scope for the main thread\n tc.prepareTopLevel(objectClass, topSelf);\n \n // Initialize all the core classes\n bootstrap();\n \n // Initialize the \"dummy\" class used as a marker\n dummyClass = new RubyClass(this, classClass);\n dummyClass.freeze(tc);\n \n // Create global constants and variables\n RubyGlobal.createGlobals(tc, this);\n \n // Prepare LoadService and load path\n getLoadService().init(config.loadPaths());\n \n booting = false;\n \n // initialize builtin libraries\n initBuiltins();\n \n if(config.isProfiling()) {\n getLoadService().require(\"jruby/profiler/shutdown_hook\");\n }\n \n // Require in all libraries specified on command line\n for (String scriptName : config.requiredLibraries()) {\n loadService.require(scriptName);\n }\n }", "public static ParsedmodelFactory init() {\n\t\ttry {\n\t\t\tParsedmodelFactory theParsedmodelFactory = (ParsedmodelFactory)EPackage.Registry.INSTANCE.getEFactory(\"http://parsedmetadata/1.0\"); \n\t\t\tif (theParsedmodelFactory != null) {\n\t\t\t\treturn theParsedmodelFactory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new ParsedmodelFactoryImpl();\n\t}", "protected void initialize () {\r\n if (initCommand!=null) matlabEng.engEvalString (id,initCommand);\r\n }", "public TemplateEngine getEngine( String name );", "public abstract void initialise();", "public abstract void initialise();", "public abstract void initialise();", "public static void initialize() {\n \tinitialize(new Configuration().configure());\n }", "public static void initializeHandler() {\n\t\t\n\t\t//Check not already initialized\n\t\tif(cepRT == null) {\n\t\t\t\n\t\t\t//The Configuration is meant only as an initialization-time object.\n\t\t Configuration cepConfig = new Configuration();\n\t\t \n\t\t /*\n\t\t * Basic EVENTS\n\t\t */\n\t\t addEventTypes(cepConfig);\n\t\t \n\t\t // We setup the engine\n\t\t EPServiceProvider cep = EPServiceProviderManager.getProvider(\"myCEPEngine\", cepConfig);\n\t\t \n\t\t cepRT = cep.getEPRuntime();\n\t\t cepAdm = cep.getEPAdministrator();\n\t\t \n\t\t /*\n\t\t * Additional EVENTS\n\t\t */\n\t\t EsperStatements.defineAnomalyEvents(cepAdm);\n\t\t EsperStatements.defineSystemEvents(cepAdm);\n\t\t \n\t\t /*\n\t\t * TABLES and NAMED WINDOWS\n\t\t */\n\t\t // TRACES WINDOW (traceId PK)\n\t\t EsperStatements.defineTracesWindow(cepAdm, retentionTime);\n\t\t // PROCESSES TABLE (hashProcess PK, process)\n\t\t EsperStatements.defineProcessesTable(cepAdm);\n\t\t // SPANS WINDOW (span, hashProcess, serviceName)\n\t\t EsperStatements.defineSpansWindow(cepAdm, retentionTime);\n\t\t // DEPENDENCIES WINDOW (traceIdHexFrom, spanIdFrom, traceIdHexTo, spanIdTo)\n\t\t EsperStatements.defineDependenciesWindow(cepAdm, retentionTime);\n\t\t \n\t\t // MEAN DURATION PER OPERATION TABLE (serviceName PK, operationName PK, meanDuration, m2, counter)\n\t\t //Welford's Online algorithm to compute running mean and variance\n\t\t EsperStatements.defineMeanDurationPerOperationTable(cepAdm);\n\t//\t EsperStatements.defineMeanDurationPerOperationTableResetCounter(cepAdm, 1000);\n\t\t \n\t\t //TRACES TO BE SAMPLED WINDOW (traceId)\n\t\t EsperStatements.defineTracesToBeSampledWindow(cepAdm, retentionTime);\n\t\t \n\t\t /*\n\t\t * STATEMENTS\n\t\t */\n\t//\t EsperStatements.gaugeRequestsPerHostname(cepAdm, retentionTime);\n\t//\t EsperStatements.errorLogs(cepAdm);\n\t\t \n\t//\t EsperStatements.topKOperationDuration(cepAdm, \"10\");\n\t//\t EsperStatements.perCustomerDuration(cepAdm);\n\t\t \n\t\t // RESOURCE USAGE ATTRIBUTION\n\t\t // CE -> Contained Event Selection\n\t//\t EsperStatements.resourceUsageCustomerCE(cepAdm, retentionTime);\n\t//\t EsperStatements.resourceUsageCustomer(cepAdm, retentionTime);\n\t//\t EsperStatements.resourceUsageSessionCE(cepAdm, retentionTime);\n\t//\t EsperStatements.resourceUsageSession(cepAdm, retentionTime);\n\t\t \n\t\t // ANOMALIES DETECTION\n\t\t // Three-sigma rule to detect anomalies (info https://en.wikipedia.org/wiki/68–95–99.7_rule)\n\t\t EsperStatements.highLatencies(cepAdm);\n\t\t EsperStatements.reportHighLatencies(cepAdm, \"./anomalies.csv\");\n\t\t EsperStatements.insertProcessCPUHigherThan80(cepAdm);\n\t\t \n\t\t // TAIL SAMPLING\n\t\t EsperStatements.tailSampling(cepAdm, \"./sampled.txt\"); \n\t\t \n\t\t //PATTERN\n\t\t EsperStatements.anomalyAfterCommit(cepAdm, \"15min\");\n\t\t EsperStatements.highCPUandHighLatencySameHost(cepAdm, \"10sec\");\n\t\t \n\t\t /*\n\t\t * EVENTS\n\t\t */\n\t\t EsperStatements.insertCommitEvents(cepAdm); \n\t\t EsperStatements.systemEvents(cepAdm);\n\t\t \n\t\t /*\n\t\t * DEBUG socket\n\t\t */\n\t\t EsperStatements.debugStatements(cepAdm);\n\t\t \n\t\t /*\n\t\t * START API\n\t\t */\n\t\t Thread APIThread = new Thread(new Runnable() {\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tKaijuAPI.initAPI();\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t});\n\t\t \n\t\t APIThread.run();\n\t\t}\n\t \n\t}", "public static CoreFactory init() {\n\t\ttry {\n\t\t\tCoreFactory theCoreFactory = (CoreFactory)EPackage.Registry.INSTANCE.getEFactory(\"http://m2ling.org/core/0.1\"); \n\t\t\tif (theCoreFactory != null) {\n\t\t\t\treturn theCoreFactory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new CoreFactoryImpl();\n\t}", "private static FreeMarkerEngine createEngine() {\n Configuration config = new Configuration();\n File templates = new File(\"src/main/resources/spark/template/freemarker\");\n try {\n config.setDirectoryForTemplateLoading(templates);\n } catch (IOException ioe) {\n System.out.printf(\"ERROR: Unable use %s for template loading.%n\", templates);\n System.exit(1);\n }\n return new FreeMarkerEngine(config);\n }", "void setEngine(ImpotEngine engine) {\n this.engine = engine;\n }", "public static ExecutionFactory init() {\n\t\ttry {\n\t\t\tExecutionFactory theExecutionFactory = (ExecutionFactory)EPackage.Registry.INSTANCE.getEFactory(ExecutionPackage.eNS_URI);\n\t\t\tif (theExecutionFactory != null) {\n\t\t\t\treturn theExecutionFactory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new ExecutionFactoryImpl();\n\t}", "abstract public void init();", "public Engine toEngine(SbiEngines hibEngine){\r\n\t\tEngine eng = new Engine();\r\n\t\teng.setCriptable(new Integer(hibEngine.getEncrypt().intValue()));\r\n\t\teng.setDescription(hibEngine.getDescr());\r\n\t\teng.setDirUpload(hibEngine.getObjUplDir());\r\n\t\teng.setDirUsable(hibEngine.getObjUseDir());\r\n\t\teng.setDriverName(hibEngine.getDriverNm());\r\n\t\teng.setId(hibEngine.getEngineId());\r\n\t\teng.setName(hibEngine.getName());\r\n\t\teng.setLabel(hibEngine.getLabel());\r\n\t\teng.setSecondaryUrl(hibEngine.getSecnUrl());\r\n\t\teng.setUrl(hibEngine.getMainUrl());\r\n\t\teng.setLabel(hibEngine.getLabel());\r\n\t\treturn eng;\r\n\t}", "public void init();", "public void init();", "public void init();" ]
[ "0.7812684", "0.7812684", "0.7170476", "0.69964385", "0.69545674", "0.68984747", "0.6887119", "0.68389994", "0.67770916", "0.6704396", "0.66211057", "0.66174567", "0.65920013", "0.6578994", "0.65480316", "0.65156806", "0.64902234", "0.6471743", "0.6446784", "0.64019436", "0.6381819", "0.6362519", "0.6345433", "0.628203", "0.627196", "0.62571263", "0.6228871", "0.62211114", "0.62207365", "0.62011844", "0.6192105", "0.61906254", "0.6187888", "0.6159846", "0.61364317", "0.6127101", "0.6090308", "0.60767686", "0.6074425", "0.6073404", "0.6072646", "0.6041129", "0.6028791", "0.60072476", "0.60009116", "0.5985024", "0.59565955", "0.5950088", "0.59421676", "0.59234643", "0.5914574", "0.5911371", "0.59107906", "0.5896251", "0.5896251", "0.5896251", "0.5896251", "0.5896251", "0.5896251", "0.5896251", "0.5896251", "0.5896251", "0.5896251", "0.5890982", "0.587081", "0.5861148", "0.5853728", "0.5850083", "0.58477914", "0.5846149", "0.5845952", "0.5844878", "0.5828778", "0.5826581", "0.58232486", "0.58164", "0.58027226", "0.5780343", "0.5778336", "0.5771119", "0.5771119", "0.5771119", "0.5767981", "0.5760949", "0.5735051", "0.57312304", "0.57307374", "0.57307374", "0.57307374", "0.5724049", "0.57174677", "0.5713458", "0.5697453", "0.5684674", "0.5679584", "0.567852", "0.56681365", "0.56583303", "0.56583303", "0.56583303" ]
0.60479873
41
Write response from server to textView
protected void onPostExecute(String page) { textView.setText(page); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onResponse(String response) {\n mTextView.setText(\"Response is: \" + response);\n }", "@Override\n public void onResponse(String response)\n {\n httpReturn.setText(\"RESPOSTA:\\n\" + response.toString());\n httpReturn.setTextColor(Color.BLUE);\n httpReturn.setTextSize((float) 22.5);\n }", "@Override\n public void onResponse(Call call, final Response response) throws IOException {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n// TextView responseText = findViewById(R.id.responseText);\n try {\n// responseText.setText(response.body().string());\n Log.d(\"Flask Server\",response.body().string());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n });\n }", "@Override\n public void onResponse(String response) {\n\n tv2.setText(response);\n\n int nTop = tv2.getLayout().getLineTop(tv2.getLineCount());\n int nScrollY = nTop - tv2.getHeight();\n if(nScrollY > 0){\n tv2.scrollTo(0, nScrollY);\n }else {\n tv2.scrollTo(0, 0);\n }\n\n progressDialog.dismiss();\n //context.startActivity(new Intent(context, MainActivity.class));\n //((Activity) context).finish();\n }", "private void sendResponse(HttpServletResponse response, String text) {\n try (PrintWriter pw = response.getWriter()) {\n pw.println(text);\n } catch (IOException e) {\n log.error(e);\n }\n }", "@Override\n public void run() {\n try {\n// responseText.setText(response.body().string());\n Log.d(\"Flask Server\",response.body().string());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\n public void onResponse(Call call, final Response response) throws IOException {\n\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n try {\n responseString = response.body().string();\n textView.setText(\"Request: \" + requestString + \"\\nResponse: \"+responseString);\n tts.speak(responseString);\n\n } catch (IOException e) {\n e.printStackTrace();\n tts.speak(\"Failed to contact the server\");\n }\n }\n });\n }", "private void writeText(HttpServletResponse response, String outText) throws IOException {\n\t\tresponse.setContentType(CONTENT_TYPE);\n\t\tPrintWriter out = response.getWriter();\n\t\tout.print(outText);\n\t\t// 將輸出資料列印出來除錯用\n\t\tSystem.out.println(\"output: \" + outText);\n\n\t}", "@Override\n public void onResponse(String response) {\n try {\n JSONObject obj = new JSONObject(response);\n String content = obj.getString(\"content\");\n getAPI.setText(\"Response is: \" + content);\n } catch (JSONException error) {\n getAPI.setText(\"That didn't work!\");\n error.printStackTrace();\n }\n }", "public void setResponseText(String text) {\n if (text != null)\n this.textView.setText(text);\n }", "@Override\r\n\t\tpublic void onHttpResponse(String response) {\n\t\t\tif(WebApi.isRespSuccess(response)){\r\n\t\t\t\thandler.sendEmptyMessage(HANDLER_MSG_APKINFO_SYNC);\r\n\t\t\t}\r\n\t\t\tString resp_msg = WebApi.getRespMsg(response);\r\n\t\t\tMessage msg = new Message();\r\n\t\t\tmsg.what = HANDLER_MSG_TOAST;\r\n\t\t\tBundle bundle = new Bundle();\r\n\t\t\tbundle.putString(HANDLER_DATA_TOAST_TEXT, resp_msg);\r\n\t\t\tmsg.setData(bundle);\r\n\t\t\thandler.sendMessage(msg);\r\n\t\t}", "@Override\n public void success(Response result, Response response) {\n BufferedReader reader = null;\n\n //An string to store output from the server\n String output = \"\";\n\n try {\n //Initializing buffered reader\n reader = new BufferedReader(new InputStreamReader(result.getBody().in()));\n\n //Reading the output in the string\n output = reader.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n //Displaying the output as a toast\n Toast.makeText(MainActivity.this, output, Toast.LENGTH_LONG).show();\n }", "@Override\n public void onResponse(String response) {\n // try/catch block for returned JSON data\n // see API's documentation for returned format\n try {\n JSONObject result = new JSONObject(response);\n JSONArray resultList = result.getJSONArray(\"outputs\");\n JSONObject inner = resultList.getJSONObject(0);\n String out = inner.getString(\"output\");\n output.setText(\" \"+out);\n\n // catch for the JSON parsing error\n } catch (JSONException e) {\n Toast.makeText(MainActivity.this, e.getMessage(), Toast.LENGTH_LONG).show();\n }\n }", "public void txtResponse(String response , Player player);", "@Override\r\n\t\tpublic void onHttpResponse(String response) {\n\t\t\tif(WebApi.isRespSuccess(response)){\r\n//\t\t\t\thandler.sendEmptyMessage(HANDLER_MSG_APKINFO_SYNC);\r\n\t\t\t}\r\n\t\t\tString resp_msg = WebApi.getRespMsg(response);\r\n\t\t\tMessage msg = new Message();\r\n\t\t\tmsg.what = HANDLER_MSG_TOAST;\r\n\t\t\tBundle bundle = new Bundle();\r\n\t\t\tbundle.putString(HANDLER_DATA_TOAST_TEXT, resp_msg);\r\n\t\t\tmsg.setData(bundle);\r\n\t\t\thandler.sendMessage(msg);\r\n\t\t}", "@Override\n public void onResponse(String response) {\n viewHolder.tvNameTransact.setText(response);\n }", "@Override\r\n public void onResponse(String response) {\n button.setText(\"Response is: \" + response);\r\n Log.i(NAME, response);\r\n }", "@Override\n\t\t\tpublic void onResponse(String arg0) {\n\t\t\t\tToast.makeText(MainActivity.this, arg0, Toast.LENGTH_SHORT).show();\n\t\t\t}", "public void onClickSend(View view) {\n //String string = editText.getText().toString();\n //serialPort.write(string.getBytes());\n //tvAppend(txtResponse, \"\\nData Sent : \" + string + \"\\n\");\n }", "@Override\n\t\t\tpublic void onResponse(String arg0) {\n\t\t\t\tToast.makeText(MainActivity.this, arg0, Toast.LENGTH_LONG).show();\n\t\t\t}", "@Override\n public void onResponse(String response) {\n ProgressBar pb = (ProgressBar) findViewById(R.id.loading);\n pb.setVisibility(View.INVISIBLE);\n\n try{\n Object obj = new JSONParser().parse(response.toString());\n JSONObject jo = (JSONObject) obj;\n String reply = (String) jo.get(\"reply\");\n System.out.println(reply);\n TextView rp = (TextView) findViewById(R.id.rply);\n// rp.setText(reply);\n if (reply.equals(\"no\")){\n EditText pass = (EditText) findViewById(R.id.password);\n pass.setText(\"\");\n rp.setText(\"invalid user or wrong password\");\n }else{\n Intent intent = new Intent(MainActivity.this,showservice.class);\n EditText p = (EditText) findViewById(R.id.id);\n EditText pa = (EditText) findViewById(R.id.password);\n SharedPreferences sharedPreferences = getSharedPreferences(share,MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putString(loginid,p.getText().toString());\n editor.putString(passid,pa.getText().toString());\n editor.putString(status,\"1\");\n editor.apply();\n intent.putExtra(msg,p.getText().toString());\n startActivity(intent);\n }\n }catch (Exception e){\n System.out.println(e.toString());\n TextView rp = (TextView) findViewById(R.id.rply);\n }\n\n }", "@Override\n public void onResponse(String response) {\n progressDialog.dismiss();\n Log.d(\"Text on webpage: \", \"\" + response);\n checkResponse(response);\n }", "@Override\n public void onResponse(String response) {\n System.out.println(response.toString());\n }", "@Override\n public void onResponse(String response) {\n System.out.println(\"Recieved Response: \" + response);\n }", "@Override\n public void onResponse(String response) {\n\n saveBtn.setVisibility(View.INVISIBLE);\n serverUrl.setVisibility(View.INVISIBLE);\n\n if (url.contains(\"turn-off\")) {\n actionMessage.setVisibility(View.VISIBLE);\n if (response.equals(\"off\")) {\n actionMessage.setText(\"ПК буде вимкнено через заданий час\");\n } else {\n actionMessage.setText(\"Внутрішня помилка на сервері!!!\");\n }\n } else {\n currentVolume.setText(\"Поточна гучність: \" + response);\n //erase action message and hide it\n actionMessage.setText(\"\");\n actionMessage.setVisibility(View.INVISIBLE);\n }\n\n currentVolume.setVisibility(View.VISIBLE);\n try {\n int progress = Integer.parseInt(response);\n if (seekBar.getProgress() != progress) {\n seekBar.setProgress(progress);\n }\n } catch (NumberFormatException e) {\n //ignore\n }\n\n //show manage buttons\n hideShowButtons(true);\n wifiIndicatorImage.setBackgroundResource(R.drawable.wifi_on_24px);\n\n }", "@Override\r\n\t\tprotected void onPostExecute(String result) {\n\t\t\tsuper.onPostExecute(result);\r\n\t\t\tshowtalk.setText(result);\r\n\t\t}", "@Override\n public void onResponse(String response) {\n try {\n Object obj = new JSONParser().parse(response.toString());\n JSONObject jo = (JSONObject)obj;\n String reply = (String) jo.get(\"reply\");\n TextView tv = (TextView) findViewById(R.id.unsendmsg);\n tv.setText(reply);\n if(!reply.equals(\"0\")){\n// startService(new Intent(showservice.this,sms_send.class));\n }\n }catch (Exception e){\n System.out.println(e.toString());\n }\n }", "@Override\n public void onResponse(JSONObject response) {\n String status= response.toString();\n txtJsonData.setText(status);\n pDialog.hide();\n }", "public String viewResponse(Response response) {\r\n this.currentResponse = response;\r\n return \"viewResponse\";\r\n }", "public void run() {\n //Request the HTML\n try {\n HttpClient Client = new DefaultHttpClient();\n //String URL = \"http://10.0.2.2:8888/url\";\n String URL = \"http://\" + ipAddress + \":8888/hello\";\n String responseJsonString = \"\";\n\n // Create Request to server and get response\n HttpGet httpget = new HttpGet(URL);\n ResponseHandler<String> responseHandler = new BasicResponseHandler();\n responseJsonString = Client.execute(httpget, responseHandler);\n\n JSONObject responseJSON = new JSONObject(responseJsonString);\n // Show response on activity\n speakOut(responseJSON.getString(\"speechText\"));\n } catch (Exception ex) {\n System.out.println(ex.getMessage());\n }\n }", "@Override\n public void onFailure(Call call, IOException e) {\n call.cancel();\n\n // In order to access the TextView inside the UI thread, the code is executed inside runOnUiThread()\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n// TextView responseText = findViewById(R.id.responseText);\n// responseText.setText(\"Failed to Connect to Server\");\n Log.d(\"Flask Server\",\"Failed to connect to server\");\n }\n });\n }", "@Override\n public void success(retrofit.client.Response result, retrofit.client.Response response) {\n BufferedReader reader;\n\n //An string to store output from the server\n String output = \"\";\n\n try {\n //Initializing buffered reader\n reader = new BufferedReader(new InputStreamReader(result.getBody().in()));\n\n //Reading the output in the string\n output = reader.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n loading.dismiss();\n // Toast.makeText(getApplicationContext(),output,Toast.LENGTH_LONG).show();\n if(output!=null) switching(output);\n\n }", "@Override\n\t\t\t\t\tpublic void onResponse(String s) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "@Override\r\n\t\tpublic void onHttpResponse(String response) {\n\t\t\tif(WebApi.isRespSuccess(response)){\r\n\t\t\t\thandler.sendEmptyMessage(HANDLER_MSG_APKINFO_SYNC);\r\n\t\t\t\tBundle bundle = new Bundle();\r\n\t\t\t\tbundle.putInt(HANDLER_DATA_APK_INDEX, this.getApkIndex());\r\n\t\t\t\tMessage msg =new Message();\r\n\t\t\t\tmsg.setData(bundle);\r\n\t\t\t\tmsg.what = HANDLER_MSG_APK_UPLOAD;\r\n\t\t\t\thandler.sendMessage(msg);\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tString resp_msg = WebApi.getRespMsg(response);\r\n\t\t\tMessage msg = new Message();\r\n\t\t\tmsg.what = HANDLER_MSG_TOAST;\r\n\t\t\tBundle bundle = new Bundle();\r\n\t\t\tbundle.putString(HANDLER_DATA_TOAST_TEXT, resp_msg);\r\n\t\t\tmsg.setData(bundle);\r\n\t\t\thandler.sendMessage(msg);\r\n\t\t}", "@Override\r\n\t\tpublic void onHttpResponse(String response) {\n\t\t\tif(WebApi.isRespSuccess(response)){\r\n\t\t\t\thandler.sendEmptyMessage(HANDLER_MSG_APKINFO_SYNC);\r\n\t\t\t\tBundle bundle = new Bundle();\r\n\t\t\t\tbundle.putInt(HANDLER_DATA_APK_INDEX, this.getApkIndex());\r\n\t\t\t\tMessage msg =new Message();\r\n\t\t\t\tmsg.setData(bundle);\r\n\t\t\t\tmsg.what = HANDLER_MSG_APK_ADD;\r\n\t\t\t\thandler.sendMessage(msg);\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tString resp_msg = WebApi.getRespMsg(response);\r\n\t\t\tMessage msg = new Message();\r\n\t\t\tmsg.what = HANDLER_MSG_TOAST;\r\n\t\t\tBundle bundle = new Bundle();\r\n\t\t\tbundle.putString(HANDLER_DATA_TOAST_TEXT, resp_msg);\r\n\t\t\tmsg.setData(bundle);\r\n\t\t\thandler.sendMessage(msg);\r\n\t\t}", "@Override\n public void onResponse(String response) {\n Log.i(\"Checking\", response + \" \");\n if(new ServerReply(response).getStatus())\n {\n Toast.makeText(context,new ServerReply(response).getReason(),Toast.LENGTH_LONG).show();\n }\n\n }", "@Override\n protected void onPostExecute(String result) {\n temptext.setText(result+data);\n }", "@Override\r\n public void onResponse(String ServerResponse) {\n progressDialog.dismiss();\r\n\r\n // Showing response message coming from server.\r\n Toast.makeText(appointment.this, ServerResponse, Toast.LENGTH_LONG).show();\r\n\r\n\r\n }", "@Override\n protected void onPostExecute(String result) {\n super.onPostExecute(result);\n strJson = result;\n mainAct.runOnUiThread(new Runnable() {\n @Override\n public void run() {\n //Toast.makeText(mainAct, \"Received!\", Toast.LENGTH_LONG).show();\n try {\n JSONArray json = new JSONArray(strJson);\n mainAct.tvResponse.setText(json.toString(1));\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n });\n\n }", "@Override\n protected void onPostExecute(String s){\n super.onPostExecute(s);\n TextView textview = findViewById(R.id.status);\n try {\n JSONObject obj = new JSONObject(s);\n if(obj.getBoolean(\"alive\")){\n textview.setText(\"Server is Alive!\");\n }\n }catch(JSONException e){\n textview.setText(\"Server Offline!\");\n }\n }", "public void setResponseView(String message){\n messageStatusView.append(message);\n messageStatusView.append(\"\\n\");\n }", "public void updateView(String message) {\n output.setText(message);\n \n }", "@Override\n\t\t\t\tpublic void onResponse(String arg0) {\n\t\t\t\t\tSystem.out.println(arg0);\n\t\t\t\t\t\n\t\t\t\t}", "public void appendMessage(String response) {\n\t\tthis.append(response + newline);\n\t}", "@Override\n public void onReceivedData(byte[] arg0) {\n String data;\n try {\n data = new String(arg0, \"UTF-8\");\n data.concat(\"/n\");\n tvAppend(textView, data);\n\n\n\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n\n\n }", "@Override\n public void onNext(String s) {\n Toast.makeText(MainActivity.this, \"OBSERVER ->\" + s, Toast.LENGTH_SHORT).show();\n textView.setText(s);\n }", "@Override\r\n\t\t\tpublic void sendResponse(String string) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void sendResponse(String string) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void sendResponse(String string) {\n\t\t\t\t\r\n\t\t\t}", "private static String responseHandle(HttpResponse response)\n\t\t\tthrows IllegalStateException, IOException {\n\t\tHttpEntity entity = response.getEntity();\n\t\tif (entity != null) {\n\n\t\t\tInputStream inputStream = entity.getContent();\n\t\t\treturn ServerCommunicationREST.convertStreamToString(inputStream);\n\t\t} else\n\t\t\treturn \"\";\n\t}", "@Override\n public void onResponse(String response) {\n Toast.makeText(Details.this, \"\" + response, Toast.LENGTH_LONG).show();\n }", "void sendData(String msg) throws IOException\n {\n if ( msg.length() == 0 ) return;\n//\n msg += \"\\n\";\n// Log.d(msg, msg);\n if (outputStream != null)\n outputStream.write(msg.getBytes());\n// myLabel.setText(\"Data Sent\");\n// myTextbox.setText(\" \");\n }", "public static void printResponse(String response)\n\t{\n\t\n\t}", "public void run() {\n //Request the HTML\n try {\n HttpClient Client = new DefaultHttpClient();\n //String URL = \"http://10.0.2.2:8888/url\";\n String URL = \"http://\" + ipAddress + \":8888/intent?sentence=\" + URLEncoder.encode(query, \"utf-8\").replace(\"+\", \"%20\");\n String responseJsonString = \"\";\n\n // Create Request to server and get response\n HttpGet httpget = new HttpGet(URL);\n ResponseHandler<String> responseHandler = new BasicResponseHandler();\n responseJsonString = Client.execute(httpget, responseHandler);\n\n JSONObject responseJSON = new JSONObject(responseJsonString);\n // Show response on activity\n speakOut(responseJSON.getString(\"speechText\"));\n\n // Show response on activity\n String response_url = responseJSON.getString(\"url\");\n if(!response_url.equals(new_url))\n {\n new_url = response_url;\n myWebView.post(new Runnable() {\n public void run() {\n myWebView.loadUrl(new_url);\n }\n });\n //myWebView.loadUrl(new_url);\n }\n //System.out.println(responseString);\n\n } catch (Exception ex) {\n System.out.println(ex.getMessage());\n }\n }", "@Override\n public void updateUI(Response res) {\n boolean allNull = true; // Initial assumption\n if (res.reply != null) {\n try {\n Thread.sleep(3000); // 1000 milliseconds is one second.\n } catch (InterruptedException ex) {\n Thread.currentThread().interrupt();\n }\n System.out.println(this.guiCore.getConsoleController());\n this.guiCore.getConsoleController().appendToDisplay(res.reply);\n allNull = false;\n }\n if (res.taskList != null) {\n try {\n this.outputTask(res.taskList);\n } catch (OutputExecuteException e) {\n this.logger.debug(e.getMessage());\n }\n allNull = false;\n }\n\n if (allNull) {\n this.logger\n .debug(\"Respose object does not contain any useful information\");\n }\n }", "@Override\n public void onResponse(String response) {\n Log.d(DEBUG_TAG, \"Response is: \"+ response);\n }", "public void sendText(View view)\n {\n String toSay = editText.getText().toString();\n editText.getText().clear();\n findViewById(R.id.main_layout).requestFocus();\n InputMethodManager imm = (InputMethodManager) getSystemService(Activity.INPUT_METHOD_SERVICE);\n imm.hideSoftInputFromWindow(view.getWindowToken(), 0);\n logicController.ConnectToServer(toSay, false);\n //ttsCont.speakThis(toSay);\n //toastWithTimer(toSay, true);\n }", "private void writeResponseLine(final DataOutput out) throws IOException {\n out.writeBytes(HTTP_VERSION);\n out.writeBytes(SP);\n out.writeBytes(code + \"\");\n out.writeBytes(SP);\n if (responseString != null) {\n out.writeBytes(responseString);\n }\n out.writeBytes(CRLF);\n }", "@Override\n public void onReceivedData(byte[] arg0) {\n String data = null;\n try {\n data = new String(arg0, \"UTF-8\");\n data.concat(\"/n\");\n tvAppend(textView, data);\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n\n\n }", "void sendResponseMessage(HttpResponse response) throws IOException;", "@Override\r\n public void onResult(byte[] data)\r\n {\n StringBuffer sb = new StringBuffer();\r\n sb.append(getString(R.string.external_device_recv_data)).append(\"\\n\");\r\n sb.append(new String(data)).append(\"\\n\");\r\n \r\n McRecvOnBoard = sb.toString();\r\n \r\n MainControllerDemoActivity.this.runOnUiThread(new Runnable(){\r\n\r\n @Override\r\n public void run() \r\n { \r\n mRecvTextView.setText(McRecvOnBoard);\r\n }\r\n });\r\n }", "public void onClickSend(View view) {\n String string = editText.getText().toString();\n serialPort.write(string.getBytes());\n tvAppend(textView, \"\\nData Sent : \" + string + \"\\n\");\n\n }", "@Override\n protected void onPostExecute(String result) {\n // tvResult.setText(result);\n }", "public static void recv( String response ) {\n\t\tLog.v(TAG,\"get response: \" + response );\n\t}", "@Override\n public void run() {\n receivedTextView1.setText(str);\n }", "@Override\r\n\t\t\t\t\tpublic void onResponse(HttpResponse resp) {\n\t\t\t\t\t\tLog.i(\"HttpPost\", \"Success\");\r\n\r\n\t\t\t\t\t}", "@Override\n public void onClick(View view) {\n\n runOnUiThread(\n new Runnable() {\n @Override\n public void run() {\n MainActivity\n .this\n .connectionManager.getTo().println(\n MainActivity\n .this\n .send_text.getText().toString()\n );\n }\n }\n );\n\n }", "@Override\n\t\t\t\t\tpublic void onResponse(String response) {\n\n\t\t\t\t\t}", "@Override\n public void onResponse(String response) {\n }", "@Override\n protected void onPostExecute(String result) {\n tvContenidoTarea.setText(result); // txt.setText(result);\n // might want to change \"executed\" for the returned string passed\n // into onPostExecute() but that is upto you\n }", "@Override\n protected void onPostExecute(String result) {\n super.onPostExecute(result);\n strJson = result;\n LoginAct.runOnUiThread(new Runnable() {\n @Override\n public void run() {\n //Toast.makeText(LoginAct, \"Received!\", Toast.LENGTH_LONG).show();\n try {\n JSONArray json = new JSONArray(strJson);\n LoginAct.tvResponse.setText(json.toString(1));\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n });\n\n }", "@Override\n public void run() {\n byte[] response = Util.sendPost(readUrl, null);\n StringBuffer stringBuffer = new StringBuffer();\n Log.d(\"TEST\", response.length + \"\");\n for (int i = response.length - 1; i >= 0; i--) {\n String s = Integer.toString(response[i]);\n if (s.length() == 1) {\n s = '0' + s;\n }\n Log.d(\"TEST\", s + \"\");\n stringBuffer.append(s + \"\\n\");\n }\n Message message = Message.obtain();\n message.what = 1;\n message.obj = stringBuffer.toString();\n mHandler.sendMessage(message);\n }", "@Override\n public void onResponse(String response) {\n Log.i(Constant.TAG_MAIN, \"Get JSON respone: \" + response);\n\n }", "@Override\n public void onResponse(String response) {\n // try/catch block for returned JSON data\n // see API's documentation for returned format\n try {\n JSONObject result = new JSONObject(response);\n JSONArray resultList = result.getJSONArray(\"translation saved\");\n JSONObject inner = resultList.getJSONObject(0);\n String out = inner.getString(\"es\");\n String out2 = inner.getString(\"fr\");\n String out3 = inner.getString(\"de\");\n output2.setText(out +\" \"+ out2 +\" \"+ out3);\n JSONObject inner2 = resultList.getJSONObject(1);\n String out4 = inner2.getString(\"es\");\n String out5 = inner2.getString(\"fr\");\n String out6 = inner2.getString(\"de\");\n output3.setText(out4 +\" \"+ out5 +\" \"+ out6);\n\n\n // catch for the JSON parsing error\n } catch (JSONException e) {\n Toast.makeText(MainActivity.this, e.getMessage(), Toast.LENGTH_LONG).show();\n }\n }", "@Override\n public void onResponseRecieved(String reply) {\n\n if(!reply.equals(\"error\")) {\n Context context = getApplicationContext();\n CharSequence text = reply;\n int duration = Toast.LENGTH_LONG;\n Toast toast = Toast.makeText(context, text, duration);\n toast.show();\n EditText serverReply = (EditText) findViewById(R.id.editTextServerReply);\n serverReply.setText((CharSequence) serverReply, EditText.BufferType.NORMAL);\n\n //Deserializing response and pulling session data out\n Response r = new Gson().fromJson(reply, Response.class);\n\n account.sessionID = r.result.session_id;\n\n AccountMan.AccountMan a = new AccountMan.AccountMan();\n a.AddAccount(account);\n }\n\n }", "@Override\n public void onResponse(String response) {\n }", "public void outputToBrowser(HttpServletResponse res, String output) {\n\t\tPrintWriter out;\n\t\ttry {\n\t\t\tout = new PrintWriter(res.getOutputStream());\n\t\t\tint length = output.length();\n\t\t\tres.setContentType(\"text/html\");\n\t\t\tres.setContentLength(length);\n\t\t\tout.println(output);\n\t\t\tout.flush();\n\t\t\tout.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n public void onResponse(String s) {\n loading.dismiss();\n //Showing toast message of the response\n Toast.makeText(PreviewActivity.this, \"Correcto!\" , Toast.LENGTH_LONG).show();\n goMainScreen();\n }", "@Override\n public void onResponse(JSONObject response) {\n Log.d(TAG, \"Response: \" + response);\n try {\n ((TextView) findViewById(R.id.welcome)).setText(\"Welcome, \"\n + response.getString(\"name\"));\n Toast.makeText(getBaseContext(), \"Response: \" + response.get(\"name\"), Toast.LENGTH_SHORT)\n .show();\n } catch (JSONException e) {\n Log.d(TAG, \"JSONEXception Error: \" + e.toString());\n }\n }", "@Override\n public void onResponse(String ServerResponse) {\n\n String resetKiri = \"Reset Left\";\n String resetKanan = \"Reset Right\";\n if (ServerResponse.toString().trim().equals(\"Semaphore Flags reset kanan\")){\n tv.setText(resetKanan);\n }else if (ServerResponse.toString().trim().equals(\"Semaphore Flags reset kiri\")){\n tv.setText(resetKiri);\n }else {\n tv.setText(ServerResponse.toString().trim());\n }\n\n }", "@Override\n public void onClick(View v) {\n RequestTask requestTask = new RequestTask();\n requestTask.execute();\n //SystemClock.sleep(5000);\n // textView.setText(htmldata);\n }", "private static String paseResponse(HttpResponse response) {\n\t\tHttpEntity entity = response.getEntity();\n\t\t\n//\t\tlog.info(\"response status: \" + response.getStatusLine());\n\t\tString charset = EntityUtils.getContentCharSet(entity);\n//\t\tlog.info(charset);\n\t\t\n\t\tString body = null;\n\t\ttry {\n if (entity != null) { \n InputStream instreams = entity.getContent(); \n body = convertStreamToString(instreams); \n// System.out.println(\"result:\" + body);\n } \n//\t\t\tlog.info(body);\n\t\t} catch (ParseException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn body;\n\t}", "@Override\n public void onReceivedData(byte[] arg0) {\n String data = null;\n try {\n data = new String(arg0, \"UTF-8\");\n data.concat(\"/n\");\n //tvAppend(textView, data);\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n\n\n }", "@Override\n public void onResponse(String s) {\n loading.dismiss();\n\n //Showing toast message of the response\n Toast.makeText(AdQuestionActivity.this, s , Toast.LENGTH_LONG).show();\n }", "@Override\n public void onResponse(String ServerResponse) {\n progressDialog.dismiss();\n // Matching server responce message to our text.\n ArrayList<PlayerModel> playersModelArrayList = new ArrayList<>();\n\n try {\n\n JSONArray array=new JSONArray(ServerResponse);\n for (int i=0; i < array.length(); i++) {\n PlayerModel playerModel = new PlayerModel();\n JSONObject product = array.getJSONObject(i);\n playerModel.setClaimid(product.getString(\"claim_id\"));\n playerModel.setStatus(product.getString(\"claim_status\"));\n playerModel.setRemarks(product.getString(\"claim_remarks\"));\n playerModel.setTime(product.getString(\"claim_time\"));\n playersModelArrayList.add(playerModel);\n }\n\n for (int j = 0; j < playersModelArrayList.size(); j++){\n // climid.setText(climid.getText()+ playersModelArrayList.get(j).getClaimid()+\"\\n\");\n stus.setText(stus.getText()+ playersModelArrayList.get(j).getStatus()+\"\\n\");\n remrk.setText(remrk.getText()+ playersModelArrayList.get(j).getRemarks()+\"\\n\");\n date.setText(date.getText()+ playersModelArrayList.get(j).getTime()+\"\\n\");\n\n }\n\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n // Toast.makeText(ClaimStatusActivity.this, \"\"+climid.getText().toString(), Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onResponse(String response) {\n }", "@Override\n public void onResponse(String response) {\n }", "@Override\n public void onResponse(String response) {\n }", "@Override\n public void onResponse(String response)\n {\n\n }", "private void clientResponse(String msg) {\n JSONObject j = new JSONObject();\n j.put(\"statuscode\", 200);\n j.put(\"sequence\", ++sequence);\n j.put(\"response\", new JSONArray().add(msg));\n output.println(j);\n output.flush();\n }", "@Override\n public void run() {\n recieveView.setText(recvInput);\n }", "public void setRespondText(String respondText);", "private void sendResponse(String response) {\n Bundle bundle = new Bundle();\n bundle.putString(\"response\", response);\n Message message = Message.obtain();\n message.setData(bundle);\n try {\n messenger.send(message);\n } catch (RemoteException e) {\n }\n }", "public String readResponse(HttpResponse httpResp) {\n String response = \"\";\n try {\n int code = httpResp.getStatusLine().getStatusCode();\n Log(\"Response code=\" + code);\n InputStream is = httpResp.getEntity().getContent();\n BufferedReader inb = new BufferedReader(new InputStreamReader(is));\n StringBuilder sb = new StringBuilder(\"\");\n String line;\n String NL = System.getProperty(\"line.separator\");\n while ((line = inb.readLine()) != null) {\n sb.append(line).append(NL);\n Log(\"Read \" + line);\n }\n inb.close();\n response = sb.toString();\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n return response;\n }", "public void updateGIUnoResponse()\n {\n updateInfo.setText( \"Server is not up :(\" );\n }", "@Override\n public void onResponse(JSONObject response) {\n JSONObject data = null;\n try {\n data=response.getJSONObject(\"response\");\n confirmed.setText(data.getString(\"confirmed\"));\n active.setText(data.getString(\"active\"));\n recovered.setText(data.getString(\"recovered\"));\n deaths.setText(data.getString(\"deaths\"));\n progress.dismiss();\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n }", "private void writeResponse(SlingHttpServletRequest request, SlingHttpServletResponse response) throws IOException {\n\t\tresponse.setContentType(\"text/html\");\n\t\tresponse.setCharacterEncoding(\"utf-8\");\n\t\tPrintWriter pw = response.getWriter();\n\t\tpw.print(\"This is a CQ5 Response ... \");\n\t\tpw.print(getPageContent(request, \"/content/helloworld\"));\n\t\tpw.flush();\n\t\tpw.close();\n\t}", "void sendText(String content);", "@Override\n public void onHTTPResponseReceived(String tag, String response) {\n progressDialog.cancel();\n CharSequence text = \"Richiesta inviata!\";\n Toast toast = Toast.makeText(getActivity(), text, Toast.LENGTH_SHORT);\n toast.show();\n }", "@Override\n\t\t\tpublic void onResponse(Response response) throws IOException {\n Log.i(\"info\",response.body().string());\n\t\t\t}", "public String handleResponse(final HttpResponse response) throws IOException{\n int status = response.getStatusLine().getStatusCode();\n if (status >= 200 && status < 300) {\n HttpEntity entity = response.getEntity();\n if(entity == null) {\n return \"\";\n } else {\n return EntityUtils.toString(entity);\n }\n } else {\n return \"\"+status;\n }\n }" ]
[ "0.7540928", "0.7061836", "0.7016153", "0.6992891", "0.6938768", "0.6928005", "0.6787135", "0.6782021", "0.67639077", "0.6724845", "0.66892594", "0.6671353", "0.66673815", "0.6650066", "0.66383433", "0.65547985", "0.64933956", "0.6430616", "0.6413244", "0.6396527", "0.6389058", "0.6350057", "0.633911", "0.6336725", "0.6301247", "0.627724", "0.62756205", "0.62551874", "0.62498254", "0.6235604", "0.6200687", "0.6134101", "0.6080626", "0.6074275", "0.60708654", "0.6069651", "0.60643613", "0.60298645", "0.6028482", "0.6024133", "0.6018804", "0.60065156", "0.5998342", "0.59968805", "0.59909403", "0.5962965", "0.59591883", "0.59591883", "0.59591883", "0.5948499", "0.5930889", "0.59288734", "0.59015375", "0.5900891", "0.5891813", "0.58827335", "0.58699775", "0.5866422", "0.5865267", "0.58565044", "0.5846456", "0.58378947", "0.58311594", "0.582129", "0.5820184", "0.5819293", "0.5817825", "0.5801085", "0.57992524", "0.57988286", "0.57917106", "0.57896954", "0.5777429", "0.5770886", "0.5768779", "0.5764865", "0.5763206", "0.5751411", "0.57433975", "0.5732091", "0.57270145", "0.572529", "0.5705119", "0.570426", "0.5701075", "0.5697444", "0.5697444", "0.5697444", "0.56846374", "0.56745934", "0.5673901", "0.56708544", "0.56616", "0.56588155", "0.5654088", "0.565207", "0.565076", "0.5642757", "0.56403387", "0.5635899", "0.5634473" ]
0.0
-1
/ Temporary method to get HTTP response for the request
private String convertStreamToString(InputStream is) { BufferedReader reader = new BufferedReader(new InputStreamReader(is)); StringBuilder sb = new StringBuilder(); String line; try { while ((line = reader.readLine()) != null) { sb.append(line).append('\n'); } } catch (IOException e) { e.printStackTrace(); } finally { try { is.close(); } catch (IOException e) { e.printStackTrace(); } } return sb.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getResponse();", "String getResponse();", "public ServletResponse getResponse();", "public Object getResponse ()\r\n {\r\n\r\n return response_;\r\n }", "public abstract String getResponse();", "public HTTPResponse get(HTTPRequest request) {\n\t\tHTTPResponse response = new HTTPResponse();\n\t\tresponse.setResponseHeader(request.getProtocol(), HTTPConstants.STATUS_OK, HTTPConstants.STATUS_CODE_OK);\n\t\tresponse.setResponse(getResponseString(true));\n\t\treturn response;\n\t}", "public HttpResponseWrapper getResponse() {\n return response;\n }", "public int getResponse() {return response;}", "public T getResponse() {\n return response;\n }", "public String getResponse()\r\n {\r\n return this.response;\r\n }", "HttpContent getHttpContent();", "public HttpServletResponse getHttpResponse() {\n return httpResponse;\n }", "public String getResponse() {\n return response;\n }", "public String getResponse() {\n return response;\n }", "public String getResponse() {\n return response;\n }", "public String getResponse() {\n return response;\n }", "public String getResponse() {\n return response;\n }", "protected T getResponse() {\n return responseData;\n }", "public HttpServletResponse getResponse() {\r\n\t\treturn response_;\r\n\t}", "private static String getHTTPResponse(URL url){\n\t\t\n\t\tStringBuilder response = new StringBuilder();\n\t\t\n\t\ttry{\n\t\t\tURLConnection connection = url.openConnection();\n\t\t\tBufferedReader res = new BufferedReader(new InputStreamReader(connection.getInputStream()));\n\t\t\tString responseLine;\n\t\t\t\n\t\t\twhile((responseLine = res.readLine()) != null)\n\t\t\t\tresponse.append(responseLine);\n\t\t\t\n\t\t\t\n\t\t}catch(Exception e){System.out.println(\"Error - wrong input or service down\");}\n\t\t\n\t\treturn response.toString();\n\t}", "HttpServletResponse getCurrentResponse();", "GetResponse() {\n\t}", "private void getResponse() {\n response = new Response();\n\n getResponseCode();\n getResponseMessage();\n getResponseBody();\n\n LOG.info(\"--- RESPONSE ---\");\n LOG.info(\"Code: \" + response.getResponseCode());\n LOG.info(\"Message: \" + response.getResponseMessage());\n LOG.info(\"Body: \" + response.getResponseBody());\n LOG.info(\"*************************************\");\n }", "protected HttpResponse doReceiveResponse(final HttpRequest request, final HttpClientConnection conn,\n final HttpContext context)\n throws HttpException, IOException\n {\n// log.debug(\"EspMeshHttpRequestExecutor::doReceiveResponse()\");\n if (request == null)\n {\n throw new IllegalArgumentException(\"HTTP request may not be null\");\n }\n if (conn == null)\n {\n throw new IllegalArgumentException(\"HTTP connection may not be null\");\n }\n if (context == null)\n {\n throw new IllegalArgumentException(\"HTTP context may not be null\");\n }\n \n HttpResponse response = null;\n int statuscode = 0;\n \n // check whether the request is instantly, instantly request don't wait the response\n boolean isInstantly = request.getParams().isParameterTrue(EspHttpRequest.ESP_INSTANTLY);\n if (isInstantly)\n {\n ProtocolVersion version = new ProtocolVersion(\"HTTP\", 1, 1);\n StatusLine statusline = new BasicStatusLine(version, 200, \"OK\");\n // let the connection used only once to check whether the device is available\n context.setAttribute(\"timeout\", 1);\n response = ResponseFactory.newHttpResponse(statusline, context);\n Header contentLengthHeader = new BasicHeader(HTTP.CONTENT_LEN, \"0\");\n response.addHeader(contentLengthHeader);\n }\n else\n {\n if (!request.getRequestLine().getMethod().equals(EspHttpRequest.METHOD_COMMAND))\n {\n while (response == null || statuscode < HttpStatus.SC_OK)\n {\n \n response = conn.receiveResponseHeader();\n if (canResponseHaveBody(request, response))\n {\n conn.receiveResponseEntity(response);\n }\n statuscode = response.getStatusLine().getStatusCode();\n \n } // while intermediate response\n }\n else\n {\n ProtocolVersion version = new ProtocolVersion(\"HTTP\", 1, 1);\n StatusLine statusline = new BasicStatusLine(version, 200, \"OK\");\n response = ResponseFactory.newHttpResponse(statusline, context);\n // copy request headers\n // Header[] requestHeaders = request.getAllHeaders();\n // for (Header requestHeader : requestHeaders) {\n // System.out.println(\"requestHeader:\" + requestHeader);\n // response.addHeader(requestHeader);\n // }\n \n Header[] contentLengthHeader = request.getHeaders(HTTP.CONTENT_LEN);\n if (contentLengthHeader == null || contentLengthHeader.length != 1)\n {\n throw new IllegalArgumentException(\"contentLengthHeader == null || contentLengthHeader.length != 1\");\n }\n // at the moment, mesh command request and response len is the same\n response.addHeader(contentLengthHeader[0]);\n \n conn.receiveResponseEntity(response);\n }\n }\n \n // for device won't reply \"Connection: Keep-Alive\" by default, add the header by manual\n if (response != null && response.getFirstHeader(HTTP.CONN_DIRECTIVE) == null)\n {\n response.addHeader(HTTP.CONN_DIRECTIVE, HTTP.CONN_KEEP_ALIVE);\n }\n \n return response;\n \n }", "public abstract HTTPResponse finish();", "public HTTPResponse finish() {\n HTTPResponse response = new HTTPResponse();\n if (super.requestURL.endsWith(\"&\")) {\n super.requestURL = super.requestURL.substring(0, super.requestURL.length() - 1);\n }\n try {\n super.CreateConnection();\n response.setResponseCode(super.httpConn.getResponseCode());\n response.setResponseBody(super.readResponseBody());\n super.httpConn.disconnect();\n } catch (Exception e) {\n Log.e(TAG, e.getMessage());\n }\n return response;\n }", "public GrizzletResponse getResponse();", "public abstract Response read(Request request, Response response);", "public static Response getResourceResponse() {\n return response;\n }", "public synchronized RestResponse getResponse() {\n\t\treturn getContext().getLocalSession().getOpSession().getResponse();\n\t}", "private String doHttpClientGet() {\n\t\t\r\n\t\tHttpGet httpGet=new HttpGet(url);\r\n\t\tHttpClient client=new DefaultHttpClient();\r\n\t\ttry {\r\n\t\t\tHttpResponse response=client.execute(httpGet);\r\n\t\t\tif(response.getStatusLine().getStatusCode()==HttpStatus.SC_OK){\r\n\t\t\t\tresult=EntityUtils.toString(response.getEntity());\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(\"content----->\"+result);\r\n\t\t} catch (ClientProtocolException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "public Response getResponse() {\n return response;\n }", "private String tryGetResponse(Request request) throws IOException {\n long startTime = System.currentTimeMillis();\n Response response;\n String responseBody;\n do {\n response = client.newCall(request).execute();\n responseBody = response.body().string();\n System.out.println(\"Got response code \" + response.code());\n } while (response.code() != 200\n && System.currentTimeMillis() - startTime < TimeUnit.SECONDS.toMillis(30));\n\n assertEquals(\n 200, response.code(), \"Unexpected response code. Got this response: \" + responseBody);\n return responseBody;\n }", "public ClientResponse getResponse() {\n return r;\n }", "public ServletResponse getResponse() {\n return this.response;\n }", "public String produceResponse() {\n processData();\n return response;\n }", "public HTTPResponse finish() {\n HTTPResponse response = new HTTPResponse();\n try {\n //create the HTTP connection\n super.CreateConnection();\n //write the JSON data via DataOutputStream\n DataOutputStream dataOutputStream = new DataOutputStream(super.httpConn.getOutputStream());\n dataOutputStream.writeBytes(jsonParam.toString());\n //get the results\n response.setResponseCode(super.httpConn.getResponseCode());\n response.setResponseBody(super.readResponseBody());\n dataOutputStream.flush();\n dataOutputStream.close();\n super.httpConn.disconnect();\n } catch (Exception e) {\n Log.e(TAG, e.getMessage());\n }\n return response;\n }", "public int getResponse() {\r\n return response;\r\n }", "ReplayableHttpServletResponse getReplayableResponse();", "public HTTPResponse finish() {\n HTTPResponse response = new HTTPResponse();\n try {\n super.CreateConnection();\n outputStream = super.httpConn.getOutputStream();\n writer = new PrintWriter(new OutputStreamWriter(outputStream, super.charset),\n true);\n addParametersToWriter();\n addFilesToWriter();\n writer.append(LINE_FEED).flush();\n writer.append(\"--\" + boundary + \"--\").append(LINE_FEED);\n writer.close();\n\n response.setResponseCode(super.httpConn.getResponseCode());\n response.setResponseBody(super.readResponseBody());\n\n } catch (Exception e) {\n Log.e(TAG, e.getMessage());\n }\n\n return response;\n }", "public com.webobjects.appserver.WOResponse readResponse(){\n return null; //TODO codavaj!!\n }", "String getResponseHeader();", "public ResponseTranslator get() {\n setMethod(\"GET\");\n return doRequest();\n }", "private String readResponseBody() {\n try {\n StringBuilder s_buffer = new StringBuilder();\n InputStream is = new BufferedInputStream(httpConn.getInputStream());\n BufferedReader br = new BufferedReader(new InputStreamReader(is));\n String inputLine;\n while ((inputLine = br.readLine()) != null) {\n s_buffer.append(inputLine);\n }\n return s_buffer.toString();\n } catch (Exception e) {\n Log.e(TAG, e.getMessage());\n return null;\n }\n }", "void httpResponse (HttpHeader response, BufferHandle bufferHandle, \n\t\t boolean keepalive, boolean isChunked, long dataSize);", "private static HttpResponse sendGet() throws Exception {\n // Create the Call using the URL\n HttpGet http = new HttpGet(url);\n // Set the credentials set earlier into the headers\n Header header = new BasicScheme(StandardCharsets.UTF_8).authenticate(creds, http, null);\n // Set the header into the HTTP request\n http.addHeader(header);\n // Print the response\n return httpClient.execute(http);\n }", "private BufferedReader getResponse(IRequest request) throws Exception {\n\t\tString url = this.getBasePath() + request.getEndpoint();\n\t\tURL obj = new URL(url);\n\t\tHttpURLConnection connection = (HttpURLConnection) obj.openConnection();\n\n\t\t// Set header values\n\t\t//System.out.println(request.getRequestMethod());\n\t\t//System.out.println(request.getEndpoint());\n\t\tconnection.setRequestMethod(request.getRequestMethod());\n\t\tconnection.setRequestProperty(\"Content-Type\", \"application/json\");\n\n\t\t// Write Cookies\n\t\tif (cookieManager.getCookieStore().getCookies().size() > 0) {\n\t\t\t// Cookies are stored as a comma delimited list\n\t\t\tString delim = \"\";// This ensures that there is no comma before the\n\t\t\t\t\t\t\t\t// first value\n\t\t\tStringBuilder builder = new StringBuilder();\n\t\t\tfor (HttpCookie i : cookieManager.getCookieStore().getCookies()) {\n\t\t\t\tbuilder.append(delim).append(i);\n\t\t\t\tdelim = \"; \";// faster than using an if statement every iteration\n\t\t\t}\n\t\t\tconnection.setRequestProperty(\"Cookie\", builder.toString());\n\t\t}\n\n\t\t\n\t\tconnection.setDoOutput(true);\n\t\t\n\t\t// Write the body\n\n\t\tString bodyString = request.getBody();\n\t\tbyte[] outputInBytes = bodyString.getBytes(\"UTF-8\");\n\t\tOutputStream os = connection.getOutputStream();\n\t\tos.write(outputInBytes);\n\t\tos.close();\n\t\tint responseCode = connection.getResponseCode();\n\t\tif(responseCode != 200){\n\t\t\tthrow new RequestException(responseCode);\n\t\t}\n\n\t\tBufferedReader response = new BufferedReader(new InputStreamReader(\n\t\t\t\tconnection.getInputStream()));\n\n\t\t// Save Cookies\n\t\tMap<String, List<String>> headerFields = connection.getHeaderFields();\n\t\tList<String> cookiesHeader = headerFields.get(COOKIES_HEADER);\n\t\tif (cookiesHeader != null) {\n\t\t\tfor (String cookie : cookiesHeader) {\n\t\t\t\tcookieManager.getCookieStore().add(obj.toURI(),\n\t\t\t\t\t\tHttpCookie.parse(cookie).get(0));\n\t\t\t}\n\t\t}\n\n\t\treturn response;\n\t}", "private String httpOk() {\n return \"HTTP/1.1 200 OK\\r\\n\"\n + \"Content-Type: text/html\\r\\n\"\n + \"\\r\\n\";\n }", "private void getAppResponse(String theuri, PrintWriter out) {\n String response = spring.executeService(theuri);\n String header = \"HTTP/1.1 200 OK\\r\\n\"\n + \"Content-Type: text/html\\r\\n\"\n + \"\\r\\n\";\n out.println(header + response);\n }", "public String readResponse(HttpResponse httpResp) {\n String response = \"\";\n try {\n int code = httpResp.getStatusLine().getStatusCode();\n Log(\"Response code=\" + code);\n InputStream is = httpResp.getEntity().getContent();\n BufferedReader inb = new BufferedReader(new InputStreamReader(is));\n StringBuilder sb = new StringBuilder(\"\");\n String line;\n String NL = System.getProperty(\"line.separator\");\n while ((line = inb.readLine()) != null) {\n sb.append(line).append(NL);\n Log(\"Read \" + line);\n }\n inb.close();\n response = sb.toString();\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n return response;\n }", "public static String readResponse(HttpURLConnection request) throws IOException {\r\n\t ByteArrayOutputStream os;\r\n\t try (InputStream is = request.getInputStream()) {\r\n\t os = new ByteArrayOutputStream();\r\n\t int b;\r\n\t while ((b = is.read()) != -1) {\r\n\t os.write(b);\r\n\t }\r\n\t }\r\n\t return new String(os.toByteArray());\r\n\t}", "public HTTPResponse getHttpResponse(InputStream httpRequest) {\n\t\t\n\t\tHTTPRequest req = new HTTPRequest(httpRequest);\n\t\tIResponse response;\n\t\t//Seleccionamos virtualhost\n\t\tVirtualHost v = server.getVHosts().get(req.getHeaderValue(\"Host\"));\n\t\tif(v == null) {\n\t\t\tv = server.getVHosts().entrySet().iterator().next().getValue();\n\t\t}\n\t\t\n\t\tswitch (req.getHTTPMethod()) {\n\t\tcase \"GET\":\n\t\t\tresponse = new ResponseGET(v,req);\n\t\t\tbreak;\n\t\t\t\n\t\tcase \"HEAD\":\n\t\t\tresponse = new ResponseHEAD(v,req);\t\t\n\t\t\tbreak;\n\t\t\t\n\t\tdefault:\n\t\t\tresponse = new ResponseMethodNotAllowed();\n\t\t\tbreak;\n\t\t}\n\t\t\t\n\t\treturn response.getHttpResponse();\n\t}", "@Nullable\n public abstract T response();", "@Nullable\n @Generated\n @Selector(\"response\")\n public native NSURLResponse response();", "R get() throws IOException, ClientProtocolException;", "private static String getResponseContent(RequestURL request)\n\t\t\tthrows GPlaceServiceException {\n\t\tStringBuilder response = new StringBuilder();\n\t\tHttpURLConnection conn = null;\n\n\t\ttry {\n\t\t\tURL url = new URL(request.toString());\n\t\t\tconn = (HttpURLConnection) url.openConnection();\n\t\t\tInputStreamReader in = new InputStreamReader(conn.getInputStream());\n\t\t\tint read;\n\t\t\tchar[] buff = new char[1024];\n\t\t\twhile ((read = in.read(buff)) != -1) {\n\t\t\t\tresponse.append(buff, 0, read);\n\t\t\t}\n\t\t\treturn response.toString();\n\t\t} catch (MalformedURLException e) {\n\t\t\tthrow new GPlaceServiceException(\n\t\t\t\t\t\"Could not request PlacesAPI because the URL is malformed\",\n\t\t\t\t\te);\n\t\t} catch (IOException e) {\n\t\t\tthrow new GPlaceServiceException(\n\t\t\t\t\t\"Could not request PlacesAPI because there happened an error during data transmission\");\n\t\t} finally {\n\t\t\tif (conn != null) {\n\t\t\t\tconn.disconnect();\n\t\t\t}\n\t\t}\n\t}", "WebResponse getResponse(String url) {\n try {\n ServletUnitClient client = container.newClient();\n return client.getResponse(url);\n } catch (Exception e) {\n e.printStackTrace();\n fail(\"Failed to get response on \" + url + \". Error: \" + e.getMessage());\n }\n return null;\n }", "public ResponseFromHTTP makeRequest() throws CustomRuntimeException\n\t{\n\t\tResponseFromHTTP result=null;\n\t\tCloseableHttpClient httpclient=null;\n\t\tCloseableHttpResponse response=null;\n\t\tboolean needAuth=false;\n\t\tboolean viaProxy=httpTransportInfo.isUseProxy() && StringUtils.isNotBlank(httpTransportInfo.getProxyHost());\n\n\t\tHttpHost target = new HttpHost(httpTransportInfo.getHost(), httpTransportInfo.getPort(),httpTransportInfo.getProtocol());\n\t\t//basic auth for request\n\t\tCredentialsProvider credsProvider = new BasicCredentialsProvider();\n\t\tif(StringUtils.isNotBlank(httpTransportInfo.getLogin()) && \n\t\t\t\tStringUtils.isNotBlank(httpTransportInfo.getPassword()))\n\t\t{\n\t\t\tcredsProvider.setCredentials(\n\t\t\t\t\tnew AuthScope(target.getHostName(), target.getPort()),\n\t\t\t\t\tnew UsernamePasswordCredentials(httpTransportInfo.getLogin(), httpTransportInfo.getPassword()));\n\t\t\tneedAuth=true;\n\t\t}\n\n\t\t//proxy auth?\n\t\tif(viaProxy && StringUtils.isNotBlank(httpTransportInfo.getProxyLogin()) &&\n\t\t\t\tStringUtils.isNotBlank(httpTransportInfo.getProxyPassword()))\n\t\t{\n\t\t\t//proxy auth setting\n\t\t\tcredsProvider.setCredentials(\n\t\t\t\t\tnew AuthScope(httpTransportInfo.getProxyHost(), httpTransportInfo.getProxyPort()),\n\t\t\t\t\tnew UsernamePasswordCredentials(httpTransportInfo.getProxyLogin(), httpTransportInfo.getProxyPassword()));\n\t\t}\n\n\t\ttry\n\t\t{\n\n\t\t\tHttpClientBuilder httpclientBuilder = HttpClients.custom()\n\t\t\t\t\t.setDefaultCredentialsProvider(credsProvider);\n\t\t\t//https\n\t\t\tif(\"https\".equalsIgnoreCase(httpTransportInfo.getProtocol()))\n\t\t\t{\n\t\t\t\t//A.K. - Set stub for check certificate - deprecated from 4.4.1\n\t\t\t\tSSLContextBuilder sslContextBuilder=SSLContexts.custom();\n\t\t\t\tTrustStrategyLZ trustStrategyLZ=new TrustStrategyLZ();\n\t\t\t\tsslContextBuilder.loadTrustMaterial(null,trustStrategyLZ);\n\t\t\t\tSSLContext sslContext = sslContextBuilder.build();\n\t\t\t\tSSLConnectionSocketFactory sslsf = new SSLConnectionSocketFactory(sslContext,SSLConnectionSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER);\n\t\t\t\thttpclientBuilder.setSSLSocketFactory(sslsf);\n\t\t\t}\n\n\t\t\thttpclient=httpclientBuilder.build();\n\n\t\t\t//timeouts\n\t\t\tBuilder builder = RequestConfig.custom()\n\t\t\t\t\t.setSocketTimeout(httpTransportInfo.getSocketTimeoutSec()*1000)\n\t\t\t\t\t.setConnectTimeout(httpTransportInfo.getConnectTimeoutSec()*1000);\n\n\t\t\t//via proxy?\n\t\t\tif(viaProxy)\n\t\t\t{\n\t\t\t\t//proxy setting\n\t\t\t\tHttpHost proxy = new HttpHost(httpTransportInfo.getProxyHost(),httpTransportInfo.getProxyPort(),httpTransportInfo.getProxyProtocol());\n\t\t\t\tbuilder.setProxy(proxy);\n\t\t\t}\n\n\t\t\tRequestConfig requestConfig=builder.build();\n\n\t\t\t// Create AuthCache instance\n\t\t\tAuthCache authCache = new BasicAuthCache();\n\t\t\t// Generate BASIC scheme object and add it to the local\n\t\t\t// auth cache\n\t\t\tBasicScheme basicAuth = new BasicScheme();\n\t\t\tauthCache.put(target, basicAuth);\n\n\t\t\t// Add AuthCache to the execution context\n\t\t\tHttpClientContext localContext = HttpClientContext.create();\n\t\t\tlocalContext.setAuthCache(authCache);\n\n\t\t\tPathParser parsedPath=new PathParser(getUri());\n\t\t\tif(restMethodDef.isUseOriginalURI())\n\t\t\t{\n\t\t\t\t//in this case params from URI will not add to all params\n\t\t\t\tparsedPath.getParams().clear();\n\t\t\t}\n\t\t\tparsedPath.getParams().addAll(getRequestDefinition().getParams());\n\t\t\t//prepare URI\n\t\t\tURIBuilder uriBuilder = new URIBuilder().setPath(parsedPath.getUri());\n\t\t\tif(!getRequestDefinition().isHttpMethodPost())\n\t\t\t{\n\t\t\t\t//form's parameters - GET/DELETE/OPTIONS/PUT\n\t\t\t\tfor(NameValuePair nameValuePair : parsedPath.getParams())\n\t\t\t\t{\n\t\t\t\t\turiBuilder.setParameter(nameValuePair.getName(),nameValuePair.getValue());\n\t\t\t\t}\t\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tURI resultUri =(restMethodDef.isUseOriginalURI())?new URI(getUri()):uriBuilder.build();\n\n\t\t\t//\t\t\tHttpRequestBase httpPostOrGet=(getRequestDefinition().isHttpMethodPost())?\n\t\t\t//\t\t\t\t\tnew HttpPost(resultUri):\n\t\t\t//\t\t\t\t\tnew HttpGet(resultUri);\n\n\t\t\tHttpRequestBase httpPostOrGetEtc=null;\n\t\t\t//\n\t\t\tswitch(getRequestDefinition().getHttpMethod())\n\t\t\t{\n\t\t\t\tcase POST: httpPostOrGetEtc=new HttpPost(resultUri);break;\n\t\t\t\tcase DELETE: httpPostOrGetEtc=new HttpDelete(resultUri);break;\n\t\t\t\tcase OPTIONS: httpPostOrGetEtc=new HttpOptions(resultUri);break;\n\t\t\t\tcase PUT: httpPostOrGetEtc=new HttpPut(resultUri);break;\n\n\t\t\t\tdefault: httpPostOrGetEtc=new HttpGet(resultUri);break;\n\t\t\t}\n\n\t\t\t//Specifie protocol version\n\t\t\tif(httpTransportInfo.isVersionHttp10())\n\t\t\t\thttpPostOrGetEtc.setProtocolVersion(HttpVersion.HTTP_1_0);\n\n\t\t\t//user agent\n\t\t\thttpPostOrGetEtc.setHeader(HttpHeaders.USER_AGENT,httpTransportInfo.getUserAgent());\n\t\t\t//заголовки из запроса\n\t\t\tif(getRequestDefinition().getHeaders().size()>0)\n\t\t\t{\n\t\t\t\tfor(NameValuePair nameValuePair : getRequestDefinition().getHeaders())\n\t\t\t\t{\n\t\t\t\t\tif(org.apache.commons.lang.StringUtils.isNotBlank(nameValuePair.getName()) &&\n\t\t\t\t\t\t\torg.apache.commons.lang.StringUtils.isNotBlank(nameValuePair.getValue()))\n\t\t\t\t\t{\n\t\t\t\t\t\thttpPostOrGetEtc.setHeader(nameValuePair.getName(),nameValuePair.getValue());\n\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//Additional HTTP headers from httpTransportInfo\n\t\t\tif(httpTransportInfo.getAddHeaders()!=null)\n\t\t\t{\n\t\t\t\tfor(Map.Entry<String, String> entry:httpTransportInfo.getAddHeaders().entrySet())\n\t\t\t\t{\n\t\t\t\t\tif(org.apache.commons.lang.StringUtils.isNotBlank(entry.getKey()) &&\n\t\t\t\t\t\t\torg.apache.commons.lang.StringUtils.isNotBlank(entry.getValue()))\n\t\t\t\t\t{\n\t\t\t\t\t\thttpPostOrGetEtc.setHeader(entry.getKey(),entry.getValue());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\thttpPostOrGetEtc.setConfig(requestConfig);\n\t\t\t//Form's parameters, request POST\n\t\t\tif(getRequestDefinition().isHttpMethodPost())\n\t\t\t{\n\t\t\t\tif(getPostBody()!=null)\n\t\t\t\t{\n\t\t\t\t\tStringEntity stringEntity=new StringEntity(getPostBody(),httpTransportInfo.getCharset());\n\t\t\t\t\t((HttpPost) (httpPostOrGetEtc)).setEntity(stringEntity);\n\t\t\t\t}\n\t\t\t\telse if(parsedPath.getParams().size()>0)\n\t\t\t\t{\n\t\t\t\t\tUrlEncodedFormEntity entityForm = new UrlEncodedFormEntity(parsedPath.getParams(), httpTransportInfo.getCharset());\n\t\t\t\t\t((HttpPost) (httpPostOrGetEtc)).setEntity(entityForm);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//Body for PUT\n\t\t\tif(getRequestDefinition().getHttpMethod()==HttpMethod.PUT)\n\t\t\t{\n\t\t\t\tif(getPostBody()!=null)\n\t\t\t\t{\n\t\t\t\t\tStringEntity stringEntity=new StringEntity(getPostBody(),httpTransportInfo.getCharset());\n\t\t\t\t\t((HttpPut) (httpPostOrGetEtc)).setEntity(stringEntity);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tresponse = httpclient.execute(target, httpPostOrGetEtc, (needAuth)?localContext:null);\n\t\t\t//response.\n\t\t\tHttpEntity entity = response.getEntity();\n\t\t\tif(entity!=null)\n\t\t\t{\n\t\t\t\t//charset\n\t\t\t\tContentType contentType = ContentType.get(entity);\n\t\t\t\tString currentCharSet=httpTransportInfo.getCharset();\n\t\t\t\tif(contentType!=null)\n\t\t\t\t{\n\t\t\t\t\t//String mimeType = contentType.getMimeType();\n\t\t\t\t\tif(contentType.getCharset()!=null)\n\t\t\t\t\t\tcurrentCharSet=contentType.getCharset().name();\n\t\t\t\t}\n\t\t\t\tInputStream inputStream=entity.getContent();\n\t\t\t\tif(getRequestDefinition().isBinaryResponseBody())\n\t\t\t\t{\n\t\t\t\t\t//binary content\n\t\t\t\t\tbyte[] bodyBin = IOUtils.toByteArray(inputStream);\n\t\t\t\t\tresult=new ResponseFromHTTP(response.getAllHeaders(),bodyBin,response.getStatusLine().getStatusCode());\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t//copy content to string\n\t\t\t\t\tStringWriter writer = new StringWriter();\n\t\t\t\t\tIOUtils.copy(inputStream, writer, currentCharSet);\n\t\t\t\t\tresult=new ResponseFromHTTP(response.getAllHeaders(),writer.toString(),response.getStatusLine().getStatusCode());\n\t\t\t\t}\n\t\t\t\tinputStream.close();\n\t\t\t}\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tthrow new CustomRuntimeException(\"fetchData over http uri: \"+getUri(),e);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tif(response!=null)\n\t\t\t\t\tresponse.close();\n\t\t\t\tif(httpclient!=null)\n\t\t\t\t\thttpclient.close();\n\t\t\t}\n\t\t\tcatch (IOException e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t} \t\n\t\t}\t\t\n\t\treturn result;\n\n\t}", "private String getBody(CloseableHttpResponse response) throws IOException {\n HttpEntity entity = response.getEntity();\n return EntityUtils.toString(entity, \"UTF-8\");\n }", "protected String handleResponse(final HttpResponse response, final HttpContext context) throws IOException {\n final HttpEntity entity = response.getEntity();\n if (null == entity.getContentType() || !entity.getContentType().getValue().startsWith(\"application/soap+xml\")) {\n throw new WinRmRuntimeIOException(\"Error when sending request to \" + targetURL + \"; Unexpected content-type: \" + entity.getContentType());\n }\n\n final InputStream is = entity.getContent();\n final Writer writer = new StringWriter();\n final Reader reader = new BufferedReader(new InputStreamReader(is, StandardCharsets.UTF_8));\n try {\n int n;\n final char[] buffer = new char[2048];\n while ((n = reader.read(buffer)) != -1) {\n writer.write(buffer, 0, n);\n }\n } catch (Exception e) {\n System.out.println(\"xxxxxxxxxxxxxxxxxxxx=>\");\n e.printStackTrace();\n } finally {\n closeQuietly(reader);\n closeQuietly(is);\n consume(response.getEntity());\n }\n\n return writer.toString();\n }", "private static String paseResponse(HttpResponse response) {\n\t\tHttpEntity entity = response.getEntity();\n\t\t\n//\t\tlog.info(\"response status: \" + response.getStatusLine());\n\t\tString charset = EntityUtils.getContentCharSet(entity);\n//\t\tlog.info(charset);\n\t\t\n\t\tString body = null;\n\t\ttry {\n if (entity != null) { \n InputStream instreams = entity.getContent(); \n body = convertStreamToString(instreams); \n// System.out.println(\"result:\" + body);\n } \n//\t\t\tlog.info(body);\n\t\t} catch (ParseException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn body;\n\t}", "public String getResponse() {\n Object ref = response_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n response_ = s;\n }\n return s;\n }\n }", "public <T> CustomResponse getResponse(String url);", "com.google.protobuf.ByteString\n getResponseBytes();", "private String getResponse(){\n\t\tString msg;\n\t\tsynchronized (this){\n\t\t\twhile(!validResponse) {\n\t\t\t\ttry {\n\t\t\t\t\twait();\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t}\n\t\t\tmsg = response;\n\t\t\tvalidResponse = false;\n\t\t\tnotifyAll();\n\t\t}\n\t\treturn msg;\n\t}", "public String getResponse() {\n Object ref = response_;\n if (!(ref instanceof String)) {\n String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n response_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "public Double getResponse( )\n\t{\n\t\treturn response;\n\t}", "public com.github.yeriomin.playstoreapi.ResponseWrapper getResponse() {\n return response_;\n }", "private synchronized String execute(final HttpUriRequest request) {\n request.setParams(params);\n\n // Set the request's headers\n for (Entry<String, String> header : headers.entrySet()) {\n request.setHeader(header.getKey(), header.getValue());\n }\n\n // Execute the request and get it's content\n HttpResponse response;\n String content;\n try {\n\n // Execute the request\n response = getClient().execute(request);\n\n // Get the response content\n content = EntityUtils.toString(response.getEntity(), charset);\n } catch (IOException e) {\n throw new JsogClientException(\"Get request failed.\", e);\n }\n\n // Check the response code\n StatusLine sl = response.getStatusLine();\n if (sl.getStatusCode() != 200) {\n throw new Non200ResponseCodeException(\n sl.getStatusCode(),\n sl.getReasonPhrase(),\n content);\n }\n\n return content;\n }", "com.google.protobuf.ByteString\n getResponseBytes();", "@Override\r\n\tpublic String getResponse(String request, RequestType requestType, Context context) {\n\t\treturn null;\r\n\t}", "private static String responseHandle(HttpResponse response)\n\t\t\tthrows IllegalStateException, IOException {\n\t\tHttpEntity entity = response.getEntity();\n\t\tif (entity != null) {\n\n\t\t\tInputStream inputStream = entity.getContent();\n\t\t\treturn ServerCommunicationREST.convertStreamToString(inputStream);\n\t\t} else\n\t\t\treturn \"\";\n\t}", "ResponseHandler createResponseHandler();", "public static String getStringResponse() {\r\n\r\n\t\tString responseStr=null;\r\n\r\n\t\ttry {\r\n\r\n\t\t\tCloseableHttpResponse response= postSoapRequest(\"getDealList_Request\",baseURI);\r\n\r\n\t\t\tresponseStr=EntityUtils.toString(response.getEntity(),\"UTF-8\");\r\n\r\n\t\t\tSystem.out.println(\"Response in String formate =\"+responseStr);\r\n\r\n\t\t} catch (ParseException e) {\r\n\r\n\t\t\te.printStackTrace();\r\n\r\n\t\t} catch (IOException e) {\r\n\r\n\t\t\te.printStackTrace();\r\n\r\n\t\t}\r\n\r\n\t\treturn responseStr;\r\n\r\n\r\n\r\n\t}", "public int accept(HttpResponseProlog prolog, HttpHeaders headers);", "public edu.itq.soa.ResponseDocument.Response getResponse()\n {\n synchronized (monitor())\n {\n check_orphaned();\n edu.itq.soa.ResponseDocument.Response target = null;\n target = (edu.itq.soa.ResponseDocument.Response)get_store().find_element_user(RESPONSE$0, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "String getAnswerResponse();", "public String getResponse() {\n return this.applicationState.getResponse();\n }", "com.google.search.now.wire.feed.ResponseProto.Response getResponse();", "com.google.search.now.wire.feed.ResponseProto.Response getResponse();", "@Override\r\n\tpublic void doPost(CustomHttpRequest request, CustomHttpResponse response) throws Exception {\n\t\tdoGet(request, response);\r\n\t}", "Response mo35726n0() throws IOException;", "public String getResponseBody() {\n return this.responseBody;\n }", "public com.github.yeriomin.playstoreapi.ResponseWrapper getResponse() {\n if (responseBuilder_ == null) {\n return response_;\n } else {\n return responseBuilder_.getMessage();\n }\n }", "public void sendRequest() {\n\t\tURL obj;\n\t\ttry {\n\t\t\t// Instantiating HttpURLConnection object for making GET request.\n\t\t\tobj = new URL(REQUEST_URL);\n\t\t HttpURLConnection connection = (HttpURLConnection) obj.openConnection();\n\t\t connection.setRequestMethod(REQUEST_METHOD);\n\t\t connection.setRequestProperty(\"User-Agent\", USER_AGENT);\n\t\t connection.setInstanceFollowRedirects(FOLLOW_REDIRECTS);\n\t\t\tHttpURLConnection.setFollowRedirects(FOLLOW_REDIRECTS);\n\t\t\n\t\t\t// Checking response code for successful request.\n\t\t\t// If responseCode==200, read the response,\n\t\t\t// if responseCode==3xx, i.e., a redirect, then make the request to \n\t\t\t// new redirected link, specified by 'Location' field. \n\t\t\t// NOTE: Only one level of redirection is supported for now. \n\t\t\t// Can be modified to support multiple levels of Redirections.\n\t\t\tint responseCode = connection.getResponseCode();\n\t\t\tif(responseCode == HttpURLConnection.HTTP_MOVED_PERM ||\n\t\t\t\t\tresponseCode == HttpURLConnection.HTTP_MOVED_TEMP ||\n\t\t\t\t\tresponseCode == HttpURLConnection.HTTP_SEE_OTHER) {\n\t\t\t\tlogger.info(\"Redirect received in responseCode\");\n\t\t\t\tString newUrl = connection.getHeaderField(\"Location\");\n\t\t\t\tconnection = (HttpURLConnection) new URL(newUrl).openConnection();\n\t\t\t}\n\t\t\tresponseCode = connection.getResponseCode();\n\t\t\t\n\t\t\t// process response message if responseCode==200 i.e., success.\n\t\t\tif (responseCode == HttpURLConnection.HTTP_OK) {\n\t\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(\n\t\t\t\t\t\tconnection.getInputStream()));\n\t\t\t\tString inputLine;\n\t\t\t\tStringBuffer response = new StringBuffer();\n\t\t\t\twhile ((inputLine = in.readLine()) != null) {\n\t\t\t\t\tresponse.append(inputLine);\n\t\t\t\t}\n\t\t\t\tin.close();\n\t\t\t\t//Uncomment following line to log response data.\n\t\t\t\t//logger.info(response.toString());\n\t\t\t} else {\n\t\t\t\tlogger.warning(\"Http GET request was unsuccessful!\");\n\t\t\t}\n\t\t} catch (MalformedURLException e) {\n\t\t\tlogger.severe(\"MalformedURLException: \" + e.getMessage());\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\tlogger.severe(\"IOException: \" + e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n }", "Response createResponse();", "public String getResponse() throws BooruEngineConnectionException {\n try {\n if (this.mResponse == null){\n StringBuilder response = new StringBuilder();\n BufferedReader reader = new BufferedReader(new InputStreamReader(mConnection.getInputStream()));\n String input;\n while ((input = reader.readLine()) != null) response.append(input);\n reader.close();\n this.mResponse = response.toString();\n }\n return this.mResponse;\n } catch (IOException e){\n mErrStream = mConnection.getErrorStream();\n throw new BooruEngineConnectionException(e);\n\n }\n }", "public String getResponseString() {\r\n\t\t// TODO - log message if this is ever called\r\n\t\treturn \"\";\r\n\t}", "private static String sendGET(String getURL) throws IOException {\n\t\tURL obj = new URL(getURL);\n\t\tHttpURLConnection con = (HttpURLConnection) obj.openConnection();\n\t\tcon.setRequestMethod(\"GET\");\n\t\tString finalResponse = \"\";\n\n\t\t//This way we know if the request was processed successfully or there was any HTTP error message thrown.\n\t\tint responseCode = con.getResponseCode();\n\t\tSystem.out.println(\"GET Response Code : \" + responseCode);\n\t\tif (responseCode == HttpURLConnection.HTTP_OK) { // success\n\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream()));\n\t\t\tString inputLine;\n\t\t\tStringBuffer buffer = new StringBuffer();\n\n\t\t\twhile ((inputLine = in.readLine()) != null) {\n\t\t\t\tbuffer.append(inputLine);\n\t\t\t}\n\t\t\tin.close();\n\n\t\t\t// print result\n\t\t\tfinalResponse = buffer.toString();\n\t\t} else {\n\t\t\tSystem.out.println(\"GET request not worked\");\n\t\t}\n\t\treturn finalResponse;\n\t}", "String getRequest();", "public String receiveResponse()\n\t{\n\t\t\n\t}", "private static HttpResponseMessage extractResponseInformation(HttpMethod method) {\n // Create and return HttpResponseMethod\n HttpResponseMessage responseMessage = new HttpResponseMessage();\n responseMessage.setStatusCode(method.getStatusCode());\n try {\n responseMessage.setResponseBody(method.getResponseBodyAsString());\n } catch (Exception e) {\n e.printStackTrace();\n }\n return responseMessage;\n }", "private static String receiveResponse() {\n String response = null;\n try {\n response = in.readLine();\n } catch (IOException e) {\n System.out.println(\"Error receiving response\");\n }\n\n return response;\n }", "public br.com.sergio.wallet.Response getResponse() {\n br.com.sergio.wallet.Response result = br.com.sergio.wallet.Response.valueOf(response_);\n return result == null ? br.com.sergio.wallet.Response.UNRECOGNIZED : result;\n }", "public com.google.search.now.wire.feed.ResponseProto.Response getResponse() {\n return instance.getResponse();\n }", "public com.google.search.now.wire.feed.ResponseProto.Response getResponse() {\n return instance.getResponse();\n }", "public br.com.sergio.wallet.Response getResponse() {\n br.com.sergio.wallet.Response result = br.com.sergio.wallet.Response.valueOf(response_);\n return result == null ? br.com.sergio.wallet.Response.UNRECOGNIZED : result;\n }", "String getResponse(String state, String message, Throwable throwable);", "public interface RequestResponse {\n /**\n * Checks if the request was successful and returned no error.\n * @return true if the request was successful\n */\n boolean isSuccessful();\n\n /**\n * Gets HTTP status code received by the server as a reaction to the request.\n * @return response status code\n */\n int getStatusCode();\n\n /**\n * Gets HTTP status message received by the server as a reaction to the request.\n * @return response status message\n */\n String getStatusMessage();\n\n /**\n * <p>Checks, if the request failed because of rate limitation.</p>\n * <p>If this happens, you probably used too many similar requests (like add reaction) one after another.\n * If this happens because of spamming requests, try waiting after each one with {@link Future#get()}.\n * If this happens randomly, it can be caused by different modules doing same actions. Try again.</p>\n * <p><b>Warning:</b> if you exceed the limits too often, you risk getting banned.</p>\n * @return true if the request failed due to rate limit\n */\n boolean isRateLimited();\n}", "Object visitorResponse();", "@Test(priority = 2)\r\n\tpublic void getresponse(){\n\t\t\r\n\t\tString resData = get(\"http://samples.openweathermap.org/data/2.5/weather?q=London,uk&appid=b6907d289e10d714a6e88b30761fae22\").asString();\t\r\n\t\tSystem.out.println(resData);\r\n\t\t\r\n\t\tlong time = get(\"\").getTime();\r\n\t\t\r\n\t\tSystem.out.println(\"Response time \" + time);\r\n\t}" ]
[ "0.76722646", "0.7517295", "0.74473006", "0.71695715", "0.715945", "0.7149468", "0.70060384", "0.6998619", "0.6879714", "0.6852098", "0.6821199", "0.6809591", "0.6808849", "0.6808849", "0.6808849", "0.6808849", "0.6808849", "0.6794513", "0.6764723", "0.6752244", "0.6748984", "0.6737976", "0.66954327", "0.667464", "0.66667837", "0.6640192", "0.6611439", "0.6578551", "0.6543008", "0.6520042", "0.6518039", "0.6517256", "0.6500685", "0.64888644", "0.6453411", "0.6444729", "0.6417557", "0.6388732", "0.6383812", "0.6330403", "0.6320959", "0.6302534", "0.62916493", "0.62832445", "0.62573385", "0.62404245", "0.62088466", "0.61866236", "0.61746424", "0.61738545", "0.6166487", "0.61502737", "0.61450076", "0.61435956", "0.6137763", "0.6137388", "0.61230636", "0.61172706", "0.61171615", "0.6112438", "0.60894525", "0.60849726", "0.60785705", "0.6070476", "0.6056846", "0.6046227", "0.6032155", "0.60241896", "0.60150546", "0.6010683", "0.60102546", "0.5999925", "0.599634", "0.5996311", "0.5991922", "0.598632", "0.59853864", "0.59849185", "0.5984382", "0.5984382", "0.5976807", "0.5971566", "0.5969424", "0.5968053", "0.596296", "0.5958547", "0.5957727", "0.59350884", "0.59279895", "0.59268945", "0.5926791", "0.5923156", "0.5919275", "0.5918161", "0.59179324", "0.59179324", "0.59147114", "0.591269", "0.5896507", "0.5892869", "0.5891524" ]
0.0
-1
TODO CREATE INVENTORY FOR THIS,WATCH VIDEO ON COMPLEX PARTICLES,ADD THESE TO INVENTORY
@EventHandler public void onClick(InventoryClickEvent e){ Inventory inv = e.getInventory(); Player p = (Player) e.getWhoClicked(); if(inv.getName().equals(ChatColor.AQUA+"EffectGui")){ if(e.getSlot() == 0){ PacketUtils.sendTitle(p, ChatColor.RED+"Flame Effect", "Has Been Enabled", 1, 2, 1); flame.add(p.getUniqueId()); getConfig().set(p.getName()+"'s Flame.enabled", "yes"); saveConfig(); p.closeInventory(); e.setCancelled(true); } if(e.getSlot() == 1){ PacketUtils.sendTitle(p, ChatColor.RED+"Flame Effect", "Has Been Disabled", 1, 2, 1); flame.remove(p.getUniqueId()); getConfig().set(p.getName()+"'s Flame.enabled", "no"); saveConfig(); p.closeInventory(); e.setCancelled(true); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mo71540w() {\n boolean z;\n VideoItemParams requestId = VideoItemParams.newBuilder().setFragment(this.f73947d).setAweme(this.f73950g).setAwemeFromPage(this.f73953m).setEventType(this.f73944a).setMyProfile(this.f73946c).setPageType(this.f73954n).setEnterMethodValue(this.f74254j).setRequestId(this.f73952l);\n if (this.f74252h != null) {\n this.f74252h.mo60134a(\"video_params\", (Object) requestId);\n }\n mo71773u();\n User author = this.f73950g.getAuthor();\n if (author != null) {\n this.mTitleView.setText(this.f73949f.getString(R.string.b5s, new Object[]{author.getNickname()}));\n this.mTitleView.getPaint().setFakeBoldText(true);\n } else {\n this.mTitleView.setText(\"\");\n }\n if (this.f73950g == null || this.f73950g.isCanPlay()) {\n this.mTitleView.setVisibility(0);\n } else {\n this.mTitleView.setVisibility(4);\n }\n this.tagLayout.setEventType(this.f73944a);\n List videoLabels = this.f73950g.getVideoLabels();\n m91744a(videoLabels);\n if (!RelationLabelHelper.hasDuoShanLabel(this.f73950g)) {\n if (C6319n.m19594a(this.f73944a, \"homepage_hot\")) {\n this.tagLayout.mo61051c(this.f73950g, videoLabels, new C23440a(7, 20));\n } else {\n this.tagLayout.mo61050b(this.f73950g, videoLabels, new C23440a(7, 20));\n }\n }\n if (TextUtils.isEmpty(this.f73950g.getExtra()) || !C6399b.m19928c()) {\n this.mTxtExtra.setVisibility(8);\n } else {\n this.mTxtExtra.setText(this.f73950g.getExtra());\n this.mTxtExtra.setVisibility(0);\n }\n if (this.f73950g.getUserDigg() == 1) {\n z = true;\n } else {\n z = false;\n }\n mo71770a(z);\n if (this.f73953m == 1) {\n mo71533d(m91740N());\n }\n AwemeStatus status = this.f73950g.getStatus();\n if (status == null) {\n this.mAwemeInCheckLayout.setVisibility(8);\n } else if (status.isInReviewing()) {\n this.mAwemeInCheckLayout.setVisibility(0);\n } else {\n this.mAwemeInCheckLayout.setVisibility(8);\n }\n }", "public void lookForLiveItems(){\n\t\ttools.findWithScroll(\"com.fic.foxsports:id/HomeViewPager\", \"com.fic.foxsports:id/live_video_title\"); //Texto\r\n\t\ttools.findWithScroll(\"com.fic.foxsports:id/HomeViewPager\", \"com.fic.foxsports:id/overthumb_channelLogo\"); //Logo\r\n\t\ttools.findWithScroll(\"com.fic.foxsports:id/HomeViewPager\", \"com.fic.foxsports:id/clipItemImage\"); //Background\r\n\t}", "private List<ItemMovement> uitGraven(Slot slot, Gantry gantry){\n\n List<ItemMovement> itemMovements = new ArrayList<>();\n Richting richting = Richting.NaarVoor;\n\n //Recursief naar boven gaan, doordat we namelijk eerste de gevulde parents van een bepaald slot moeten uithalen\n if(slot.getParent() != null && slot.getParent().getItem() != null){\n itemMovements.addAll(uitGraven(slot.getParent(), gantry));\n }\n\n //Slot in een zo dicht mogelijke rij zoeken\n boolean newSlotFound = false;\n Slot newSlot = null;\n int offset = 1;\n do { //TODO: als storage vol zit en NaarVoor en NaarAchter vinden geen vrije plaats => inf loop\n // bij het NaarAchter lopen uw index telkens het negatieve deel nemen, dus deze wordt telkens groter negatief.\n //AANPASSING\n Integer locatie = richting==Richting.NaarVoor? (slot.getCenterY() / 10) + offset : (slot.getCenterY() / 10) - offset;\n //we overlopen eerst alle richtingen NaarVoor wanneer deze op zen einde komt en er geen plaats meer is van richting veranderen naar achter\n // index terug op 1 zetten omdat de indexen ervoor al gecontroleerd waren\n if (grondSlots.get(locatie) == null) {\n //Grootte resetten en richting omdraaien\n offset = 1;\n richting = Richting.NaarAchter;\n continue;\n }\n\n Set<Slot> ondersteRij = new HashSet<>(grondSlots.get(locatie).values());\n newSlot = GeneralMeasures.zoekLeegSlot(ondersteRij);\n\n if(newSlot != null){\n newSlotFound = true;\n }\n //telkens één slot verder gaan\n offset += 1;\n }while(!newSlotFound);\n // vanaf er een nieuw vrij slot gevonden is deze functie verlaten\n\n //verplaatsen\n itemMovements.addAll(GeneralMeasures.createMoves(pickupPlaceDuration,gantry, slot, newSlot));\n update(Operatie.VerplaatsIntern, newSlot, slot);\n\n return itemMovements;\n }", "public static void main(String[] args) {\n\t\tCart anOrder = new Cart();\n\t\t\n\t\t// Create new dvd objects and add them to the cart\n\t\tDigitalVideoDisc dvd1= new DigitalVideoDisc(\"The Lion King\", \"Animation\", \"Roger Allers\", 87, 19.95f);\n\t\tanOrder.addDigitalVideoDisc(dvd1);\n\t\t\n\t\tDigitalVideoDisc dvd2= new DigitalVideoDisc(\"Star Wars\", \"Science Fiction\", \"George Lucas\", 87, 24.95f);\n\t\tanOrder.addDigitalVideoDisc(dvd2);\n\t\t\n\t\tDigitalVideoDisc dvd3= new DigitalVideoDisc(\"Aladin\", \"Animation\", 18.99f);\n\t\tanOrder.addDigitalVideoDisc(dvd3);\n\n\t\tDigitalVideoDisc dvd4= new DigitalVideoDisc(\"Harry Potter and the Philosopher's Stone\", \"Fantasy\", \n\t\t\t\t\"Chris Columbus\", 150, 20.2f);\n\t\tanOrder.addDigitalVideoDisc(dvd4);\n\t\t\n\t\tDigitalVideoDisc dvd5= new DigitalVideoDisc(\"Harry Potter and the Deathly Hallows II\", \"Fantasy\", \n\t\t\t\t\"David Yates\", 175 , 26.5f);\n\t\tanOrder.addDigitalVideoDisc(dvd5);\n\t\t\n\t\tDigitalVideoDisc dvd6= new DigitalVideoDisc(\"Harry Potter and the Order of Phoenix\", \"Fantasy\", \n\t\t\t\t\"David Yates\", 147 , 24.5f);\n\t\tanOrder.addDigitalVideoDisc(dvd6);\n\t\t\n\t\tDigitalVideoDisc dvd7= new DigitalVideoDisc(\"Avatar\", \"Science Fiction\", 20.6f);\n\t\tanOrder.addDigitalVideoDisc(dvd7);\n\t\n\t\tDigitalVideoDisc dvd8= new DigitalVideoDisc(\"Titanic\", \"Romantic\", 16.5f);\n\t\tanOrder.addDigitalVideoDisc(dvd8);\n\t\t\n\t\tDigitalVideoDisc dvd9= new DigitalVideoDisc(\"Avengers: Endgame\", \"Science Fiction\", 27.55f);\n\t\tanOrder.addDigitalVideoDisc(dvd9);\n\t\t\n\t\tDigitalVideoDisc dvd10= new DigitalVideoDisc(\"Avengers: Infinity War\", \"Science Fiction\", 26.5f);\n\t\tanOrder.addDigitalVideoDisc(dvd10);\n\t\t\n\t\tDigitalVideoDisc dvd11= new DigitalVideoDisc(\"Avengers: Age of Ultron\", \"Science Fiction\", 26.5f);\n\t\tanOrder.addDigitalVideoDisc(dvd11);\n\t\t\n\t\tDigitalVideoDisc dvd12= new DigitalVideoDisc(\"Avengers 1\", \"Science Fiction\", 26.5f);\n\t\tanOrder.addDigitalVideoDisc(dvd12);\n\t\t\n\t\tDigitalVideoDisc dvd13= new DigitalVideoDisc(\"Captain America: The First Avenger\", \"Science Fiction\", 25.0f);\n\t\tanOrder.addDigitalVideoDisc(dvd13);\n\t\t\n\t\tDigitalVideoDisc dvd14= new DigitalVideoDisc(\"Captain America: The Winter Soldier\", \"Science Fiction\", 25.0f);\n\t\tanOrder.addDigitalVideoDisc(dvd14);\n\t\t\n\t\tDigitalVideoDisc dvd15= new DigitalVideoDisc(\"Captain America: Civil War\", \"Science Fiction\", 26.0f);\n\t\tanOrder.addDigitalVideoDisc(dvd15);\n\t\t\n\t\tDigitalVideoDisc list[] = new DigitalVideoDisc[10];\n\t\t\n\t\tDigitalVideoDisc dvd16= new DigitalVideoDisc(\"Iron man 1\", \"Science Fiction\", 25.0f);\n\t\tlist[0]=dvd16;\n\t\t\n\t\tDigitalVideoDisc dvd17= new DigitalVideoDisc(\"Iron man 2\", \"Science Fiction\", 25.0f);\n\t\tlist[1]=dvd17;\n\t\t\n\t\tDigitalVideoDisc dvd18= new DigitalVideoDisc(\"Iron man 3\", \"Science Fiction\", 25.5f);\n\t\tlist[2]=dvd18;\n\t\t\n\t\tDigitalVideoDisc dvd19= new DigitalVideoDisc(\"Iron man 4\", \"Science Fiction\", 26.0f);\n\t\tlist[3]=dvd19;\n\t\t\n\t\tDigitalVideoDisc dvd20= new DigitalVideoDisc(\"Doctor Strange\", \"Science Fiction\", 26.0f);\n\t\tlist[4]=dvd20;\n\t\t\n\t\tDigitalVideoDisc dvd21= new DigitalVideoDisc(\"Guadians of the Galaxy 1\", \"Science Fiction\", 24.8f);\n\t\tlist[5]=dvd21;\n\t\tanOrder.addDigitalVideoDisc(list);\n\t\t//anOrder.addDigitalVideoDisc(dvd16, dvd17, dvd18, dvd19, dvd20, dvd21);\n\t\t\n\t\t// remove disc from the cart\n//\t\tanOrder.removeDigitalVideoDisc(dvd4);\n//\t\tanOrder.removeDigitalVideoDisc(dvd5);\n//\t\tanOrder.removeDigitalVideoDisc(dvd5);\n//\t\t\n//\t\tanOrder.addDigitalVideoDisc(dvd21);\n//\t\tanOrder.removeDigitalVideoDisc(dvd17);\n//\t\tanOrder.removeDigitalVideoDisc(dvd21);\n//\t\tanOrder.removeDigitalVideoDisc(dvd21);\n\t\t\n\t\t//print total cost of the items in the cart\n\t\tSystem.out.print(\"Total cost is: \");\n\t\tSystem.out.println(anOrder.totalCost());\n\n\t}", "private void inventoryHandler(){\n final Button TAB = getOwnerArea().getKeyboard().get(Keyboard.TAB);\n final Button SPACE = getOwnerArea().getKeyboard().get(Keyboard.SPACE);\n final Button R = getOwnerArea().getKeyboard().get(Keyboard.R);\n final Button T = getOwnerArea().getKeyboard().get(Keyboard.T);\n final Button Y = getOwnerArea().getKeyboard().get(Keyboard.Y);\n final Button U = getOwnerArea().getKeyboard().get(Keyboard.U);\n final Button I = getOwnerArea().getKeyboard().get(Keyboard.I);\n final Button O = getOwnerArea().getKeyboard().get(Keyboard.O);\n final Button P = getOwnerArea().getKeyboard().get(Keyboard.P);\n final Button K = getOwnerArea().getKeyboard().get(Keyboard.K);\n\n //Used for tests, as asked in the instructions\n if (R.isPressed()) {\n inventory.add(ARPGItem.ARROW, 1);\n } else if (T.isPressed()) {\n inventory.add(ARPGItem.SWORD, 1);\n } else if (Y.isPressed()) {\n inventory.add(ARPGItem.STAFF, 1);\n } else if (U.isPressed()) {\n inventory.add(ARPGItem.BOW, 1);\n } else if (I.isPressed()) {\n inventory.add(ARPGItem.BOMB, 1);\n } else if (O.isPressed()) {\n inventory.add(ARPGItem.CASTLEKEY, 1);\n } else if (P.isPressed()) {\n inventory.add(ARPGItem.WINGS, 1);\n } else if (K.isPressed()) {\n inventory.add(ARPGItem.CHESTKEY, 1);\n }\n\n /*If the player does not have any currentItem anymore we switch it (f. ex. if a player\n uses his last bomb or if the constructor assigns as the player's current item an item\n he does not possess by mistake)\n */\n if(!possess(currentItem)) {\n currentItem = (ARPGItem) inventory.switchItem(currentItem);\n }\n\n //Switches item.\n if(TAB.isPressed()){\n currentItem = (ARPGItem) inventory.switchItem(currentItem);\n if(currentItem == ARPGItem.ARROW){\n currentItem = (ARPGItem) inventory.switchItem(currentItem);\n }\n }\n\n //Uses the item and adapts the animations\n if(SPACE.isPressed() && !isDisplacementOccurs()){\n if(currentItem.use(getOwnerArea(), getOrientation(), getCurrentMainCellCoordinates())){\n switch(currentItem){\n case BOMB:\n inventory.remove(currentItem, 1);\n break;\n case BOW:\n if(actionTimer >= COOLDOWN) {\n animateAction = true;\n currentAnimation = bowAnimations[getOrientation().ordinal()];\n shootArrow = true;\n actionTimer = 0.f;\n }\n break;\n case SWORD:\n animateAction = true;\n currentAnimation = swordAnimations[getOrientation().ordinal()];\n break;\n case STAFF:\n animateAction = true;\n currentAnimation = staffAnimations[getOrientation().ordinal()];\n break;\n }\n\n }\n }\n\n //Wings have a special treatment because SPACE needs to be down and not pressed\n if (currentItem == ARPGItem.WINGS && SPACE.isDown()) {\n //Sets the animation for the current orientation. Make sure it doesn't fly yet\n // so that the animation is not stuck.\n if (!canFly) {\n currentAnimation = flyAnimations[getOrientation().ordinal()];\n }\n canFly = true;\n } else {\n //Resets to idleAnimations\n if (canFly) {\n currentAnimation = idleAnimations[getOrientation().ordinal()];\n }\n canFly = false;\n }\n }", "public void grab() {\r\n\t\tString item = mapContents[currentPlayer.getCurrentRoom()];\r\n\t\tif (item == null) return;\r\n\t\t\r\n\t\t// If artifact, make sure has room or backpack\r\n\t\tif (item.startsWith(\"Artifact\")) {\r\n\t\t\tif (currentPlayer.count(\"Artifact\") <= currentPlayer.count(\"Backpack\")) {\r\n\t\t\t\tcurrentPlayer.pickup(item);\r\n\t\t\t\tattackLevel++;\r\n\t\t\t\taddEvent(\"``\"+currentName+\"`` picked up an Artifact **\"+item.substring(8)+\"** :star:\",true);\r\n\t\t\t\taddHistory(\"ARTIFACT \"+item.substring(8));\r\n\t\t\t\tmapContents[currentPlayer.getCurrentRoom()] = null;\r\n\t\t\t}\r\n\t\t// If monkey idol, make sure didn't already pick one up this turn\r\n\t\t} else if (item.startsWith(\"MonkeyIdol\") && !currentPlayer.getAlreadyPickedUpMonkeyIdol()) {\r\n\t\t\tcurrentPlayer.pickup(item);\r\n\t\t\tcurrentPlayer.setAlreadyPickedUpMonkeyIdol(true);\r\n\t\t\tint num = Integer.parseInt(item.substring(10));\r\n\t\t\tnum--;\r\n\t\t\tif (num == 0) {\r\n\t\t\t\tmapContents[currentPlayer.getCurrentRoom()] = null;\r\n\t\t\t} else {\r\n\t\t\t\tmapContents[currentPlayer.getCurrentRoom()] = \"MonkeyIdol\"+num;\r\n\t\t\t}\r\n\t\t\taddEvent(\"``\"+currentName+\"`` picked up a Monkey Idol **5** :star:\",true);\r\n\t\t\taddHistory(\"IDOL \"+item.substring(8));\r\n\t\t}\r\n\t\tupdateReactionsInfo();\r\n\t\tupdatePlayArea(currentPlayer, false);\r\n\t\tupdateMarketAndTreasures(false);\r\n\t\ttry {\r\n\t\t\tupdateBoard();\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "private static void customItems(ItemDefinition itemDef) {\n\n\t\tswitch (itemDef.id) {\n\n\t\tcase 11864:\n\t\tcase 11865:\n\t\tcase 19639:\n\t\tcase 19641:\n\t\tcase 19643:\n\t\tcase 19645:\n\t\tcase 19647:\n\t\tcase 19649:\n\t\tcase 23073:\n\t\tcase 23075:\n\t\t\titemDef.equipActions[2] = \"Log\";\n\t\t\titemDef.equipActions[1] = \"Check\";\n\t\t\tbreak;\n\n\t\tcase 13136:\n\t\t\titemDef.equipActions[2] = \"Elidinis\";\n\t\t\titemDef.equipActions[1] = \"Kalphite Hive\";\n\t\t\tbreak;\n\t\tcase 2550:\n\t\t\titemDef.equipActions[2] = \"Check\";\n\t\t\tbreak;\n\n\t\tcase 1712:\n\t\tcase 1710:\n\t\tcase 1708:\n\t\tcase 1706:\n\t\t\titemDef.equipActions[1] = \"Edgeville\";\n\t\t\titemDef.equipActions[2] = \"Karamja\";\n\t\t\titemDef.equipActions[3] = \"Draynor\";\n\t\t\titemDef.equipActions[4] = \"Al-Kharid\";\n\t\t\tbreak;\n\n\t\tcase 22000:\n\t\t\titemDef.name = \"Lava partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"A lava partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 22001:\n\t\t\titemDef.name = \"Infernal partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"An Infernal partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 2552:\n\t\tcase 2554:\n\t\tcase 2556:\n\t\tcase 2558:\n\t\tcase 2560:\n\t\tcase 2562:\n\t\tcase 2564:\n\t\tcase 2566: // Ring of duelling\n\t\t\titemDef.equipActions[2] = \"Shantay Pass\";\n\t\t\titemDef.equipActions[1] = \"Clan wars\";\n\t\t\tbreak;\n\n\t\tcase 21307:\n\t\t\titemDef.name = \"Pursuit crate\";\n\t\t\tbreak;\n\n\t\tcase 12792:\n\t\t\titemDef.name = \"Graceful recolor kit\";\n\t\t\tbreak;\n\n\t\tcase 12022:\n\t\t\titemDef.name = \"Bandos Casket\";\n\t\t\titemDef.description = \"100% chance for an item off the Bandos gwds rare drop table.\";\n\t\t\tbreak;\n\n\t\tcase 12024:\n\t\t\titemDef.name = \"Armadyl Casket\";\n\t\t\titemDef.description = \"100% chance for an item off the Armadyl gwds rare drop table.\";\n\t\t\tbreak;\n\n\t\tcase 12026:\n\t\t\titemDef.name = \"Saradomin Casket\";\n\t\t\titemDef.description = \"100% chance for an item off the Saradomin gwds rare drop table.\";\n\t\t\tbreak;\n\n\t\tcase 12028:\n\t\t\titemDef.name = \"Zamorak Casket\";\n\t\t\titemDef.description = \"100% chance for an item off the Zamorak gwds rare drop table.\";\n\t\t\tbreak;\n\n\t\tcase 964:\n\t\t\titemDef.name = \"Pet Petie\";\n\t\t\tbreak;\n\n\t\tcase 20853:\n\t\t\titemDef.name = \"Deep Sea Bait\";\n\t\t\titemDef.stackable = true;\n\t\t\tbreak;\n\n\t\t/*\n\t\t * case 17014: itemDef.name = \"Dragon flail\"; itemDef.modelId = 50083;\n\t\t * itemDef.modelZoom = 1440; itemDef.modelRotation2 = 272;\n\t\t * itemDef.modelRotation1 = 352; itemDef.modelOffset1 = 32;\n\t\t * //itemDef.modelOffset2 = 0; itemDef.maleModel = 50083; itemDef.femaleModel =\n\t\t * 50083; itemDef.anInt164 = -1; itemDef.anInt188 = -1; itemDef.aByte205 = -8;\n\t\t * itemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t * itemDef.inventoryOptions = new String[] { \"Wear\", null, null, null, \"Drop\" };\n\t\t * itemDef.description = \"An Ancient Dragon Flail.\"; break;\n\t\t */\n\n\t\tcase 33272:\n\t\t\titemDef.name = \"Justiciar's Longsword\";\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modelId = 65472;\n\t\t\titemDef.modelZoom = 1726;\n\t\t\titemDef.modelRotation1 = 1576;\n\t\t\titemDef.modelRotation2 = 242;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\t// itemDef.anInt204 = 0;\n\t\t\t// itemDef.aByte205 = -12;\n\t\t\t// itemDef.aByte154 = 0;\n\t\t\titemDef.maleModel = 65465;\n\t\t\titemDef.femaleModel = 65465;\n\t\t\titemDef.description = \"An ancient longsword received from the Trial of Flames.\";\n\t\t\tbreak;\n\n\t\tcase 33168:\n\t\t\titemDef.name = \"Justiciar kiteshield\";\n\t\t\titemDef.modelId = 65471;\n\t\t\titemDef.modelZoom = 1600;\n\t\t\titemDef.modelRotation2 = 250;\n\t\t\titemDef.modelRotation1 = 300;\n\t\t\titemDef.modelOffset1 = -4;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.maleModel = 65473;\n\t\t\titemDef.femaleModel = 65474;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"An ancient kiteshield. Part of the Justiciar set.\";\n\t\t\tbreak;\n\n\t\tcase 2996:\n\t\t\titemDef.name = \"PKP Ticket\";\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.description = \"Exchange this for a PK Point.\";\n\t\t\tbreak;\n\t\tcase 13226:\n\t\t\titemDef.name = \"Herb Sack\";\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.description = \"A sack for storing grimy herbs.\";\n\t\t\tbreak;\n\t\tcase 13346:\n\t\t\titemDef.name = \"Raid Mystery Box\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Open for chances to receive Raid items & other awesome rewards.\";\n\t\t\tbreak;\n\t\tcase 8800:\n\t\t\titemDef.name = \"Donator Tokens\";\n\t\t\titemDef.modelId = 31624;\n\t\t\t// itemDef.stackAmounts = new int[] { 2, 3, 50, 100, 500000, 1000000, 2500000,\n\t\t\t// 10000000, 100000000, 0 };//amount the model will change at\n\t\t\t// itemDef.stackIDs = new int[] { 8801, 8802, 8803, 8804, 8805, 8806, 8807,\n\t\t\t// 8808, 8809, 0 };//new item id to grab the model from\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 853;\n\t\t\titemDef.modelRotation2 = 1885;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8801:\n\t\t\titemDef.name = \"Donator Tokens\";\n\t\t\titemDef.modelId = 15344;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8802:\n\t\t\titemDef.name = \"Donator Tokens\";\n\t\t\titemDef.modelId = 15345;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8803:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15346;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8804:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15347;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8805:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15348;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8806:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15349;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8807:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15350;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8808:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15351;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8809:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15352;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 15098:\n\t\t\titemDef.name = \"Dice (up to 100)\";\n\t\t\titemDef.description = \"A 100-sided dice.\";\n\t\t\titemDef.modelId = 31223;\n\t\t\titemDef.modelZoom = 1104;\n\t\t\titemDef.modelRotation2 = 215;\n\t\t\titemDef.modelRotation1 = 94;\n\t\t\titemDef.modelOffset2 = -5;\n\t\t\titemDef.modelOffset1 = -18;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Public-roll\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.name = \"Dice (up to 100)\";\n\t\t\titemDef.anInt196 = 15;\n\t\t\titemDef.anInt184 = 25;\n\t\t\tbreak;\n\n\t\tcase 32991:\n\t\t\titemDef.name = \"Divine spirit shield\";\n\t\t\titemDef.description = \"An ethereal shield with an divine sigil attached to it.\";\n\t\t\titemDef.modelId = 50001;\n\t\t\titemDef.maleModel = 50002;\n\t\t\titemDef.femaleModel = 50002;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelRotation2 = 1050;\n\t\t\titemDef.modelRotation1 = 396;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\tbreak;\n\t\tcase 32992:\n\t\t\titemDef.name = \"Rainbow spirit shield\";\n\t\t\titemDef.description = \"An ethereal shield with all 4 sigils attached to it.\";\n\t\t\titemDef.modelId = 50004;\n\t\t\titemDef.maleModel = 50005;\n\t\t\titemDef.femaleModel = 50005;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelRotation2 = 1050;\n\t\t\titemDef.modelRotation1 = 396;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 32993:\n\t\t\titemDef.name = \"Divine sigil\";\n\t\t\titemDef.description = \"A sigil in the shape of a divine symbol.\";\n\t\t\titemDef.modelId = 50003;\n\t\t\titemDef.modelZoom = 848;\n\t\t\titemDef.modelRotation1 = 267;\n\t\t\titemDef.modelRotation2 = 138;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33060:\n\t\t\titemDef.name = \"Barrows Sword\";\n\t\t\titemDef.description = \"A sword glowing with otherworldy energy.\";\n\t\t\titemDef.modelId = 22325;\n\t\t\titemDef.maleModel = 50010;\n\t\t\titemDef.femaleModel = 50010;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelRotation2 = 1050;\n\t\t\titemDef.modelRotation1 = 396;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\tbreak;\n\t\tcase 32994:\n\t\t\titemDef.name = \"Statius's platebody\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42602;\n\t\t\titemDef.maleModel = 35951;\n\t\t\titemDef.femaleModel = 35964;\n\t\t\titemDef.modelZoom = 1312;\n\t\t\titemDef.modelRotation1 = 272;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -2;\n\t\t\titemDef.modelOffset2 = 39;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 32995:\n\t\t\titemDef.name = \"Statius's platelegs\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42590;\n\t\t\titemDef.maleModel = 35947;\n\t\t\titemDef.femaleModel = 35961;\n\t\t\titemDef.modelZoom = 1625;\n\t\t\titemDef.modelRotation1 = 355;\n\t\t\titemDef.modelRotation2 = 2046;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -11;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 32996:\n\t\t\titemDef.name = \"Statius's full helm\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42596;\n\t\t\titemDef.maleModel = 35943;\n\t\t\titemDef.femaleModel = 35958;\n\t\t\titemDef.modelZoom = 789;\n\t\t\titemDef.modelRotation1 = 96;\n\t\t\titemDef.modelRotation2 = 2039;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -7;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 32997:\n\t\t\titemDef.name = \"Statius's warhammer\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42577;\n\t\t\titemDef.maleModel = 35968;\n\t\t\titemDef.femaleModel = 35968;\n\t\t\titemDef.modelZoom = 1360;\n\t\t\titemDef.modelRotation1 = 507;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 7;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 32998:\n\t\t\titemDef.name = \"Vesta's chainbody\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42593;\n\t\t\titemDef.maleModel = 35953;\n\t\t\titemDef.femaleModel = 35965;\n\t\t\titemDef.modelZoom = 1440;\n\t\t\titemDef.modelRotation1 = 545;\n\t\t\titemDef.modelRotation2 = 2;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 32999:\n\t\t\titemDef.name = \"Vesta's plateskirt\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42581;\n\t\t\titemDef.maleModel = 35950;\n\t\t\titemDef.femaleModel = 35960;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = 11;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33000:\n\t\t\titemDef.name = \"Vesta's longsword\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42597;\n\t\t\titemDef.maleModel = 35969;\n\t\t\titemDef.femaleModel = 35969;\n\t\t\titemDef.modelZoom = 1744;\n\t\t\titemDef.modelRotation1 = 738;\n\t\t\titemDef.modelRotation2 = 1985;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.maleOffset = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33001:\n\t\t\titemDef.name = \"Vesta's spear\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42599;\n\t\t\titemDef.maleModel = 35973;\n\t\t\titemDef.femaleModel = 35973;\n\t\t\titemDef.modelZoom = 2022;\n\t\t\titemDef.modelRotation1 = 480;\n\t\t\titemDef.modelRotation2 = 15;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.maleOffset = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33002:\n\t\t\titemDef.name = \"Morrigan's leather body\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42578;\n\t\t\titemDef.maleModel = 35954;\n\t\t\titemDef.femaleModel = 35963;\n\t\t\titemDef.modelZoom = 1440;\n\t\t\titemDef.modelRotation1 = 545;\n\t\t\titemDef.modelRotation2 = 2;\n\t\t\titemDef.modelOffset1 = -2;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33003:\n\t\t\titemDef.name = \"Morrigan's leather chaps\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42603;\n\t\t\titemDef.maleModel = 35948;\n\t\t\titemDef.femaleModel = 35959;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 482;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = 11;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33004:\n\t\t\titemDef.name = \"Morrigan's coif\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42583;\n\t\t\titemDef.maleModel = 35945;\n\t\t\titemDef.femaleModel = 35956;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 537;\n\t\t\titemDef.modelRotation2 = 5;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33005:\n\t\t\titemDef.name = \"Morrigan's javelin\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42592;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.maleModel = 42613;\n\t\t\titemDef.femaleModel = 42613;\n\t\t\titemDef.modelZoom = 1872;\n\t\t\titemDef.modelRotation1 = 282;\n\t\t\titemDef.modelRotation2 = 2009;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.maleOffset = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33006:\n\t\t\titemDef.name = \"Morrigan's throwing axe\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42582;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.maleModel = 42611;\n\t\t\titemDef.femaleModel = 42611;\n\t\t\titemDef.modelZoom = 976;\n\t\t\titemDef.modelRotation1 = 672;\n\t\t\titemDef.modelRotation2 = 2024;\n\t\t\titemDef.modelOffset1 = -5;\n\t\t\titemDef.maleOffset = -8;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33007:\n\t\t\titemDef.name = \"Zuriels robe top\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42591;\n\t\t\titemDef.maleModel = 35952;\n\t\t\titemDef.femaleModel = 35966;\n\t\t\titemDef.modelZoom = 1373;\n\t\t\titemDef.modelRotation1 = 373;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -7;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33008:\n\t\t\titemDef.name = \"Zuriels robe bottom\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42588;\n\t\t\titemDef.maleModel = 35949;\n\t\t\titemDef.femaleModel = 35962;\n\t\t\titemDef.modelZoom = 1697;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33009:\n\t\t\titemDef.name = \"Zuriels hood\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42604;\n\t\t\titemDef.maleModel = 35944;\n\t\t\titemDef.femaleModel = 35957;\n\t\t\titemDef.modelZoom = 720;\n\t\t\titemDef.modelRotation1 = 28;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33010:\n\t\t\titemDef.name = \"Zuriels staff\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42595;\n\t\t\titemDef.maleModel = 35971;\n\t\t\titemDef.femaleModel = 35971;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 366;\n\t\t\titemDef.modelRotation2 = 3;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33011:\n\t\t\titemDef.name = \"Craw's bow (u)\";\n\t\t\titemDef.description = \"This bow once belonged to a formidable follower of Armadyl.\";\n\t\t\titemDef.modelId = 35777;\n\t\t\titemDef.maleModel = 35768;\n\t\t\titemDef.femaleModel = 35768;\n\t\t\titemDef.modelZoom = 1979;\n\t\t\titemDef.modelRotation1 = 1463;\n\t\t\titemDef.modelRotation2 = 510;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33012:\n\t\t\titemDef.name = \"Craw's bow\";\n\t\t\titemDef.description = \"This bow once belonged to a formidable follower of Armadyl.\";\n\t\t\titemDef.modelId = 35777;\n\t\t\titemDef.maleModel = 35769;\n\t\t\titemDef.femaleModel = 35769;\n\t\t\titemDef.modelZoom = 1979;\n\t\t\titemDef.modelRotation1 = 1463;\n\t\t\titemDef.modelRotation2 = 510;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33013:\n\t\t\titemDef.name = \"Thammaron's sceptre (u)\";\n\t\t\titemDef.description = \"A mighty sceptre used in long forgotten battles.\";\n\t\t\titemDef.modelId = 35776;\n\t\t\titemDef.maleModel = 35772;\n\t\t\titemDef.femaleModel = 35772;\n\t\t\titemDef.modelZoom = 2105;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 1020;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33014:\n\t\t\titemDef.name = \"Thammaron's sceptre\";\n\t\t\titemDef.description = \"A mighty sceptre used in long forgotten battles.\";\n\t\t\titemDef.modelId = 35776;\n\t\t\titemDef.maleModel = 35773;\n\t\t\titemDef.femaleModel = 35773;\n\t\t\titemDef.modelZoom = 2105;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 1020;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33015:\n\t\t\titemDef.name = \"Viggora's chainmace (u)\";\n\t\t\titemDef.description = \"An ancient chainmace with a peculiar mechanism that allows for varying attack styles.\";\n\t\t\titemDef.modelId = 35778;\n\t\t\titemDef.maleModel = 35770;\n\t\t\titemDef.femaleModel = 35770;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelRotation1 = 252;\n\t\t\titemDef.modelRotation2 = 944;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33016:\n\t\t\titemDef.name = \"Viggora's chainmace\";\n\t\t\titemDef.description = \"An ancient chainmace with a peculiar mechanism that allows for varying attack styles.\";\n\t\t\titemDef.modelId = 35778;\n\t\t\titemDef.maleModel = 35771;\n\t\t\titemDef.femaleModel = 35771;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelRotation1 = 252;\n\t\t\titemDef.modelRotation2 = 944;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33018:\n\t\t\titemDef.name = \"Amulet of avarice\";\n\t\t\titemDef.description = \"A hauntingly beautiful amulet bearing the shape of a skull.\";\n\t\t\titemDef.modelId = 35779;\n\t\t\titemDef.maleModel = 35766;\n\t\t\titemDef.femaleModel = 35766;\n\t\t\titemDef.modelZoom = 420;\n\t\t\titemDef.modelRotation1 = 191;\n\t\t\titemDef.modelRotation2 = 86;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33019:\n\t\t\titemDef.name = \"Completionist cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modelId = 65270;\n\t\t\titemDef.maleModel = 65297;\n\t\t\titemDef.femaleModel = 65316;\n\t\t\titemDef.modelZoom = 1316;\n\t\t\titemDef.modelRotation1 = 252;\n\t\t\titemDef.modelRotation2 = 1020;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 24;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33020:\n\t\t\titemDef.name = \"Completionist cape (t)\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modelId = 65258;\n\t\t\titemDef.maleModel = 65295;\n\t\t\titemDef.femaleModel = 65328;\n\t\t\titemDef.modelZoom = 1316;\n\t\t\titemDef.modelRotation1 = 252;\n\t\t\titemDef.modelRotation2 = 1020;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 24;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33021:\n\t\t\titemDef.name = \"Torva full helm\";\n\t\t\titemDef.description = \"An ancient warrior's full helm.\";\n\t\t\titemDef.modelId = 62714;\n\t\t\titemDef.maleModel = 62738;\n\t\t\titemDef.femaleModel = 62738;\n\t\t\titemDef.modelZoom = 672;\n\t\t\titemDef.modelRotation1 = 85;\n\t\t\titemDef.modelRotation2 = 1867;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33022:\n\t\t\titemDef.name = \"Torva platebody\";\n\t\t\titemDef.description = \"An ancient warrior's platebody.\";\n\t\t\titemDef.modelId = 62699;\n\t\t\titemDef.maleModel = 62746;\n\t\t\titemDef.femaleModel = 62746;\n\t\t\titemDef.modelZoom = 1506;\n\t\t\titemDef.modelRotation1 = 473;\n\t\t\titemDef.modelRotation2 = 2042;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33023:\n\t\t\titemDef.name = \"Torva platelegs\";\n\t\t\titemDef.description = \"An ancient warrior's platelegs.\";\n\t\t\titemDef.modelId = 62701;\n\t\t\titemDef.maleModel = 62740;\n\t\t\titemDef.femaleModel = 62740;\n\t\t\titemDef.modelZoom = 1740;\n\t\t\titemDef.modelRotation1 = 474;\n\t\t\titemDef.modelRotation2 = 2045;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33024:\n\t\t\titemDef.name = \"Pernix cowl\";\n\t\t\titemDef.description = \"An ancient warrior's cowl.\";\n\t\t\titemDef.modelId = 62693;\n\t\t\titemDef.maleModel = 62739;\n\t\t\titemDef.femaleModel = 62739;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 532;\n\t\t\titemDef.modelRotation2 = 14;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33025:\n\t\t\titemDef.name = \"Pernix body\";\n\t\t\titemDef.description = \"An ancient warrior's leather body.\";\n\t\t\titemDef.modelId = 62709;\n\t\t\titemDef.maleModel = 62744;\n\t\t\titemDef.femaleModel = 62744;\n\t\t\titemDef.modelZoom = 1378;\n\t\t\titemDef.modelRotation1 = 485;\n\t\t\titemDef.modelRotation2 = 2042;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 7;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33026:\n\t\t\titemDef.name = \"Pernix chaps\";\n\t\t\titemDef.description = \"An ancient warrior's chaps.\";\n\t\t\titemDef.modelId = 62695;\n\t\t\titemDef.maleModel = 62741;\n\t\t\titemDef.femaleModel = 62741;\n\t\t\titemDef.modelZoom = 1740;\n\t\t\titemDef.modelRotation1 = 504;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33027:\n\t\t\titemDef.name = \"Virtus mask\";\n\t\t\titemDef.description = \"An ancient warrior's mask.\";\n\t\t\titemDef.modelId = 62710;\n\t\t\titemDef.maleModel = 62736;\n\t\t\titemDef.femaleModel = 62736;\n\t\t\titemDef.modelZoom = 928;\n\t\t\titemDef.modelRotation1 = 406;\n\t\t\titemDef.modelRotation2 = 2041;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33028:\n\t\t\titemDef.name = \"Virtus robe top\";\n\t\t\titemDef.description = \"An ancient warrior's robe top.\";\n\t\t\titemDef.modelId = 62704;\n\t\t\titemDef.maleModel = 62748;\n\t\t\titemDef.femaleModel = 62748;\n\t\t\titemDef.modelZoom = 1122;\n\t\t\titemDef.modelRotation1 = 488;\n\t\t\titemDef.modelRotation2 = 3;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33029:\n\t\t\titemDef.name = \"Virtus robe legs\";\n\t\t\titemDef.description = \"An ancient warrior's robe legs.\";\n\t\t\titemDef.modelId = 62700;\n\t\t\titemDef.maleModel = 62742;\n\t\t\titemDef.femaleModel = 62742;\n\t\t\titemDef.modelZoom = 1740;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 2045;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33030:\n\t\t\titemDef.name = \"Zaryte bow\";\n\t\t\titemDef.description = \"An ancient warrior's bow.\";\n\t\t\titemDef.modelId = 62692;\n\t\t\titemDef.maleModel = 62750;\n\t\t\titemDef.femaleModel = 62750;\n\t\t\titemDef.modelZoom = 1703;\n\t\t\titemDef.modelRotation1 = 221;\n\t\t\titemDef.modelRotation2 = 404;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -13;\n\t\t\titemDef.maleOffset = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33083:\n\t\t\titemDef.name = \"Tokhaar-kal\";\n\t\t\titemDef.description = \"\tA cape made of ancient, enchanted obsidian.\";\n\t\t\titemDef.modelId = 52073;\n\t\t\titemDef.maleModel = 52072;\n\t\t\titemDef.femaleModel = 52071;\n\t\t\titemDef.modelZoom = 1615;\n\t\t\titemDef.modelRotation1 = 339;\n\t\t\titemDef.modelRotation2 = 192;\n\t\t\titemDef.modelOffset1 = -4;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33089:\n\t\t\titemDef.name = \"Chaotic maul\";\n\t\t\titemDef.description = \"A maul used to claim life from those who don't deserve it.\";\n\t\t\titemDef.modelId = 54286;\n\t\t\titemDef.maleModel = 56294;\n\t\t\titemDef.femaleModel = 56294;\n\t\t\titemDef.modelZoom = 1447;\n\t\t\titemDef.modelRotation1 = 525;\n\t\t\titemDef.modelRotation2 = 350;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = -7;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\tbreak;\n\t\tcase 33094:\n\t\t\titemDef.name = \"Chaotic crossbow\";\n\t\t\titemDef.description = \"A small crossbow, only effective at short distance.\";\n\t\t\titemDef.modelId = 54331;\n\t\t\titemDef.maleModel = 56307;\n\t\t\titemDef.femaleModel = 56307;\n\t\t\titemDef.modelZoom = 1028;\n\t\t\titemDef.modelRotation1 = 249;\n\t\t\titemDef.modelRotation2 = 2021;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -54;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = -7;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\tbreak;\n\t\tcase 33095:\n\t\t\titemDef.name = \"Chaotic staff\";\n\t\t\titemDef.description = \"This staff makes destructive spells more powerful.\";\n\t\t\titemDef.modelId = 54367;\n\t\t\titemDef.maleModel = 56286;\n\t\t\titemDef.femaleModel = 56286;\n\t\t\titemDef.modelZoom = 1711;\n\t\t\titemDef.modelRotation1 = 471;\n\t\t\titemDef.modelRotation2 = 391;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = -7;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\tbreak;\n\t\tcase 33096:\n\t\t\titemDef.name = \"Chaotic kiteshield\";\n\t\t\titemDef.description = \"A large metal shield.\";\n\t\t\titemDef.modelId = 54358;\n\t\t\titemDef.maleModel = 56038;\n\t\t\titemDef.femaleModel = 56038;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 276;\n\t\t\titemDef.modelRotation2 = 1101;\n\t\t\titemDef.modelOffset1 = -5;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33031:\n\t\t\titemDef.name = \"Chaotic rapier\";\n\t\t\titemDef.description = \"A razor-sharp rapier.\";\n\t\t\titemDef.modelId = 54197;\n\t\t\titemDef.maleModel = 56252;\n\t\t\titemDef.femaleModel = 56252;\n\t\t\titemDef.modelZoom = 1425;\n\t\t\titemDef.modelRotation1 = 540;\n\t\t\titemDef.modelRotation2 = 1370;\n\t\t\titemDef.modelOffset1 = 9;\n\t\t\titemDef.modelOffset2 = 13;\n\t\t\titemDef.maleOffset = -12;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = -7;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\tbreak;\n\t\tcase 33032:\n\t\t\titemDef.name = \"Chaotic longsword\";\n\t\t\titemDef.description = \"A razor-sharp longsword.\";\n\t\t\titemDef.modelId = 54204;\n\t\t\titemDef.maleModel = 56237;\n\t\t\titemDef.femaleModel = 56237;\n\t\t\titemDef.modelZoom = 1650;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 1300;\n\t\t\t// itemDef.aByte154 = -14;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = -7;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\tbreak;\n\t\tcase 33097:\n\t\t\titemDef.name = \"Sword of Onyxia\";\n\t\t\titemDef.description = \"A razor-sharp longsword.\";\n\t\t\titemDef.modelId = 53091;\n\t\t\titemDef.maleModel = 53092;\n\t\t\titemDef.femaleModel = 53092;\n\t\t\titemDef.modelZoom = 2007;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33098:\n\t\t\titemDef.name = \"Onyxia longsword\";\n\t\t\titemDef.description = \"A razor-sharp 2h sword.\";\n\t\t\titemDef.modelId = 53093;\n\t\t\titemDef.maleModel = 53094;\n\t\t\titemDef.femaleModel = 53094;\n\t\t\titemDef.modelZoom = 4007;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.maleOffset = -8;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33099:\n\t\t\titemDef.name = \"White scimitar\";\n\t\t\titemDef.description = \"A razor-sharp scimitar.\";\n\t\t\titemDef.modelId = 53097;\n\t\t\titemDef.maleModel = 53098;\n\t\t\titemDef.femaleModel = 53098;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 312;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\t// itemDef.aByte154 = -14;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33100:\n\t\t\titemDef.name = \"White kiteshield\";\n\t\t\titemDef.description = \"a heavy kiteshield.\";\n\t\t\titemDef.modelId = 53095;\n\t\t\titemDef.maleModel = 53096;\n\t\t\titemDef.femaleModel = 53096;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelRotation1 = 303;\n\t\t\titemDef.modelRotation2 = 180;\n\t\t\t// itemDef.aByte154 = -14;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = 7;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33033:\n\t\t\titemDef.name = \"Agility master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 677, 801, 43540, 43543, 43546, 43549, 43550, 43552, 43554, 43558,\n\t\t\t\t\t43560, 43575 };\n\t\t\titemDef.modelId = 50030;\n\t\t\titemDef.maleModel = 50031;\n\t\t\titemDef.femaleModel = 50031;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33034:\n\t\t\titemDef.name = \"Attack master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 7104, 9151, 911, 914, 917, 920, 921, 923, 925, 929, 931, 946 };\n\t\t\titemDef.modelId = 50032;\n\t\t\titemDef.maleModel = 50033;\n\t\t\titemDef.femaleModel = 50033;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33035:\n\t\t\titemDef.name = \"Construction master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 6061, 5945, 6327, 6330, 6333, 6336, 6337, 6339, 6341, 6345, 6347,\n\t\t\t\t\t6362 };\n\t\t\titemDef.modelId = 50034;\n\t\t\titemDef.maleModel = 50035;\n\t\t\titemDef.femaleModel = 50035;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33036:\n\t\t\titemDef.name = \"Cooking master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 920, 920, 51856, 51859, 51862, 51865, 51866, 51868, 51870, 51874,\n\t\t\t\t\t51876, 51891 };\n\t\t\titemDef.modelId = 50036;\n\t\t\titemDef.maleModel = 50037;\n\t\t\titemDef.femaleModel = 50037;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33037:\n\t\t\titemDef.name = \"Crafting master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 9142, 9152, 4511, 4514, 4517, 4520, 4521, 4523, 4525, 4529, 4531,\n\t\t\t\t\t4546 };\n\t\t\titemDef.modelId = 50038;\n\t\t\titemDef.maleModel = 50039;\n\t\t\titemDef.femaleModel = 50039;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33038:\n\t\t\titemDef.name = \"Defence master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 10460, 10473, 41410, 41413, 41416, 41419, 41420, 41422, 41424,\n\t\t\t\t\t41428, 41430, 41445 };\n\t\t\titemDef.modelId = 50040;\n\t\t\titemDef.maleModel = 50041;\n\t\t\titemDef.femaleModel = 50041;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33039:\n\t\t\titemDef.name = \"Farming master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 14775, 14792, 22026, 22029, 22032, 22035, 22036, 22038, 22040,\n\t\t\t\t\t22044, 22046, 22061 };\n\t\t\titemDef.modelId = 50042;\n\t\t\titemDef.maleModel = 50043;\n\t\t\titemDef.femaleModel = 50043;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33040:\n\t\t\titemDef.name = \"Firemaking master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 8125, 9152, 4015, 4018, 4021, 4024, 4025, 4027, 4029, 4033, 4035,\n\t\t\t\t\t4050 };\n\t\t\titemDef.modelId = 50044;\n\t\t\titemDef.maleModel = 50045;\n\t\t\titemDef.femaleModel = 50045;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33041:\n\t\t\titemDef.name = \"Fishing master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 9144, 9152, 38202, 38205, 38208, 38211, 38212, 38214, 38216,\n\t\t\t\t\t38220, 38222, 38237 };\n\t\t\titemDef.modelId = 50046;\n\t\t\titemDef.maleModel = 50047;\n\t\t\titemDef.femaleModel = 50047;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33042:\n\t\t\titemDef.name = \"Fletching master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 6067, 9152, 33670, 33673, 33676, 33679, 33680, 33682, 33684,\n\t\t\t\t\t33688, 33690, 33705 };\n\t\t\titemDef.modelId = 50048;\n\t\t\titemDef.maleModel = 50049;\n\t\t\titemDef.femaleModel = 50049;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33043:\n\t\t\titemDef.name = \"Herblore master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 9145, 9156, 22414, 22417, 22420, 22423, 22424, 22426, 22428,\n\t\t\t\t\t22432, 22434, 22449 };\n\t\t\titemDef.modelId = 50050;\n\t\t\titemDef.maleModel = 50051;\n\t\t\titemDef.femaleModel = 50051;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33044:\n\t\t\titemDef.name = \"Hitpoints master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 818, 951, 8291, 8294, 8297, 8300, 8301, 8303, 8305, 8309, 8311,\n\t\t\t\t\t8319 };\n\t\t\titemDef.modelId = 50052;\n\t\t\titemDef.maleModel = 50053;\n\t\t\titemDef.femaleModel = 50053;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\titemDef.femaleOffset = 4;\n\t\t\tbreak;\n\t\tcase 33045:\n\t\t\titemDef.name = \"Hunter master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 5262, 6020, 8472, 8475, 8478, 8481, 8482, 8484, 8486, 8490, 8492,\n\t\t\t\t\t8507 };\n\t\t\titemDef.modelId = 50054;\n\t\t\titemDef.maleModel = 50055;\n\t\t\titemDef.femaleModel = 50055;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33046:\n\t\t\titemDef.name = \"Magic master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 43569, 43685, 6336, 6339, 6342, 6345, 6346, 6348, 6350, 6354,\n\t\t\t\t\t6356, 6371 };\n\t\t\titemDef.modelId = 50056;\n\t\t\titemDef.maleModel = 50057;\n\t\t\titemDef.femaleModel = 50057;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33047:\n\t\t\titemDef.name = \"Mining master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 36296, 36279, 10386, 10389, 10392, 10395, 10396, 10398, 10400,\n\t\t\t\t\t10404, 10406, 10421 };\n\t\t\titemDef.modelId = 50058;\n\t\t\titemDef.maleModel = 50059;\n\t\t\titemDef.femaleModel = 50059;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33048:\n\t\t\titemDef.name = \"Prayer master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 9163, 9168, 117, 120, 123, 126, 127, 127, 127, 127, 127, 127 };\n\t\t\titemDef.modelId = 50060;\n\t\t\titemDef.maleModel = 50061;\n\t\t\titemDef.femaleModel = 50061;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33049:\n\t\t\titemDef.name = \"Range master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 3755, 3998, 15122, 15125, 15128, 15131, 15132, 15134, 15136,\n\t\t\t\t\t15140, 15142, 15157 };\n\t\t\titemDef.modelId = 50062;\n\t\t\titemDef.maleModel = 50063;\n\t\t\titemDef.femaleModel = 50063;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33050:\n\t\t\titemDef.name = \"Runecrafting master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 9152, 8128, 10318, 10321, 10324, 10327, 10328, 10330, 10332,\n\t\t\t\t\t10336, 10338, 10353 };\n\t\t\titemDef.modelId = 50064;\n\t\t\titemDef.maleModel = 50065;\n\t\t\titemDef.femaleModel = 50065;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33051:\n\t\t\titemDef.name = \"Slayer master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811 };\n\t\t\titemDef.originalModelColors = new int[] { 912, 920 };\n\t\t\titemDef.modelId = 50066;\n\t\t\titemDef.maleModel = 50067;\n\t\t\titemDef.femaleModel = 50067;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33052:\n\t\t\titemDef.name = \"Smithing master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 8115, 9148, 10386, 10389, 10392, 10395, 10396, 10398, 10400,\n\t\t\t\t\t10404, 10406, 10421 };\n\t\t\titemDef.modelId = 50068;\n\t\t\titemDef.maleModel = 50069;\n\t\t\titemDef.femaleModel = 50069;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33053:\n\t\t\titemDef.name = \"Strength master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 935, 931, 27538, 27541, 27544, 27547, 27548, 27550, 27552, 27556,\n\t\t\t\t\t27558, 27573 };\n\t\t\titemDef.modelId = 50070;\n\t\t\titemDef.maleModel = 50071;\n\t\t\titemDef.femaleModel = 50071;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33054:\n\t\t\titemDef.name = \"Thieving master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 11, 0, 58779, 58782, 58785, 58788, 58789, 57891, 58793, 58797,\n\t\t\t\t\t58799, 58814 };\n\t\t\titemDef.modelId = 50072;\n\t\t\titemDef.maleModel = 50073;\n\t\t\titemDef.femaleModel = 50073;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33055:\n\t\t\titemDef.name = \"Woodcutting master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 25109, 24088, 6693, 6696, 6699, 6702, 6703, 6705, 6707, 6711,\n\t\t\t\t\t6713, 6728 };\n\t\t\titemDef.modelId = 50074;\n\t\t\titemDef.maleModel = 50075;\n\t\t\titemDef.femaleModel = 50075;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33057:\n\t\t\titemDef.name = \"Abyssal Scythe\";\n\t\t\titemDef.description = \"\tA Scythe recieved from the Trials of Xeric CUSTOM RAID.\";\n\t\t\titemDef.modelId = 50081;\n\t\t\titemDef.maleModel = 50080;\n\t\t\titemDef.femaleModel = 50080;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.maleOffset = -12;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33090:\n\t\t\titemDef.name = \"Goliath gloves (Black)\";\n\t\t\titemDef.description = \"\tA pair of gloves earned with blood.\";\n\t\t\titemDef.modelId = 50108;\n\t\t\titemDef.maleModel = 50100;\n\t\t\titemDef.femaleModel = 50101;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 539;\n\t\t\titemDef.modelRotation2 = 40;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33091:\n\t\t\titemDef.name = \"Goliath gloves (Red)\";\n\t\t\titemDef.description = \"\tA pair of gloves earned with blood.\";\n\t\t\titemDef.modelId = 50108;\n\t\t\titemDef.maleModel = 50102;\n\t\t\titemDef.femaleModel = 50103;\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 65046, 65051, 65056 };\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 539;\n\t\t\titemDef.modelRotation2 = 40;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33092:\n\t\t\titemDef.name = \"Goliath gloves (White)\";\n\t\t\titemDef.description = \"\tA pair of gloves earned with blood.\";\n\t\t\titemDef.modelId = 50108;\n\t\t\titemDef.maleModel = 50104;\n\t\t\titemDef.femaleModel = 50105;\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 64585, 64590, 64595 };\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 539;\n\t\t\titemDef.modelRotation2 = 40;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33093:\n\t\t\titemDef.name = \"Goliath gloves (Yellow)\";\n\t\t\titemDef.description = \"\tA pair of gloves earned with blood.\";\n\t\t\titemDef.modelId = 50108;\n\t\t\titemDef.maleModel = 50106;\n\t\t\titemDef.femaleModel = 50107;\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 9767, 9772, 9777 };\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 539;\n\t\t\titemDef.modelRotation2 = 40;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 12639:\n\t\tcase 12637:\n\t\tcase 12638:\n\t\t\titemDef.description = \"Provides players with infinite run energy!\";\n\t\t\tbreak;\n\t\tcase 33056:\n\t\t\titemDef.name = \"Events cape (slayer)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 933, 0, 0, 0, 0 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33081:\n\t\t\titemDef.name = \"Events cape (agility)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 669, 43430, 43430, 43430, 43430 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33080:\n\t\t\titemDef.name = \"Events cape (attack)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 9926, 1815, 1815, 1815, 1815 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33059:\n\t\t\titemDef.name = \"Events cape (construction)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 6967, 6343, 6343, 6343, 6343 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33061:\n\t\t\titemDef.name = \"Events cape (cooking)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 1819, 49685, 49685, 49685, 49685 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33062:\n\t\t\titemDef.name = \"Events cape (crafting)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 7994, 4516, 4516, 4516, 4516 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33063:\n\t\t\titemDef.name = \"Events cape (defence)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 39367, 10472, 10472, 10472, 10472 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33064:\n\t\t\titemDef.name = \"Events cape (farming)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10698, 19734, 19734, 19734, 19734 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33065:\n\t\t\titemDef.name = \"Events cape (firemaking)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10059, 4922, 4922, 4922, 4922 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33066:\n\t\t\titemDef.name = \"Events cape (fishing)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10047, 36165, 36165, 36165, 36165 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33067:\n\t\t\titemDef.name = \"Events cape (fletching)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10047, 31500, 31500, 31500, 31500 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33068:\n\t\t\titemDef.name = \"Events cape (herblore)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10051, 20889, 20889, 20889, 20889 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33069:\n\t\t\titemDef.name = \"Events cape (hitpoints)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 1836, 8296, 8296, 8296, 8296 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33070:\n\t\t\titemDef.name = \"Events cape (hunter)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 6916, 8477, 8477, 8477, 8477 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33071:\n\t\t\titemDef.name = \"Events cape (magic)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 43556, 6339, 6339, 6339, 6339 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33072:\n\t\t\titemDef.name = \"Events cape (mining)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 34111, 10391, 10391, 10391, 10391 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33073:\n\t\t\titemDef.name = \"Events cape (prayer)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 9927, 2169, 2169, 2169, 2169 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33074:\n\t\t\titemDef.name = \"Events cape (range)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 3626, 20913, 20913, 20913, 20913 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33075:\n\t\t\titemDef.name = \"Events cape (runecrafting)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10047, 10323, 10323, 10323, 10323 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33076:\n\t\t\titemDef.name = \"Events cape (smithing)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10044, 5412, 5412, 5412, 5412 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33077:\n\t\t\titemDef.name = \"Events cape (strength)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 1819, 30487, 30487, 30487, 30487 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33078:\n\t\t\titemDef.name = \"Events cape (thieveing)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 8, 57636, 57636, 57636, 57636 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33079:\n\t\t\titemDef.name = \"Events cape (woodcutting)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 26007, 6570, 6570, 6570, 6570 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33101:\n\t\t\titemDef.name = \"Vorkath platebody\";\n\t\t\titemDef.description = \"Vorkath armour.\";\n\t\t\titemDef.modelId = 53100;\n\t\t\titemDef.maleModel = 53099;\n\t\t\titemDef.femaleModel = 53099;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33102:\n\t\t\titemDef.name = \"Vorkath platelegs\";\n\t\t\titemDef.description = \"Vorkath armour.\";\n\t\t\titemDef.modelId = 53102;\n\t\t\titemDef.maleModel = 53101;\n\t\t\titemDef.femaleModel = 53101;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33103:\n\t\t\titemDef.name = \"Vorkath boots\";\n\t\t\titemDef.description = \"Vorkath armour.\";\n\t\t\titemDef.modelId = 53104;\n\t\t\titemDef.maleModel = 53103;\n\t\t\titemDef.femaleModel = 53103;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33104:\n\t\t\titemDef.name = \"Vorkath gloves\";\n\t\t\titemDef.description = \"Vorkath armour.\";\n\t\t\titemDef.modelId = 53106;\n\t\t\titemDef.maleModel = 53105;\n\t\t\titemDef.femaleModel = 53105;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33105:\n\t\t\titemDef.name = \"Vorkath helmet\";\n\t\t\titemDef.description = \"Vorkath armour.\";\n\t\t\titemDef.modelId = 53108;\n\t\t\titemDef.maleModel = 53107;\n\t\t\titemDef.femaleModel = 53107;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33106:\n\t\t\titemDef.name = \"Tekton helmet\";\n\t\t\titemDef.description = \"Tekton armour.\";\n\t\t\titemDef.modelId = 53118;\n\t\t\titemDef.maleModel = 53117;\n\t\t\titemDef.femaleModel = 53117;\n\t\t\titemDef.modelZoom = 724;\n\t\t\titemDef.modelRotation1 = 81;\n\t\t\titemDef.modelRotation2 = 1670;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33107:\n\t\t\titemDef.name = \"Tekton platebody\";\n\t\t\titemDef.description = \"Tekton armour.\";\n\t\t\titemDef.modelId = 53110;\n\t\t\titemDef.maleModel = 53109;\n\t\t\titemDef.femaleModel = 53109;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33108:\n\t\t\titemDef.name = \"Tekton platelegs\";\n\t\t\titemDef.description = \"Tekton armour.\";\n\t\t\titemDef.modelId = 53112;\n\t\t\titemDef.maleModel = 53111;\n\t\t\titemDef.femaleModel = 53111;\n\t\t\titemDef.modelZoom = 1550;\n\t\t\titemDef.modelRotation1 = 344;\n\t\t\titemDef.modelRotation2 = 186;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 11;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33109:\n\t\t\titemDef.name = \"Tekton gloves\";\n\t\t\titemDef.description = \"Tekton armour.\";\n\t\t\titemDef.modelId = 53116;\n\t\t\titemDef.maleModel = 53115;\n\t\t\titemDef.femaleModel = 53115;\n\t\t\titemDef.modelZoom = 830;\n\t\t\titemDef.modelRotation1 = 536;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33110:\n\t\t\titemDef.name = \"Tekton boots\";\n\t\t\titemDef.description = \"Tekton armour.\";\n\t\t\titemDef.modelId = 53114;\n\t\t\titemDef.maleModel = 53113;\n\t\t\titemDef.femaleModel = 53113;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33111:\n\t\t\titemDef.name = \"Anti-santa scythe\";\n\t\t\titemDef.description = \"Legend says this is the biggest arse scratcher around.\";\n\t\t\titemDef.modelId = 57002;\n\t\t\titemDef.maleModel = 57001;\n\t\t\titemDef.femaleModel = 57001;\n\t\t\titemDef.modelZoom = 3224;\n\t\t\titemDef.modelRotation1 = 539;\n\t\t\titemDef.modelRotation2 = 714;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33112:\n\t\t\titemDef.name = \"Dominion staff\";\n\t\t\titemDef.description = \"Dominion staff.\";\n\t\t\titemDef.modelId = 59029;\n\t\t\titemDef.maleModel = 59305;\n\t\t\titemDef.femaleModel = 59305;\n\t\t\titemDef.modelZoom = 1872;\n\t\t\titemDef.modelRotation1 = 288;\n\t\t\titemDef.modelRotation2 = 1685;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33113:\n\t\t\titemDef.name = \"Dominion sword\";\n\t\t\titemDef.description = \"Dominion sword.\";\n\t\t\titemDef.modelId = 59832;\n\t\t\titemDef.maleModel = 59306;\n\t\t\titemDef.femaleModel = 59306;\n\t\t\titemDef.modelZoom = 1829;\n\t\t\titemDef.modelRotation1 = 513;\n\t\t\titemDef.modelRotation2 = 546;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33114:\n\t\t\titemDef.name = \"Dominion crossbow\";\n\t\t\titemDef.description = \"Dominion crossbow.\";\n\t\t\titemDef.modelId = 59839;\n\t\t\titemDef.maleModel = 59304;\n\t\t\titemDef.femaleModel = 59304;\n\t\t\titemDef.modelZoom = 1490;\n\t\t\titemDef.modelRotation1 = 362;\n\t\t\titemDef.modelRotation2 = 791;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33115:\n\t\t\titemDef.name = \"Dragonfire Shield (e)\";\n\t\t\titemDef.description = \"unamed shield.\";\n\t\t\titemDef.modelId = 53120;\n\t\t\titemDef.maleModel = 53119;\n\t\t\titemDef.femaleModel = 53119;\n\t\t\titemDef.modelZoom = 2022;\n\t\t\titemDef.modelRotation1 = 540;\n\t\t\titemDef.modelRotation2 = 123;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[] { null, \"Wear\", \"Inspect\", \"Empty\", \"Drop\" };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33116:\n\t\t\titemDef.name = \"Zilyana's longbow\";\n\t\t\titemDef.description = \"A bow belonged to Zilyana.\";\n\t\t\titemDef.modelId = 53122;\n\t\t\titemDef.maleModel = 53121;\n\t\t\titemDef.femaleModel = 53121;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 636;\n\t\t\titemDef.modelRotation2 = 1010;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33117:\n\t\t\titemDef.name = \"Black dragon hunter crossbow\";\n\t\t\titemDef.description = \"Black dragon hunter crossbow.\";\n\t\t\titemDef.modelId = 53124;\n\t\t\titemDef.maleModel = 53123;\n\t\t\titemDef.femaleModel = 53123;\n\t\t\titemDef.modelZoom = 1554;\n\t\t\titemDef.modelRotation1 = 636;\n\t\t\titemDef.modelRotation2 = 1010;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33118:\n\t\t\titemDef.name = \"Vorkath blowpipe\";\n\t\t\titemDef.description = \"Vorkath blowpipe.\";\n\t\t\titemDef.modelId = 53126;\n\t\t\titemDef.maleModel = 53125;\n\t\t\titemDef.femaleModel = 53125;\n\t\t\titemDef.modelZoom = 1158;\n\t\t\titemDef.modelRotation1 = 768;\n\t\t\titemDef.modelRotation2 = 189;\n\t\t\titemDef.modelOffset1 = -7;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33119:\n\t\t\titemDef.name = \"Superior twisted bow\";\n\t\t\titemDef.description = \"An upgraded twisted bow.\";\n\t\t\titemDef.modelId = 53128;\n\t\t\titemDef.maleModel = 53127;\n\t\t\titemDef.femaleModel = 53127;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 720;\n\t\t\titemDef.modelRotation2 = 1500;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\titemDef.maleOffset = -4;\n\t\t\titemDef.femaleOffset = -4;\n\t\t\tbreak;\n\t\tcase 33123:\n\t\t\titemDef.name = \"Staff of sliske\";\n\t\t\titemDef.description = \"Staff of sliske.\";\n\t\t\titemDef.modelId = 59234;\n\t\t\titemDef.maleModel = 59233;\n\t\t\titemDef.femaleModel = 59233;\n\t\t\titemDef.modelZoom = 1872;\n\t\t\titemDef.modelRotation1 = 288;\n\t\t\titemDef.modelRotation2 = 1685;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33124:\n\t\t\titemDef.name = \"Twisted crossbow\";\n\t\t\titemDef.description = \"Twisted crossbow.\";\n\t\t\titemDef.modelId = 62777;\n\t\t\titemDef.maleModel = 62776;\n\t\t\titemDef.femaleModel = 62776;\n\t\t\titemDef.modelZoom = 926;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 258;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33125:\n\t\t\titemDef.name = \"Present\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modelId = 2426;\n\t\t\titemDef.modelZoom = 1180;\n\t\t\titemDef.modelRotation1 = 160;\n\t\t\titemDef.modelRotation2 = 172;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -14;\n\t\t\titemDef.modifiedModelColors = new int[] { 22410, 2999 };\n\t\t\titemDef.originalModelColors = new int[] { 933, 24410 };\n\t\t\titemDef.description = \"Santa's stolen present\";\n\t\t\tbreak;\n\t\tcase 33126:\n\t\t\titemDef.name = \"Christmas tree branch\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modelId = 2412;\n\t\t\titemDef.modelZoom = 940;\n\t\t\titemDef.modelRotation1 = 268;\n\t\t\titemDef.modelRotation2 = 152;\n\t\t\titemDef.modelOffset1 = -8;\n\t\t\titemDef.modelOffset2 = -21;\n\t\t\titemDef.modifiedModelColors = new int[] { 11144 };\n\t\t\titemDef.originalModelColors = new int[] { 6047 };\n\t\t\titemDef.description = \"Enter examine here.\";\n\t\t\tbreak;\n\t\tcase 33127:\n\t\t\titemDef.name = \"Kbd gloves\";\n\t\t\titemDef.description = \"Kbd gloves.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 33085 };\n\t\t\titemDef.originalModelColors = new int[] { 1060 };\n\t\t\titemDef.modelId = 53106;\n\t\t\titemDef.maleModel = 53105;\n\t\t\titemDef.femaleModel = 53105;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33128:\n\t\t\titemDef.name = \"Kbd boots\";\n\t\t\titemDef.description = \"Kbd boots.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 33198, 33202, 33206, 33215, 33210 };\n\t\t\titemDef.originalModelColors = new int[] { 1060, 1061, 1063, 1064, 1065 };\n\t\t\titemDef.modelId = 53104;\n\t\t\titemDef.maleModel = 53103;\n\t\t\titemDef.femaleModel = 53103;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33129:\n\t\t\titemDef.name = \"Kbd platelegs\";\n\t\t\titemDef.description = \"Kbd platelegs.\";\n\t\t\titemDef.modelId = 59994;\n\t\t\titemDef.maleModel = 59995;\n\t\t\titemDef.femaleModel = 59995;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33130:\n\t\t\titemDef.name = \"Kbd platebody\";\n\t\t\titemDef.description = \"Kbd platebody.\";\n\t\t\titemDef.modelId = 59998;\n\t\t\titemDef.maleModel = 59999;\n\t\t\titemDef.femaleModel = 59999;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33131:\n\t\t\titemDef.name = \"Kbd helmet\";\n\t\t\titemDef.description = \"Kbd helmet.\";\n\t\t\titemDef.modelId = 59996;\n\t\t\titemDef.maleModel = 59997;\n\t\t\titemDef.femaleModel = 59997;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33132:\n\t\t\titemDef.name = \"Kbd cape\";\n\t\t\titemDef.description = \"Kbd cape.\";\n\t\t\titemDef.modelId = 59992;\n\t\t\titemDef.maleModel = 59993;\n\t\t\titemDef.femaleModel = 59993;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33133:\n\t\t\titemDef.name = \"Anti-imp pet\";\n\t\t\titemDef.description = \"Anti-imp pet.\";\n\t\t\titemDef.modelId = 45294;\n\t\t\titemDef.modelZoom = 1500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33134:\n\t\t\titemDef.name = \"Anti-santa pet\";\n\t\t\titemDef.description = \"Anti-santa pet.\";\n\t\t\titemDef.modelId = 29030;\n\t\t\titemDef.modelZoom = 653;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 1966;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33135:\n\t\t\titemDef.name = \"Bandos mask\";\n\t\t\titemDef.description = \"Bandos helmet.\";\n\t\t\titemDef.modelId = 59987;\n\t\t\titemDef.maleModel = 59991;\n\t\t\titemDef.femaleModel = 59991;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33136:\n\t\t\titemDef.name = \"Armadyl mask\";\n\t\t\titemDef.description = \"Armadyl mask.\";\n\t\t\titemDef.modelId = 59986;\n\t\t\titemDef.maleModel = 59990;\n\t\t\titemDef.femaleModel = 59990;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33137:\n\t\t\titemDef.name = \"Zamorak mask\";\n\t\t\titemDef.description = \"Zamorak mask.\";\n\t\t\titemDef.modelId = 59985;\n\t\t\titemDef.maleModel = 59989;\n\t\t\titemDef.femaleModel = 59989;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33138:\n\t\t\titemDef.name = \"Saradomin mask\";\n\t\t\titemDef.description = \"Saradomin mask.\";\n\t\t\titemDef.modelId = 59984;\n\t\t\titemDef.maleModel = 59988;\n\t\t\titemDef.femaleModel = 59988;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33139:\n\t\t\titemDef.name = \"Zamarok godbow\";\n\t\t\titemDef.description = \"Zamarok godbow.\";\n\t\t\titemDef.modelId = 60560;//60553\n\t\t\titemDef.maleModel = 60560;\n\t\t\titemDef.femaleModel = 60560;\n\t\t\titemDef.modelZoom = 2100;\n\t\t\titemDef.modelRotation1 = 720;\n\t\t\titemDef.modelRotation2 = 1500;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33140:\n\t\t\titemDef.name = \"Saradomin godbow\";\n\t\t\titemDef.description = \"Saradomin godbow.\";\n\t\t\titemDef.modelId = 60555;\n\t\t\titemDef.maleModel = 60554;\n\t\t\titemDef.femaleModel = 60554;\n\t\t\titemDef.modelZoom = 2100;\n\t\t\titemDef.modelRotation1 = 720;\n\t\t\titemDef.modelRotation2 = 1500;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33141:\n\t\t\titemDef.name = \"Bandos godbow\";\n\t\t\titemDef.description = \"Bandos godbow.\";\n\t\t\titemDef.modelId = 60559;\n\t\t\titemDef.maleModel = 60558;\n\t\t\titemDef.femaleModel = 60558;\n\t\t\titemDef.modelZoom = 2100;\n\t\t\titemDef.modelRotation1 = 720;\n\t\t\titemDef.modelRotation2 = 1500;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33142:\n\t\t\titemDef.name = \"Fire cape (purple)\";\n\t\t\titemDef.description = \"Fire cape (purple).\";\n\t\t\titemDef.modelId = 9631;\n\t\t\titemDef.maleModel = 9638;\n\t\t\titemDef.femaleModel = 9640;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33148:\n\t\t\titemDef.name = \"Fire cape (cyan)\";\n\t\t\titemDef.description = \"Fire cape (cyan).\";\n\t\t\titemDef.modelId = 9631;\n\t\t\titemDef.maleModel = 9638;\n\t\t\titemDef.femaleModel = 9640;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33144:\n\t\t\titemDef.name = \"Fire cape (green)\";\n\t\t\titemDef.description = \"Fire cape (green).\";\n\t\t\titemDef.modelId = 9631;\n\t\t\titemDef.maleModel = 9638;\n\t\t\titemDef.femaleModel = 9640;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33145:\n\t\t\titemDef.name = \"Fire cape (red)\";\n\t\t\titemDef.description = \"Fire cape (red).\";\n\t\t\titemDef.modelId = 9631;\n\t\t\titemDef.maleModel = 9638;\n\t\t\titemDef.femaleModel = 9640;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33143:\n\t\t\titemDef.name = \"Infernal cape (blue)\";\n\t\t\titemDef.description = \"Infernal cape (blue).\";\n\t\t\titemDef.modifiedModelColors = new int[] { 5056, 5066, 924, 3005 };\n\t\t\titemDef.originalModelColors = new int[] { 39851, 39851, 39851, 39851 };\n\t\t\titemDef.modelId = 33144;\n\t\t\titemDef.maleModel = 33103;\n\t\t\titemDef.femaleModel = 33111;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33146:\n\t\t\titemDef.name = \"Infernal cape (green)\";\n\t\t\titemDef.description = \"Infernal cape (green).\";\n\t\t\titemDef.modifiedModelColors = new int[] { 5056, 5066, 924, 3005 };\n\t\t\titemDef.originalModelColors = new int[] { 21167, 21167, 21167, 21167 };\n\t\t\titemDef.modelId = 33144;\n\t\t\titemDef.maleModel = 33103;\n\t\t\titemDef.femaleModel = 33111;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33147:\n\t\t\titemDef.name = \"Infernal cape (purple)\";\n\t\t\titemDef.description = \"Infernal cape (purple).\";\n\t\t\titemDef.modifiedModelColors = new int[] { 5056, 5066, 924, 3005 };\n\t\t\titemDef.originalModelColors = new int[] { 53160, 53160, 53160, 53160 };\n\t\t\titemDef.modelId = 33144;\n\t\t\titemDef.maleModel = 33103;\n\t\t\titemDef.femaleModel = 33111;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33150:\n\t\t\titemDef.name = \"Infernal key piece 1\";\n\t\t\titemDef.description = \"Infernal key piece 1.\";\n\t\t\titemDef.modelId = 61001;\n\t\t\titemDef.modelZoom = 1200;\n\t\t\titemDef.modelRotation1 = 534;\n\t\t\titemDef.modelRotation2 = 222;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Combine\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33151:\n\t\t\titemDef.name = \"Infernal key piece 2\";\n\t\t\titemDef.description = \"Infernal key piece 2.\";\n\t\t\titemDef.modelId = 61002;\n\t\t\titemDef.modelZoom = 1200;\n\t\t\titemDef.modelRotation1 = 534;\n\t\t\titemDef.modelRotation2 = 222;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Combine\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33152:\n\t\t\titemDef.name = \"Infernal key piece 3\";\n\t\t\titemDef.description = \"Infernal key piece 3.\";\n\t\t\titemDef.modelId = 61003;\n\t\t\titemDef.modelZoom = 1200;\n\t\t\titemDef.modelRotation1 = 534;\n\t\t\titemDef.modelRotation2 = 222;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Combine\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33153:\n\t\t\titemDef.name = \"Infernal key\";\n\t\t\titemDef.description = \"Infernal key.\";\n\t\t\titemDef.modelId = 61111;\n\t\t\titemDef.modelZoom = 1200;\n\t\t\titemDef.modelRotation1 = 534;\n\t\t\titemDef.modelRotation2 = 222;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\t\t//DOPES ITEMS NIGGAHAHAHAHAHAHAH\n\t\tcase 2749:\n\t\t\titemDef.name = \"Bloody Axe\";\n\t\t\titemDef.description = \"Look at all that blood!\";\n\t\t\titemDef.modelId = 65495;\n\t\t\titemDef.femaleModel = 65495;\n\t\t\titemDef.maleModel = 65495;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 2750:\n\t\t\titemDef.name = \"Bloody Axe Offhand\";\n\t\t\titemDef.description = \"Look at all that blood!\";\n\t\t\titemDef.modelId = 65496;\n\t\t\titemDef.femaleModel = 65496;\n\t\t\titemDef.maleModel = 65496;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33154:\n\t\t\titemDef.name = \"Infernal mystery box\";\n\t\t\titemDef.description = \"Infernal mystery box.\";\n\t\t\titemDef.modelId = 61110;\n\t\t\titemDef.modelZoom = 1180;\n\t\t\titemDef.modelRotation1 = 160;\n\t\t\titemDef.modelRotation2 = 172;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -14;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Open\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33155:\n\t\t\titemDef.name = \"Ethereal sword (red)\";\n\t\t\titemDef.description = \"Ethereal sword (red).\";\n\t\t\titemDef.modelId = 61005;\n\t\t\titemDef.maleModel = 61004;\n\t\t\titemDef.femaleModel = 61004;\n\t\t\titemDef.modelZoom = 1645;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33156:\n\t\t\titemDef.name = \"Ethereal sword (blue)\";\n\t\t\titemDef.description = \"Ethereal sword (blue).\";\n\t\t\titemDef.modelId = 61006;\n\t\t\titemDef.maleModel = 61007;\n\t\t\titemDef.femaleModel = 61007;\n\t\t\titemDef.modelZoom = 1645;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33157:\n\t\t\titemDef.name = \"Ethereal sword (green)\";\n\t\t\titemDef.description = \"Ethereal sword (green).\";\n\t\t\titemDef.modelId = 61008;\n\t\t\titemDef.maleModel = 61009;\n\t\t\titemDef.femaleModel = 61009;\n\t\t\titemDef.modelZoom = 1645;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33158:\n\t\t\titemDef.name = \"Dagon' hai top\";\n\t\t\titemDef.description = \"An elite dark mages robes.\";\n\t\t\titemDef.modelId = 60317;\n\t\t\titemDef.maleModel = 43614;\n\t\t\titemDef.femaleModel = 43689;\n\t\t\titemDef.anInt188 = 44594;\n\t\t\titemDef.anInt164 = 43681;\n\t\t\titemDef.modelZoom = 1697;\n\t\t\titemDef.modelRotation1 = 536;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 7;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33159:\n\t\t\titemDef.name = \"Dagon' hai hat\";\n\t\t\titemDef.description = \"An elite dark mages hat.\";\n\t\t\titemDef.modelId = 60319;\n\t\t\titemDef.maleModel = 60318;\n\t\t\titemDef.femaleModel = 60318;\n\t\t\titemDef.anInt188 = -1;\n\t\t\titemDef.anInt164 = -1;\n\t\t\titemDef.modelZoom = 1373;\n\t\t\titemDef.modelRotation1 = 98;\n\t\t\titemDef.modelRotation2 = 1988;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33160:\n\t\t\titemDef.name = \"Dagon' hai robe\";\n\t\t\titemDef.description = \"An elite dark mages robe.\";\n\t\t\titemDef.modelId = 60321;\n\t\t\titemDef.maleModel = 60320;\n\t\t\titemDef.femaleModel = 60320;\n\t\t\titemDef.anInt188 = -1;\n\t\t\titemDef.anInt164 = -1;\n\t\t\titemDef.modelZoom = 2216;\n\t\t\titemDef.modelRotation1 = 572;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 14;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33161:\n\t\t\titemDef.name = \"Blue infernal cape mix\";\n\t\t\titemDef.description = \"Changes the color of the Infernal Cape to Blue.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33162:\n\t\t\titemDef.name = \"Green infernal cape mix\";\n\t\t\titemDef.description = \"Changes the color of the Infernal Cape to Green.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33163:\n\t\t\titemDef.name = \"Purple infernal cape mix\";\n\t\t\titemDef.description = \"Changes the color of the Infernal Cape to Purple.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33164:\n\t\t\titemDef.name = \"Purple firecape mix\";\n\t\t\titemDef.description = \"Changes the color of the firecape to purple.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33165:\n\t\t\titemDef.name = \"Cyan firecape mix\";\n\t\t\titemDef.description = \"Changes the color of the firecape to cyan.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33166:\n\t\t\titemDef.name = \"Green firecape mix\";\n\t\t\titemDef.description = \"Changes the color of the firecape to green.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33167:\n\t\t\titemDef.name = \"Red firecape mix\";\n\t\t\titemDef.description = \"Changes the color of the firecape to red.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33169:\n\t\t\titemDef.name = \"K'ril robe top\";\n\t\t\titemDef.description = \"A top worn by magic-using followers of Zamorak.\";\n\t\t\titemDef.modelId = 62558;\n\t\t\titemDef.maleModel = 62559;\n\t\t\titemDef.femaleModel = 62559;\n\t\t\titemDef.modelZoom = 1358;\n\t\t\titemDef.modelRotation1 = 514;\n\t\t\titemDef.modelRotation2 = 2041;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33170:\n\t\t\titemDef.name = \"K'ril robe bottom\";\n\t\t\titemDef.description = \"A robe worn by magic-using followers of Zamorak.\";\n\t\t\titemDef.modelId = 62553;\n\t\t\titemDef.maleModel = 62554;\n\t\t\titemDef.femaleModel = 62554;\n\t\t\titemDef.modelZoom = 1690;\n\t\t\titemDef.modelRotation1 = 435;\n\t\t\titemDef.modelRotation2 = 9;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 7;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33171:\n\t\t\titemDef.name = \"K'ril hat\";\n\t\t\titemDef.description = \"A hat worn by magic-using followers of Zamorak.\";\n\t\t\titemDef.modelId = 62551;\n\t\t\titemDef.maleModel = 62552;\n\t\t\titemDef.femaleModel = 62552;\n\t\t\titemDef.modelZoom = 1236;\n\t\t\titemDef.modelRotation1 = 118;\n\t\t\titemDef.modelRotation2 = 10;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -12;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33172:\n\t\t\titemDef.name = \"K'ril swords\";\n\t\t\titemDef.description = \"Sheath & Unsheath this sword in the Equipment tab. Hits an enemy twice.\";\n\t\t\titemDef.equipActions[2] = \"Sheath\";\n\t\t\titemDef.modelId = 62556;\n\t\t\titemDef.maleModel = 62557;\n\t\t\titemDef.femaleModel = 62557;\n\t\t\titemDef.modelZoom = 1650;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 1300;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33173:\n\t\t\titemDef.name = \"K'ril swords (sheathed)\";\n\t\t\titemDef.description = \"Sheath & Unsheath this sword in the Equipment tab. Hits an enemy twice.\";\n\t\t\titemDef.equipActions[2] = \"Unsheath\";\n\t\t\titemDef.modelId = 62556;\n\t\t\titemDef.maleModel = 62556;\n\t\t\titemDef.femaleModel = 62556;\n\t\t\titemDef.modelZoom = 1650;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 1300;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33174:\n\t\t\titemDef.name = \"Pet demonic gorilla\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 31241;\n\t\t\titemDef.modelZoom = 16000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33175:\n\t\t\titemDef.name = \"Pet crawling hand\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5071;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33176:\n\t\t\titemDef.name = \"Pet cave bug\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 23854;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33177:\n\t\t\titemDef.name = \"Pet cave crawler\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5066;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33178:\n\t\t\titemDef.name = \"Pet banshee\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5063;\n\t\t\titemDef.modelZoom = 3200;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33179:\n\t\t\titemDef.name = \"Pet cave slime\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5786;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33180:\n\t\t\titemDef.name = \"Pet rockslug\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5084;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33181:\n\t\t\titemDef.name = \"Pet cockatrice\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5070;\n\t\t\titemDef.modelZoom = 3200;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33182:\n\t\t\titemDef.name = \"Pet pyrefiend\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5083;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33183:\n\t\t\titemDef.name = \"Pet basilisk\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5064;\n\t\t\titemDef.modelZoom = 3000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33184:\n\t\t\titemDef.name = \"Pet infernal mage\";\n\t\t\titemDef.modifiedModelColors = new int[] { -26527, -24618, -25152, -25491, 119 };\n\t\t\titemDef.originalModelColors = new int[] { 924, 148, 0, 924, 924 };\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5047;\n\t\t\titemDef.modelZoom = 3940;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 84;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33185:\n\t\t\titemDef.name = \"Pet bloodveld\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5065;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33186:\n\t\t\titemDef.name = \"Pet jelly\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5081;\n\t\t\titemDef.modelZoom = 3000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33187:\n\t\t\titemDef.name = \"Pet turoth\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5086;\n\t\t\titemDef.modelZoom = 2600;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33188:\n\t\t\titemDef.name = \"Pet aberrant spectre\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5085;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 450;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33189:\n\t\t\titemDef.name = \"Pet dust devil\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5076;\n\t\t\titemDef.modelZoom = 3000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33190:\n\t\t\titemDef.name = \"Pet kurask\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5082;\n\t\t\titemDef.modelZoom = 5000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33191:\n\t\t\titemDef.name = \"Pet skeletal wyvern\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 10350;\n\t\t\titemDef.modelZoom = 1104;\n\t\t\titemDef.modelRotation1 = 27;\n\t\t\titemDef.modelRotation2 = 1634;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33192:\n\t\t\titemDef.name = \"Pet garygoyle\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5078;\n\t\t\titemDef.modelZoom = 4000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33193:\n\t\t\titemDef.name = \"Pet nechryael\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5074;\n\t\t\titemDef.modelZoom = 4000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33194:\n\t\t\titemDef.name = \"Pet abyssal demon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5062;\n\t\t\titemDef.modelZoom = 5000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33195:\n\t\t\titemDef.name = \"Pet dark beast\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 26395;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33196:\n\t\t\titemDef.name = \"Pet night beast\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32933;\n\t\t\titemDef.modelZoom = 7000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33197:\n\t\t\titemDef.name = \"Pet greater abyssal demon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32921;\n\t\t\titemDef.modelZoom = 5000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33198:\n\t\t\titemDef.name = \"Pet crushing hand\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32922;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33199:\n\t\t\titemDef.name = \"Pet chasm crawler\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32918;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33200:\n\t\t\titemDef.name = \"Pet screaming banshee\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32823;\n\t\t\titemDef.modelZoom = 5500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33201:\n\t\t\titemDef.name = \"Pet twisted banshee\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32847;\n\t\t\titemDef.modelZoom = 5500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33202:\n\t\t\titemDef.name = \"Pet giant rockslug\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32919;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33203:\n\t\t\titemDef.name = \"Pet cockathrice\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32920;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33204:\n\t\t\titemDef.name = \"Pet flaming pyrelord\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32923;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33205:\n\t\t\titemDef.name = \"Pet monstrous basilisk\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32924;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33206:\n\t\t\titemDef.name = \"Pet malevolent mage\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32929;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33207:\n\t\t\titemDef.name = \"Pet insatiable bloodveld\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32926;\n\t\t\titemDef.modelZoom = 5000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33208:\n\t\t\titemDef.name = \"Pet insatiable mutated bloodveld\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32925;\n\t\t\titemDef.modelZoom = 5000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33209:\n\t\t\titemDef.name = \"Pet vitreous jelly\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32852;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33210:\n\t\t\titemDef.name = \"Pet vitreous warped jelly\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32917;\n\t\t\titemDef.modelZoom = 6000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33211:\n\t\t\titemDef.name = \"Pet cave abomination\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32935;\n\t\t\titemDef.modelZoom = 5500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33212:\n\t\t\titemDef.name = \"Pet abhorrent spectre\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32930;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33213:\n\t\t\titemDef.name = \"pet repugnant spectre\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32926;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33214:\n\t\t\titemDef.name = \"Pet choke devil\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32927;\n\t\t\titemDef.modelZoom = 6000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33215:\n\t\t\titemDef.name = \"Pet king kurask\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32934;\n\t\t\titemDef.modelZoom = 8000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33217:\n\t\t\titemDef.name = \"Pet nuclear smoke devil\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32928;\n\t\t\titemDef.modelZoom = 5500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33218:\n\t\t\titemDef.name = \"Pet marble gargoyle\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34251;\n\t\t\titemDef.modelZoom = 8000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33219:\n\t\t\titemDef.name = \"Pet nechryarch\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32932;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33220:\n\t\t\titemDef.name = \"Pet Patrity\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32035;\n\t\t\titemDef.modelZoom = 653;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1535;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33221:\n\t\t\titemDef.name = \"Pet xarpus\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35383;\n\t\t\titemDef.modelZoom = 14000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33222:\n\t\t\titemDef.name = \"Pet nyclocas vasilias\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35182;\n\t\t\titemDef.modelZoom = 12000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33223:\n\t\t\titemDef.name = \"Pet pestilent bloat\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35404;\n\t\t\titemDef.modelZoom = 8500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33224:\n\t\t\titemDef.name = \"Pet maiden of sugadinti\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35385;\n\t\t\titemDef.modelZoom = 8500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33225:\n\t\t\titemDef.name = \"Pet lizardman shaman\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 4039;\n\t\t\titemDef.modelZoom = 8500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33226:\n\t\t\titemDef.name = \"Pet abyssal sire\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 29477;\n\t\t\titemDef.modelZoom = 9000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33227:\n\t\t\titemDef.name = \"Pet black demon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 31984;\n\t\t\titemDef.modelZoom = 1104;\n\t\t\titemDef.modelRotation1 = 144;\n\t\t\titemDef.modelRotation2 = 1826;\n\t\t\titemDef.modelOffset1 = 7;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 11802:\n\t\tcase 11804:\n\t\tcase 11806:\n\t\tcase 11808:\n\t\t\titemDef.equipActions[2] = \"Sheath\";\n\t\t\tbreak;// godsword sheathing operating\n\n\t\tcase 33228:\n\t\t\titemDef.name = \"Pet greater demon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32015;\n\t\t\titemDef.modelZoom = 902;\n\t\t\titemDef.modelRotation1 = 216;\n\t\t\titemDef.modelRotation2 = 138;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = -16;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33229:\n\t\t\titemDef.name = \"Armadyl godsword (sheathed)\";\n\t\t\titemDef.description = \"Armadyl godsword (sheathed)\";\n\t\t\titemDef.equipActions[2] = \"Unsheath\";\n\t\t\titemDef.modelId = 28075;\n\t\t\titemDef.maleModel = 62683;\n\t\t\titemDef.femaleModel = 62683;\n\t\t\titemDef.modelZoom = 1957;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 494;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33230:\n\t\t\titemDef.name = \"Bandos godsword (sheathed)\";\n\t\t\titemDef.description = \"Bandos godsword (sheathed)\";\n\t\t\titemDef.equipActions[2] = \"Unsheath\";\n\t\t\titemDef.modelId = 28059;\n\t\t\titemDef.maleModel = 62684;\n\t\t\titemDef.femaleModel = 62684;\n\t\t\titemDef.modelZoom = 1957;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 494;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33231:\n\t\t\titemDef.name = \"Saradomin godsword (sheathed)\";\n\t\t\titemDef.description = \"Saradomin godsword (sheathed)\";\n\t\t\titemDef.equipActions[2] = \"Unsheath\";\n\t\t\titemDef.modelId = 28070;\n\t\t\titemDef.maleModel = 62685;\n\t\t\titemDef.femaleModel = 62685;\n\t\t\titemDef.modelZoom = 1957;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 494;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33232:\n\t\t\titemDef.name = \"Zamorak godsword (sheathed)\";\n\t\t\titemDef.description = \"Zamorak godsword (sheathed)\";\n\t\t\titemDef.equipActions[2] = \"Unsheath\";\n\t\t\titemDef.modelId = 28060;\n\t\t\titemDef.maleModel = 62686;\n\t\t\titemDef.femaleModel = 62686;\n\t\t\titemDef.modelZoom = 1957;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 494;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33233:\n\t\t\titemDef.name = \"Pet revenant imp\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34156;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33234:\n\t\t\titemDef.name = \"Pet revenant goblin\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34262;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33235:\n\t\t\titemDef.name = \"Pet revenant pyrefiend\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34142;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33236:\n\t\t\titemDef.name = \"Pet revenant hobgoblin\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34157;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33237:\n\t\t\titemDef.name = \"Pet revenant cyclops\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34155;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33238:\n\t\t\titemDef.name = \"Pet revenant hellhound\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34143;\n\t\t\titemDef.modelZoom = 3500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33239:\n\t\t\titemDef.name = \"Pet revenant demon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32015;\n\t\t\titemDef.modifiedModelColors = new int[] { 1690, 910, 912, 1814, 1938 };\n\t\t\titemDef.originalModelColors = new int[] { 43078, 43078, 43078, 43078, 43078, 43078 };\n\t\t\titemDef.modelZoom = 902;\n\t\t\titemDef.modelRotation1 = 216;\n\t\t\titemDef.modelRotation2 = 138;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = -16;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33240:\n\t\t\titemDef.name = \"Pet revenant ork\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34154;\n\t\t\titemDef.modelZoom = 3500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33242:\n\t\t\titemDef.name = \"Pet revenant dark beast\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34158;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33243:\n\t\t\titemDef.name = \"Pet revenant knight\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34145;\n\t\t\titemDef.modelZoom = 3000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33244:\n\t\t\titemDef.name = \"Pet revenant dragon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34163;\n\t\t\titemDef.modelZoom = 7500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33245:\n\t\t\titemDef.name = \"Pet glob\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 26074;\n\t\t\titemDef.modelZoom = 10000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33246:\n\t\t\titemDef.name = \"Pet ice queen\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 104;\n\t\t\titemDef.modifiedModelColors = new int[] { 41, 61, 4550, 12224, 25238, 6798 };\n\t\t\titemDef.originalModelColors = new int[] { -22052, -26150, -24343, -22052, -22052, -23327 };\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33247:\n\t\t\titemDef.name = \"Pet enraged tarn\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60322;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33248:\n\t\t\titemDef.name = \"Pet jaltok-jad\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 33012;\n\t\t\titemDef.modelZoom = 12000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33249:\n\t\t\titemDef.name = \"Pet rune dragon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34668;\n\t\t\titemDef.modelZoom = 2541;\n\t\t\titemDef.modelRotation1 = 83;\n\t\t\titemDef.modelRotation2 = 1826;\n\t\t\titemDef.modelOffset1 = -97;\n\t\t\titemDef.modelOffset2 = 9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33271:\n\t\t\titemDef.name = \"Moo\";\n\t\t\titemDef.description = \"cow goes moo.\";\n\t\t\titemDef.modelId = 23889;\n\t\t\titemDef.modelZoom = 2541;\n\t\t\titemDef.modelRotation1 = 83;\n\t\t\titemDef.modelRotation2 = 1826;\n\t\t\titemDef.modelOffset1 = -97;\n\t\t\titemDef.modelOffset2 = 9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33250:\n\t\t\titemDef.name = \"Swift gloves (Black)\";\n\t\t\titemDef.description = \"Watch my speedy hands!\";\n\t\t\titemDef.modelId = 62655;\n\t\t\titemDef.maleModel = 62657;\n\t\t\titemDef.femaleModel = 62658;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33251:\n\t\t\titemDef.name = \"Swift gloves (Red)\";\n\t\t\titemDef.description = \"Watch my speedy hands!\";\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 65046, 65051, 65056 };\n\t\t\titemDef.modelId = 62655;\n\t\t\titemDef.maleModel = 62659;\n\t\t\titemDef.femaleModel = 62660;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33252:\n\t\t\titemDef.name = \"Swift gloves (White)\";\n\t\t\titemDef.description = \"Watch my speedy hands!\";\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 64585, 64590, 64595 };\n\t\t\titemDef.modelId = 62655;\n\t\t\titemDef.maleModel = 62661;\n\t\t\titemDef.femaleModel = 62662;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33253:\n\t\t\titemDef.name = \"Swift gloves (Yellow)\";\n\t\t\titemDef.description = \"Watch my speedy hands!\";\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 9767, 9772, 9777 };\n\t\t\titemDef.modelId = 62655;\n\t\t\titemDef.maleModel = 62663;\n\t\t\titemDef.femaleModel = 62664;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33254:\n\t\t\titemDef.name = \"Spellcaster gloves (Black)\";\n\t\t\titemDef.description = \"\tSome pretty fantastical gloves.\";\n\t\t\titemDef.modelId = 62656;\n\t\t\titemDef.maleModel = 62665;\n\t\t\titemDef.femaleModel = 62666;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33255:\n\t\t\titemDef.name = \"Spellcaster gloves (Red)\";\n\t\t\titemDef.description = \"\tSome pretty fantastical gloves.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 65046, 65051, 65056 };\n\t\t\titemDef.modelId = 62656;\n\t\t\titemDef.maleModel = 62667;\n\t\t\titemDef.femaleModel = 62668;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33256:\n\t\t\titemDef.name = \"Spellcaster gloves (White)\";\n\t\t\titemDef.description = \"\tSome pretty fantastical gloves.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 64585, 64590, 64595 };\n\t\t\titemDef.modelId = 62656;\n\t\t\titemDef.maleModel = 62669;\n\t\t\titemDef.femaleModel = 62670;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33257:\n\t\t\titemDef.name = \"Spellcaster gloves (Yellow)\";\n\t\t\titemDef.description = \"\tSome pretty fantastical gloves.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 9767, 9772, 9777 };\n\t\t\titemDef.modelId = 62656;\n\t\t\titemDef.maleModel = 62671;\n\t\t\titemDef.femaleModel = 62672;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33258:\n\t\t\titemDef.name = \"Tekton longsword\";\n\t\t\titemDef.description = \"Tekton longsword.\";\n\t\t\titemDef.modelId = 62682;\n\t\t\titemDef.maleModel = 62681;\n\t\t\titemDef.femaleModel = 62681;\n\t\t\titemDef.modelZoom = 1445;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33259:\n\t\t\titemDef.name = \"Pet wyrm\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 36922;\n\t\t\titemDef.modelZoom = 2547;\n\t\t\titemDef.modelRotation1 = 97;\n\t\t\titemDef.modelRotation2 = 1820;\n\t\t\titemDef.modelOffset1 = -7;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33260:\n\t\t\titemDef.name = \"Pet drake\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 36160;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33261:\n\t\t\titemDef.name = \"Pet wyrm\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 36922;\n\t\t\titemDef.modelZoom = 2547;\n\t\t\titemDef.modelRotation1 = 97;\n\t\t\titemDef.modelRotation2 = 1820;\n\t\t\titemDef.modelOffset1 = -7;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33262:\n\t\t\titemDef.name = \"Valentines Balloon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 62766;\n\t\t\titemDef.maleModel = 62767;\n\t\t\titemDef.femaleModel = 62767;\n\t\t\titemDef.modelZoom = 2200;\n\t\t\titemDef.modelRotation1 = 270;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33263:\n\t\t\titemDef.name = \"Cupid bow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 62768;\n\t\t\titemDef.maleModel = 62769;\n\t\t\titemDef.femaleModel = 62769;\n\t\t\titemDef.modelZoom = 1072;\n\t\t\titemDef.modelRotation1 = 127;\n\t\t\titemDef.modelRotation2 = 103;\n\t\t\titemDef.modelOffset1 = -5;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33264:\n\t\t\titemDef.name = \"Halo and horns\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 62771;\n\t\t\titemDef.maleModel = 62770;\n\t\t\titemDef.femaleModel = 62770;\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation1 = 228;\n\t\t\titemDef.modelRotation2 = 141;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33265:\n\t\t\titemDef.name = \"Heart\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 62782;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33266:\n\t\t\titemDef.name = \"Valentines mystery box\";\n\t\t\titemDef.description = \"You make me hard.\";\n\t\t\titemDef.modelId = 62773;\n\t\t\titemDef.modelZoom = 464;\n\t\t\titemDef.modelRotation1 = 423;\n\t\t\titemDef.modelRotation2 = 1928;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Open\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33267:\n\t\t\titemDef.name = \"Staff of adoration\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 62774;\n\t\t\titemDef.maleModel = 62775;\n\t\t\titemDef.femaleModel = 62775;\n\t\t\titemDef.modelZoom = 1579;\n\t\t\titemDef.modelRotation1 = 660;\n\t\t\titemDef.modelRotation2 = 48;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33268:\n\t\t\titemDef.name = \"Valentines crossbow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 62778;\n\t\t\titemDef.maleModel = 62779;\n\t\t\titemDef.femaleModel = 62779;\n\t\t\titemDef.modelZoom = 1200;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 258;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33269:\n\t\t\titemDef.name = \"Onyxia Mystery Box\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 2426;\n\t\t\titemDef.modelZoom = 1180;\n\t\t\titemDef.modelRotation1 = 160;\n\t\t\titemDef.modelRotation2 = 172;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -14;\n\t\t\titemDef.modifiedModelColors = new int[] { 22410, 2999 };\n\t\t\titemDef.originalModelColors = new int[] { 2130, 38693 };\n\t\t\titemDef.description = \"Chances at several unqiue items found only in this box! (ex: Tekton Armor)\";\n\t\t\tbreak;\n\t\tcase 33270:\n\t\t\titemDef.name = \"Dragon Hunter Box\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 2426;\n\t\t\titemDef.modelZoom = 1180;\n\t\t\titemDef.modelRotation1 = 160;\n\t\t\titemDef.modelRotation2 = 172;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -14;\n\t\t\titemDef.modifiedModelColors = new int[] { 22410, 2999 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 1050 };\n\t\t\titemDef.description = \"Chances for items that give bonuses toward dragons. (ex: Dragonhunter Lance)\";\n\t\t\tbreak;\n\t\tcase 33273:\n\t\t\titemDef.name = \"Ancient sword\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60201;\n\t\t\titemDef.maleModel = 60200;\n\t\t\titemDef.femaleModel = 60200;\n\t\t\titemDef.modelZoom = 1900;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33274:\n\t\t\titemDef.name = \"Armadyl staff\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60203;\n\t\t\titemDef.maleModel = 60202;\n\t\t\titemDef.femaleModel = 60202;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33275:\n\t\t\titemDef.name = \"Bork axe\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60205;\n\t\t\titemDef.maleModel = 60204;\n\t\t\titemDef.femaleModel = 60204;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33276:\n\t\t\titemDef.name = \"Bree bow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60207;\n\t\t\titemDef.maleModel = 60206;\n\t\t\titemDef.femaleModel = 60206;\n\t\t\titemDef.modelZoom = 1700;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33277:\n\t\t\titemDef.name = \"Infernal staff\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60209;\n\t\t\titemDef.maleModel = 60208;\n\t\t\titemDef.femaleModel = 60208;\n\t\t\titemDef.modelZoom = 2200;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33278:\n\t\t\titemDef.name = \"Infernal longsword\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60211;\n\t\t\titemDef.maleModel = 60210;\n\t\t\titemDef.femaleModel = 60210;\n\t\t\titemDef.modelZoom = 1900;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33279:\n\t\t\titemDef.name = \"Necrolord staff\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60213;\n\t\t\titemDef.maleModel = 60212;\n\t\t\titemDef.femaleModel = 60212;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33280:\n\t\t\titemDef.name = \"Insert name here\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60215;\n\t\t\titemDef.maleModel = 60214;\n\t\t\titemDef.femaleModel = 60214;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33281:\n\t\t\titemDef.name = \"Infernal bow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60219;\n\t\t\titemDef.maleModel = 60218;\n\t\t\titemDef.femaleModel = 60218;\n\t\t\titemDef.modelZoom = 3334;\n\t\t\titemDef.modelRotation1 = 533;\n\t\t\titemDef.modelRotation2 = 1294;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33282:\n\t\t\titemDef.name = \"Infernal warhammer\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60221;\n\t\t\titemDef.maleModel = 60220;\n\t\t\titemDef.femaleModel = 60220;\n\t\t\titemDef.modelZoom = 2512;\n\t\t\titemDef.modelRotation1 = 317;\n\t\t\titemDef.modelRotation2 = 1988;\n\t\t\titemDef.modelOffset1 = -8;\n\t\t\titemDef.modelOffset2 = 45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33283:\n\t\t\titemDef.name = \"Imbued Porazdir's heart\";\n\t\t\titemDef.modelId = 32298;\n\t\t\titemDef.modelZoom = 1168;\n\t\t\titemDef.modelRotation1 = 96;\n\t\t\titemDef.modelRotation2 = 1690;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 60826, 59796, 54544, 58904, 54561 };\n\t\t\titemDef.originalModelColors = new int[] { 13263, 13014, 13243, 13000, 13275 };\n\t\t\titemDef.inventoryOptions = new String[] { \"Invigorate\", null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Boosts your strength for a period of time.\";\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33284:\n\t\t\titemDef.name = \"Imbued Justiciar's heart\";\n\t\t\titemDef.modelId = 32298;\n\t\t\titemDef.modelZoom = 1168;\n\t\t\titemDef.modelRotation1 = 96;\n\t\t\titemDef.modelRotation2 = 1690;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 60826, 59796, 54544, 58904, 54561 };\n\t\t\titemDef.originalModelColors = new int[] { 31661, 31418, 31661, 31167, 31445 };\n\t\t\titemDef.inventoryOptions = new String[] { \"Invigorate\", null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Boosts your Defence for a period of time.\";\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32285:\n\t\t\titemDef.name = \"Imbued Derwen's heart\";\n\t\t\titemDef.modelId = 32298;\n\t\t\titemDef.modelZoom = 1168;\n\t\t\titemDef.modelRotation1 = 96;\n\t\t\titemDef.modelRotation2 = 1690;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 60826, 59796, 54544, 58904, 54561 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 930, 936, 940, 950 };\n\t\t\titemDef.inventoryOptions = new String[] { \"Invigorate\", null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Boosts your Attack for a period of time.\";\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32286:\n\t\t\titemDef.name = \"Bronze fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 5652, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32287:\n\t\t\titemDef.name = \"Iron fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 33, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32288:\n\t\t\titemDef.name = \"Steel fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 61, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32289:\n\t\t\titemDef.name = \"Black fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 0, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32290:\n\t\t\titemDef.name = \"Mithril fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 43297, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32291:\n\t\t\titemDef.name = \"Adamant fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 21662, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32292:\n\t\t\titemDef.name = \"Rune fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 36133, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32293:\n\t\t\titemDef.name = \"Dragon fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing. Can also be used for Deep sea fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 924, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32294:\n\t\t\titemDef.name = \"Raw eel\";\n\t\t\titemDef.description = \"Slimy\";\n\t\t\titemDef.modelId = 6856;\n\t\t\titemDef.modelZoom = 1440;\n\t\t\titemDef.modelRotation1 = 296;\n\t\t\titemDef.modelRotation2 = 352;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = 42;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32295:\n\t\t\titemDef.name = \"Burnt eel\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 6856;\n\t\t\titemDef.modelZoom = 1440;\n\t\t\titemDef.modelRotation1 = 296;\n\t\t\titemDef.modelRotation2 = 352;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = 42;\n\t\t\titemDef.modifiedModelColors = new int[] { 8485, 14622, 12589 };\n\t\t\titemDef.originalModelColors = new int[] { 8724, 3226, 9754 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32296:\n\t\t\titemDef.name = \"Eel\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Eat\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 6856;\n\t\t\titemDef.modelZoom = 1440;\n\t\t\titemDef.modelRotation1 = 296;\n\t\t\titemDef.modelRotation2 = 352;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = 42;\n\t\t\titemDef.modifiedModelColors = new int[] { 8485, 14622, 8386, 12589 };\n\t\t\titemDef.originalModelColors = new int[] { 8088, 6032, 57, 2960 };\n\t\t\titemDef.description = \"None\";\n\t\t\tbreak;\n\n\t\tcase 32297:\n\t\t\titemDef.name = \"Raw baron shark\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 2594;\n\t\t\titemDef.modelZoom = 1860;\n\t\t\titemDef.modelRotation1 = 344;\n\t\t\titemDef.modelRotation2 = 12;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 12;\n\t\t\titemDef.modifiedModelColors = new int[] { 103, 103 };\n\t\t\titemDef.originalModelColors = new int[] { 7756, 5349 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32298:\n\t\t\titemDef.name = \"Burnt baron shark\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 2594;\n\t\t\titemDef.modelZoom = 1860;\n\t\t\titemDef.modelRotation1 = 344;\n\t\t\titemDef.modelRotation2 = 12;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 12;\n\t\t\titemDef.modifiedModelColors = new int[] { 61, 103 };\n\t\t\titemDef.originalModelColors = new int[] { 28, 41 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32299:\n\t\t\titemDef.name = \"Baron shark\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Eat\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 2594;\n\t\t\titemDef.modelZoom = 1860;\n\t\t\titemDef.modelRotation1 = 344;\n\t\t\titemDef.modelRotation2 = 12;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 12;\n\t\t\titemDef.modifiedModelColors = new int[] { 61, 103 };\n\t\t\titemDef.originalModelColors = new int[] { 8109, 4795 };\n\t\t\titemDef.description = \"None\";\n\t\t\tbreak;\n\n\t\tcase 32300:\n\t\t\titemDef.name = \"Raw cavefish\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60223;\n\t\t\titemDef.modelZoom = 1284;\n\t\t\titemDef.modelRotation1 = 499;\n\t\t\titemDef.modelRotation2 = 1907;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32301:\n\t\t\titemDef.name = \"Burnt cavefish\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60227;\n\t\t\titemDef.modelZoom = 1284;\n\t\t\titemDef.modelRotation1 = 499;\n\t\t\titemDef.modelRotation2 = 1907;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32302:\n\t\t\titemDef.name = \"Cavefish\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Eat\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 60228;\n\t\t\titemDef.modelZoom = 1284;\n\t\t\titemDef.modelRotation1 = 499;\n\t\t\titemDef.modelRotation2 = 1907;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.description = \"None\";\n\t\t\tbreak;\n\n\t\tcase 32303:\n\t\t\titemDef.name = \"Dragonfire visage (e)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 26456;\n\t\t\titemDef.modelZoom = 1697;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 152;\n\t\t\titemDef.modelOffset1 = -5;\n\t\t\titemDef.modelOffset2 = -5;\n\t\t\titemDef.modifiedModelColors = new int[] { 45, 41, 33, 24, 20, 57, 22, 37 };\n\t\t\titemDef.originalModelColors = new int[] { 0, 1, 2, 3, 4, 5, 6, 7 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33285:\n\t\t\titemDef.name = \"Easter Mystery Box\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 61110;\n\t\t\titemDef.modelZoom = 1180;\n\t\t\titemDef.modelRotation1 = 160;\n\t\t\titemDef.modelRotation2 = 172;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -14;\n\t\t\t// itemDef.modifiedModelColors = new int[] {22410, 2999};\n\t\t\t// itemDef.originalModelColors = new int[] {35321, 350};\n\t\t\titemDef.description = \"Chances for all sorts of Easter Items!\";\n\t\t\tbreak;\n\n\t\tcase 33286:\n\t\t\titemDef.name = \"Easter Cape\";\n\t\t\titemDef.inventoryOptions = new String[] { null, \"wear\", null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 9631;\n\t\t\titemDef.maleModel = 9638;\n\t\t\titemDef.femaleModel = 9640;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"An Easter Cape.\";\n\t\t\tbreak;\n\n\t\tcase 33287:\n\t\t\titemDef.name = \"Pet Easter Bunny\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 37239;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"You've captured the Easter bunny!\";\n\t\t\tbreak;\n\n\t\tcase 33288:\n\t\t\titemDef.name = \"Pet Choco\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 37239;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"mmm... a chocolate bunny\";\n\t\t\titemDef.modifiedModelColors = new int[] { 2378 };\n\t\t\titemDef.originalModelColors = new int[] { 7079 };\n\t\t\tbreak;\n\n\t\tcase 33289:\n\t\t\titemDef.name = \"Pet Milkie\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 37239;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"mmm... a chocolate bunny\";\n\t\t\titemDef.modifiedModelColors = new int[] { 2378 };\n\t\t\titemDef.originalModelColors = new int[] { 6040 };\n\t\t\tbreak;\n\n\t\tcase 33290:\n\t\t\titemDef.name = \"Pet Goldie\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 37239;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"oh wow... a rare golden bunny!\";\n\t\t\titemDef.modifiedModelColors = new int[] { 2378 };\n\t\t\titemDef.originalModelColors = new int[] { 9152 };\n\t\t\tbreak;\n\n\t\tcase 33291:\n\t\t\titemDef.name = \"Pet Blue\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 37239;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"A blue bunny... kinda looks like the easter bunny!\";\n\t\t\titemDef.modifiedModelColors = new int[] { 2378 };\n\t\t\titemDef.originalModelColors = new int[] { 35321 };\n\t\t\tbreak;\n\n\t\tcase 33292:\n\t\t\titemDef.name = \"Crazed bunny\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 23901;\n\t\t\titemDef.modelZoom = 500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"What a bloody mess...\";\n\t\t\titemDef.modifiedModelColors = new int[] { 5413, 5417, 5421 };\n\t\t\titemDef.originalModelColors = new int[] { 935, 111, 127 };\n\t\t\tbreak;\n\n\t\tcase 33293:\n\t\t\titemDef.name = \"Peter Rabbit\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 28602;\n\t\t\titemDef.modelZoom = 500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"Hi Peter!\";\n\t\t\tbreak;\n\n\t\tcase 33294:\n\t\t\titemDef.name = \"Chocolate Chicken\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 35150;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1731;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"a chocolate chicken\";\n\t\t\titemDef.modifiedModelColors = new int[] { 947 };\n\t\t\titemDef.originalModelColors = new int[] { 8128 };\n\t\t\tbreak;\n\n\t\tcase 33295:\n\t\t\titemDef.name = \"Chocolate Chicken\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 35150;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1731;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"a chocolate chicken\";\n\t\t\titemDef.modifiedModelColors = new int[] { 947, 8301 };\n\t\t\titemDef.originalModelColors = new int[] { 8128, 25511 };\n\t\t\tbreak;\n\n\t\tcase 33296:\n\t\t\titemDef.name = \"Chocolate Chicken\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 35150;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1731;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"a chocolate chicken\";\n\t\t\titemDef.modifiedModelColors = new int[] { 947, 8301 };\n\t\t\titemDef.originalModelColors = new int[] { 8128, 38835 };\n\t\t\tbreak;\n\n\t\tcase 33297:\n\t\t\titemDef.name = \"Chocolate Chicken\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 35150;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1731;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"a chocolate chicken\";\n\t\t\titemDef.modifiedModelColors = new int[] { 947, 8301 };\n\t\t\titemDef.originalModelColors = new int[] { 8128, 947 };\n\t\t\tbreak;\n\n\t\tcase 33305:\n\t\t\titemDef.name = \"$10 bond\";\n\t\t\titemDef.description = \"$10 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 84, 84, 84, 84, 84, 84, 84 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33306:\n\t\t\titemDef.name = \"$25 bond\";\n\t\t\titemDef.description = \"$25 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 87, 87, 87, 87, 87, 87, 87 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33307:\n\t\t\titemDef.name = \"$50 bond\";\n\t\t\titemDef.description = \"$50 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 65, 65, 65, 65, 65, 65, 65 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33308:\n\t\t\titemDef.name = \"$100 bond\";\n\t\t\titemDef.description = \"$25 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 75, 75, 75, 75, 75, 75, 75 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33309:\n\t\t\titemDef.name = \"$200 bond\";\n\t\t\titemDef.description = \"$200 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 88, 88, 88, 88, 88, 88, 88 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33310:\n\t\t\titemDef.name = \"$500 bond\";\n\t\t\titemDef.description = \"$500 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 85, 85, 85, 85, 85, 85, 85 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33311:\n\t\t\titemDef.name = \"$1000 bond\";\n\t\t\titemDef.description = \"$1000 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 86, 86, 86, 86, 86, 86, 86 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33312:\n\t\t\titemDef.name = \"Armadyl battlestaff\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60332;\n\t\t\titemDef.maleModel = 60333;\n\t\t\titemDef.femaleModel = 60333;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 225;\n\t\t\titemDef.modelRotation2 = 1994;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\n\t\tcase 33313:\n\t\t\titemDef.name = \"Colossal platebody\";\n\t\t\titemDef.description = \"Colossal platebody.\";\n\t\t\titemDef.modelId = 60323;\n\t\t\titemDef.maleModel = 60324;\n\t\t\titemDef.femaleModel = 60324;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33314:\n\t\t\titemDef.name = \"Colossal platelegs\";\n\t\t\titemDef.description = \"Colossal platelegs.\";\n\t\t\titemDef.modelId = 60325;\n\t\t\titemDef.maleModel = 60326;\n\t\t\titemDef.femaleModel = 60326;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33315:\n\t\t\titemDef.name = \"Colossal boots\";\n\t\t\titemDef.description = \"Colossal boots.\";\n\t\t\titemDef.modelId = 60329;\n\t\t\titemDef.maleModel = 60329;\n\t\t\titemDef.femaleModel = 60329;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33316:\n\t\t\titemDef.name = \"Colossal gloves\";\n\t\t\titemDef.description = \"Colossal gloves.\";\n\t\t\titemDef.modelId = 60330;\n\t\t\titemDef.maleModel = 60331;\n\t\t\titemDef.femaleModel = 60331;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33317:\n\t\t\titemDef.name = \"Colossal helmet\";\n\t\t\titemDef.description = \"Colossal helmet.\";\n\t\t\titemDef.modelId = 60327;\n\t\t\titemDef.maleModel = 60328;\n\t\t\titemDef.femaleModel = 60328;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\n\t\tcase 33318:\n\t\t\titemDef.name = \"Polypore staff\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60334;\n\t\t\titemDef.maleModel = 60335;\n\t\t\titemDef.femaleModel = 60335;\n\t\t\titemDef.modelZoom = 3750;\n\t\t\titemDef.modelRotation1 = 1454;\n\t\t\titemDef.modelRotation2 = 997;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\n\t\tcase 33319:\n\t\t\titemDef.name = \"Ganodermic platebody\";\n\t\t\titemDef.description = \"Ganodermic platebody.\";\n\t\t\titemDef.modelId = 60338;\n\t\t\titemDef.maleModel = 60339;\n\t\t\titemDef.femaleModel = 60339;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33320:\n\t\t\titemDef.name = \"Ganodermic platelegs\";\n\t\t\titemDef.description = \"Ganodermic platelegs.\";\n\t\t\titemDef.modelId = 60340;\n\t\t\titemDef.maleModel = 60341;\n\t\t\titemDef.femaleModel = 60341;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33321:\n\t\t\titemDef.name = \"Ganodermic helmet\";\n\t\t\titemDef.description = \"Ganodermic helmet.\";\n\t\t\titemDef.modelId = 60336;\n\t\t\titemDef.maleModel = 60337;\n\t\t\titemDef.femaleModel = 60337;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\n\t\tcase 33322:\n\t\t\titemDef.name = \"Grotesque platebody\";\n\t\t\titemDef.description = \"Grosteq platebody.\";\n\t\t\titemDef.modelId = 60347;\n\t\t\titemDef.maleModel = 60348;\n\t\t\titemDef.femaleModel = 60348;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33323:\n\t\t\titemDef.name = \"Grotesque platelegs\";\n\t\t\titemDef.description = \"Grosteq platelegs.\";\n\t\t\titemDef.modelId = 60349;\n\t\t\titemDef.maleModel = 60350;\n\t\t\titemDef.femaleModel = 60350;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33324:\n\t\t\titemDef.name = \"Grotesque helmet\";\n\t\t\titemDef.description = \"Grosteqc helmet.\";\n\t\t\titemDef.modelId = 60345;\n\t\t\titemDef.maleModel = 60346;\n\t\t\titemDef.femaleModel = 60346;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\n\t\tcase 33325:\n\t\t\titemDef.name = \"Grotesque cape\";\n\t\t\titemDef.description = \"Grosteq cape.\";\n\t\t\titemDef.modelId = 60351;\n\t\t\titemDef.maleModel = 60352;\n\t\t\titemDef.femaleModel = 60352;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33326:\n\t\t\titemDef.name = \"Stunning Hammer\";\n\t\t\titemDef.description = \"Has a chance to stun an enemy.\";\n\t\t\titemDef.modelId = 60353;\n\t\t\titemDef.maleModel = 60354;\n\t\t\titemDef.femaleModel = 60354;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1985;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\n\t\tcase 33327:\n\t\t\titemDef.name = \"Stunning Katagon platebody\";\n\t\t\titemDef.description = \"has a chance to stun an enemy.\";\n\t\t\titemDef.modelId = 60356;\n\t\t\titemDef.maleModel = 60357;\n\t\t\titemDef.femaleModel = 60357;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33328:\n\t\t\titemDef.name = \"Stunning Katagon platelegs\";\n\t\t\titemDef.description = \"has a chance to stun an enemy.\";\n\t\t\titemDef.modelId = 60358;\n\t\t\titemDef.maleModel = 60359;\n\t\t\titemDef.femaleModel = 60359;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33329:\n\t\t\titemDef.name = \"Stunning Katagon helmet\";\n\t\t\titemDef.description = \"has a chance to stun an enemy.\";\n\t\t\titemDef.modelId = 60360;\n\t\t\titemDef.maleModel = 60361;\n\t\t\titemDef.femaleModel = 60361;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\n\t\tcase 33331:\n\t\t\titemDef.name = \"Ancient platebody\";\n\t\t\titemDef.description = \"Ancient platebody.\";\n\t\t\titemDef.modelId = 60366;\n\t\t\titemDef.maleModel = 60367;\n\t\t\titemDef.femaleModel = 60367;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33332:\n\t\t\titemDef.name = \"Ancient platelegs\";\n\t\t\titemDef.description = \"Ancient platelegs.\";\n\t\t\titemDef.modelId = 60368;\n\t\t\titemDef.maleModel = 60369;\n\t\t\titemDef.femaleModel = 60369;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33334:\n\t\t\titemDef.name = \"Ancient boots\";\n\t\t\titemDef.description = \"Ancient boots.\";\n\t\t\titemDef.modelId = 60372;\n\t\t\titemDef.maleModel = 60372;\n\t\t\titemDef.femaleModel = 60372;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33335:\n\t\t\titemDef.name = \"Ancient gloves\";\n\t\t\titemDef.description = \"Ancient gloves.\";\n\t\t\titemDef.modelId = 60370;\n\t\t\titemDef.maleModel = 60371;\n\t\t\titemDef.femaleModel = 60371;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33336:\n\t\t\titemDef.name = \"Ancient helmet\";\n\t\t\titemDef.description = \"Ancient helmet.\";\n\t\t\titemDef.modelId = 60364;\n\t\t\titemDef.maleModel = 60365;\n\t\t\titemDef.femaleModel = 60365;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\n\t\tcase 33341:\n\t\t\titemDef.name = \"Vanguard helmet\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60391;\n\t\t\titemDef.maleModel = 60392;\n\t\t\titemDef.femaleModel = 60392;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\n\t\tcase 33342:\n\t\t\titemDef.name = \"Vanguard platebody\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60393;\n\t\t\titemDef.maleModel = 60394;\n\t\t\titemDef.femaleModel = 60394;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33343:\n\t\t\titemDef.name = \"Vanguard platelegs\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60395;\n\t\t\titemDef.maleModel = 60396;\n\t\t\titemDef.femaleModel = 60396;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33344:\n\t\t\titemDef.name = \"Vanguard boots\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60398;\n\t\t\titemDef.maleModel = 60398;\n\t\t\titemDef.femaleModel = 60398;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33345:\n\t\t\titemDef.name = \"Vanguard gloves\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60373;\n\t\t\titemDef.maleModel = 60397;\n\t\t\titemDef.femaleModel = 60397;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33346:\n\t\t\titemDef.name = \"Celestial staff of light\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60401;\n\t\t\titemDef.maleModel = 60402;\n\t\t\titemDef.femaleModel = 60402;\n\t\t\titemDef.modelZoom = 3200;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 101 };\n\t\t\titemDef.originalModelColors = new int[] { 12 };\n\t\t\titemDef.maleOffset = -6;\n\t\t\titemDef.femaleOffset = -6;\n\t\t\tbreak;\n\n\t\tcase 33347:\n\t\t\titemDef.name = \"Hood of sorrow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60438;\n\t\t\titemDef.maleModel = 60403;\n\t\t\titemDef.femaleModel = 60403;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33348:\n\t\t\titemDef.name = \"Celestial robe top\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60404;\n\t\t\titemDef.maleModel = 60405;\n\t\t\titemDef.femaleModel = 60405;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33349:\n\t\t\titemDef.name = \"Celestial robe legs\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60406;\n\t\t\titemDef.maleModel = 60407;\n\t\t\titemDef.femaleModel = 60407;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33350:\n\t\t\titemDef.name = \"Primal 2h sword\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60408;\n\t\t\titemDef.maleModel = 60409;\n\t\t\titemDef.femaleModel = 60409;\n\t\t\titemDef.modelZoom = 1701;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.modelRotation2 = 1529;\n\t\t\titemDef.modelRotation1 = 1713;\n\t\t\titemDef.modelRotationY = 898;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\titemDef.maleOffset = -7;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33353:\n\t\t\titemDef.name = \"Primal longsword\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60417;\n\t\t\titemDef.maleModel = 60418;\n\t\t\titemDef.femaleModel = 60418;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.modelRotation2 = 1793;\n\t\t\titemDef.modelRotation1 = 1473;\n\t\t\titemDef.modelRotationY = 1121;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\titemDef.maleOffset = -7;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33354:\n\t\t\titemDef.name = \"Primal maul\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60419;\n\t\t\titemDef.maleModel = 60420;\n\t\t\titemDef.femaleModel = 60420;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 525;\n\t\t\titemDef.modelRotation2 = 350;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\titemDef.maleOffset = -7;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33359:\n\t\t\titemDef.name = \"Primal rapier\";\n\t\t\titemDef.description = \"Good for fighting the ...\";\n\t\t\titemDef.modelId = 60433;\n\t\t\titemDef.maleModel = 60433;\n\t\t\titemDef.femaleModel = 60433;\n\t\t\titemDef.modelZoom = 1300;\n\t\t\titemDef.modelRotation1 = 1401;\n\t\t\titemDef.modelRotation2 = 1724;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = 15;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\titemDef.maleOffset = -7;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33360:\n\t\t\titemDef.name = \"Primal spear\";\n\t\t\titemDef.description = \"Good for fighting the Corperal Beast.\";\n\t\t\titemDef.modelId = 60434;\n\t\t\titemDef.maleModel = 60435;\n\t\t\titemDef.femaleModel = 60435;\n\t\t\titemDef.modelZoom = 1711;\n\t\t\titemDef.modelRotation1 = 485;\n\t\t\titemDef.modelRotation2 = 391;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.femaleOffset = -10;\n\t\t\titemDef.maleOffset = -10;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33361:\n\t\t\titemDef.name = \"Primal warhammer\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60436;\n\t\t\titemDef.maleModel = 60437;\n\t\t\titemDef.femaleModel = 60437;\n\t\t\titemDef.modelZoom = 1330;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 148;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\titemDef.maleOffset = -7;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33362:\n\t\t\titemDef.name = \"Chitin helmet\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60445;\n\t\t\titemDef.maleModel = 60446;\n\t\t\titemDef.femaleModel = 60446;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33364:\n\t\t\titemDef.name = \"Chitin platebody\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60447;\n\t\t\titemDef.maleModel = 60448;\n\t\t\titemDef.femaleModel = 60448;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33365:\n\t\t\titemDef.name = \"Chitin platelegs\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60449;\n\t\t\titemDef.maleModel = 60450;\n\t\t\titemDef.femaleModel = 60450;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33366:\n\t\t\titemDef.name = \"Chitin cape\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60443;\n\t\t\titemDef.maleModel = 60444;\n\t\t\titemDef.femaleModel = 60444;\n\t\t\titemDef.modelZoom = 1500;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = -4;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33367:\n\t\t\titemDef.name = \"Supreme void helmet\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60467;\n\t\t\titemDef.maleModel = 60464;\n\t\t\titemDef.femaleModel = 60464;\n\t\t\titemDef.modelZoom = 900;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33368:\n\t\t\titemDef.name = \"Supreme void robe top\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60468;\n\t\t\titemDef.maleModel = 60465;\n\t\t\titemDef.femaleModel = 60465;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33369:\n\t\t\titemDef.name = \"Supreme void robe\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60469;\n\t\t\titemDef.maleModel = 60466;\n\t\t\titemDef.femaleModel = 60466;\n\t\t\titemDef.modelZoom = 1900;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33370:\n\t\t\titemDef.name = \"Korasi's sword\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60471;\n\t\t\titemDef.maleModel = 60470;\n\t\t\titemDef.femaleModel = 60470;\n\t\t\titemDef.modelZoom = 1744;\n\t\t\titemDef.modelRotation1 = 330;\n\t\t\titemDef.modelRotation2 = 1505;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = -4;\n\t\t\titemDef.femaleOffset = -4;\n\t\t\tbreak;\n\n\t\tcase 33371:\n\t\t\titemDef.name = \"Spiked slayer helmet\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60475;\n\t\t\titemDef.maleModel = 60476;\n\t\t\titemDef.femaleModel = 60476;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33372:\n\t\t\titemDef.name = \"Slayer platebody\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60478;\n\t\t\titemDef.maleModel = 60479;\n\t\t\titemDef.femaleModel = 60479;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33373:\n\t\t\titemDef.name = \"Slayer platelegs\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60474;\n\t\t\titemDef.maleModel = 60477;\n\t\t\titemDef.femaleModel = 60477;\n\t\t\titemDef.modelZoom = 1900;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33374:\n\t\t\titemDef.name = \"Slayer boots\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60472;\n\t\t\titemDef.maleModel = 60473;\n\t\t\titemDef.femaleModel = 60473;\n\t\t\titemDef.modelZoom = 789;\n\t\t\titemDef.modelRotation1 = 164;\n\t\t\titemDef.modelRotation2 = 156;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33375:\n\t\t\titemDef.name = \"Blood Justiciar helmet\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60482;\n\t\t\titemDef.maleModel = 60483;\n\t\t\titemDef.femaleModel = 60483;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33376:\n\t\t\titemDef.name = \"Blood Justiciar platebody\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60484;\n\t\t\titemDef.maleModel = 60485;\n\t\t\titemDef.femaleModel = 60485;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33377:\n\t\t\titemDef.name = \"Blood justiciar platelegs\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60486;\n\t\t\titemDef.maleModel = 60487;\n\t\t\titemDef.femaleModel = 60487;\n\t\t\titemDef.modelZoom = 1900;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33378:\n\t\t\titemDef.name = \"Blood justiciar boots\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60488;\n\t\t\titemDef.maleModel = 60488;\n\t\t\titemDef.femaleModel = 60488;\n\t\t\titemDef.modelZoom = 789;\n\t\t\titemDef.modelRotation1 = 164;\n\t\t\titemDef.modelRotation2 = 156;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33379:\n\t\t\titemDef.name = \"Blood justiciar gloves\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60489;\n\t\t\titemDef.maleModel = 60490;\n\t\t\titemDef.femaleModel = 60490;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33380:\n\t\t\titemDef.name = \"Blood scythe of vitur\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60480;\n\t\t\titemDef.maleModel = 60481;\n\t\t\titemDef.femaleModel = 60481;\n\t\t\titemDef.modelZoom = 3850;\n\t\t\titemDef.modelRotation1 = 727;\n\t\t\titemDef.modelRotation2 = 997;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33381:\n\t\t\titemDef.name = \"Skiller cape\";\n\t\t\titemDef.description = \"Skiller cape.\";\n\t\t\titemDef.modelId = 60494;\n\t\t\titemDef.maleModel = 60493;\n\t\t\titemDef.femaleModel = 60492;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33382:\n\t\t\titemDef.name = \"Justiciar faceguard (zamorak)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 4550 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 926, 926, 926 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33383:\n\t\t\titemDef.name = \"Justiciar faceguard (guthix)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 4550 };\n\t\t\titemDef.originalModelColors = new int[] { 21939, 21945, 21952, 21954 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33384:\n\t\t\titemDef.name = \"Justiciar faceguard (saradomin)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 4550 };\n\t\t\titemDef.originalModelColors = new int[] { 43929, 43929, 43929, 43929 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33385:\n\t\t\titemDef.name = \"Justiciar faceguard (ancient)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 4550 };\n\t\t\titemDef.originalModelColors = new int[] { -10854, -10860, -10872, -10874 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33387:\n\t\t\titemDef.name = \"Justiciar faceguard (bandos)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 4550 };\n\t\t\titemDef.originalModelColors = new int[] { 7062, 7062, 7062, 7062 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33389:\n\t\t\titemDef.name = \"Justiciar faceguard (armadyl)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 4550 };\n\t\t\titemDef.originalModelColors = new int[] { 10467, 10474, 10482, 10484 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33390:\n\t\t\titemDef.name = \"Justiciar chestguard (zamorak)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35750;\n\t\t\titemDef.maleModel = 35359;\n\t\t\titemDef.femaleModel = 35368;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 926, 926, 926 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33391:\n\t\t\titemDef.name = \"Justiciar chestguard (guthix)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35750;\n\t\t\titemDef.maleModel = 35359;\n\t\t\titemDef.femaleModel = 35368;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 21939, 21945, 21952, 21954 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33392:\n\t\t\titemDef.name = \"Justiciar chestguard (saradomin)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35750;\n\t\t\titemDef.maleModel = 35359;\n\t\t\titemDef.femaleModel = 35368;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 43929, 43929, 43929, 43929 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33393:\n\t\t\titemDef.name = \"Justiciar chestguard (ancient)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35750;\n\t\t\titemDef.maleModel = 35359;\n\t\t\titemDef.femaleModel = 35368;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { -10854, -10860, -10872, -10874 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33394:\n\t\t\titemDef.name = \"Justiciar chestguard (bandos)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35750;\n\t\t\titemDef.maleModel = 35359;\n\t\t\titemDef.femaleModel = 35368;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 7062, 7062, 7062, 7062 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33395:\n\t\t\titemDef.name = \"Justiciar chestguard (armadyl)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35750;\n\t\t\titemDef.maleModel = 35359;\n\t\t\titemDef.femaleModel = 35368;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 10467, 10474, 10482, 10484 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33396:\n\t\t\titemDef.name = \"Justiciar legguards (zamorak)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35752;\n\t\t\titemDef.maleModel = 35356;\n\t\t\titemDef.femaleModel = 35357;\n\t\t\titemDef.modelZoom = 1720;\n\t\t\titemDef.modelRotation1 = 468;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 926, 926, 926 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33397:\n\t\t\titemDef.name = \"Justiciar legguards (guthix)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35752;\n\t\t\titemDef.maleModel = 35356;\n\t\t\titemDef.femaleModel = 35357;\n\t\t\titemDef.modelZoom = 1720;\n\t\t\titemDef.modelRotation1 = 468;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 21939, 21945, 21952, 21954 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33398:\n\t\t\titemDef.name = \"Justiciar legguards (saradomin)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35752;\n\t\t\titemDef.maleModel = 35356;\n\t\t\titemDef.femaleModel = 35357;\n\t\t\titemDef.modelZoom = 1720;\n\t\t\titemDef.modelRotation1 = 468;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 43929, 43929, 43929, 43929 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33399:\n\t\t\titemDef.name = \"Justiciar legguards (ancient)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35752;\n\t\t\titemDef.maleModel = 35356;\n\t\t\titemDef.femaleModel = 35357;\n\t\t\titemDef.modelZoom = 1720;\n\t\t\titemDef.modelRotation1 = 468;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { -10854, -10860, -10872, -10874 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33400:\n\t\t\titemDef.name = \"Justiciar legguards (bandos)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35752;\n\t\t\titemDef.maleModel = 35356;\n\t\t\titemDef.femaleModel = 35357;\n\t\t\titemDef.modelZoom = 1720;\n\t\t\titemDef.modelRotation1 = 468;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 7062, 7062, 7062, 7062 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33401:\n\t\t\titemDef.name = \"Justiciar legguards (armadyl)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35752;\n\t\t\titemDef.maleModel = 35356;\n\t\t\titemDef.femaleModel = 35357;\n\t\t\titemDef.modelZoom = 1720;\n\t\t\titemDef.modelRotation1 = 468;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 10467, 10474, 10482, 10484 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33402:\n\t\t\titemDef.name = \"Pet andy\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 50169;\n\t\t\titemDef.modelZoom = 1500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33403:\n\t\t\titemDef.name = \"Pet mod divine\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 14283;\n\t\t\titemDef.modelZoom = 3500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33404:\n\t\t\titemDef.name = \"Celestial fairy\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60491;\n\t\t\titemDef.modelZoom = 3500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 947 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 78 };\n\t\t\titemDef.modifiedModelColors = new int[] { 937, 11200 };\n\t\t\titemDef.originalModelColors = new int[] { 42663, 41883 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33405:\n\t\t\titemDef.name = \"Lava partyhat (red)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"A lava partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33406:\n\t\t\titemDef.name = \"Lava partyhat (green)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"A lava partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33407:\n\t\t\titemDef.name = \"Lava partyhat (cyan)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"A lava partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33408:\n\t\t\titemDef.name = \"Lava partyhat (purple)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"A lava partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33409:\n\t\t\titemDef.name = \"Infernal partyhat (blue)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"An Infernal partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33410:\n\t\t\titemDef.name = \"Infernal partyhat (green)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"An Infernal partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33411:\n\t\t\titemDef.name = \"Infernal partyhat (purple)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"An Infernal partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33412:\n\t\t\titemDef.name = \"Infernal partyhat (rainbow)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"An Infernal partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33413:\n\t\t\titemDef.name = \"Celestial partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33414:\n\t\t\titemDef.name = \"Blood partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33415:\n\t\t\titemDef.name = \"Shadow partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33416:\n\t\t\titemDef.name = \"Light blue partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33417:\n\t\t\titemDef.name = \"Easter partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33418:\n\t\t\titemDef.name = \"Dark sparkle partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33419:\n\t\t\titemDef.name = \"Rainbow partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33420:\n\t\t\titemDef.name = \"Fire partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33421:\n\t\t\titemDef.name = \"Pet star sprite\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60506;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33422:\n\t\t\titemDef.name = \"Stargaze Box\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 61110;\n\t\t\titemDef.modelZoom = 1180;\n\t\t\titemDef.modelRotation1 = 160;\n\t\t\titemDef.modelRotation2 = 172;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -14;\n\t\t\t// itemDef.modifiedModelColors = new int[] {22410, 2999};\n\t\t\t// itemDef.originalModelColors = new int[] {35321, 350};\n\t\t\titemDef.description = \"none\";\n\t\t\tbreak;\n\n\t\tcase 33423:\n\t\t\titemDef.name = \"Star Dust\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Exchange\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modelId = 60496;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 279;\n\t\t\titemDef.modelRotation2 = 1994;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 47;\n\t\t\t// itemDef.modifiedModelColors = new int[] {22410, 2999};\n\t\t\t// itemDef.originalModelColors = new int[] {35321, 350};\n\t\t\titemDef.description = \"none\";\n\t\t\tbreak;\n\n\t\tcase 33424:\n\t\t\titemDef.name = \"Blood twisted bow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32799;\n\t\t\titemDef.maleModel = 32674;\n\t\t\titemDef.femaleModel = 32674;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 720;\n\t\t\titemDef.modelRotation2 = 1500;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 10318, 10334 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 66, 66 };\n\t\t\titemDef.modifiedModelColors = new int[] { 14236, 13223 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 926 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33425:\n\t\t\titemDef.name = \"Celestial crow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60507;\n\t\t\titemDef.modelZoom = 1000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 10382 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 78 };\n\t\t\titemDef.modifiedModelColors = new int[] { 10378, 10502 };\n\t\t\titemDef.originalModelColors = new int[] { 0, 0 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33426:\n\t\t\titemDef.name = \"Celestial penguin\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60508;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 10343 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 78 };\n\t\t\titemDef.modifiedModelColors = new int[] { 16, 12, 20, 24, 8, 10332, 10337 };\n\t\t\titemDef.originalModelColors = new int[] { 0, 0, 0, 0, 0, 0, 0 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33427:\n\t\t\titemDef.name = \"Celestial snake\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60509;\n\t\t\titemDef.modelZoom = 1800;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 10644, 10512 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 78, 78 };\n\t\t\titemDef.modifiedModelColors = new int[] { 10413, 10405, 10524 };\n\t\t\titemDef.originalModelColors = new int[] { 0, 0, 0 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33428:\n\t\t\titemDef.name = \"Celestial scorpion\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60510;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 142 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 78 };\n\t\t\titemDef.modifiedModelColors = new int[] { 4884, 4636, 3974, 4525, 4645 };\n\t\t\titemDef.originalModelColors = new int[] { 0, 0, 0, 0, 0 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33429:\n\t\t\titemDef.name = \"Armadyl dye\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60513;\n\t\t\titemDef.modelZoom = 809;\n\t\t\titemDef.modelRotation1 = 90;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 30814, 30809, 30799, 30804 };\n\t\t\titemDef.originalModelColors = new int[] { 10467, 10474, 10482, 10484 };\n\t\t\tbreak;\n\n\t\tcase 33430:\n\t\t\titemDef.name = \"Guthix dye\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60513;\n\t\t\titemDef.modelZoom = 809;\n\t\t\titemDef.modelRotation1 = 90;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 30814, 30809, 30799, 30804 };\n\t\t\titemDef.originalModelColors = new int[] { 21939, 21945, 21952, 21954 };\n\t\t\tbreak;\n\n\t\tcase 33431:\n\t\t\titemDef.name = \"Zamorak dye\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60513;\n\t\t\titemDef.modelZoom = 809;\n\t\t\titemDef.modelRotation1 = 90;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 30814, 30809, 30799, 30804 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 926, 926, 926 };\n\t\t\tbreak;\n\n\t\tcase 33432:\n\t\t\titemDef.name = \"Ancient dye\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60513;\n\t\t\titemDef.modelZoom = 809;\n\t\t\titemDef.modelRotation1 = 90;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 30814, 30809, 30799, 30804 };\n\t\t\titemDef.originalModelColors = new int[] { -10854, -10860, -10872, -10874 };\n\t\t\tbreak;\n\n\t\tcase 33433:\n\t\t\titemDef.name = \"Bandos dye\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60513;\n\t\t\titemDef.modelZoom = 809;\n\t\t\titemDef.modelRotation1 = 90;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 30814, 30809, 30799, 30804 };\n\t\t\titemDef.originalModelColors = new int[] { 7062, 7062, 7062, 7062 };\n\t\t\tbreak;\n\n\t\tcase 33434:\n\t\t\titemDef.name = \"Saradomin dye\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60513;\n\t\t\titemDef.modelZoom = 809;\n\t\t\titemDef.modelRotation1 = 90;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 30814, 30809, 30799, 30804 };\n\t\t\titemDef.originalModelColors = new int[] { 43929, 43929, 43929, 43929 };\n\t\t\tbreak;\n\n\t\tcase 33435:\n\t\t\titemDef.name = \"Celestial egg\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 7171;\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelRotation2 = 16;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 476 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 78 };\n\t\t\titemDef.inventoryOptions = new String[] { \"Hatch\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = true;\n\t\t\tbreak;\n\n\t\tcase 33436:\n\t\t\titemDef.name = \"Elite void top (placeholder)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 10586;\n\t\t\titemDef.maleModel = 10687;\n\t\t\titemDef.anInt188 = 10681;\n\t\t\titemDef.femaleModel = 10694;\n\t\t\titemDef.anInt164 = 10688;\n\t\t\titemDef.modelZoom = 1221;\n\t\t\titemDef.modelRotation1 = 459;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\t// itemDef.originalTextureColors = new int [] { 695};\n\t\t\t// itemDef.modifiedTextureColors = new int [] { 66};\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33437:\n\t\t\titemDef.name = \"Elite void robe (placeholder)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60528;\n\t\t\titemDef.maleModel = 60526;\n\t\t\titemDef.femaleModel = 60527;\n\t\t\titemDef.modelZoom = 2105;\n\t\t\titemDef.modelRotation1 = 525;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\t// itemDef.originalTextureColors = new int [] { 695};\n\t\t\t// itemDef.modifiedTextureColors = new int [] { 66};\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33438:\n\t\t\titemDef.name = \"Blood chest\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60516;\n\t\t\titemDef.modelZoom = 2640;\n\t\t\titemDef.modelRotation1 = 114;\n\t\t\titemDef.modelRotation2 = 1883;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33439:\n\t\t\titemDef.name = \"Blood bird\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60517;\n\t\t\titemDef.modelZoom = 2768;\n\t\t\titemDef.modelRotation1 = 141;\n\t\t\titemDef.modelRotation2 = 1790;\n\t\t\titemDef.modelOffset1 = -8;\n\t\t\titemDef.modelOffset2 = -13;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\titemDef.originalTextureColors = new int[] { 1946, 2983, 6084, 2735, 5053, 6082, 4013, 2733, 4011, 2880,\n\t\t\t\t\t8150 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66 };\n\t\t\tbreak;\n\n\t\tcase 33440:\n\t\t\titemDef.name = \"Blood Death\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60441;\n\t\t\titemDef.modelZoom = 16000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33442:\n\t\t\titemDef.name = \"10 Min XP boost (25%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Claim\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33446:\n\t\t\titemDef.name = \"10 Min XP boost (50%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Claim\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33450:\n\t\t\titemDef.name = \"10 Min XP boost (75%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Claim\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33454:\n\t\t\titemDef.name = \"10 Min XP boost (100%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33458:\n\t\t\titemDef.name = \"10 Min XP boost (150%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33462:\n\t\t\titemDef.name = \"10 Min XP boost (200%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33443:\n\t\t\titemDef.name = \"30 Min XP boost (25%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33447:\n\t\t\titemDef.name = \"30 Min XP boost (50%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33451:\n\t\t\titemDef.name = \"30 Min XP boost (75%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33455:\n\t\t\titemDef.name = \"30 Min XP boost (100%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33459:\n\t\t\titemDef.name = \"30 Min XP boost (150%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33463:\n\t\t\titemDef.name = \"30 Min XP boost (200%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33444:\n\t\t\titemDef.name = \"60 Min XP boost (25%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33448:\n\t\t\titemDef.name = \"60 Min XP boost (50%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33452:\n\t\t\titemDef.name = \"60 Min XP boost (75%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33456:\n\t\t\titemDef.name = \"60 Min XP boost (100%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33460:\n\t\t\titemDef.name = \"60 Min XP boost (150%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33464:\n\t\t\titemDef.name = \"60 Min XP boost (200%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33445:\n\t\t\titemDef.name = \"120 Min XP boost (25%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33449:\n\t\t\titemDef.name = \"120 Min XP boost (50%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33453:\n\t\t\titemDef.name = \"120 Min XP boost (75%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33457:\n\t\t\titemDef.name = \"120 Min XP boost (100%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33461:\n\t\t\titemDef.name = \"120 Min XP boost (150%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33465:\n\t\t\titemDef.name = \"120 Min XP boost (200%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33466:\n\t\t\titemDef.name = \"Deathtouched dart\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60534;\n\t\t\titemDef.maleModel = 60533;\n\t\t\titemDef.femaleModel = 60533;\n\t\t\titemDef.modelZoom = 1053;\n\t\t\titemDef.modelRotation1 = 471;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33467:\n\t\t\titemDef.name = \"Justiciar boots\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60535;\n\t\t\titemDef.maleModel = 60535;\n\t\t\titemDef.femaleModel = 60535;\n\t\t\titemDef.modelZoom = 789;\n\t\t\titemDef.modelRotation1 = 164;\n\t\t\titemDef.modelRotation2 = 156;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33468:\n\t\t\titemDef.name = \"Justiciar gloves\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 31022;\n\t\t\titemDef.maleModel = 31006;\n\t\t\titemDef.femaleModel = 31013;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 636;\n\t\t\titemDef.modelRotation2 = 2015;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 123, 70 };\n\t\t\titemDef.originalModelColors = new int[] { 6736, 59441 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33469:\n\t\t\titemDef.name = \"Magic mushroom\";\n\t\t\titemDef.description = \"offers a 10% droprate increase while this pet follows you.\";\n\t\t\titemDef.modelId = 60532;\n\t\t\titemDef.modelZoom = 3000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 6;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33470:\n\t\t\titemDef.name = \"Twisted staff\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60538;\n\t\t\titemDef.maleModel = 60539;\n\t\t\titemDef.femaleModel = 60539;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33471:\n\t\t\titemDef.name = \"Cowboy hat\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60540;\n\t\t\titemDef.maleModel = 60541;\n\t\t\titemDef.femaleModel = 60541;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 108;\n\t\t\titemDef.modelRotation2 = 1535;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33472:\n\t\t\titemDef.name = \"Stick\";\n\t\t\titemDef.description = \"Careful of that chub.\";\n\t\t\titemDef.modelId = 60545;\n\t\t\titemDef.maleModel = 60545;\n\t\t\titemDef.femaleModel = 60545;\n\t\t\titemDef.modelZoom = 3000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33473:\n\t\t\titemDef.name = \"#1 Tob cape\";\n\t\t\titemDef.description = \"Reward to the first to complete tob solo and in a team.\";\n\t\t\titemDef.modelId = 60551;\n\t\t\titemDef.maleModel = 60550;\n\t\t\titemDef.femaleModel = 60550;\n\t\t\titemDef.modelZoom = 2295;\n\t\t\titemDef.modelRotation1 = 367;\n\t\t\titemDef.modelRotation2 = 1212;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = 8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33474:\n\t\t\titemDef.name = \"Supreme void upgrade kit\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 4847;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 163;\n\t\t\titemDef.modelRotation2 = 73;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { -32709, 10295, 10304, 10287, 10275, 10283 };\n\t\t\titemDef.originalModelColors = new int[] { 10, 10, 10, 10, 10, 10 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33475:\n\t\t\titemDef.name = \"Hunter's penguin\";\n\t\t\titemDef.description = \"the one and only's pet.\";\n\t\t\titemDef.modelId = 60548;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 6;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33476:\n\t\t\titemDef.name = \"Chef Harambe\";\n\t\t\titemDef.description = \"I like to dip my balls in a deep fryer.\";\n\t\t\titemDef.modelId = 60921;\n\t\t\titemDef.modelZoom = 5000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 6;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33477:\n\t\t\titemDef.name = \"Void knight champion jr\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60463;\n\t\t\titemDef.modelZoom = 14000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 6;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33478:\n\t\t\titemDef.name = \"Custom pet token\";\n\t\t\titemDef.description = \"Trade this to corey after filling out a form on the forums post custom pets\";\n\t\t\titemDef.modelId = 13838;\n\t\t\titemDef.modelZoom = 530;\n\t\t\titemDef.modelRotation1 = 415;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33479:\n\t\t\titemDef.name = \"Mr jaycorr\";\n\t\t\titemDef.description = \"The autistic one.\";\n\t\t\titemDef.modelId = 60592;\n\t\t\titemDef.modelZoom = 7500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33480:\n\t\t\titemDef.name = \"Broom broom\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60593;\n\t\t\titemDef.maleModel = 60593;\n\t\t\titemDef.femaleModel = 60593;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33481:\n\t\t\titemDef.name = \"Test\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 11773:\n\t\tcase 11771:\n\t\tcase 11770:\n\t\tcase 11772:\n\t\t\titemDef.anInt196 += 45;\n\t\t\tbreak;\n\t\tcase 22610:\n\t\t\titemDef.name = \"Vesta's spear (deg)\";\n\t\t\tbreak;\n\t\tcase 22614:\n\t\t\titemDef.name = \"Vesta's longsword (deg)\";\n\t\t\tbreak;\n\t\tcase 22616:\n\t\t\titemDef.name = \"Vesta's chainbody (deg)\";\n\t\t\tbreak;\n\t\tcase 22619:\n\t\t\titemDef.name = \"Vesta's plateskirt (deg)\";\n\t\t\tbreak;\n\t\tcase 22622:\n\t\t\titemDef.name = \"Statius's warhammer (deg)\";\n\t\t\tbreak;\n\t\tcase 22625:\n\t\t\titemDef.name = \"Statius's full helm (deg)\";\n\t\t\tbreak;\n\t\tcase 22628:\n\t\t\titemDef.name = \"Statius's platebody (deg)\";\n\t\t\tbreak;\n\t\tcase 22631:\n\t\t\titemDef.name = \"Statius's platelegs (deg)\";\n\t\t\tbreak;\n\t\tcase 22638:\n\t\t\titemDef.name = \"Morrigan's coif (deg)\";\n\t\t\tbreak;\n\t\tcase 22641:\n\t\t\titemDef.name = \"Morrigan's leather body (deg)\";\n\t\t\tbreak;\n\t\tcase 22644:\n\t\t\titemDef.name = \"Morrigan's leather chaps (deg)\";\n\t\t\tbreak;\n\t\tcase 22647:\n\t\t\titemDef.name = \"Zuriel's staff (deg)\";\n\t\t\tbreak;\n\t\tcase 22650:\n\t\t\titemDef.name = \"Zuriel's hood (deg)\";\n\t\t\tbreak;\n\t\tcase 22653:\n\t\t\titemDef.name = \"Zuriel's robe top (deg)\";\n\t\t\tbreak;\n\t\tcase 22656:\n\t\t\titemDef.name = \"Zuriel's robe bottom (deg)\";\n\t\t\tbreak;\n\n\t\tcase 13303:\n\t\t\titemDef.name = \"Event Key (Tarn)\";\n\t\t\titemDef.description = \"Use this to open the Event Boss chest.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 8128 };\n\t\t\titemDef.originalModelColors = new int[] { 933 };\n\t\t\tbreak;\n\t\tcase 13302:\n\t\t\titemDef.name = \"Event Key (Graardor)\";\n\t\t\titemDef.description = \"Use this to open the Event Boss chest.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 8128 };\n\t\t\titemDef.originalModelColors = new int[] { 933 };\n\t\t\tbreak;\n\t\tcase 13305:\n\t\t\titemDef.name = \"Tastey-Looking Key\";\n\t\t\titemDef.description = \"Use this to open the Event Boss chest.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 8128 };\n\t\t\titemDef.originalModelColors = new int[] { 933 };\n\t\t\tbreak;\n\t\tcase 2697:\n\t\t\titemDef.name = \"$10 Scroll\";\n\t\t\titemDef.description = \"Get donor status at a cheaper cost!\";\n\t\t\tbreak;\n\t\tcase 2698:\n\t\t\titemDef.name = \"$50 Scroll\";\n\t\t\titemDef.description = \"Read this scroll to be rewarded with the Super Donator status.\";\n\t\t\tbreak;\n\t\tcase 2699:\n\t\t\titemDef.name = \"$100 Donator\";\n\t\t\titemDef.description = \"Read this scroll to be rewarded with the Extreme Donator status.\";\n\t\t\tbreak;\n\t\tcase 2700:\n\t\t\titemDef.name = \"$5 Scroll\";\n\t\t\titemDef.description = \"Read this scroll to be rewarded with the Legendary Donator status.\";\n\t\t\tbreak;\n\t\tcase 1464:\n\t\t\titemDef.name = \"Vote ticket\";\n\t\t\titemDef.description = \"This ticket can be exchanged for a voting point.\";\n\t\t\tbreak;\n\n\t\tcase 11739:\n\t\t\titemDef.name = \"Daily reward box\";\n\t\t\titemDef.description = \"Open this box for a daily reward.\";\n\t\t\tbreak;\n\n\t\tcase 13066:// super set\n\t\tcase 12873:// barrows\n\t\tcase 12875:\n\t\tcase 12877:\n\t\tcase 12879:\n\t\tcase 12881:\n\t\tcase 12883:\n\t\tcase 12789:// clue box\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\tbreak;\n\t\t}\n\t\t\n\t}", "public void createItem()\n {\n \n necklace_red = new Item (\"Red Necklace\",\"This is a strange red necklace\");\n poolroom.addItem(necklace_red);\n \n // items in dancing room // \n gramophone = new Item (\"Gramophone\",\"This is a nice gramophone but without disk\");\n candelar = new Item(\"Candelar\",\"This candelar gives light and is really beautiful\");\n dancingroom.addItem(gramophone);\n dancingroom.addItem(candelar);\n \n //items in hall //\n potion2HP = new Potion(\"Potion 2 HP\",\"This potion gives 2 HP to the player\",2);\n hall.addItem(potion2HP);\n \n //items in corridor //\n halberd = new Weapon(\"Halberd\",\"This the statut halberd. It was not a really good idea to take it\",4,60);\n corridor.addItem(halberd);\n \n // items in bathroom //\n potion6HP = new Potion(\"Potion6HP\",\"This potions gives 6 HP to the player\",6);\n bathroom.addItem(potion6HP);\n \n // items in guestbedroom //\n Exit exit_from_corridor_to_bedroom = new Exit(\"south\",corridor,false, null);\n bedroomkey = new Keys(\"Bedroom key\",\"This key opens the master bedroom door\",exit_from_corridor_to_bedroom);\n guestbedroom.addItem(bedroomkey);\n \n // items in kitchen // \n set_of_forks_and_knives = new Weapon(\"Set of forks and knives\",\"This weapon is a set of silver forks and silver knives\",2,40);\n kitchen.addItem(set_of_forks_and_knives);\n \n // items in bedroom //\n Item disk = new Item(\"Disk\",\"This disk can be used with the gramophone\");\n bedroom.addItem(disk);\n \n Potion potion3HP = new Potion (\"Potion3HP\",\"This potions gives 3 HP to the player\",3);\n bedroom.addItem(potion3HP);\n \n Item money = new Item(\"Money\",\"You find 60 pounds\");\n bedroom.addItem(money);\n \n // items in the library //\n Item book = new Item(\"Book\",\"The title book is 'The best human friend : the cat'\");\n library.addItem(book);\n \n // items in laboratory //\n Exit exit_from_corridor_to_attic = new Exit(\"up\",corridor,false, null);\n Keys attickey = new Keys(\"Attic key\",\"This key is a shaped bone from a squeletor\", exit_from_corridor_to_attic); \n laboratory.addItem(attickey);\n \n Item construction_drawing = new Item(\"Construction drawing\",\"You find construction drawings. Mr Taylor planed to dig really deeply to the east of the gardener hut\");\n laboratory.addItem(construction_drawing);\n \n //items in garden //\n Weapon fork = new Weapon(\"Fork\",\"This fork is green and brown\",3,50);\n garden.addItem(fork);\n \n Potion apple = new Potion(\"Apple\",\"This apples gives you 2 HP\",2);\n garden.addItem(apple);\n \n // items in gardenerhut //\n \n Item pliers = new Item(\"Pliers\",\"You can cut a chain with this object\");\n gardenerhut.addItem(pliers);\n \n Item ritual_cape = new Item(\"Ritual cape\",\"You find a black ritual cape. It is very strange !\");\n gardenerhut.addItem(ritual_cape);\n \n Item necklace_black_1 = new Item(\"Necklace\",\"You find a very strange necklace ! It is a black rond necklace with the same symbol than in the ritual cape\");\n gardenerhut.addItem(necklace_black_1);\n \n //items in anteroom //\n \n Potion potion4HP = new Potion(\"Potion4HP\",\"This potion gives 4 HP to the player\",4);\n anteroom.addItem(potion4HP);\n \n Weapon sword = new Weapon(\"Sword\",\"A really sharp sword\",6,70);\n anteroom.addItem(sword);\n // items in ritual room //\n \n Item red_ritual_cape = new Item(\"Red ritual cape\", \"This is a ritual cape such as in the gardener hut but this one is red. There are some blond curly hairs\");\n ritualroom.addItem(red_ritual_cape);\n \n Item black_ritual_cape_1 = new Item(\"Black ritual cape\",\"This is a black ritual cape\");\n ritualroom.addItem(black_ritual_cape_1);\n \n Item black_ritual_cape_2 = new Item (\"Black ritual cape\",\"Another black ritual cape\");\n ritualroom.addItem(black_ritual_cape_2);\n \n }", "@Override\n\tpublic boolean matches(InventoryCrafting inv, World worldIn) {\n\t\t\n\t\tint zombie = 0;\n\t\tint skeleton = 0;\n\t\tint creeper = 0;\n\t\tint deathingot = 0;\n\t\tint deathingot1 = 0;\n\t\tint deathingot2 = 0;\n\t\tint deathingot3 = 0;\n\t\tint netherstar = 0;\n\t\tint netherstar1 = 0;\n\t\tItemStack sword = null;\n\t\tfor(int i=0; i < inv.getSizeInventory(); ++i)\n\t\t{\n\t\t\tItemStack item = inv.getStackInSlot(i);\n\t\t\tif (item != null && item.getItem() == Itemsss.SkeletonSword && item.getTagCompound() != null) \n\t\t\t{\n\n\t\t\t\tNBTTagCompound tag = item.getTagCompound();\n\t\t\t\tif (tag.getInteger(\"kills\") > 49) \n\t\t\t\t{\n\t\t\t\t\tif(i == 3 && tag.getString(\"mob\").equals(\"zombie\"))\n\t\t\t\t\t{\n\t\t\t\t\t\t++zombie;\n\t\t\t\t\t}\t\n\t\t\t\t\tif(i == 5 &&tag.getString(\"mob\").equals(\"creeper\"))\n\t\t\t\t\t{\n\t\t\t\t\t\t++creeper;\n\t\t\t\t\t}\n\t\t\t\t\tif(i == 7 && tag.getString(\"mob\").equals(\"skeleton\"))\n\t\t\t\t\t{\n\t\t\t\t\t\t++skeleton;\n\t\t\t\t\t}\n\t\t\t\t\t \n\t\t\t\t}\n\t\t\t}\n\t\t\tif(item != null && item.getItem() == Itemsss.deathIngot)\n\t\t\t{\n\t\t\t\tif(i ==0)\n\t\t\t\t{\n\t\t\t\t\t++deathingot;\n\t\t\t\t}\n\t\t\t\tif(i ==1)\n\t\t\t\t{\n\t\t\t\t\t++deathingot1;\n\t\t\t\t}\n\t\t\t\tif(i ==2 )\n\t\t\t\t{\n\t\t\t\t\t++deathingot2;\n\t\t\t\t}\n\t\t\t\tif(i ==4)\n\t\t\t\t{\n\t\t\t\t\t++deathingot3;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tif(item != null && item.getItem() == Itemsss.netherStarPlate)\n\t\t\t{\n\t\t\t\tif(i == 6)\n\t\t\t\t{\n\t\t\t\t\t++netherstar;\n\t\t\t\t}\n\t\t\t\tif(i == 8)\n\t\t\t\t{\n\t\t\t\t\t++netherstar1;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\t \n\t\tif(zombie == 1 && skeleton == 1 && creeper == 1 && deathingot == 1 && netherstar == 1&& netherstar1 == 1 && deathingot1 == 1\n\t \t&& deathingot2 == 1 && deathingot3 == 1)\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\telse return false;\n\t\t\n\t\t\n\t}", "@SuppressWarnings(\"deprecation\")\r\n\t@EventHandler\r\n\tpublic void inventoryClickEvent(InventoryClickEvent e) {\r\n\t\tEntity applier = e.getWhoClicked();\r\n\t\tif (!e.isCancelled()) {\r\n\t\t\tif (applier instanceof Player) {\r\n\t\t\t\tPlayer papplier = (Player) applier;\r\n\t\t\t\t// PlayerInventory pinventory = papplier.getInventory();\r\n\t\t\t\t// inven.put(papplier, pinventory);\r\n\t\t\t\tItemStack item = e.getCurrentItem();\r\n\t\t\t\tItemStack transmog = e.getCursor();\r\n\t\t\t\tString tname = \"\";\r\n\t\t\t\tif (item != null) {\r\n\t\t\t\t\tItemMeta itemMeta = item.getItemMeta();\r\n\t\t\t\t\tArrayList<String> lore1 = new ArrayList<String>();\r\n\t\t\t\t\tArrayList<String> lore2 = new ArrayList<String>();\r\n\t\t\t\t\tArrayList<String> lore3 = new ArrayList<String>();\r\n\t\t\t\t\tArrayList<String> lore4 = new ArrayList<String>();\r\n\t\t\t\t\tArrayList<String> lore5 = new ArrayList<String>();\r\n\t\t\t\t\tArrayList<String> lore6 = new ArrayList<String>();\r\n\t\t\t\t\tArrayList<String> lore7 = new ArrayList<String>();\r\n\t\t\t\t\tArrayList<String> totallore = new ArrayList<String>();\r\n\t\t\t\t\tif (item.getType() != Material.AIR) {\r\n\t\t\t\t\t\t// papplier.sendMessage(\"1\");\r\n\t\t\t\t\t\tif (transmog != null) {\r\n\t\t\t\t\t\t\t// papplier.sendMessage(\"2\");\r\n\t\t\t\t\t\t\tif (item.getType().name().endsWith(\"SWORD\") || item.getType().name().endsWith(\"AXE\")\r\n\t\t\t\t\t\t\t\t\t|| item.getType().name().endsWith(\"HELMET\")\r\n\t\t\t\t\t\t\t\t\t|| item.getType().name().endsWith(\"SHOVEL\")\r\n\t\t\t\t\t\t\t\t\t|| item.getType().name().endsWith(\"CHESTPLATE\")\r\n\t\t\t\t\t\t\t\t\t|| item.getType().name().endsWith(\"LEGGINGS\")\r\n\t\t\t\t\t\t\t\t\t|| item.getType().name().endsWith(\"BOOTS\") || item.getType().name().endsWith(\"BOW\")\r\n\t\t\t\t\t\t\t\t\t|| item.getType().name().endsWith(\"PICKAXE\")\r\n\t\t\t\t\t\t\t\t\t|| item.getType().name().endsWith(\"HOE\")) {\r\n\t\t\t\t\t\t\t\t// papplier.sendMessage(\"3\");\r\n\t\t\t\t\t\t\t\tif (item.hasItemMeta()) {\r\n\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"4\");\r\n\t\t\t\t\t\t\t\t\tif (item.getItemMeta().hasLore()) {\r\n\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"5\");\r\n\t\t\t\t\t\t\t\t\t\tif (item.getItemMeta().hasDisplayName()) {\r\n\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"6\");\r\n\t\t\t\t\t\t\t\t\t\t\tif (Methods.transmogged(item) == true) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"7\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(Api.transint(item)\r\n\t\t\t\t\t\t\t\t\t\t\t\t// + \"\");\r\n\t\t\t\t\t\t\t\t\t\t\t\tdname.put(item, item.getItemMeta().getDisplayName());\r\n\t\t\t\t\t\t\t\t\t\t\t\tI.put(papplier, Methods.transint(item));\r\n\t\t\t\t\t\t\t\t\t\t\t\ttransmogged.put(item, true);\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\tif (Methods.transmogged(item) == false) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"8\");\r\n\t\t\t\t\t\t\t\t\t\t\t\ttransmogged.put(item, false);\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tif (!item.getItemMeta().hasDisplayName()) {\r\n\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"9\");\r\n\t\t\t\t\t\t\t\t\t\t\ttransmogged.put(item, false);\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tif (transmogged.get(item) != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"10\");\r\n\t\t\t\t\t\t\t\t\t\t\tif (transmogged.get(item) == false) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"11\");\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (transmog.hasItemMeta()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"12\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (transmog.getItemMeta().hasLore()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"13\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (transmog.getItemMeta().hasDisplayName()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (transmog.getItemMeta().getDisplayName()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(Methods.color(\"&e&lTransmog\"))) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"14\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (String tlore : transmog.getItemMeta().getLore()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"15\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (tlore.contains(Methods.color(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"&e&oPlace scroll on item to apply.\"))) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"16\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (e.getClickedInventory() instanceof PlayerInventory) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"17\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (CE.getItemEnchantments(item)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.size() > 0) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMaterial material = item.getType();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tItemStack titem = new ItemStack(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmaterial, 1);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tItemMeta titemMeta = titem\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getItemMeta();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (item.getEnchantments() == null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tenchanted.put(titem, false);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (item.getEnchantments() != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tenchants = item.getEnchantments();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tArrayList<CEnchantments> enchantes = CE\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getEnchantments();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tArrayList<String> enchanters = new ArrayList<String>();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (CEnchantments encs : enchantes) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tenchanters.add(Methods.removeColor(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tencs.getCustomName()));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (String ench : item.getItemMeta()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getLore()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"29\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (enchanters\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(Methods.removePower(\r\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\tMethods.removeColor(\r\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\tench)))) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"31\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (CEnchantments enchant : CE\r\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.getEnchantments()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"19\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (ench.contains(enchant\r\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.getCustomName())) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tString tier = CE\r\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.getEnchantmentCategory(\r\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\tenchant);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (tier.contains(\r\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\"T1\")) {\r\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\tlore1.add(0, Methods\r\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.color(ench));\r\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\tcontinue;\r\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} else if (tier\r\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.contains(\r\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\"T2\")) {\r\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\tlore2.add(0, Methods\r\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.color(ench));\r\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\tcontinue;\r\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} else if (tier\r\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.contains(\r\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\"T3\")) {\r\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\tlore3.add(0, Methods\r\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.color(ench));\r\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\tcontinue;\r\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} else if (tier\r\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.contains(\r\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\"T4\")) {\r\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\tlore4.add(0, Methods\r\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.color(ench));\r\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\tcontinue;\r\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} else if (tier\r\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.contains(\r\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\"T5\")) {\r\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\tlore5.add(0, Methods\r\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.color(ench));\r\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\tcontinue;\r\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} else if (tier\r\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.contains(\r\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\"T6\")) {\r\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\tlore6.add(0, Methods\r\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.color(ench));\r\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\tcontinue;\r\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}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlore7.add(ench);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore7);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore6);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore5);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore4);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore3);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore2);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore1);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tint enchNumber = CE\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getItemEnchantments(item)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.size();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (itemMeta.hasDisplayName()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttname = item.getItemMeta()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getDisplayName()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" &d&l[&b&l&n\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ enchNumber + \"&d&l]\";\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (!itemMeta.hasDisplayName()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttname = \"&a\" + item.getType().name()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" &d&l[&b&l&n\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ enchNumber + \"&d&l]\";\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.setCancelled(true);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitemMeta.setLore(totallore);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitemMeta.setDisplayName(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMethods.color(tname));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitem.setItemMeta(titemMeta);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitem.addUnsafeEnchantments(enchants);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (enchanted.get(titem) != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (enchanted.get(titem) == false) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMethods.addGlow(titem);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.setCursor(null);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getInventory()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.removeItem(item);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getInventory().addItem(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew ItemStack[] { titem });\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (int i2 = 1; i2 <= 10; ++i2) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getWorld().playEffect(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getEyeLocation(),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tEffect.SPELL, 1);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getWorld().playSound(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getLocation(),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tSound.LEVEL_UP, 1.0f, 1.0f);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tenchants = null;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (transmogged.get(item) != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttransmogged.remove(item);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (dname.get(item) != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdname.remove(item);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (I.get(item) != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tI.remove(item);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.getWhoClicked().sendMessage(Methods.color(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"&6Swarm&eEnchants&f >> &cYou may only use Transmog scrolls in your own inventory!\"));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\tif (transmogged.get(item) == true) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"21\");\r\n\t\t\t\t\t\t\t\t\t\t\t\tString dname1 = dname.get(item).replace(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tMethods.color(\"&d&l[&b&l&n\" + I.get(papplier) + \"&d&l]\"), \"\");\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (transmog.hasItemMeta()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"22\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (transmog.getItemMeta().hasLore()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (transmog.getItemMeta().hasDisplayName()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"23\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (transmog.getItemMeta().getDisplayName()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(Methods.color(\"&e&lTransmog\"))) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"24\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (String tlore : transmog.getItemMeta().getLore()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"25\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (tlore.contains(Methods.color(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"&e&oPlace scroll on item to apply.\"))) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"26\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (e.getClickedInventory() instanceof PlayerInventory) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"27\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (CE.getItemEnchantments(item)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.size() > 0) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"28\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMaterial material = item.getType();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tItemStack titem = new ItemStack(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmaterial, 1);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tItemMeta titemMeta = titem\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getItemMeta();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (item.getEnchantments() == null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMethods.addGlow(titem);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (item.getEnchantments() != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tenchants = item.getEnchantments();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tArrayList<CEnchantments> enchantes = CE\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getEnchantments();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tArrayList<String> enchanters = new ArrayList<String>();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (CEnchantments encs : enchantes) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tenchanters.add(Methods.removeColor(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tencs.getCustomName()));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (String ench : item.getItemMeta()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getLore()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"29\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (enchanters\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(Methods.removePower(\r\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\tMethods.removeColor(\r\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\tench)))) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"31\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (CEnchantments enchant : CE\r\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.getEnchantments()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"19\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (ench.contains(enchant\r\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.getCustomName())) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tString tier = CE\r\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.getEnchantmentCategory(\r\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\tenchant);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (tier.contains(\r\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\"T1\")) {\r\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\tlore1.add(0, Methods\r\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.color(ench));\r\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\tcontinue;\r\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} else if (tier\r\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.contains(\r\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\"T2\")) {\r\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\tlore2.add(0, Methods\r\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.color(ench));\r\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\tcontinue;\r\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} else if (tier\r\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.contains(\r\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\"T3\")) {\r\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\tlore3.add(0, Methods\r\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.color(ench));\r\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\tcontinue;\r\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} else if (tier\r\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.contains(\r\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\"T4\")) {\r\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\tlore4.add(0, Methods\r\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.color(ench));\r\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\tcontinue;\r\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} else if (tier\r\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.contains(\r\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\"T5\")) {\r\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\tlore5.add(0, Methods\r\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.color(ench));\r\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\tcontinue;\r\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} else if (tier\r\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.contains(\r\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\"T6\")) {\r\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\tlore6.add(0, Methods\r\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.color(ench));\r\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\tcontinue;\r\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}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlore7.add(ench);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore7);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore6);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore5);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore4);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore3);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore2);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore1);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tint enchNumber = CE\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getItemEnchantments(item)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.size();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (itemMeta.hasDisplayName()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttname = dname1 + \" &d&l[&b&l&n\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ enchNumber + \"&d&l]\";\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.setCancelled(true);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitemMeta.setLore(totallore);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitemMeta.setDisplayName(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMethods.color(tname));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitem.setItemMeta(titemMeta);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitem.addUnsafeEnchantments(enchants);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.setCursor(null);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getInventory()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.removeItem(item);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getInventory().addItem(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew ItemStack[] { titem });\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (int i2 = 1; i2 <= 10; ++i2) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getWorld().playEffect(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getEyeLocation(),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tEffect.SPELL, 1);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getWorld().playSound(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getLocation(),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tSound.LEVEL_UP, 1.0f, 1.0f);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tenchants = null;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (transmogged.get(item) != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttransmogged.remove(item);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (dname.get(item) != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdname.remove(item);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (I.get(item) != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tI.remove(item);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.getWhoClicked().sendMessage(Methods.color(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"&6Swarm&eEnchants&f >> &cYou may only use Transmog scrolls in your own inventory!\"));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void onHarvestPart(qx player, int part)\r\n/* 77: */ {\r\n/* 78: 64 */ boolean change = false;\r\n/* 79: 65 */ if (part == 29)\r\n/* 80: */ {\r\n/* 81: 66 */ CoreLib.dropItem(this.k, this.l, this.m, this.n, new ur(RedPowerMachine.blockFrame, 1));\r\n/* 82: 69 */ if (this.CoverSides > 0)\r\n/* 83: */ {\r\n/* 84: 70 */ replaceWithCovers();\r\n/* 85: 71 */ updateBlockChange();\r\n/* 86: */ }\r\n/* 87: */ else\r\n/* 88: */ {\r\n/* 89: 72 */ deleteBlock();\r\n/* 90: */ }\r\n/* 91: */ }\r\n/* 92: */ else\r\n/* 93: */ {\r\n/* 94: 74 */ super.onHarvestPart(player, part);\r\n/* 95: 75 */ return;\r\n/* 96: */ }\r\n/* 97: */ }", "private void generateItemEntities(){\n final int NUM_POTIONS = 6;\n final int NUM_IRON_ARMOUR = 1;\n final int NUM_CHESTS = 2;\n final String ITEM_BOX_STYLE = \"volcano\";\n\n\n for (int i = 0; i < NUM_POTIONS; i++) {\n Tile tile = getTile(Item.randomItemPositionGenerator(DEFAULT_WIDTH),\n Item.randomItemPositionGenerator(DEFAULT_HEIGHT));\n if (Integer.parseInt(tile.getTextureName().split(\"_\")[1]) < 5\n && !tile.hasParent()) {\n HealthPotion potion = new HealthPotion(tile,false,\n (PlayerPeon) getPlayerEntity(), ITEM_BOX_STYLE);\n entities.add(potion);\n this.allVolcanoDialogues.add(potion.getDisplay());\n } else {\n i--;\n }\n }\n for (int i =0; i < NUM_IRON_ARMOUR; i++){\n Tile tile = getTile(Item.randomItemPositionGenerator(DEFAULT_WIDTH),\n Item.randomItemPositionGenerator(DEFAULT_HEIGHT));\n if (Integer.parseInt(tile.getTextureName().split(\"_\")[1]) < 5\n && !tile.hasParent()) {\n IronArmour ironArmour = new IronArmour(tile, false,\n (PlayerPeon) getPlayerEntity(),ITEM_BOX_STYLE,200);\n entities.add(ironArmour);\n this.allVolcanoDialogues.add(ironArmour.getDisplay());\n } else {\n i--;\n }\n }\n for (int i = 0; i <NUM_CHESTS; i++){\n Tile tile = getTile(Item.randomItemPositionGenerator(DEFAULT_WIDTH),\n Item.randomItemPositionGenerator(DEFAULT_HEIGHT));\n if (Integer.parseInt(tile.getTextureName().split(\"_\")[1]) < 5\n && !tile.hasParent()) {\n Treasure chest = new Treasure(tile, false,\n (PlayerPeon) getPlayerEntity(),ITEM_BOX_STYLE);\n entities.add(chest);\n this.allVolcanoDialogues.add(chest.getDisplay());\n } else {\n i--;\n }\n }\n\n Tile cooldownring = getTile(20,-7);\n CooldownRing cdring = new CooldownRing(cooldownring, false,\n (PlayerPeon) this.getPlayerEntity(), ITEM_BOX_STYLE,0.5f);\n entities.add(cdring);\n this.allVolcanoDialogues.add(cdring.getDisplay());\n\n Tile attackAmuletTile = getTile(2,14);\n Amulet attackAmulet = new Amulet(attackAmuletTile, false,\n (PlayerPeon) this.getPlayerEntity(), ITEM_BOX_STYLE,10);\n entities.add(attackAmulet);\n this.allVolcanoDialogues.add(attackAmulet.getDisplay());\n\n }", "private void addRoomItems(int itemsToAdd)\n {\n\n // Adds up to 3 random items to a random room .\n if (!(itemsToAdd == 0)){\n\n for(int j = 0; j < itemsToAdd; j++){\n Item chooseItem = chooseValidItem(); \n Room chooseRoom = rooms.get(random.nextInt(rooms.size()));\n\n chooseRoom.getInventory().getItems().add(chooseItem);\n System.out.println(chooseRoom.getName()+\": \"+chooseItem.getName());\n\n }\n }\n }", "static private void loadGame() {\n ArrayList loadData = data.loadGame();\n\n //inventory\n inventory = new Inventory();\n LinkedTreeMap saveMap = (LinkedTreeMap) loadData.get(0);\n if (!saveMap.isEmpty()) {\n LinkedTreeMap inventoryItemWeight = (LinkedTreeMap) saveMap.get(\"itemWeight\");\n LinkedTreeMap inventoryItemQuantity = (LinkedTreeMap) saveMap.get(\"inventory\");\n String inventoryItemQuantityString = inventoryItemQuantity.toString();\n inventoryItemQuantityString = removeCrapCharsFromString(inventoryItemQuantityString);\n String itemListString = inventoryItemWeight.toString();\n itemListString = removeCrapCharsFromString(itemListString);\n\n for (int i = 0; i < inventoryItemWeight.size(); i++) {\n String itemSet;\n double itemQuantity;\n if (itemListString.contains(\",\")) {\n itemQuantity = Double.parseDouble(inventoryItemQuantityString.substring(inventoryItemQuantityString.indexOf(\"=\") + 1, inventoryItemQuantityString.indexOf(\",\")));\n inventoryItemQuantityString = inventoryItemQuantityString.substring(inventoryItemQuantityString.indexOf(\",\") + 1, inventoryItemQuantityString.length());\n itemSet = itemListString.substring(0, itemListString.indexOf(\",\"));\n itemListString = itemListString.substring(itemListString.indexOf(\",\") + 1, itemListString.length());\n } else {\n itemSet = itemListString;\n itemQuantity = Double.parseDouble(inventoryItemQuantityString.substring(inventoryItemQuantityString.indexOf(\"=\") + 1, inventoryItemQuantityString.length()));\n }\n String itemName = itemSet.substring(0, itemSet.indexOf(\"=\"));\n int itemWeight = Double.valueOf(itemSet.substring(itemSet.indexOf(\"=\") + 1, itemSet.length())).intValue();\n while (itemQuantity > 0) {\n Item item = new Item(itemName, \"\", itemWeight, true);\n inventory.addItemInInventory(item);\n itemQuantity--;\n }\n }\n }\n\n //itemList\n itemLocation = new ItemLocation();\n saveMap = (LinkedTreeMap) loadData.get(1);\n if (!saveMap.isEmpty()) {\n System.out.println(saveMap.keySet());\n LinkedTreeMap itemLocationOnMap = (LinkedTreeMap) saveMap;\n String rooms = saveMap.keySet().toString();\n rooms = removeCrapCharsFromString(rooms);\n for (int j = 0; j <= itemLocationOnMap.size() - 1; j++) {\n String itemToAdd;\n\n if (rooms.contains(\",\")) {\n itemToAdd = rooms.substring(0, rooms.indexOf(\",\"));\n } else {\n itemToAdd = rooms;\n }\n\n rooms = rooms.substring(rooms.indexOf(\",\") + 1, rooms.length());\n ArrayList itemInRoom = (ArrayList) itemLocationOnMap.get(itemToAdd);\n for (int i = 0; i < itemInRoom.size(); i++) {\n Item itemLocationToAdd;\n LinkedTreeMap itemT = (LinkedTreeMap) itemInRoom.get(i);\n String itemName = itemT.get(\"name\").toString();\n String itemDesc = \"\";\n int itemWeight = (int) Double.parseDouble(itemT.get(\"weight\").toString());\n boolean itemUseable = Boolean.getBoolean(itemT.get(\"useable\").toString());\n\n itemLocationToAdd = new PickableItem(itemName, itemDesc, itemWeight, itemUseable);\n itemLocation.addItem(itemToAdd, itemLocationToAdd);\n\n }\n }\n //set room\n String spawnRoom = loadData.get(3).toString();\n currentRoom = getRoomFromName(spawnRoom);\n }\n }", "private void useInventoryByAI() {\n\t\tChampion AI = currentTask.getCurrentChamp();\n\t\tArrayList<Collectible> inventory = ((Wizard)AI).getInventory();\n\t\tif(inventory.size()>0){\n\t\t\tint randomPotion = (int)(Math.random()*inventory.size());\n\t\t\tcurrentTask.usePotion((Potion)inventory.get(randomPotion));\n\t\t}\n\n\t\t\n\t}", "private void loadStartingInventory(){\n this.shelfList = floor.getShelf();\n Iterator<String> i = items.iterator();\n for (Shelf s : shelfList){\n while (s.hasFreeSpace()){\n s.addItem(i.next(), 1);\n }\n }\n }", "private void videoCBItemStateChanged(java.awt.event.ItemEvent evt) {\n for(AudioVisualMaterial currentVideo : video){ //iterates through video array\n currentMaterial = currentVideo; //passes local variable into class variable\n if(videoCB.getSelectedItem() == currentMaterial.getTitle()){ //if comboBox selection matches a video's title\n videoText.setText(currentMaterial.displayInfo()); //display that video's info in TextArea\n videoImage.setIcon(currentMaterial.getCoverImage()); //display that video's image\n currentMaterial.setupSoundClip(); //set up sound clip\n currentMaterial.playSoundClip(); //play that video's soundClip\n }\n if(videoCB.getSelectedItem() != currentMaterial.getTitle()){ //if combobox selection does not match a video's title\n currentMaterial.setupSoundClip(); //set up sound clip\n //currentMaterial.stopSoundClip(); //stop sound clip\n }\n if(videoCB.getSelectedItem() == SelectVideo.getTitle()){ //if combobox selection matches default title\n videoText.setText(\"\"); //clear text\n }\n }\n }", "public void createMainInventor() {\n String name = _plugin.getConfigManager().getGeneralSettingsMap().get(\"Name\");\r\n String colorizedName = _plugin.getUtilsManager().colorizeString(name);\r\n //Size of the Inventory;\r\n int inventorySize = Integer.valueOf(_plugin.getConfigManager().getGeneralSettingsMap().get(\"InventorySize\"));\r\n //Initialize Inventory;\r\n mainInventory = _plugin.getServer().createInventory(null, inventorySize, colorizedName);\r\n //Retrieve the HashMaps for the plugin;\r\n HashMap<Integer, CategoryItem> categoryInformationMap = _plugin.getConfigManager().getCategoryInformationMap();\r\n HashMap<String, String> languageInformation = _plugin.getConfigManager().getLanguageInformationMap();\r\n //Add items to Inventory;\r\n for (Integer i : categoryInformationMap.keySet()) {\r\n CategoryItem categoryItem = categoryInformationMap.get(i);\r\n ItemStack item = categoryItem.getItem();\r\n ItemMeta itemMeta = item.getItemMeta();\r\n itemMeta.setDisplayName(_plugin.getUtilsManager().colorizeString(languageInformation.get(\"CategoryName\").replace(\"%cat%\", categoryItem.getName())));\r\n List<String> lore = new ArrayList<>();\r\n lore.add(_plugin.getUtilsManager().colorizeString(categoryItem.getDescription()));\r\n item.setItemMeta(itemMeta);\r\n mainInventory.addItem(item);\r\n }\r\n }", "private void drawInventory() {\n Texture highlight = createInventoryHighlight();\n InventoryComponent inventory = gameWorld.getHero().getInventory();\n\n float originX = ((VIRTUAL_HEIGHT * Gdx.graphics.getWidth() / Gdx.graphics.getHeight()) / 2) - (inventory.getSize() * ITEM_BACKGROUND_SIZE) / 2;\n\n Item[] items = inventory.getItems();\n for (int i = 0; i < inventory.getSize(); i++) {\n hudBatch.draw(background, originX + i * ITEM_BACKGROUND_SIZE, 0, ITEM_BACKGROUND_SIZE, ITEM_BACKGROUND_SIZE);\n if (items[i] != null) {\n if (inventory.getSelectedItem() != null && items[i] == inventory.getSelectedItem()) {\n hudBatch.draw(highlight, originX + i * ITEM_BACKGROUND_SIZE, 0, ITEM_BACKGROUND_SIZE, ITEM_BACKGROUND_SIZE / 12);\n }\n float itemOffset = ITEM_BACKGROUND_SIZE / 2 - calculateItemWidth(items[i]) / 2;\n hudBatch.draw(items[i].getTexture(), (originX + i * INVENTORY_ITEM_SIZE) + itemOffset, 0, calculateItemWidth(items[i]), INVENTORY_ITEM_SIZE);\n }\n }\n }", "public void addItemInventory(Item item){\r\n playerItem.add(item);\r\n System.out.println(item.getDescription() + \" was taken \");\r\n }", "private void refreshPlayerList() {\n List<MarketItem> items = new ArrayList<>();\n EntityRef player = localPlayer.getCharacterEntity();\n for (int i = 0; i < inventoryManager.getNumSlots(player); i++) {\n EntityRef entity = inventoryManager.getItemInSlot(player, i);\n\n if (entity.getParentPrefab() != null) {\n MarketItem item;\n\n if (entity.hasComponent(BlockItemComponent.class)) {\n String itemName = entity.getComponent(BlockItemComponent.class).blockFamily.getURI().toString();\n item = marketItemRegistry.get(itemName, 1);\n } else {\n item = marketItemRegistry.get(entity.getParentPrefab().getName(), 1);\n }\n\n items.add(item);\n }\n }\n\n tradingScreen.setPlayerItems(items);\n }", "public void addToInventory(IWeapon weapon){\n if (weaponsInventory.size() < 12) {\n this.weaponsInventory.add(weapon);\n lenInventory += 1;\n }\n }", "private static Inventory[] createInventoryList() {\n Inventory[] inventory = new Inventory[3];\r\n \r\n Inventory potion = new Inventory();\r\n potion.setDescription(\"potion\");\r\n potion.setQuantityInStock(0);\r\n inventory[Item.potion.ordinal()] = potion;\r\n \r\n Inventory powerup = new Inventory();\r\n powerup.setDescription(\"powerup\");\r\n powerup.setQuantityInStock(0);\r\n inventory[Item.powerup.ordinal()] = powerup;\r\n \r\n Inventory journalclue = new Inventory();\r\n journalclue.setDescription(\"journalclue\");\r\n journalclue.setQuantityInStock(0);\r\n inventory[Item.journalclue.ordinal()] = journalclue;\r\n \r\n return inventory;\r\n }", "public static void main(String[] args) {\n Inventory inventory = new Inventory(); \n \n List<Guitar> allGuitars=initializeInventory();//添加guitar列表\n \n \n GuitarSpec whatErinLikes = \n new GuitarSpec(Builder.JIANGSU, \"Stratocastor\", \n Type.ACOUSTIC, Wood.CAMPHOR, Wood.CAMPHOR);\n List matchingGuitars = inventory.search(whatErinLikes,allGuitars);\n if (!matchingGuitars.isEmpty()) {\n System.out.println(\"Erin, you might like these guitars:\");\n for (Iterator i = matchingGuitars.iterator(); i.hasNext(); ) {\n Guitar guitar = (Guitar)i.next();\n GuitarSpec spec = guitar.getSpec();\n System.out.println(\" We have a \" +\n spec.getBuilder() + \" \" + spec.getModel() + \" \" +\n spec.getType() + \" guitar:\\n \" +\n spec.getBackWood() + \" back and sides,\\n \" +\n spec.getTopWood() + \" top.\\n You can have it for only $\" +\n guitar.getPrice() + \"!\\n ----\");\n }\n } else {\n System.out.println(\"Sorry, Erin, we have nothing for you.\");\n }\n }", "public void addItemInventory(Item item){\n playerItem.add(item);\n System.out.println(item.getDescription() + \" was taken \");\n System.out.println(item.getDescription() + \" was removed from the room\"); // add extra information to inform user that the item has been taken\n }", "public void takeItemsFromChest() {\r\n currentRoom = player.getCurrentRoom();\r\n for (int i = 0; i < currentRoom.getChest().size(); i++) {\r\n player.addToInventory(currentRoom.getChest().get(i));\r\n currentRoom.getChest().remove(i);\r\n }\r\n\r\n }", "private void itemIntersectsPlayer(Entity item){\n WeaponComponent weaponComponent = player.weaponComponent;\n HealthComponent healthComponent = (HealthComponent) player.getComponent(ComponentType.HEALTH);\n\n EntityType type = item.getEntityType();\n\n\n switch (type){\n\n case ASSAULT_RIFLE:\n AssaultRifle rifle = (AssaultRifle) item;\n rifle.setInInventory(true);\n weaponComponent.addWeapon(item);\n room.getEntityManager().removeEntity(rifle);\n break;\n\n case SHOTGUN:\n Shotgun shotgun = (Shotgun) item;\n shotgun.setInInventory(true);\n weaponComponent.addWeapon(item);\n room.getEntityManager().removeEntity(shotgun);\n break;\n\n case SWORD:\n Sword sword = (Sword) item;\n sword.setInInventory(true);\n weaponComponent.addWeapon(item);\n room.getEntityManager().removeEntity(sword);\n break;\n\n\n case SHIELD:\n Shield shield = (Shield) item;\n shield.setInInventory(true);\n healthComponent.setHasShield(true);\n room.getEntityManager().removeEntity(shield);\n break;\n\n case SPEEDBOOST:\n SpeedBoost speedBoost = (SpeedBoost) item;\n speedBoost.setInInventory(true);\n player.startBoost(10000);\n room.getEntityManager().removeEntity(speedBoost);\n break;\n\n case HEART:\n Heart heart = (Heart) item;\n heart.setInInventory(true);\n healthComponent.incrementCurrentHealth();\n //do player logic here\n room.getEntityManager().removeEntity(heart);\n break;\n\n\n }\n\n\n }", "@SideOnly(Side.CLIENT)\n/* */ public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List<String> par3List, boolean par4) {\n/* 59 */ if (GuiScreen.isShiftKeyDown()) {\n/* 60 */ par3List.add(StatCollector.translateToLocal(\"item.ItemSoulTome1.lore\"));\n/* 61 */ par3List.add(StatCollector.translateToLocal(\"item.ItemSoulTome2.lore\"));\n/* 62 */ par3List.add(StatCollector.translateToLocal(\"item.ItemSoulTome3.lore\"));\n/* 63 */ par3List.add(StatCollector.translateToLocal(\"item.FREmpty.lore\"));\n/* 64 */ par3List.add(StatCollector.translateToLocal(\"item.ItemSoulTome4.lore\"));\n/* 65 */ par3List.add(StatCollector.translateToLocal(\"item.ItemSoulTome5.lore\"));\n/* 66 */ par3List.add(StatCollector.translateToLocal(\"item.FREmpty.lore\"));\n/* 67 */ par3List.add(StatCollector.translateToLocal(\"item.ItemSoulTome6.lore\"));\n/* 68 */ par3List.add(StatCollector.translateToLocal(\"item.ItemSoulTome7.lore\"));\n/* 69 */ par3List.add(StatCollector.translateToLocal(\"item.ItemSoulTome8.lore\"));\n/* 70 */ par3List.add(StatCollector.translateToLocal(\"item.FREmpty.lore\"));\n/* 71 */ par3List.add(StatCollector.translateToLocal(\"item.ItemSoulTome9.lore\"));\n/* 72 */ } else if (GuiScreen.isCtrlKeyDown()) {\n/* 73 */ par3List.add(StatCollector.translateToLocal(\"item.FRVisPerSecond.lore\"));\n/* 74 */ this; par3List.add(\" \" + StatCollector.translateToLocal(\"item.FRAerCost.lore\") + (AerCost / 100.0D * 10.0D));\n/* 75 */ this; par3List.add(\" \" + StatCollector.translateToLocal(\"item.FRTerraCost.lore\") + (TerraCost / 100.0D * 10.0D));\n/* 76 */ this; par3List.add(\" \" + StatCollector.translateToLocal(\"item.FRIgnisCost.lore\") + (IgnisCost / 100.0D * 10.0D));\n/* 77 */ this; par3List.add(\" \" + StatCollector.translateToLocal(\"item.FRPerditioCost.lore\") + (PerditioCost / 100.0D * 10.0D));\n/* */ } else {\n/* */ \n/* 80 */ par3List.add(StatCollector.translateToLocal(\"item.FRShiftTooltip.lore\"));\n/* 81 */ par3List.add(StatCollector.translateToLocal(\"item.FRViscostTooltip.lore\"));\n/* */ } \n/* */ \n/* 84 */ par3List.add(StatCollector.translateToLocal(\"item.FREmpty.lore\"));\n/* */ }", "void loadInventory() {\n\n // make sure there isn't already an inventory record\n MrnInventory checkInv[] =\n new MrnInventory(survey.getSurveyId()).get();\n\n if (dbg3) System.out.println(\"<br>loadInventory: survey.getSurveyId() = \" +\n survey.getSurveyId());\n if (dbg3) System.out.println(\"<br>loadInventory: checkInv.length = \" +\n checkInv.length);\n\n if (checkInv.length == 0) {\n\n inventory.setSurveyId(survey.getSurveyId());\n\n // defaults\n inventory.setDataCentre(\"SADCO\");\n inventory.setTargetCountryCode(0); // unknown\n inventory.setStnidPrefix(survey.getInstitute());\n inventory.setDataRecorded(\"Y\");\n\n // from screen - done in LoadMRNData.getArgsFromFile()\n //inventory.setCountryCode(screenInv.getCountryCode());\n //inventory.setPlanamCode(screenInv.getPlanamCode());\n //inventory.setInstitCode(screenInv.getInstitCode());\n //inventory.setCruiseName(screenInv.getCruiseName());\n //inventory.setProjectName(screenInv.getProjectName());\n //inventory.setAreaname(screenInv.getAreaname()); // use as default to show on screen\n //inventory.setDomain(screenInv.getDomain()); // use as default to show on screen\n\n inventory.setCountryCode(0); // unknown\n\n inventory.setSciCode1(1); // unknown\n inventory.setSciCode2(1); // unknown // new\n inventory.setCoordCode(1); // unknown\n\n inventory.setProjectionCode(1); // unknown\n inventory.setSpheroidCode(1); // unknown\n inventory.setDatumCode(1); // unknown\n\n inventory.setSurveyTypeCode(1); // hydro\n if (dbg) System.out.println(\"loadInventory: put inventory = \" + inventory);\n\n try {\n inventory.put();\n } catch(Exception e) {\n System.err.println(\"loadInventory: put inventory = \" + inventory);\n System.err.println(\"loadInventory: put sql = \" + inventory.getInsStr());\n e.printStackTrace();\n } // try-catch\n if (dbg3) System.out.println(\"<br>loadInventory: put inventory = \" +\n inventory);\n\n } // if (checkInv.length > 0)\n\n }", "public void genLists() {\n\t\tItem noitem = new Item(\"nothing\", \"You don't see that here.\", \"no_item\", \"\", true);\r\n\t\titems.put(noitem.getId(), noitem);\r\n\t\t\r\n\t\ttry {\r\n\t\t\t//DataInputStream in = new DataInputStream(new FileInputStream(ITEM_FILE));\r\n\t\t\tDataInputStream in = new DataInputStream(getClass().getResourceAsStream(ITEM_FILE));\r\n\t\t\ttry {\r\n\t\t\t\twhile (true) {\r\n\t\t\t\t\tItem new_item = Item.readItem(in);\r\n\t\t\t\t\titems.put(new_item.getId(), new_item);\r\n\t\t\t\t}\r\n\t\t\t} catch (EOFException eof) {}\r\n\t\t\tin.close();\r\n\t\t\t\r\n\t\t\tin = new DataInputStream(getClass().getResourceAsStream(ROOM_FILE));\r\n\t\t\ttry {\r\n\t\t\t\twhile (true) {\r\n\t\t\t\t\tRoom new_room = Room.readRoom(in, items);\r\n\t\t\t\t\trooms.put(new_room.getId(), new_room);\r\n\t\t\t\t}\r\n\t\t\t} catch (EOFException eof) {}\r\n\t\t\tin.close();\r\n\t\t\t\r\n\t\t} catch (IOException e) {\r\n\t\t\tSystem.err.println(e);\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\t\t\r\n\t\tplayer.setCurrentRoom(getRoom(\"start\"));\r\n\t}", "Items(){\r\n\t\tname=new String[]{\r\n\t\t\t\t\"\",\r\n\t\t\t\t//Parts to the vaccine[1-3]\r\n\t\t\t\t\"Mysterious Vial\", \"Piece of alien meteorite\",\"Alien X\",\r\n\t\t\t\t//Keys[4-6]\r\n\t\t\t\t\"Mysterious Key\",\"Office Key\",\"Captian's Key\",\r\n\t\t\t\t//suit[7,8]\r\n\t\t\t\t\"Hazmat Suit\",\"Gas Mask\",\r\n\t\t\t\t//vials[9-11]\r\n\t\t\t\t\"Blue Vial\",\"Pink Vial\", \"Gold Vial\",\r\n\t\t\t\t//other[12,13]\r\n\t\t\t\t\"X Files\", \"Demon's Bane Flower\",\"Reinforced Armor\"\r\n\t\t};\r\n\t\tdescription=new String[]{\r\n\t\t\t\t\"\",\r\n\t\t\t\t//vaccine parts[2-4]\r\n\t\t\t\t\"A special vial coated with a mysterious substance\",\r\n\t\t\t\t\"Part of an alien meteorite that the crew excavated\",\r\n\t\t\t\t\"A powerful allergen that instantly kills one’s immune system and their whole well-being, mutating them into something inhuman\",\r\n\t\t\t\t//keys\r\n\t\t\t\t\"A metal key that must open a door\",\r\n\t\t\t\t\"Looks like a normal key\",\r\n\t\t\t\t\"A metal key used to unlock something\",\r\n\t\t\t\t//Suit\r\n\t\t\t\t\"A full-body suit designed to keep harmful toxins away from the wearer. The face mask is missing, however\",\r\n\t\t\t\t\"A mask that goes over the wearer’s head and filters out all harmful substances in the air\",\r\n\t\t\t\t//Vials\r\n\t\t\t\t\"A vial similar to the ones in the DNA Library, it glows light blue\",\r\n\t\t\t\t\"A vial similar to the ones in the DNA Library, it glows bright pink\",\r\n\t\t\t\t\"A vial similar to the ones in the DNA Library, it glows golden yellow\",\r\n\t\t\t\t//other\r\n\t\t\t\t\"Recorded documentation of all experiments and research done while in space. Most importantly it contains reports on events leading up to the virus spreading throughout the ship\",\r\n\t\t\t\t\"A beautiful flower that seems to survive unattached to the ground, the veins running through its petals give a faint glow as a heavenly scent fills the room\",\r\n\t\t\t\t\"A set of fine leather armor with metal plates reinforcing vulnerable areas\"\r\n\t\t};\r\n\t}", "void openInventory(Player player, SimpleInventory inventory);", "public Inventory getEnchantInventory(Player p){\n Inventory inv = Bukkit.createInventory(null, 27, \"Enchant Pickaxe\");\n for(CustomEnchantment ce : enchants.keySet()){\n ItemStack item = new ItemStack(ce.getIcon());\n ItemMeta meta = item.getItemMeta();\n meta.setDisplayName(ce.getColor() + ce.getDisplayName());\n List<String> lore = new ArrayList<>();\n lore.add(\"\");\n lore.add(Changeables.CHAT + \"Current Level: \" + Changeables.CHAT_INFO + getEnchantLevel(ce, p));\n lore.add(Changeables.CHAT + \"Max Level: \" + Changeables.CHAT_INFO + ce.getMaxLevel());\n lore.add(Changeables.CHAT + \"Current Price: \" + Changeables.CHAT_INFO + ce.getPrice(getEnchantLevel(ce, p)));\n lore.add(\"\");\n lore.add(Changeables.CHAT + \"Left Click to \" + Changeables.CHAT_INFO + \" Buy 1\");\n lore.add(Changeables.CHAT + \"Right Click to \" + Changeables.CHAT_INFO + \" Buy Max\");\n meta.setLore(lore);\n item.setItemMeta(meta);\n inv.setItem(enchants.get(ce), item);\n }\n\n\n\n\n\n return inv;\n }", "private void grabItem(String item)//Made by Justin\n {\n itemFound = decodeItem(item);\n if (itemFound == null)\n {\n System.out.println(\"I don't know of any \" + item + \".\");\n }\n else\n {\n player.inventoryAdd(itemFound, currentRoom);\n }\n }", "void addElementToInventory(String elementName);", "private final Item createPileItem(Item posItem, boolean starting) {\n/* */ try {\n/* 4519 */ Item pileItem = ItemFactory.createItem(177, 60.0F, null);\n/* */ \n/* 4521 */ float newXPos = ((this.tilex << 2) + 1) + Server.rand.nextFloat() * 2.0F;\n/* 4522 */ float newYPos = ((this.tiley << 2) + 1) + Server.rand.nextFloat() * 2.0F;\n/* */ \n/* 4524 */ float height = posItem.getPosZ();\n/* 4525 */ if (Server.getSecondsUptime() > 0) {\n/* 4526 */ height = Zones.calculatePosZ(newXPos, newYPos, this, isOnSurface(), false, posItem\n/* 4527 */ .getPosZ(), null, posItem.onBridge());\n/* */ }\n/* */ \n/* */ \n/* */ \n/* 4532 */ pileItem.setPos(newXPos, newYPos, height, posItem\n/* 4533 */ .getRotation(), posItem.getBridgeId());\n/* */ \n/* 4535 */ pileItem.setZoneId(this.zone.getId(), this.surfaced);\n/* 4536 */ int data = posItem.getTemplateId();\n/* 4537 */ pileItem.setData1(data);\n/* 4538 */ byte material = 0;\n/* 4539 */ boolean multipleMaterials = false;\n/* */ \n/* */ \n/* */ \n/* 4543 */ if (this.vitems != null)\n/* */ {\n/* 4545 */ for (Item item : this.vitems.getAllItemsAsArray()) {\n/* */ \n/* 4547 */ if (!item.isDecoration() && item.getFloorLevel() == pileItem.getFloorLevel()) {\n/* */ \n/* 4549 */ if (!starting)\n/* 4550 */ sendRemoveItem(item, false); \n/* 4551 */ if (!multipleMaterials)\n/* */ {\n/* */ \n/* */ \n/* 4555 */ if (item.getMaterial() != material)\n/* */ {\n/* 4557 */ if (material == 0) {\n/* */ \n/* */ \n/* */ \n/* 4561 */ material = item.getMaterial();\n/* */ \n/* */ \n/* */ \n/* */ }\n/* */ else {\n/* */ \n/* */ \n/* */ \n/* 4570 */ material = 0;\n/* 4571 */ multipleMaterials = true;\n/* */ } \n/* */ }\n/* */ }\n/* 4575 */ if (!item.equals(posItem))\n/* 4576 */ pileItem.insertItem(item, true); \n/* 4577 */ if (data != -1 && item.getTemplateId() != data) {\n/* */ \n/* 4579 */ pileItem.setData1(-1);\n/* 4580 */ data = -1;\n/* */ } \n/* */ } \n/* */ } \n/* */ }\n/* 4585 */ String name = pileItem.getName();\n/* 4586 */ String modelname = pileItem.getModelName();\n/* 4587 */ if (data != -1) {\n/* */ \n/* 4589 */ ItemTemplate template = ItemTemplateFactory.getInstance().getTemplate(data);\n/* 4590 */ String tname = template.getName();\n/* 4591 */ name = \"Pile of \" + template.sizeString + tname;\n/* 4592 */ if (material == 0) {\n/* 4593 */ pileItem.setMaterial(template.getMaterial());\n/* */ } else {\n/* 4595 */ pileItem.setMaterial(material);\n/* 4596 */ } StringBuilder build = new StringBuilder();\n/* 4597 */ build.append(pileItem.getTemplate().getModelName());\n/* 4598 */ build.append(tname);\n/* 4599 */ build.append(\".\");\n/* 4600 */ build.append(MaterialUtilities.getMaterialString(material));\n/* 4601 */ modelname = build.toString().replaceAll(\" \", \"\").trim();\n/* 4602 */ pileItem.setName(name);\n/* */ } \n/* */ \n/* */ \n/* 4606 */ if (!starting && this.watchers != null)\n/* */ {\n/* 4608 */ for (VirtualZone vz : getWatchers()) {\n/* */ \n/* */ \n/* */ try {\n/* 4612 */ if (vz.isVisible(pileItem, this)) {\n/* */ \n/* 4614 */ boolean onGroundLevel = true;\n/* 4615 */ if (pileItem.getFloorLevel() > 0) {\n/* 4616 */ onGroundLevel = false;\n/* */ \n/* */ }\n/* 4619 */ else if ((getFloors(0, 0)).length > 0) {\n/* 4620 */ onGroundLevel = false;\n/* */ } \n/* 4622 */ vz.addItem(pileItem, this, onGroundLevel);\n/* 4623 */ if (data != -1) {\n/* 4624 */ vz.renameItem(pileItem, name, modelname);\n/* */ }\n/* */ } \n/* 4627 */ } catch (Exception e) {\n/* */ \n/* 4629 */ logger.log(Level.WARNING, e.getMessage(), e);\n/* */ } \n/* */ } \n/* */ }\n/* 4633 */ return pileItem;\n/* */ }\n/* 4635 */ catch (FailedException fe) {\n/* */ \n/* 4637 */ logger.log(Level.WARNING, fe.getMessage(), (Throwable)fe);\n/* */ }\n/* 4639 */ catch (NoSuchTemplateException nst) {\n/* */ \n/* 4641 */ logger.log(Level.WARNING, nst.getMessage(), (Throwable)nst);\n/* */ } \n/* 4643 */ return null;\n/* */ }", "@Override\n\tpublic void openInventory() {\n\t\t\n\t}", "@Test\n public void playerWinDoublonsBySellingHisProductionTest(){\n player.playRole(new Craftman(stockGlobal));\n player.playRole(new Trader(stockGlobal,1));\n assertEquals(1,player.getInventory().getDoublons());\n assertEquals(true,stockGlobal.getStockResource(TypeWare.INDIGO)==initialIndigoInStock-1);\n\n ArrayList<Plantation> plantationsCorn = new ArrayList<>();\n plantationsCorn.add(new CornPlantation());\n player.playRole(new Trader(stockGlobal,1));\n player.playRole(new Farmer(plantationsCorn,stockGlobal));\n\n assertEquals(true,player.getInventory().getDoublons()==1);\n assertEquals(true,stockGlobal.getStockResource(TypeWare.CORN)==initialCornStock);\n\n\n\n }", "private void generateItemEntities(){\n\t\tfinal int NUM_POTIONS = 6;\n\t\tfinal int NUM_IRON_ARMOUR = 1;\n\t\tfinal int NUM_CHESTS = 2;\n\t\tfinal String ITEM_BOX_STYLE = \"tundra\";\n\t\t\n\n\t\tfor (int i = 0; i < NUM_POTIONS; i++) {\n\t\t\tTile tile = getTile(Item.randomItemPositionGenerator(DEFAULT_WIDTH),\n\t\t\t\t\tItem.randomItemPositionGenerator(DEFAULT_HEIGHT));\n\t\t\tif (!tile.hasParent()) {\n\t\t\t\tHealthPotion potion = new HealthPotion(tile, false,(PlayerPeon) getPlayerEntity(), ITEM_BOX_STYLE);\n\t\t\t\tentities.add(potion);\n\t\t\t\tthis.allTundraDialogues.add(potion.getDisplay());\n\t\t\t} else {\n\t\t\t\ti--;\n\t\t\t}\n\n\t\t}\n\t\tfor (int i = 0; i < NUM_IRON_ARMOUR; i++) {\n\t\t\tTile tile = getTile(Item.randomItemPositionGenerator(DEFAULT_WIDTH),\n\t\t\t\t\tItem.randomItemPositionGenerator(DEFAULT_HEIGHT));\n\t\t\tif (!tile.hasParent()) {\n\t\t\t\tIronArmour ironArmour = new IronArmour(tile, false,\n\t\t\t\t\t\t(PlayerPeon) getPlayerEntity(), ITEM_BOX_STYLE,200);\n\t\t\t\tentities.add(ironArmour);\n\t\t\t\tthis.allTundraDialogues.add(ironArmour.getDisplay());\n\t\t\t} else {\n\t\t\t\ti--;\n\t\t\t}\n\n\t\t}\n\t\tfor (int i = 0; i < NUM_CHESTS; i++) {\n\t\t\tTile tile = getTile(Item.randomItemPositionGenerator(DEFAULT_WIDTH),\n\t\t\t\t\tItem.randomItemPositionGenerator(DEFAULT_HEIGHT));\n\t\t\tif (!tile.hasParent()) {\n\t\t\t\tTreasure chest = new Treasure(tile, false,(PlayerPeon) getPlayerEntity(), ITEM_BOX_STYLE);\n\t\t\t\tentities.add(chest);\n\t\t\t\tthis.allTundraDialogues.add(chest.getDisplay());\n\t\t\t} else {\n\t\t\t\ti--;\n\t\t\t}\n\t\t}\n\n\t\tTile cooldownring = getTile(18,17);\n\t\tCooldownRing cdring = new CooldownRing(cooldownring, false,\n\t\t\t\t(PlayerPeon) this.getPlayerEntity(), ITEM_BOX_STYLE,0.5f);\n\t\tentities.add(cdring);\n\t\tthis.allTundraDialogues.add(cdring.getDisplay());\n\n\t\tTile attackAmuletTile = getTile(-19,14);\n\t\tAmulet attackAmulet = new Amulet(attackAmuletTile, false,\n\t\t\t\t(PlayerPeon) this.getPlayerEntity(), ITEM_BOX_STYLE,10);\n\t\tentities.add(attackAmulet);\n\t\tthis.allTundraDialogues.add(attackAmulet.getDisplay());\n\n\t}", "public static void LoadItems() {\r\n\t\t\r\n\t\t/*\r\n\t\t * Basic Minecraft Hammers (Ex. Vannila Ores)\r\n\t\t */\r\n\t\r\n\t\tItemWoodHammer = new ItemWoodHammer(HammerModMain.MODID + \":ItemWoodHammer\", \"HammerMod-DZ_res/items/ItemWoodHammer.png\");\r\n\t\tItemStoneHammer = new ItemStoneHammer(HammerModMain.MODID + \":ItemStoneHammer\", \"HammerMod-DZ_res/items/ItemStoneHammer.png\");\r\n\t\t//ItemIronHammer = new ItemIronHammer(HammerModMain.MODID + \":ItemIronHammer\", \"HammerMod-DZ_res/items/ItemIronHammer.png\");\r\n\t\t//ItemGoldHammer = new ItemGoldHammer(HammerModMain.MODID + \":ItemGoldHammer\", \"HammerMod-DZ_res/items/ItemGoldHammer.png\");\r\n\t\tItemDiamondHammer = new ItemDiamondHammer(HammerModMain.MODID + \":ItemDiamondHammer\", \"HammerMod-DZ_res/items/ItemDiamondHammer.png\");\r\n\t\tItemDirtHammer = new ItemDirtHammer(HammerModMain.MODID + \":ItemDirtHammer\", \"HammerMod-DZ_res/items/ItemDirtHammer.png\");\r\n\t\tItemGlassHammer = new ItemGlassHammer(HammerModMain.MODID + \":ItemGlassHammer\", \"HammerMod-DZ_res/items/ItemGlassHammer.png\");\r\n\t\tItemSandHammer = new ItemSandHammer(HammerModMain.MODID + \":ItemSandHammer\", \"HammerMod-DZ_res/items/ItemSandHammer.png\");\r\n\t\t//ItemCactusHammer = new ItemCactusHammer(HammerModMain.MODID + \":ItemCactusHammer\", \"HammerMod-DZ_res/items/ItemCactusHammer.png\");\r\n\t\t//ItemGravelHammer = new ItemGravelHammer(HammerModMain.MODID + \":ItemGravelHammer\", \"HammerMod-DZ_res/items/ItemGravelHammer.png\");\r\n\t\t//ItemWoolHammer_white = new ItemWoolHammer_white(HammerModMain.MODID + \":ItemWoolHammer_white\", \"HammerMod-DZ_res/items/ItemWoolHammer_white.png\");\r\n\t\tItemEmeraldHammer = new ItemEmeraldHammer(HammerModMain.MODID + \":ItemEmeraldHammer\", \"HammerMod-DZ_res/items/ItemEmeraldHammer.png\");\r\n\t\tItemGrassHammer = new ItemGrassHammer(HammerModMain.MODID + \":ItemGrassHammer\", \"HammerMod-DZ_res/items/ItemGrassHammer.png\");\r\n\t\t//ItemObsidianHammer = new ItemObsidianHammer(HammerModMain.MODID + \":ItemObsidianHammer\", \"HammerMod-DZ_res/items/ItemObsidianHammer.png\");\r\n\t\t//ItemGlowstoneHammer = new ItemGlowstoneHammer(HammerModMain.MODID + \":ItemGlowstoneHammer\", \"HammerMod-DZ_res/items/ItemGlowstoneHammer.png\");\r\n\t\t//ItemRedstoneHammer = new ItemRedstoneHammer(HammerModMain.MODID + \":ItemRedstoneHammer\", \"HammerMod-DZ_res/items/ItemRedstoneHammer.png\");\r\n\t\t//ItemLapizHammer = new ItemLapizHammer(HammerModMain.MODID + \":ItemLapizHammer\", \"HammerMod-DZ_res/items/ItemLapizHammer.png\");\r\n\t\t//ItemNetherackHammer = new ItemNetherackHammer(HammerModMain.MODID + \":ItemNetherackHammer\", \"HammerMod-DZ_res/items/ItemNetherackHammer.png\");\r\n\t\t//ItemSoulSandHammer = new ItemSoulSandHammer(HammerModMain.MODID + \":ItemSoulSandHammer\", \"HammerMod-DZ_res/items/ItemSoulSandHammer.png\");\r\n\t\tItemCoalHammer = new ItemCoalHammer(HammerModMain.MODID + \":ItemCoalHammer\", \"HammerMod-DZ_res/items/ItemCoalHammer.png\");\r\n\t\tItemCharcoalHammer = new ItemCharcoalHammer(HammerModMain.MODID + \":ItemCharcoalHammer\", \"HammerMod-DZ_res/items/ItemCharcoalHammer.png\");\r\n\t\t//ItemEndstoneHammer = new ItemEndstoneHammer(HammerModMain.MODID + \":ItemEndstoneHammer\", \"HammerMod-DZ_res/items/ItemEndstoneHammer.png\");\r\n\t\tItemBoneHammer = new ItemBoneHammer(HammerModMain.MODID + \":ItemBoneHammer\", \"HammerMod-DZ_res/items/ItemBoneHammer.png\");\r\n\t\t//ItemSpongeHammer = new ItemSpongeHammer(HammerModMain.MODID + \":ItemSpongeHammer\", \"HammerMod-DZ_res/items/ItemSpongeHammer.png\");\r\n\t\t//ItemBrickHammer = new ItemBrickHammer(HammerModMain.MODID + \":ItemBrickHammer\", \"HammerMod-DZ_res/items/ItemBrickHammer.png\");\r\n\t\t//ItemSugarHammer = new ItemSugarHammer(HammerModMain.MODID + \":ItemSugarHammer\", \"HammerMod-DZ_res/items/ItemSugarHammer.png\");\r\n\t\t//ItemSlimeHammer = new ItemSlimeHammer(HammerModMain.MODID + \":ItemSlimeHammer\", \"HammerMod-DZ_res/items/ItemSlimeHammer.png\");\r\n\t\t//ItemMelonHammer = new ItemMelonHammer(HammerModMain.MODID + \":ItemMelonHammer\", \"HammerMod-DZ_res/items/ItemMelonHammer.png\");\r\n\t\t//ItemPumpkinHammer = new ItemPumpkinHammer(HammerModMain.MODID + \":ItemPumpkinHammer\", \"HammerMod-DZ_res/items/ItemPumpkinHammer.png\");\r\n\t\t//ItemPotatoHammer = new ItemPotatoHammer(HammerModMain.MODID + \":ItemPotatoHammer\", \"HammerMod-DZ_res/items/ItemPotatoHammer.png\");\r\n\t\t//ItemCarrotHammer = new ItemCarrotHammer(HammerModMain.MODID + \":ItemCarrotHammer\", \"HammerMod-DZ_res/items/ItemCarrotHammer.png\");\r\n\t\tItemAppleHammer = new ItemAppleHammer(HammerModMain.MODID + \":ItemAppleHammer\", \"HammerMod-DZ_res/items/ItemAppleHammer.png\");\r\n\t\t//ItemIceHammer = new ItemIceHammer(HammerModMain.MODID + \":ItemIceHammer\", \"HammerMod-DZ_res/items/ItemIceHammer.png\");\r\n\t\t//ItemPackedIceHammer = new ItemPackedIceHammer(HammerModMain.MODID + \":ItemPackedIceHammer\", \"HammerMod-DZ_res/items/ItemPackedIceHammer.png\");\r\n\t\t//ItemSnowHammer = new ItemSnowHammer(HammerModMain.MODID + \":ItemSnowHammer\", \"HammerMod-DZ_res/items/ItemSnowHammer.png\");\r\n\t\t//ItemCakeHammer = new ItemCakeHammer(HammerModMain.MODID + \":ItemCakeHammer\", \"HammerMod-DZ_res/items/ItemCakeHammer.png\");\r\n\t\t//ItemDragonEggHammer = new ItemDragonEggHammer(HammerModMain.MODID + \":ItemDragonEggHammer\", \"HammerMod-DZ_res/items/ItemDragonEggHammer.png\");\r\n\t\t//ItemTntHammer = new ItemTntHammer(HammerModMain.MODID + \":ItemTntHammer\", \"HammerMod-DZ_res/items/ItemTntHammer.png\");\r\n\t\t//ItemBedrockHammer = new ItemBedrockHammer(HammerModMain.MODID + \":ItemBedrockHammer\", \"HammerMod-DZ_res/items/ItemBedrockHammer.png\");\r\n\r\n\t\t/*\r\n\t\t * Mob Hammers\r\n\t\t */\r\n\t\t//ItemCreeperHammer = new ItemCreeperHammer(CREEPER).setUnlocalizedName(\"ItemCreeperHammer\").setTextureName(\"hammermod:ItemCreeperHammer\").setCreativeTab(HammerMod.HammerMod);\r\n\t\t//ItemPigHammer = new ItemPigHammer(PIG).setUnlocalizedName(\"ItemPigHammer\").setTextureName(\"hammermod:ItemPigHammer\").setCreativeTab(HammerMod.HammerMod);\r\n\t\t//ItemCowHammer = new ItemCowHammer(COW).setUnlocalizedName(\"ItemCowHammer\").setTextureName(\"hammermod:ItemCowHammer\").setCreativeTab(HammerMod.HammerMod);\r\n\t\t\r\n\r\n\t\t/*\r\n\t\t * Hammers Using Ores from other mods\r\n\t\t * **NOTE: REQUIRES Other mods to craft these hammers**\r\n\t\t */\r\n\t\tItemCopperHammer = new ItemCopperHammer(HammerModMain.MODID + \":ItemCopperHammer\", \"HammerMod-DZ_res/items/ItemCopperHammer.png\");\r\n\t\tItemBronzeHammer = new ItemBronzeHammer(HammerModMain.MODID + \":ItemBronzeHammer\", \"HammerMod-DZ_res/items/ItemBronzeHammer.png\");\r\n\t\tItemSilverHammer = new ItemSilverHammer(HammerModMain.MODID + \":ItemSilverHammer\", \"HammerMod-DZ_res/items/ItemSilverHammer.png\");\r\n\t\tItemTungstenHammer = new ItemTungstenHammer(HammerModMain.MODID + \":ItemTungstenHammer\", \"HammerMod-DZ_res/items/ItemTungstenHammer.png\");\r\n\t\tItemRubyHammer = new ItemRubyHammer(HammerModMain.MODID + \":ItemRubyHammer\", \"HammerMod-DZ_res/items/ItemRubyHammer.png\");\r\n\t\tItemTinHammer = new ItemTinHammer(HammerModMain.MODID + \":ItemTinHammer\", \"HammerMod-DZ_res/items/ItemTinHammer.png\");\r\n\t\tItemJadeHammer = new ItemJadeHammer(HammerModMain.MODID + \":ItemJadeHammer\", \"HammerMod-DZ_res/items/ItemJadeHammer.png\");\r\n\t\tItemAmethystHammer = new ItemAmethystHammer(HammerModMain.MODID + \":ItemAmethystHammer\", \"HammerMod-DZ_res/items/ItemAmethystHammer.png\");\r\n\t\tItemGraphiteHammer = new ItemGraphiteHammer(HammerModMain.MODID + \":ItemGraphiteHammer\", \"HammerMod-DZ_res/items/ItemGraphiteHammer.png\");\r\n\t\tItemCitrineHammer = new ItemCitrineHammer(HammerModMain.MODID + \":ItemCitrineHammer\", \"HammerMod-DZ_res/items/ItemCitrineHammer.png\");\r\n\t\tItemPierreHammer = new ItemPierreHammer(HammerModMain.MODID + \":ItemPierreHammer\", \"HammerMod-DZ_res/items/ItemPierreHammer.png\");\r\n\t\tItemSapphireHammer = new ItemSapphireHammer(HammerModMain.MODID + \":ItemSapphireHammer\", \"HammerMod-DZ_res/items/ItemSapphireHammer.png\");\r\n\t\tItemOnyxHammer = new ItemOnyxHammer(HammerModMain.MODID + \":ItemOnyxHammer\", \"HammerMod-DZ_res/items/ItemOnyxHammer.png\");\r\n\t\tItemNikoliteHammer = new ItemNikoliteHammer(HammerModMain.MODID + \":ItemNikoliteHammer\", \"HammerMod-DZ_res/items/ItemNikoliteHammer.png\");\r\n\t\tItemSilicaHammer = new ItemSilicaHammer(HammerModMain.MODID + \":ItemSilicaHammer\", \"HammerMod-DZ_res/items/ItemSilicaHammer.png\");\r\n\t\tItemCinnabarHammer = new ItemCinnabarHammer(HammerModMain.MODID + \":ItemCinnabarHammer\", \"HammerMod-DZ_res/items/ItemCinnabarHammer.png\");\r\n\t\tItemAmberBearingStoneHammer = new ItemAmberBearingStoneHammer(HammerModMain.MODID + \":ItemAmberBearingStoneHammer\", \"HammerMod-DZ_res/items/ItemAmberBearingStoneHammer.png\");\r\n\t\tItemFerrousHammer = new ItemFerrousHammer(HammerModMain.MODID + \":ItemFerrousHammer\", \"HammerMod-DZ_res/items/ItemFerrousHammer.png\");\r\n\t\tItemAdaminiteHammer = new ItemAdaminiteHammer(HammerModMain.MODID + \":ItemAdaminiteHammer\", \"HammerMod-DZ_res/items/ItemAdaminiteHammer.png\");\r\n\t\tItemShinyHammer = new ItemShinyHammer(HammerModMain.MODID + \":ItemShinyHammer\", \"HammerMod-DZ_res/items/ItemShinyHammer.png\");\r\n\t\tItemXychoriumHammer = new ItemXychoriumHammer(HammerModMain.MODID + \":ItemXychoriumHammer\", \"HammerMod-DZ_res/items/ItemXychoriumHammer.png\");\r\n\t\tItemUraniumHammer = new ItemUraniumHammer(HammerModMain.MODID + \":ItemUraniumHammer\", \"HammerMod-DZ_res/items/ItemUraniumHammer.png\");\r\n\t\tItemTitaniumHammer = new ItemTitaniumHammer(HammerModMain.MODID + \":ItemTitaniumHammer\", \"HammerMod-DZ_res/items/ItemTitaniumHammer.png\");\r\n\t\tItemBloodStoneHammer = new ItemBloodStoneHammer(HammerModMain.MODID + \":ItemBloodStoneHammer\", \"HammerMod-DZ_res/items/ItemBloodStoneHammer.png\");\r\n\t\tItemRustedHammer = new ItemRustedHammer(HammerModMain.MODID + \":ItemRustedHammer\", \"HammerMod-DZ_res/items/ItemRustedHammer.png\");\r\n\t\tItemRositeHammer = new ItemRositeHammer(HammerModMain.MODID + \":ItemRositeHammer\", \"HammerMod-DZ_res/items/ItemRositeHammer.png\");\r\n\t\tItemLimoniteHammer = new ItemLimoniteHammer(HammerModMain.MODID + \":ItemLimoniteHammer\", \"HammerMod-DZ_res/items/ItemLimoniteHammer.png\");\r\n\t\tItemMithrilHammer = new ItemMithrilHammer(HammerModMain.MODID + \":ItemMithrilHammer\", \"HammerMod-DZ_res/items/ItemMithrilHammer.png\");\r\n\t\tItemPrometheumHammer = new ItemPrometheumHammer(HammerModMain.MODID + \":ItemPrometheumHammer\", \"HammerMod-DZ_res/items/ItemPrometheumHammer.png\");\r\n\t\tItemHepatizonHammer = new ItemHepatizonHammer(HammerModMain.MODID + \":ItemHepatizonHammer\", \"HammerMod-DZ_res/items/ItemHepatizonHammer.png\");\r\n\t\tItemPoopHammer = new ItemPoopHammer(HammerModMain.MODID + \":ItemPoopHammer\", \"HammerMod-DZ_res/items/ItemPoopHammer.png\");\r\n\t\tItemAngmallenHammer = new ItemAngmallenHammer(HammerModMain.MODID + \":ItemAngmallenHammer\", \"HammerMod-DZ_res/items/ItemAngmallenHammer.png\");\r\n\t\tItemManganeseHammer = new ItemManganeseHammer(HammerModMain.MODID + \":ItemManganeseHammer\", \"HammerMod-DZ_res/items/ItemManganeseHammer.png\");\r\n\t\tItemSearedBrickHammer = new ItemSearedBrickHammer(HammerModMain.MODID + \":ItemSearedBrickHammer\", \"HammerMod-DZ_res/items/ItemSearedBrickHammer.png\");\r\n\t\tItemElectrumHammer = new ItemElectrumHammer(HammerModMain.MODID + \":ItemElectrumHammer\", \"HammerMod-DZ_res/items/ItemElectrumHammer.png\");\r\n\t\tItemPigIronHammer = new ItemPigIronHammer(HammerModMain.MODID + \":ItemPigIronHammer\", \"HammerMod-DZ_res/items/ItemPigIronHammer.png\");\r\n\t\tItemArditeHammer = new ItemArditeHammer(HammerModMain.MODID + \":ItemArditeHammer\", \"HammerMod-DZ_res/items/ItemArditeHammer.png\");\r\n\t\tItemAlumiteHammer = new ItemAlumiteHammer(HammerModMain.MODID + \":ItemAlumiteHammer\", \"HammerMod-DZ_res/items/ItemAlumiteHammer.png\");\r\n\t\tItemCobaltHammer = new ItemCobaltHammer(HammerModMain.MODID + \":ItemCobaltHammer\", \"HammerMod-DZ_res/items/ItemCobaltHammer.png\");\r\n\t\tItemManyullynHammer = new ItemManyullynHammer(HammerModMain.MODID + \":ItemManyullynHammer\", \"HammerMod-DZ_res/items/ItemManyullynHammer.png\");\r\n\t\tItemOureclaseHammer = new ItemOureclaseHammer(HammerModMain.MODID + \":ItemOureclaseHammer\", \"HammerMod-DZ_res/items/ItemOureclaseHammer.png\");\r\n\t\tItemHaderothHammer = new ItemHaderothHammer(HammerModMain.MODID + \":ItemHaderothHammer\", \"HammerMod-DZ_res/items/ItemHaderothHammer.png\");\r\n\t\tItemInfuscoliumHammer = new ItemInfuscoliumHammer(HammerModMain.MODID + \":ItemInfuscoliumHammer\", \"HammerMod-DZ_res/items/ItemInfuscoliumHammer.png\");\r\n\t\tItemRubberHammer = new ItemRubberHammer(HammerModMain.MODID + \":ItemRubberHammer\", \"HammerMod-DZ_res/items/ItemRubberHammer.png\");\r\n\t\tItemDesichalkosHammer = new ItemDesichalkosHammer(HammerModMain.MODID + \":ItemDesichalkosHammer\", \"HammerMod-DZ_res/items/ItemDesichalkosHammer.png\");\r\n\t\tItemMeutoiteHammer = new ItemMeutoiteHammer(HammerModMain.MODID + \":ItemMeutoiteHammer\", \"HammerMod-DZ_res/items/ItemMeutoiteHammer.png\");\r\n\t\tItemEximiteHammer = new ItemEximiteHammer(HammerModMain.MODID + \":ItemEximiteHammer\", \"HammerMod-DZ_res/items/ItemEximiteHammer.png\");\r\n\t\tItemMidasiumHammer = new ItemMidasiumHammer(HammerModMain.MODID + \":ItemMidasiumHammer\", \"HammerMod-DZ_res/items/ItemMidasiumHammer.png\");\r\n\t\tItemSanguiniteHammer = new ItemSanguiniteHammer(HammerModMain.MODID + \":ItemSanguiniteHammer\", \"HammerMod-DZ_res/items/ItemSanguiniteHammer.png\");\r\n\t\tItemInolashiteHammer = new ItemInolashiteHammer(HammerModMain.MODID + \":ItemInolashiteHammer\", \"HammerMod-DZ_res/items/ItemInolashiteHammer.png\");\r\n\t\tItemVulcaniteHammer = new ItemVulcaniteHammer(HammerModMain.MODID + \":ItemVulcaniteHammer\", \"HammerMod-DZ_res/items/ItemVulcaniteHammer.png\");\r\n\t\tItemLemuriteHammer = new ItemLemuriteHammer(HammerModMain.MODID + \":ItemLemuriteHammer\", \"HammerMod-DZ_res/items/ItemLemuriteHammer.png\");\r\n\t\tItemAmordrineHammer = new ItemAmordrineHammer(HammerModMain.MODID + \":ItemAmordrineHammer\", \"HammerMod-DZ_res/items/ItemAmordrineHammer.png\");\r\n\t\tItemCeruclaseHammer = new ItemCeruclaseHammer(HammerModMain.MODID + \":ItemCeruclaseHammer\", \"HammerMod-DZ_res/items/ItemCeruclaseHammer.png\");\r\n\t\tItemKalendriteHammer = new ItemKalendriteHammer(HammerModMain.MODID + \":ItemKalendriteHammer\", \"HammerMod-DZ_res/items/ItemKalendriteHammer.png\");\r\n\t\tItemVyroxeresHammer = new ItemVyroxeresHammer(HammerModMain.MODID + \":ItemVyroxeresHammer\", \"HammerMod-DZ_res/items/ItemVyroxeresHammer.png\");\r\n\t\tItemCarmotHammer = new ItemCarmotHammer(HammerModMain.MODID + \":ItemCarmotHammer\", \"HammerMod-DZ_res/items/ItemCarmotHammer.png\");\r\n\t\tItemTartariteHammer = new ItemTartariteHammer(HammerModMain.MODID + \":ItemTartariteHammer\", \"HammerMod-DZ_res/items/ItemTartariteHammer.png\");\r\n\t\tItemAtlarusHammer = new ItemAtlarusHammer(HammerModMain.MODID + \":ItemAtlarusHammer\", \"HammerMod-DZ_res/items/ItemAtlarusHammer.png\");\r\n\t\tItemAstralHammer = new ItemAstralHammer(HammerModMain.MODID + \":ItemAstralHammer\", \"HammerMod-DZ_res/items/ItemAstralHammer.png\");\r\n\t\tItemCelenegilHammer = new ItemCelenegilHammer(HammerModMain.MODID + \":ItemCelenegilHammer\", \"HammerMod-DZ_res/items/ItemCelenegilHammer.png\");\r\n\t\tItemAredriteHammer = new ItemAredriteHammer(HammerModMain.MODID + \":ItemAredriteHammer\", \"HammerMod-DZ_res/items/ItemAredriteHammer.png\");\r\n\t\tItemOrichalcumHammer = new ItemOrichalcumHammer(HammerModMain.MODID + \":ItemOrichalcumHammer\", \"HammerMod-DZ_res/items/ItemOrichalcumHammer.png\");\r\n\t\t\r\n\t\t/*\r\n\t\t * Hammers For YouTubers\r\n\t\t */\r\n\t\tItemPatHammer = new ItemPatHammer(HammerModMain.MODID + \":ItemPatHammer\", \"HammerMod-DZ_res/items/ItemPatHammer.png\");\r\n\t\tItemJenHammer = new ItemJenHammer(HammerModMain.MODID + \":ItemJenHammer\", \"HammerMod-DZ_res/items/ItemJenHammer.png\");\r\n\t\tItemDanTDMHammer = new ItemDanTDMHammer(HammerModMain.MODID + \":ItemDanTDMHammer\", \"HammerMod-DZ_res/items/ItemDanTDMHammer.png\");\r\n\t\tItemxJSQHammer = new ItemxJSQHammer(HammerModMain.MODID + \":ItemxJSQHammer\", \"HammerMod-DZ_res/items/ItemxJSQHammer.png\");\r\n\t\tItemSkyTheKidRSHammer = new ItemSkyTheKidRSHammer(HammerModMain.MODID + \":ItemSkyTheKidRSHammer\", \"HammerMod-DZ_res/items/ItemSkyTheKidRSHammer.png\");\r\n\t\tItemThackAttack_MCHammer = new ItemThackAttack_MCHammer(HammerModMain.MODID + \":ItemThackAttack_MCHammer\", \"HammerMod-DZ_res/items/ItemThackAttack_MCHammer.png\");\r\n\t\tItem_MrGregor_Hammer = new Item_MrGregor_Hammer(HammerModMain.MODID + \":Item_MrGregor_Hammer\", \"HammerMod-DZ_res/items/Item_MrGregor_Hammer.png\");\r\n\t\t\r\n\t\t/*\r\n\t\t * Hammers For Twitch Streamers\r\n\t\t */\r\n\t\tItemDeeAxelJayHammer = new ItemDeeAxelJayHammer(HammerModMain.MODID + \":ItemDeeAxelJayHammer\", \"HammerMod-DZ_res/items/ItemDeeAxelJayHammer.png\");\r\n\t\tItemincapablegamerHammer = new ItemincapablegamerHammer(HammerModMain.MODID + \":ItemincapablegamerHammer\", \"HammerMod-DZ_res/items/ItemincapablegamerHammer.png\");\r\n\t\t\r\n\t\t/*\r\n\t\t * Community Hammers\r\n\t\t */\r\n\t\tItemCryingObsidainHammer = new ItemCryingObsidainHammer(HammerModMain.MODID + \":ItemCryingObsidainHammer\", \"HammerMod-DZ_res/items/ItemCryingObsidainHammer.png\");\r\n\t\tItemMythicalHammer = new ItemMythicalHammer(HammerModMain.MODID + \":ItemMythicalHammer\", \"HammerMod-DZ_res/items/ItemMythicalHammer.png\");\r\n\t\tItemToasterHammer = new ItemToasterHammer(HammerModMain.MODID + \":ItemToasterHammer\", \"HammerMod-DZ_res/items/ItemToasterHammer.png\");\r\n\t\t\r\n\t\t/*\r\n\t\t * Special Hammers\r\n\t\t */\r\n\t\tItemRainbowHammer = new ItemRainbowHammer(HammerModMain.MODID + \":ItemRainbowHammer\", \"HammerMod-DZ_res/items/ItemRainbowHammer.png\");\r\n\t\tItemMissingTextureHammer = new ItemMissingTextureHammer(HammerModMain.MODID + \":ItemMissingTextureHammer\", \"HammerMod-DZ_res/items/ItemMissingTextureHammer.png\");\r\n\r\n\t\tregisterItems();\r\n\t}", "@EventHandler\n public void onInventoryClick(InventoryClickEvent event) {\n //if clicked outside of area, return\n if(event.getCurrentItem() == null){\n return;\n }\n\n //test if this is one of our menus\n Menu menu = null;\n Boolean ourMenu = false;\n for (Menu m : plugin.menuList) {\n if (m.getMenuName().equalsIgnoreCase(event.getClickedInventory().getName())){\n menu = m;\n ourMenu = true;\n break;\n }\n }\n\n if (!ourMenu) {\n //not our menu\n return;\n }\n\n //it is our GUI\n //stop moving item straight away\n event.setCancelled(true);\n\n Player player = (Player) event.getWhoClicked();\n\n //get item through slot that was clicked\n int clickedSlot = event.getSlot();\n Item item = menu.getItems().stream().filter((i) -> i.getSlot() == clickedSlot).findFirst().orElse(null);\n\n\n //if item clicked is null, just do nothing\n if (item == null) {\n return;\n }\n //get stored arrays\n CommandMemory savedCmds = plugin.cmdMemoryList.stream()\n .filter((cm) -> cm.uuid.equalsIgnoreCase(player.getUniqueId().toString()))\n .findFirst()\n .orElse(null);\n\n //check that we actually have the command saved\n if (savedCmds == null) {\n //command has not been saved\n plugin.console.log(\"Unable to find saved ARgs\");\n return;\n }\n\n String CommandToRun;//this string will hold every command\n\n\n //execute console commands\n for (String consoleCMD : item.getCommands()) {\n CommandToRun = consoleCMD.replace(\"{player}\", player.getName());//puts this player in the command\n //add in args\n for (Argument a : savedCmds.args) {\n CommandToRun = CommandToRun.replace(\"$arg\" + a.getArgNum(), a.getName());\n }\n\n //run command\n if (CommandToRun.contains(\"[console]\")) {\n //run as console\n plugin.getServer()\n .dispatchCommand(\n plugin.getServer().getConsoleSender(),\n CommandToRun.replace(\"[console]\", \"\").trim());\n } else if (CommandToRun.contains(\"[player]\")) {\n //run as player\n player.performCommand(CommandToRun.replace(\"[player]\", \"\").trim());\n } else if (CommandToRun.contains(\"[message]\")) {\n //message caller\n player.sendMessage(menu.getPrefix()\n + ChatColor.RESET\n + CommandToRun.replace(\"[message]\", \"\").trim());\n } else if (CommandToRun.contains(\"[close]\")) {\n //close menu\n player.closeInventory();//close invent for player\n plugin.cmdMemoryList.remove(savedCmds);\n } else if (CommandToRun.contains(\"[refresh]\")) {\n //refresh item that was clicked\n menu.refreshMenu(event);\n } else {\n //don't know how to handle.... let console know\n plugin.console.log(\"Unknown command: \" + CommandToRun);\n //let player know\n player.sendMessage(menu.getPrefix() + ChatColor.RED + \"There was a problem with running your command. Please report this.\");\n }\n }\n }", "public void addPart() {\n\n if(isValidPart()) {\n double price = Double.parseDouble(partPrice.getText());\n String name = partName.getText();\n int stock = Integer.parseInt(inventoryCount.getText());\n int id = Integer.parseInt(partId.getText());\n int minimum = Integer.parseInt(minimumInventory.getText());\n int maximum = Integer.parseInt(maximumInventory.getText());\n String variableText = variableTextField.getText();\n\n if (inHouse.isSelected()) {\n InHouse newPart = new InHouse(id,name,price,stock,minimum,maximum,Integer.parseInt(variableText));\n if (PassableData.isModifyPart()) {\n Controller.getInventory().updatePart(PassableData.getPartIdIndex(), newPart);\n } else {\n Controller.getInventory().addPart(newPart);\n }\n\n } else if (outsourced.isSelected()) {\n Outsourced newPart = new Outsourced(id,name,price,stock,minimum,maximum,variableText);\n if (PassableData.isModifyPart()) {\n Controller.getInventory().updatePart(PassableData.getPartIdIndex(), newPart);\n } else {\n Controller.getInventory().addPart(newPart);\n }\n }\n try {\n InventoryData.getInstance().storePartInventory();\n InventoryData.getInstance().storePartIdIndex();\n } catch (IOException e) {\n e.printStackTrace();\n }\n exit();\n\n }\n }", "public void getKilledProduct() \n {\n try{\n Player.getInstance().getInventory().add(new CowMeat());\n } catch (IllegalAccessException e) {\n //Do nothing\n }\n }", "SimpleInventory getOpenedInventory(Player player);", "private void updateInventory(List<Item> items) {\r\n for(Item item : items) {\r\n inventory.put(item, STARTING_INVENTORY);\r\n inventorySold.put(item, 0);\r\n itemLocations.put(item.getSlot(), item);\r\n }\r\n }", "public Player(Room room)\n {\n Inventory = new HashMap<String, Items>();\n currentRoom = room; //Starting Room Number 1\n itemsHeld = 0; //Start with no items being held\n itemLimit = 2; // can only hold 2 items until a backpack\n Inventory = new HashMap<String, Items>();\n \n roomHistory = new Stack<Room>();\n \n haveBackpack = false; //no backpack at start\n usingFlashlight = false;\n }", "public void addWeapon(Pair<Byte,Short> weapon){\n //Total number of weapons player can carry is 5 (inc. default weapon)\n //If player has <3 weapons, simply add weapon.\n //Otherwise, first remove oldest weapon in inventory then add at that\n //position.\n //oldest weapon tracked by linked list of weapon entries.\n if(this.weapons.size() < 3) {\n this.weapons.add(weapon);\n this.weaponEntryTracker.add((byte) this.weapons.indexOf(weapon));\n }else{\n //Checks for duplicates, if duplicate weapons\n //found, new weapons ammo is just added to the current\n //weapon already in inventory\n for(Pair<Byte,Short> w : this.weapons){\n if(Objects.equals(w.getKey(), weapon.getKey())){\n if(weaponEntryTracker.size() == 1){\n weaponEntryTracker = new LinkedList<>();\n }\n else{\n for(int tracker : weaponEntryTracker){\n if(tracker == this.weapons.indexOf(w)){\n weaponEntryTracker.remove((Integer) tracker);\n }\n }\n }\n Pair<Byte,Short> newWeapon = new Pair<>(weapon.getKey(), (short) (w.getValue()+weapon.getValue()));\n if(this.currentWeapon == w){\n this.setCurrentWeapon(newWeapon);\n }\n this.weapons.set(this.weapons.indexOf(w),newWeapon);\n weaponEntryTracker.add((byte) this.weapons.indexOf(newWeapon));\n return;\n }\n }\n //check for any no weapon entries - indicates\n //player dropped weapon.\n for(Pair<Byte,Short> w : this.weapons){\n if(w.getKey() == NO_WEAPON_ID){\n this.weapons.set(this.weapons.indexOf(w),weapon);\n this.weaponEntryTracker.add((byte) this.weapons.indexOf(weapon));\n return;\n }\n }\n //If no null entries are found, remove oldest weapon\n int oldestWeapon = this.weaponEntryTracker.poll();\n byte oldestWeaponKey = this.weapons.get(oldestWeapon).getKey();\n this.weapons.set(oldestWeapon, weapon);\n this.weaponEntryTracker.add((byte) this.weapons.indexOf(weapon));\n if(oldestWeaponKey == currentWeapon.getKey()){\n setCurrentWeapon(weapon);\n }\n\n }\n }", "@Override\n\tpublic boolean inventory(Player player, Item item, int opcode) {\n\t\treturn false;\n// Clan channel = ClanRepository.get(player.clan);\n// if (channel == null) {\n// player.send(new SendMessage(\"You need to be in a clan to do this!\"));\n// return true;\n// }\n// player.inventory.remove(item);\n// Item showcaseReward = new Item(Utility.randomElement(ClanUtility.getRewardItems(channel)));\n// channel.showcaseItems.add(showcaseReward.getId());\n// player.send(new SendMessage(\"Inside the box you found \" + showcaseReward.getName() + \"! Showcase size: \" + channel.showcaseItems.size() + \"/28\", SendMessage.MessageColor.DARK_PURPLE));\n// return true;\n\t}", "private void updateNames() {\n //Get all pack indexes.\t\t\n List<AItemPack<?>> packItems = PackParser.getAllItemsForPack(currentItem.definition.packID, true);\n int currentItemIndex = packItems.indexOf(currentItem);\n\n //Loop forwards in our pack to find the next item in that pack.\n nextSubItem = null;\n if (currentItemIndex < packItems.size()) {\n for (int i = currentItemIndex + 1; i < packItems.size() && nextSubItem == null; ++i) {\n if (packItems.get(i).definition.systemName.equals(currentItem.definition.systemName)) {\n nextSubItem = (AItemSubTyped<?>) packItems.get(i);\n break;\n }\n }\n }\n\n //Loop backwards in our pack to find the prev item in that pack.\n prevSubItem = null;\n if (currentItemIndex > 0) {\n for (int i = currentItemIndex - 1; i >= 0 && prevSubItem == null; --i) {\n if (packItems.get(i).definition.systemName.equals(currentItem.definition.systemName)) {\n prevSubItem = (AItemSubTyped<?>) packItems.get(i);\n break;\n }\n }\n }\n\n //All item bits are now set and updated. Update info labels and item icons.\n partName.text = currentItem.getItemName();\n\n //Parse crafting items and set icon items.\n //Check all possible recipes, since some might be for other mods or versions.\n String errorMessage = \"\";\n do {\n materials = PackMaterialComponent.parseFromJSON(currentItem, recipeIndex, false, true, false, false);\n if (materials == null) {\n if (++recipeIndex == currentItem.subDefinition.extraMaterialLists.size()) {\n recipeIndex = 0;\n }\n errorMessage += PackMaterialComponent.lastErrorMessage + \"\\n\";\n if (recipeIndex == 0) {\n InterfaceManager.coreInterface.logError(errorMessage);\n break;\n }\n }\n } while (materials == null);\n\n //Set model render properties.\n modelRender.modelLocation = currentItem.definition.getModelLocation(currentItem.subDefinition);\n modelRender.textureLocation = currentItem.definition.getTextureLocation(currentItem.subDefinition);\n }", "public void play() \n { \n \n createRooms();\n createCharacters();\n createItem();\n printWelcome();\n player = new Player(\"player\");\n Boolean exam;\n exam = false;\n /* player.addItem(necklace_red);\n player.addItem(halberd);\n player.addItem(set_of_forks_and_knives);\n player.addItem(candelar);\n player.addItem(potion6HP);\n player.addItem(bedroomkey);*/\n \n // Step 1 : start in the poolroom //\n Boolean step1Finish;\n Boolean step2Finish;\n Boolean step3Finish;\n Boolean step4Finish;\n Boolean step5Finish;\n Boolean step6Finish;\n Boolean step7Finish;\n Boolean step8Finish;\n Boolean step9Finish;\n Boolean step10Finish;\n Boolean step11Finish;\n step1Finish = false;\n step2Finish = false;\n step3Finish = false;\n step4Finish = false;\n step5Finish = false;\n step6Finish = false;\n step7Finish = false;\n step8Finish = false;\n step9Finish = false;\n step10Finish = false;\n step11Finish = false;\n \n // All the characters are in the poolroom and the exit opens only after speak with all the characters //\n Boolean canSpeak; // player can speak with PNG\n Boolean speak_with_mr_Taylor, speak_with_ms_Taylor, speak_with_ms_Cunningham, speak_with_chambermaid, speak_with_bob_Taylor, speak_with_mr_Cunningham;\n Boolean speak_with_ms_Wellington, speak_with_valet, speak_with_caretaker, speak_with_mr_Wellington, speak_with_nina_Taylor;\n Boolean find_bob_Taylor;\n Boolean toys_not_front_of_door = null;\n Boolean firstEnter;\n firstEnter = true;\n \n canSpeak = false;\n speak_with_mr_Taylor = false;\n speak_with_ms_Taylor = false;\n speak_with_ms_Cunningham = false;\n speak_with_chambermaid = false;\n speak_with_bob_Taylor = false;\n speak_with_mr_Cunningham = false;\n speak_with_ms_Wellington = false;\n speak_with_valet = false;\n speak_with_caretaker = false;\n speak_with_mr_Wellington = false;\n speak_with_nina_Taylor = false;\n\n Boolean can_exam_canvas;\n can_exam_canvas = false;\n Boolean find_bedroom_key;\n find_bedroom_key = false;\n \n int safe_code, essai_code;\n safe_code = 9515;\n \n if (exam)\n {\n System.out.println(\"You are in the poolroom. \\n\"\n + \"Mr Taylor was founded by the Chambermaid this morning when she came to clean the poolroom. Her scream attracted everyone. \\n\"\n + \"You notice that it is missing a pool cue and you find a strange red necklace nearby the pool. \\n\"\n + \"You examine the dead body and you notice a circular wound with the same diameter of a pool cue and some splinters of wood at the bottom of the neck. \\n\"\n + \"Take advantage that everyone is here to question them.\");\n canSpeak = true;\n exam = false;\n System.out.println(\"There are a lot of people in this room. \\n\" \n +\" Nina Taylor the master daughter has long brown hair. Sha has a beautiful blue dress. \\n\"\n +\" Bob Taylor is the little son of Mr Taylor. He seems to be really nice and kind. But he is really sad. \\n\"\n +\" Emma the Chambermaid is an old woman. She has been working for the family for a very long time. She has a black dress and a white pinny.\\n\" \n +\" Mr Cunningham is a grey-haired man with a beige square suit and a lie. \\n\"\n +\" Mr Taylor had dark blond hair and a mustache. He had nice black tuxedo. \\n\"\n +\" Mr Wellinghton is a brown-haired man with a brown square suit and a lie. \\n\"\n +\" Ms Cunnigham is a grey-blond-haired woman with a pink dress. \\n\"\n +\" Ms Taylor seems to be really sad. Sha has dark-brown hair and a long claret dress. \\n\"\n +\" Ms Wellinghton is a redhead-haired woman with a long light green dress. \\n \"\n +\" Alfred the Valet has curly blond hair. He seems to be bother. \\n\"\n +\" Sam the caretaker is a black-haired black man. \");\n }\n if (speak_with_mr_Taylor && speak_with_ms_Taylor && speak_with_ms_Cunningham && speak_with_chambermaid && speak_with_bob_Taylor && speak_with_mr_Cunningham\n && speak_with_ms_Wellington && speak_with_valet && speak_with_caretaker && speak_with_mr_Wellington && speak_with_nina_Taylor && exam)\n {\n canSpeak = false;\n step1Finish = true;\n poolroom.modifyExit(\"east\");\n speak_with_mr_Taylor = false;\n speak_with_ms_Taylor = false;\n speak_with_ms_Cunningham = false;\n speak_with_chambermaid = false;\n speak_with_bob_Taylor = false;\n speak_with_mr_Cunningham = false;\n speak_with_ms_Wellington = false;\n speak_with_valet = false;\n speak_with_caretaker = false;\n speak_with_mr_Wellington = false;\n speak_with_nina_Taylor = false;\n }\n\n // Step 2 : banqueting hall //\n if (step1Finish)\n {\n bob_Taylor.setRoom(cellar);\n nina_Taylor.setRoom(banquetinghall);\n ms_Cunningham.setRoom(dancingroom);\n if (currentRoom == banquetinghall)\n {\n if (firstEnter)\n { \n toys_not_front_of_door = false; //false = toys front of the door // true = toys not front of the door\n find_bob_Taylor = false;\n System.out.println(\" When you opened the poolroom door, you shut on a toy so you lose one HealthPoint\");\n player.setHP(player.getHP() - 1);\n firstEnter = false;\n }\n if (exam)\n {\n System.out.println(\"You cannot open the dancing room door now because there are a lot of toys. \\n\"\n + \"Nina Taylor is next to the toys and you can speak with her. \");\n canSpeak = true;\n exam = false;\n }\n if (speak_with_nina_Taylor)\n {\n nina_Taylor.setText(\"These are my brother toys. Find him to tidy his toys\");\n speak_with_nina_Taylor = false;\n canSpeak = false;\n }\n }\n else if (currentRoom == hall)\n {\n // Step 2 bis : Hall //\n if (exam)\n {\n System.out.println(\" You are in the hall but there is nobody here. \");\n exam = false;\n }\n }\n else if (currentRoom == poolroom)\n {\n if (exam)\n {\n System.out.println(\"You are in the poolroom. Mr Taylor's body was removed. All the peopple are gone. \\n\"\n + \"You do not want to stay in this room. The atmosphere has become bad. You want to leave.\");\n exam = false;\n }\n }\n else if (currentRoom == kitchen)\n {\n if (exam)\n {\n System.out.println(\"This is the kitchen, Bob Taylor is not here. \\n\"\n + \"A set of forks and knives is in one of the cupboards of the kitchen.\");\n exam = false;\n // Recupère arme\n }\n }\n else if (currentRoom == cellar)\n {\n if (exam)\n {\n System.out.println(\"You found Bob Taylor in the back of the cellar\");\n find_bob_Taylor = true;\n exam = false;\n canSpeak = true;\n }\n if (speak_with_bob_Taylor)\n {\n System.out.println(\"You convince Bob to tidy up his toys.\");\n toys_not_front_of_door = true;\n canSpeak = false;\n speak_with_bob_Taylor = false;\n }\n if (toys_not_front_of_door) \n {\n banquetinghall.modifyExit(\"south\");\n step2Finish = true;\n }\n }\n if (step2Finish)\n {\n if (currentRoom == dancingroom)\n {\n if (firstEnter)\n {\n if (exam)\n {\n System.out.println(\"You are in an extraordinary dancing room. You perceive a gramophone on a commode. You see a beautiful candlestick and a gramophone. \\n\"\n + \"Strangely here is no disk on the gramophone. You see Ms Cunningham beside it. She seems to want to talk with you.\");\n exam = false;\n canSpeak = true;\n }\n if (speak_with_ms_Cunningham)\n {\n ms_Cunningham.setText(\"Oh, good morning ! I am happy to see you. Unlike the dark atmosphere of the mansion it is a beautiful weather outside. \\n\"\n + \"I hope your investigation is progressing well. I am scared that the murderer is still at liberty. I cannot sleep properly since the night of the murder. Ah ! I know, you are going to dance with me. It will make me think of something other than this dark situation. \\n\"\n + \"Sorry I will walk on your feet. Do I hurt you not too much ? I can be very clumsy.Oh, good morning ! I am happy to see you. Unlike the dark atmosphere of the mansion it is a beautiful weather outside. \\n\"\n + \"I hope your investigation is progressing well. I am scared that the murderer is still at liberty. I cannot sleep properly since the night of the murder. Ah ! I know, you are going to dance with me. It will make me think of something other than this dark situation. \\n\"\n + \"Sorry I will walk on your feet. Do I hurt you not too much ? I can be very clumsy.\");\n System.out.println(\"You spoke and danced a lot of time with Ms Cunningham. Then you are very tired so you lose one healthpoint\");\n player.setHP(player.getHP() - 1);\n canSpeak = false;\n speak_with_ms_Cunningham = false;\n }\n firstEnter = false;\n } \n if (exam)\n {\n {\n System.out.println(\"You are in an extraordinary dancing room. You perceive a gramophone on a commode. You see a beautiful candlestick and a gramophone. \\n\"\n + \"Strangely here is no disk on the gramophone. You see Ms Cunningham beside it.\");\n exam = false;\n canSpeak = true; \n }\n if (speak_with_ms_Cunningham)\n {\n ms_Cunningham.setText(\"Thank you. I feel better thanks to you.\");\n canSpeak = false;\n speak_with_ms_Cunningham = false;\n }\n }\n }\n else if (currentRoom == livingroom)\n {\n exam = false;\n System.out.println(\"You ride the last step and arrive in the living room. A little green ghost appears in the room. He seems not to be kind. \");\n if (ghost.getHP() <=0) \n {\n livingroom.modifyExit(\"north\");\n livingroom.modifyExit(\"west\");\n exam = true;\n if (exam)\n {\n System.out.println(\"There is no useful object and there is nobody here. \"); \n step3Finish = true;\n }\n }\n }\n \n if (step3Finish)\n {\n if (currentRoom == library)\n {\n if (exam)\n {\n System.out.println(\" A library with a lot of books is behind the door you just pushed. \\n\"\n + \"You see a big painting which depicts the same library where you are. There is just a difference between them. \\n\"\n + \"On the painting, a gramophone is pictured on a sideboard. The gramophone on the painting curiously looks like the gramophone in the dancing room. \\n\"\n + \"When you inspect the sideboard on the real library you see some wear marks as if an object was previously placed on it. \\n\"\n + \"You meet the chambermaid wanting to leave the library. She seems to want to tell you something but do not dare to approach you.\");\n canSpeak = true;\n exam = false;\n }\n if (speak_with_chambermaid)\n {\n chambermaid.setText(\"I saw Nina Taylor go to the gardener hut some nights. I do not know what she is doing there. \");\n canSpeak = false;\n speak_with_chambermaid = false;\n \n }\n }\n \n else if (currentRoom == corridor)\n {\n System.out.println(\"There is a statut with a weapon in this corridor. You can take it weapon if you want. \");\n // recupere arme\n Boolean fight; // this variable will be initialize with the fight\n if (fight)\n {\n if (exam)\n {\n System.out.println(\" You are in a corridor. You see four doors. Only two are opened.\");\n exam = false;\n step4Finish = true;\n }\n }\n }\n if (step4Finish)\n {\n if (currentRoom == bathroom)\n {\n if (exam)\n {\n System.out.println(\" You enter in the bathroom and you see the chambermaid treating the valet's arm. \\n\"\n + \" The wound looks like a rodent bite but it is much bigger than a rat. It is strange because Mr Taylor was allergic to animals. \\n\"\n + \"You notice that there is a potion on the furniture next to the chambermaid. She notices that you are injured. \\n\"\n + \"She signals to you that you can take it. \"); \n //permet de prendre la potion\n exam = false;\n }\n //ajout potion possible pour le joueur\n\n }\n if (currentRoom == guestbedroom)\n {\n if (exam)\n {\n System.out.println(\" You are in the guest bedroom. Today this bedroom is Mr&Ms Cunnigham's bedroom. Mr Cunnigham is in his bedrrom.\");\n mr_Cunningham.setRoom(guestbedroom);\n ms_Cunningham.setText(\"It is strange, last time this canvas was not here.\");\n can_exam_canvas = true;\n if (exam && can_exam_canvas)\n {\n System.out.println(\" You find a key behind the canvas and you take it.\");\n find_bedroom_key = true;\n player.addItem(bedroomkey);\n } \n exam = false;\n }\n }\n \n if (step5Finish)\n {\n if (find_bedroom_key)\n {\n corridor.modifyExit(\"south\");\n }\n if (currentRoom == bedroom)\n {\n if (exam)\n {\n System.out.println(\"You are in the host bedroom. You see a big safe with a four number code. Ms Taylor is in her room.\");\n ms_Taylor.setText(\"Oh no ! I am forgetting the number code ! Please, ask to my daughter, my guests and my employees. I gave to several of them a piece of this code. \");\n \n if (speak_with_ms_Taylor)\n {\n nina_Taylor.setRoom(dancingroom);\n nina_Taylor.setText(\"Bob Taylor has fallen into a 10-meter deep well and is trying to pull it up. \\n \" +\n \"Each day it rises 3 meters and slides 2 meters during the night.\\n\" +\n \"How many days will it take to get to the surface?\");\n ms_Wellington.setRoom(library);\n ms_Wellington.setText(\"In a girl group\\n\" +\n \" 70% wear a blue sweater\\n\" +\n \" 75% wear blue pants\\n\" +\n \" 85% wear a blue hat\\n\" +\n \" 85% wear a blue coat\\n\" +\n \"What is the minimum percentage of girls wearing only blue clothes?\");\n \n bob_Taylor.setRoom(library);\n bob_Taylor.setText(\"I saw my sister and my father arguing before his death.\");\n \n mr_Cunningham.setRoom(poolroom);\n mr_Cunningham.setText(\"David is 10 years old and his younger brother is half his age. \\n\" +\n \"When David will be 10 times older, how old will Franck be?\");\n \n \n }\n }\n }\n if (step6Finish)\n {\n if (currentRoom == bedroom)\n {\n System.out.println(\"Did you find the safe code? \");\n // enter the safe code -- creation int essai_code\n if (essai_code == safe_code)\n {\n System.out.println(\"You find the good number code, the safe door is opened. \\n \" +\n \"The safe contains a disk, a lot of money and a biscuits box.\");\n }\n }\n if (currentRoom == dancingroom\n // && il doit avoir le dique dans son inventaire\n )\n {\n ms_Taylor.setRoom(dancingroom);\n ms_Taylor.setText(\"What does this object do here, it should be in the library\");\n // player has to take the gramophone in his inventory\n }\n if (currentRoom == library \n // && il doit avoir le disque et le gramophone dans son inventaire\n )\n {\n System.out.println(\"You put the gramophone at its place and you insert the disk on it. \\n\"+\n \" You are hearing a loud noise and a door is appearing.\"); \n library.modifyExit(\"north\"); \n }\n if (step7Finish)\n {\n if (currentRoom == laboratory)\n {\n System.out.println(\"When you opened the door, a little green ghost appears and attacked you.\");\n if(fight_win)\n {\n System.out.println(\"The skeleton is dead. You see that one of its bone is strange. This bone seems to be carved as a key\");\n // joueur doit ramasser la clef\n \n if (exam)\n {\n System.out.println(\" You look and the desk and you find some construction plans. It seems that Mr Taylor wanted to dig very deeply at east from the garden. It is the same place than the gardener hut. \");\n }\n corridor.modifyExit(\"up\");\n System.out.println(\"You unblock a new room. A trapdoor appears in the corridor\");\n }\n }\n if (currentRoom == attic)\n {\n if (exam)\n {\n System.out.println(\" You finally discover the attic. It is dark because there is only one window lighting the room. \\n\"\n + \" You decide to look out the window and discover a huge garden hidden by the trees when guests arrive by the entrance. \");\n hall.modifyExit(\"north\");\n }\n }\n if (step8Finish)\n {\n if (currentRoom == garden)\n {\n if (exam)\n {\n System.out.println(\" You see a well at the north but there is a steel grid locked by a padlock.\\n\"\n + \"There is an apple tree next to it with only one apple on the tree. You can maybe pick up the apple and eat it now or later.\\n\"\n + \"\");\n }\n }\n }\n \n \n }\n \n \n \n \n /*player.addItem(necklace_red);\n player.addItem(necklace_red);\n player.addItem(necklace_red);*/\n /* \n \n \n // Enter the main command loop. Here we repeatedly read commands and\n // execute them until the game is over.\n \n boolean finished = false;\n while (! finished) {\n Command command = parser.getCommand();\n finished = processCommand(command);\n }\n System.out.println(\"Thank you for playing. Good bye.\");\n */\n }\n }\n }\n }\n }\n }\n \n }", "private void gameCycle() {\n \t\t// The first item is the recycle bin\n \t\tRecycleBin rb = (RecycleBin) objects.get(0);\n \t\tdouble r = Math.random();\n \n \t\t// Exponential difficulty for each item collected\n \n \n \t\tif (Math.pow(1.1, -0.002 * rb.getAmountCollected()) < r) {\n \t\t\tmakeDialog();\n \t\t}\n \n \t\t// Large items should be created less often later\n \t\tif ((-2 * Math.pow(3, 0.2 * -(rb.getAmountCollected() + 20)) + 0.9) < r) {\n \n \t\t\tSysfile foo = new Sysfile(getBounds(), Sysfile.Size.L);\n \t\t\tfoo.setPosition(new Point2D.Double(\n \t\t\t\t\t(int) (Math.random() * (getWidth() - foo.getAreaRect().width)),\n \t\t\t\t\t10));\n \t\t\tsynchronized (lock) {\n \t\t\t\tobjects.add(foo);\n \t\t\t}\n \t\t}\n \n \t\t// Smaller sysfiles are created more often the more itmes are collected\n \t\tif (Math.pow(1.2, -0.002 * rb.getAmountCollected()) < r) {\n \n \t\t\tSysfile foo = new Sysfile(getBounds(), Sysfile.Size.M);\n \t\t\tfoo.setPosition(new Point2D.Double(\n \t\t\t\t\t(int) (Math.random() * (getWidth() - foo.getAreaRect().width)),\n \t\t\t\t\t10));\n \t\t\tsynchronized (lock) {\n \t\t\t\tobjects.add(foo);\n \t\t\t}\n \t\t}\n \n \t\tif (Math.pow(2.0, -0.002 * rb.getAmountCollected()) < r) {\n \n \t\t\tSysfile foo = new Sysfile(getBounds(), Sysfile.Size.S);\n \t\t\tfoo.setPosition(new Point2D.Double(\n \t\t\t\t\t(int) (Math.random() * (getWidth() - foo.getAreaRect().width)),\n \t\t\t\t\t10));\n \t\t\tsynchronized (lock) {\n \t\t\t\tobjects.add(foo);\n \t\t\t}\n \t\t}\n \n \n \n \t\t// Junk items are created regularly\n \t\tif (Math.random() < 0.005) {\n \t\t\tJunk bar = new Junk(getBounds());\n \t\t\tbar.setPosition(new Point2D.Double(\n \t\t\t\t\t(int) (Math.random() * (getWidth() - bar.getAreaRect().width)),\n \t\t\t\t\t10));\n \t\t\tsynchronized (lock) {\n \t\t\t\tobjects.add(bar);\n \t\t\t}\n \t\t}\n \t}", "public void sortInventory() {\n int i = 0;\n //update all the the button icons with our inventory for if the inventory is less than full (10 items)\n for (; i < inventory.items.size(); i++) {\n //set the button to display the item in the inventory\n buttonsArray[i].setType(inventory.items.get(i).type);\n }\n //clears the remaining items in the inventory if the inventory has less than 10 items\n for (; i < 10; i++) {\n //set any button in the inventory panel to empty if there is not item in that inventory slot\n buttonsArray[i].setType(null);\n }\n\n this.parent.itemsPanel.updateItems();\n }", "public PauseScreen() {\r\n\t\tcurItemOverLst = new ArrayList<String>();\r\n\t\ttext = null;\r\n\t\tallyCover = null;\r\n\t\titemText = null;\r\n\t\t\r\n\t\ttry {\r\n\t text = ImageIO.read(new File(\"res/textbox.png\"));\r\n\t itemText = ImageIO.read(new File(\"res/itemText.png\"));\r\n\t allyCover = ImageIO.read(new File(\"res/allyCover.png\"));\r\n\t } catch (IOException e) {\r\n\t \te.printStackTrace();\r\n\t }\r\n\t\tSpriteSheet ss = new SpriteSheet(Game.sprite_sheet);\r\n\t\titemCover = ss.grabImage(1, 1, 320, 78, \"itemCover\");\r\n\t\t\r\n\t\tpauseMenu = new ArrayList<BufferedImage>();\r\n\t\tpauseMenu.add(ss.grabImage(1, 1, 1280, 960, \"pauseMenu\"));\r\n\t\tpauseMenu.add(ss.grabImage(1, 2, 1280, 960, \"pauseMenu\"));\r\n\t\tpauseMenu.add(ss.grabImage(2, 1, 1280, 960, \"pauseMenu\"));\r\n\t\tpauseMenu.add(ss.grabImage(2, 2, 1280, 960, \"pauseMenu\"));\r\n\t\tpauseMenu.add(ss.grabImage(3, 1, 1280, 960, \"pauseMenu\"));\r\n\t\tpauseMenu.add(ss.grabImage(3, 2, 1280, 960, \"pauseMenu\"));\r\n\t\t\r\n\t\tgameOverMenu = new ArrayList<BufferedImage>();\r\n\t\tgameOverMenu.add(ss.grabImage(1, 1, 1280, 960, \"gameOverMenu\"));\r\n\t\tgameOverMenu.add(ss.grabImage(1, 2, 1280, 960, \"gameOverMenu\"));\r\n\t\tgameOverMenu.add(ss.grabImage(1, 3, 1280, 960, \"gameOverMenu\"));\r\n\t\tgameOverMenu.add(ss.grabImage(2, 1, 1280, 960, \"gameOverMenu\"));\r\n\t\tgameOverMenu.add(ss.grabImage(2, 2, 1280, 960, \"gameOverMenu\"));\r\n\t\t\r\n\t\t\r\n\t\titemMenu = new ArrayList<BufferedImage>();\r\n\t\titemMenu.add(ss.grabImage(1, 1, 1280, 960, \"itemMenu\"));\r\n\t\titemMenu.add(ss.grabImage(1, 2, 1280, 960, \"itemMenu\"));\r\n\t\t\r\n\t\tuseItem = new ArrayList<BufferedImage>();\r\n\t\tuseItem.add(ss.grabImage(1, 1, 1280, 960, \"itemOption\"));\r\n\t\tuseItem.add(ss.grabImage(1, 2, 1280, 960, \"itemOption\"));\r\n\t\tuseItem.add(ss.grabImage(1, 3, 1280, 960, \"itemOption\"));\r\n\t\t\r\n\t\texpMenuBattle = new ArrayList<BufferedImage>();\r\n\t\texpMenuPause = new ArrayList<BufferedImage>();\r\n\t\t\r\n\t\texpMenuBattle.add(ss.grabImage(1, 1, 1280, 960, \"progressMenu\"));\r\n\t\texpMenuBattle.add(ss.grabImage(2, 1, 1280, 960, \"progressMenu\"));\r\n\t\texpMenuBattle.add(ss.grabImage(1, 3, 1280, 960, \"progressMenu\"));\r\n\t\t\r\n\t\texpMenuPause.add(ss.grabImage(1, 2, 1280, 960, \"progressMenu\"));\r\n\t\texpMenuPause.add(ss.grabImage(2, 2, 1280, 960, \"progressMenu\"));\r\n\t\t\r\n\t\tallyMenu = new ArrayList<BufferedImage>();\r\n\t\tallyMenu.add(ss.grabImage(1, 1, 1280, 960, \"allyMenu\"));\r\n\t\tallyMenu.add(ss.grabImage(1, 2, 1280, 960, \"allyMenu\"));\r\n\t\t\r\n\t\tattireMenu = new ArrayList<BufferedImage>();\r\n\t\tattireMenu.add(ss.grabImage(1, 1, 1280, 960, \"attireMenu\"));\r\n\t\tattireMenu.add(ss.grabImage(1, 2, 1280, 960, \"attireMenu\"));\r\n\t\t\r\n\t\thealthIcon = new ArrayList<BufferedImage>();\r\n\t\tallyIcon = new ArrayList<BufferedImage>();\r\n\t\tpummelIcon = new ArrayList<BufferedImage>();\r\n\t\tlaserIcon = new ArrayList<BufferedImage>();\r\n\t\t\r\n\t\thealthIcon.add(ss.grabImage(1, 1,96, 67, \"healthIcon\"));\r\n\t\thealthIcon.add(ss.grabImage(1, 2, 96, 67, \"healthIcon\"));\r\n\t\t\r\n\t\tallyIcon.add(ss.grabImage(1, 1, 96, 67, \"allyIcon\"));\r\n\t\tallyIcon.add(ss.grabImage(1, 2, 96, 67, \"allyIcon\"));\r\n\t\t\r\n\t\tpummelIcon.add(ss.grabImage(1, 1, 96, 67, \"pummelIcon\"));\r\n\t\tpummelIcon.add(ss.grabImage(1, 2, 96, 67, \"pummelIcon\"));\r\n\t\t\r\n\t\tlaserIcon.add(ss.grabImage(1, 1, 96, 67, \"laserIcon\"));\r\n\t\tlaserIcon.add(ss.grabImage(1, 2, 96, 67, \"laserIcon\"));\r\n\t}", "private void addToInventory(Item item) {\n inventory.put(item.getName(), item);\n }", "public ItemStack b(InventoryCrafting var1)\n {\n int var2 = var1.getSize();\n boolean var3 = false;\n int var4 = 0;\n int var5 = 0;\n ItemStack var6 = null;\n Vector var7 = new Vector();\n int var8;\n ItemStack var9;\n\n for (var8 = 0; var8 < var2; ++var8)\n {\n var9 = var1.getItem(var8);\n\n if (var9 != null)\n {\n if (var9.getItem() instanceof ItemEnergySensorLocationCard)\n {\n var7.add(var9);\n ++var4;\n }\n else\n {\n if (!(var9.getItem() instanceof ItemEnergyArrayLocationCard))\n {\n var3 = true;\n break;\n }\n\n var6 = var9;\n ++var5;\n }\n }\n }\n\n if (var3)\n {\n return null;\n }\n else if (var4 >= 2 && var4 <= 6 && var5 == 0)\n {\n ItemStack var10 = new ItemStack(IC2NuclearControl.itemEnergyArrayLocationCard, 1, 0);\n ItemEnergyArrayLocationCard.initArray(var10, var7);\n return var10;\n }\n else\n {\n if (var4 == 0 && var5 == 1)\n {\n var8 = ItemEnergyArrayLocationCard.getCardCount(var6);\n\n if (var8 > 0)\n {\n return new ItemStack(Items.getItem(\"electronicCircuit\").getItem(), 2 * var8, 0);\n }\n }\n else if (var5 == 1 && var4 > 0)\n {\n var8 = ItemEnergyArrayLocationCard.getCardCount(var6);\n\n if (var8 + var4 <= 6)\n {\n var9 = new ItemStack(IC2NuclearControl.itemEnergyArrayLocationCard, 1, 0);\n var9.setTag((NBTTagCompound)var6.getTag().clone());\n ItemEnergyArrayLocationCard.initArray(var9, var7);\n return var9;\n }\n }\n\n return null;\n }\n }", "public void onCraftMatrixChanged(IInventory par1IInventory)\r\n\t {\r\n\t\t if (par1IInventory == this.tableInventory)\r\n\t\t {\r\n\t\t\t ItemStack itemstack = par1IInventory.getStackInSlot(0);\r\n\t\t\t ItemStack money = par1IInventory.getStackInSlot(1);\r\n\t\t\t int i;\r\n\t\t\t if(money != null && this.isMoney(money))\r\n\t\t\t {\r\n\t\t\t\t int point = (money.itemID == Item.emerald.itemID)? PrepaidEnchantment.EmeraldCost:(money.itemID == Item.ingotGold.itemID)? PrepaidEnchantment.GoldCost: (money.itemID == Item.diamond.itemID)? PrepaidEnchantment.DiamondCost:0;\r\n\t\t\t\t point *= money.stackSize;\r\n\t\t\t\t this.tileEntity.addCurrentMaxLevel(point);\r\n\t\t\t\t par1IInventory.setInventorySlotContents(1, null);\r\n\t\t\t }\r\n\r\n\t\t\t if (itemstack != null && itemstack.isItemEnchantable())\r\n\t\t\t {\r\n\t\t\t\t this.nameSeed = this.rand.nextLong();\r\n\r\n\t\t\t\t if (!this.worldPointer.isRemote)\r\n\t\t\t\t {\r\n\t\t\t\t\t i = 0;\r\n\t\t\t\t\t int j;\r\n\t\t\t\t\t this.Bonus = 0;\r\n\t\t\t\t\t for (j = -1; j <= 1; ++j)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t for (int k = -1; k <= 1; ++k)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t if ((j != 0 || k != 0) && this.worldPointer.isAirBlock(this.posX + k, this.posY, this.posZ + j) && this.worldPointer.isAirBlock(this.posX + k, this.posY + 1, this.posZ + j))\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t this.Bonus += ForgeHooks.getEnchantPower(worldPointer, posX + k * 2, posY, posZ + j * 2);\r\n\t\t\t\t\t\t\t\t this.Bonus += ForgeHooks.getEnchantPower(worldPointer, posX + k * 2, posY + 1, posZ + j * 2);\r\n\r\n\t\t\t\t\t\t\t\t if (k != 0 && j != 0)\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t this.Bonus += ForgeHooks.getEnchantPower(worldPointer, posX + k * 2, posY, posZ + j );\r\n\t\t\t\t\t\t\t\t\t this.Bonus += ForgeHooks.getEnchantPower(worldPointer, posX + k * 2, posY + 1, posZ + j );\r\n\t\t\t\t\t\t\t\t\t this.Bonus += ForgeHooks.getEnchantPower(worldPointer, posX + k, posY, posZ + j * 2);\r\n\t\t\t\t\t\t\t\t\t this.Bonus += ForgeHooks.getEnchantPower(worldPointer, posX + k, posY + 1, posZ + j * 2);\r\n\t\t\t\t\t\t\t\t }\r\n\t\t\t\t\t\t\t }\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t }\r\n\r\n\t\t\t\t\t for (j = 0; j < 3; ++j)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t this.enchantLevels[j] = this.calcItemStackEnchantability(this.rand, j, this.tileEntity.getCurrentMaxLevel(), itemstack);\r\n\t\t\t\t\t }\r\n\r\n\t\t\t\t\t this.detectAndSendChanges();\r\n\t\t\t\t }\r\n\t\t\t }\r\n\t\t\t else\r\n\t\t\t {\r\n\t\t\t\t for (i = 0; i < 3; ++i)\r\n\t\t\t\t {\r\n\t\t\t\t\t this.enchantLevels[i] = 0;\r\n\t\t\t\t }\r\n\t\t\t }\r\n\t\t }\r\n\t }", "public synchronized String printInventory(){\n String inventStr = \"\";\n\n for (int i = 0; i < titleList.size(); i++){\n inventStr += titleList.get(i) + \" \" + quantityList.get(i);\n if(i < titleList.size() - 1) {\n inventStr +=\"___\";\n }\n }\n return inventStr;\n }", "public void onUsingTick(ItemStack stack, EntityPlayer player, int count) {\n/* 132 */ player.motionX = 0.0D;\n/* 133 */ player.motionZ = 0.0D;\n/* */ \n/* 135 */ int searchRange = 20;\n/* 136 */ List<EntityLivingBase> entities = player.worldObj.getEntitiesWithinAABB(EntityLivingBase.class, AxisAlignedBB.getBoundingBox(player.posX - searchRange, player.posY - searchRange, player.posZ - searchRange, player.posX + searchRange, player.posY + searchRange, player.posZ + searchRange));\n/* */ \n/* 138 */ if (entities.contains(player)) {\n/* 139 */ entities.remove(player);\n/* */ }\n/* 141 */ if (count < getMaxItemUseDuration(stack) - 20) {\n/* 142 */ for (int counter = entities.size() - 1; counter >= 0; counter--) {\n/* 143 */ if (player.getDistanceToEntity((Entity)entities.get(counter)) <= 3.0F && \n/* 144 */ WandManager.consumeVisFromInventory(player, (new AspectList()).add(Aspect.FIRE, (int)(150.0F * RelicsConfigHandler.soulTomeVisMult)).add(Aspect.ENTROPY, (int)(120.0F * RelicsConfigHandler.soulTomeVisMult)))) {\n/* */ \n/* 146 */ EntityLivingBase thrownEntity = entities.get(counter);\n/* */ \n/* 148 */ Vector3 entityVec = Vector3.fromEntityCenter((Entity)thrownEntity);\n/* 149 */ Vector3 playerVec = Vector3.fromEntityCenter((Entity)player);\n/* */ \n/* 151 */ Vector3 diff = entityVec.copy().sub(playerVec).multiply((1.0F / player.getDistanceToEntity((Entity)thrownEntity) * 3.0F));\n/* */ \n/* 153 */ float curve = (float)(1.0D / player.getDistance(entityVec.x, entityVec.y, entityVec.z) * 8.0D);\n/* */ \n/* 155 */ if (!player.worldObj.isRemote)\n/* 156 */ for (int counterZ = 0; counterZ <= 3; counterZ++) {\n/* 157 */ Main.proxy.lightning(player.worldObj, player.posX, player.posY + 1.0D, player.posZ, entityVec.x, entityVec.y, entityVec.z, 40, curve, (int)(player.getDistance(entityVec.x, entityVec.y, entityVec.z) * 6.0D), 0, 0.075F);\n/* */ } \n/* 159 */ player.worldObj.playSoundAtEntity((Entity)player, \"thaumcraft:zap\", 1.0F, 0.8F);\n/* */ \n/* 161 */ thrownEntity.attackEntityFrom((DamageSource)new DamageRegistryHandler.DamageSourceTLightning((Entity)player), (float)(20.0D + 80.0D * Math.random()));\n/* */ \n/* 163 */ thrownEntity.motionX = diff.x;\n/* 164 */ thrownEntity.motionY = diff.y + 1.0D;\n/* 165 */ thrownEntity.motionZ = diff.z;\n/* */ } \n/* */ } \n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 195 */ this; this; this; this; if ((((count < getMaxItemUseDuration(stack) - 20) ? 1 : 0) & ((count % 4 == 0) ? 1 : 0)) != 0 && WandManager.consumeVisFromInventory(player, (new AspectList()).add(Aspect.EARTH, TerraCost).add(Aspect.AIR, AerCost).add(Aspect.FIRE, IgnisCost).add(Aspect.ENTROPY, PerditioCost))) {\n/* */ \n/* 197 */ EntityLivingBase randomEntity = null;\n/* */ \n/* 199 */ if (entities.size() > 0) {\n/* 200 */ randomEntity = entities.get((int)(entities.size() * Math.random()));\n/* */ }\n/* 202 */ if ((((randomEntity != null) ? 1 : 0) & (!player.worldObj.isRemote ? 1 : 0)) != 0) {\n/* */ \n/* 204 */ float soulDamage = randomEntity.getMaxHealth() / RelicsConfigHandler.soulTomeDivisor;\n/* */ \n/* 206 */ if (soulDamage > 20.0F) {\n/* 207 */ soulDamage = 20.0F;\n/* 208 */ } else if (soulDamage < 1.0F) {\n/* 209 */ soulDamage = 1.0F;\n/* */ } \n/* 211 */ randomEntity.attackEntityFrom((DamageSource)new DamageRegistryHandler.DamageSourceSoulDrain((Entity)player), soulDamage);\n/* 212 */ spawnSoul(player.worldObj, randomEntity, (EntityLivingBase)player);\n/* */ } \n/* */ } \n/* */ }", "void render(Inventory inventory, Player player, int offsetX, int offsetY);", "public void onInventoryChanged();", "private void prepare()\n {\n Block block = new Block(10);\n addObject(block,372,150);\n Wall wall = new Wall();\n addObject(wall,52,167);\n Wall wall2 = new Wall();\n addObject(wall2,160,167);\n Wall wall3 = new Wall();\n addObject(wall3,550,167);\n Wall wall4 = new Wall();\n addObject(wall4,650,167);\n Wall wall5 = new Wall();\n addObject(wall5,750,167);\n block.setLocation(306,171);\n Robot robot = new Robot();\n addObject(robot,48,51);\n Pizza pizza = new Pizza();\n addObject(pizza,550,60);\n Pizza pizza2 = new Pizza();\n addObject(pizza2,727,53);\n Pizza pizza3 = new Pizza();\n addObject(pizza3,364,303);\n Pizza pizza4 = new Pizza();\n addObject(pizza4,224,400);\n Pizza pizza5 = new Pizza();\n addObject(pizza5,622,395);\n ScorePanel scorePanel = new ScorePanel();\n addObject(scorePanel,106,525);\n Home home = new Home();\n addObject(home,717,521);\n\n block.setLocation(344,173);\n pizza3.setLocation(394,297);\n Pizza pizza6 = new Pizza();\n addObject(pizza6,711,265);\n Pizza pizza7 = new Pizza();\n addObject(pizza7,68,276);\n\n }", "public void addProduct(Product item){\n inventory.add(item);\n }", "public void addItem(Product p, int qty){\n //store info as an InventoryItem and add to items array\n this.items.add(new InventoryItem(p, qty));\n }", "@Test\n public void advancedRepeatTest(){\n \n testMaterialConstructor();\n ArrayList<String> voiceNames = new ArrayList<String>();\n voiceNames.add(\"Aziz\");\n \n ArrayList<BarLineObject> objs = new ArrayList<BarLineObject>();\n objs.add(C);\n objs.add(E);\n objs.add(C);\n objs.add(G);\n objs.add(plainBar);\n objs.add(C);\n objs.add(E);\n objs.add(C);\n objs.add(G);\n objs.add(endBar);\n objs.add(G);\n objs.add(G);\n objs.add(G);\n objs.add(C);\n objs.add(r1Bar);\n objs.add(C);\n objs.add(G);\n objs.add(G);\n objs.add(G);\n objs.add(r2Bar);\n objs.add(C);\n objs.add(E);\n objs.add(E);\n objs.add(E);\n objs.add(repeatBar);\n \n objs.add(C);\n objs.add(E);\n objs.add(C);\n objs.add(G);\n objs.add(repeatStart);\n objs.add(G);\n objs.add(C);\n objs.add(C);\n objs.add(G);\n objs.add(repeatBar);\n \n \n \n Parser2 myParser2 = new Parser2(voiceNames,1,1);\n myParser2.parse(objs);\n ArrayList<Voice> voices = myParser2.getVoices();\n\n Song lalala = new Song(voices);\n \n SequencePlayer sqPlayer;\n try {\n sqPlayer = new SequencePlayer(140, lalala.getMinTicksPerQuarter());\n myPlayer MrAhmed = new myPlayer(\"C\", sqPlayer);\n lalala.addToPlayer(MrAhmed);\n sqPlayer.play();\n \n } catch (MidiUnavailableException e) {\n e.printStackTrace();\n } catch (InvalidMidiDataException e) {\n e.printStackTrace();\n }\n \n }", "private void loadInventory(String fileName){\t\t\r\n\t\tList<String> list = new ArrayList<String>();\r\n\r\n\t\ttry (Stream<String> stream = Files.lines(Paths.get(fileName))) {\r\n\t\t\t//Convert it into a List\r\n\t\t\tlist = stream.collect(Collectors.toList());\r\n\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\tfor(String itemList : list){\r\n\t\t\tString[] elements = itemList.split(\"--\");\r\n\t\t\t\r\n\t\t\ttry{\r\n\t\t\t\tswitch(elements[0].toUpperCase()){\r\n\t\t\t\t\tcase \"BURGER\":\r\n\t\t\t\t\t\t\tinventory.add(createBurger(elements));;\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tbreak;\t\t\t\t\t\t\t\r\n\t\t\t\t\tcase \"SALAD\":\r\n\t\t\t\t\t\t\tinventory.add(createSalad(elements));;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase \"BEVERAGE\":\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tinventory.add(createBeverage(elements));;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase \"SIDE\":\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tinventory.add(createSide(elements));;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase \"DESSERT\":\r\n\t\t\t\t\t\t\tinventory.add(createDessert(elements));;\r\n\t\t\t\t\t\t\tbreak;\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}catch(Exception e){\r\n\t\t\t\tSystem.err.println(e.getMessage());\r\n\t\t\t}\r\n\t\t}\t\t\r\n\t}", "public void replacePart(Part modifiedPart) {\r\n Part newPart;\r\n String name, compName;\r\n double price;\r\n int id, inv, max, min, machId;\r\n //Gets the ID of the last part in the inventory and adds 1 to it \r\n id = Inventory.getAllParts().get(Inventory.getAllParts().size() - 1).getId() + 1;\r\n name = nameField.getText();\r\n inv = Integer.parseInt(invField.getText());\r\n price = Double.parseDouble(priceField.getText());\r\n max = Integer.parseInt(maxField.getText());\r\n min = Integer.parseInt(minField.getText());\r\n\r\n if (inHouseSelected) {\r\n machId = Integer.parseInt(machineOrCompanyField.getText());\r\n newPart = new InHouse(id, name, price, inv, min, max, machId);\r\n } else {\r\n compName = machineOrCompanyField.getText();\r\n newPart = new Outsourced(id, name, price, inv, min, max, compName);\r\n }\r\n newPart.setId(modifiedPart.getId());\r\n Inventory.updatePart(Inventory.getAllParts().indexOf(modifiedPart), newPart);\r\n }", "private void createPlayers(LogicEngine in_logicEngine)\r\n\t{\n\t\tfor(int i=0 ; i < 4 ;i++)\r\n\t\t{\r\n\t\t\tGameObject ship = new GameObject(\"data/\"+GameRenderer.dpiFolder+\"/tinyship.png\",(LogicEngine.rect_Screen.getWidth()/2) - (32*i) + 64,50,20);\r\n\t\t\tship.i_animationFrame=0;\r\n\t\t\tship.i_animationFrameSizeWidth=16;\r\n\t\t\tship.i_animationFrameSizeHeight=16;\r\n\t\t\tship.allegiance = GameObject.ALLEGIANCES.PLAYER;\r\n\t\t\tship.collisionHandler = new PlayerCollision(ship);\r\n\t\t\tship.stepHandlers.add(new PlayerStep(i,ship));\r\n\t\t\tship.shotHandler = new StraightLineShot(\"data/\"+GameRenderer.dpiFolder+\"/bullet.png\",7.0f,new Vector2d(0,9));\r\n\t\t\t\r\n\t\t\tship.stepHandlers.add(new AnimateRollStep());\r\n\t\t\t\t\r\n\t\t\tship.str_name = \"player\";\r\n\t\t\t\r\n\t\t\tship.c_Color = new Color(1.0f,1.0f,1.0f,1.0f);\r\n\t\t\t\r\n\t\t\tship.v.setMaxForce(3);\r\n\t\t\tship.v.setMaxVel(20.0);\r\n\t\t\tin_logicEngine.objectsPlayers.add(ship);\r\n\t\t\t\r\n\t\t\t//double firing speed on hell\r\n\t\t\tif(Difficulty.isHard())\r\n\t\t\t\tship.shootEverySteps = (int) (ship.shootEverySteps * 0.75); \r\n\t\t\t\r\n\t\t\t//for each advantage if it is enabled apply it\r\n\t\t\tfor(int j=Advantage.b_advantages.length-1 ;j>=0;j--)\r\n\t\t\t\tif(Advantage.b_advantages[j])\r\n\t\t\t\t\tAdvantage.applyAdvantageToShip(j,ship,i,in_logicEngine);\r\n\t\t\t\r\n\t\t}\r\n\t}", "public void recordVictims(){\n\t\t\n\t\tfor (int i = 0; i < parts.size(); i++) {\n BodyPart joe = parts.get(i);\n int x = (int)Math.round((joe.getLocationX() * scale) + width/2);\n int y = (int)Math.round((joe.getLocationY() * scale) + height/2);\n g2d.setColor(Color.red);\n g2d.fillRect(x,y,4,4);\n\t\t\t\t\t \n }\n\t\t\tfor (int i = 0; i < people.size(); i++) {\n BodyPart joe = people.get(i);\n int x = (int)Math.round((joe.getLocationX() * scale) + width/2);\n int y = (int)Math.round((joe.getLocationY() * scale) + height/2);\n g2d.setColor(Color.cyan);\n g2d.fillRect(x,y,7,7);\n\t\t\t\t\t \n }\n\t}", "public void mo68520e() {\n super.mo68520e();\n C26780aa.m87959a(this.itemView, mo75290r(), this.f77546j);\n C24942al.m81837c(mo75261ab(), this.f89221bo);\n C24958f.m81905a().mo65273b(this.f77546j).mo65266a(\"result_ad\").mo65276b(\"otherclick\").mo65283e(\"video\").mo65270a(mo75261ab());\n }", "private void actualizarEnemigosItems() {\n if(estadoMapa== EstadoMapa.RURAL || estadoMapa== EstadoMapa.RURALURBANO ){\n moverCamionetas();\n moverAves();\n }\n if(estadoMapa== EstadoMapa.URBANO || estadoMapa == EstadoMapa.URBANOUNIVERSIDAD){\n moverCarroLujo();\n moverAves();\n }\n if(estadoMapa== EstadoMapa.UNIVERSIDAD){\n moverCarritoGolf();\n moverAves();\n }\n if (estadoMapa == EstadoMapa.SALONES){\n moverLamparas();\n moverSillas();\n }\n actualizaPuntuacion();\n moverTareas();\n moverItemCorazon();\n verificarColisiones();\n verificarMuerte();\n moverItemRayo();\n /*\n IMPLEMENTAR\n\n //moverPajaro();\n //etc\n */\n }", "public static ArrayList<InventoryItem> getInventoryItems() {\n\n String itemUrl = REST_BASE_URL + ITEMS;\n String inventoryUrl = REST_BASE_URL + INVENTORIES;\n String availableUrl = REST_BASE_URL + INVENTORIES + AVAILABLE + CATEGORIZED;\n\n // List of items\n ArrayList<InventoryItem> items = new ArrayList<>();\n ArrayList<String> itemNames = new ArrayList<>();\n\n URL url = null;\n\n /* Fetch items from \"items\" table. */\n try {\n url = new URL(itemUrl);\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n\n JSONArray itemJsonArray = null;\n try {\n Log.d(TAG, \"getInventoryItems: getting items\");\n itemJsonArray = getResponseFromHttpUrl(url);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n try {\n // Store each item into <items>. Store each item name into <itemNames>.\n for (int i = 0; i < itemJsonArray.length(); i++) {\n JSONObject jo = (JSONObject) itemJsonArray.get(i);\n InventoryItem newItem = new InventoryItem(\n jo.getString(ITEM_IMAGE_URL),\n jo.getString(ITEM_NAME),\n jo.getString(ITEM_DESCRIPTION),\n 0,\n 0);\n items.add(newItem);\n itemNames.add(jo.getString(ITEM_NAME));\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n /* Fetch inventory items from \"inventories\" */\n try {\n url = new URL(inventoryUrl);\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n\n JSONArray jaResult = null;\n try {\n Log.d(TAG, \"getInventoryItems: getting ivnentories\");\n jaResult = getResponseFromHttpUrl(url);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n try {\n for (int i = 0; i < jaResult.length(); i++) {\n JSONObject jo = (JSONObject) jaResult.get(i);\n int index = itemNames.indexOf(jo.getString(ITEM_NAME));\n if (index > -1) {\n InventoryItem currItem = items.get(index);\n currItem.setItemQuantity(currItem.getItemQuantity()+1);\n items.set(index, currItem);\n } else {\n // TODO: throw an exception here?\n Log.e(TAG, \"getInventoryItems: There is an item in the inventory but not in the item table!\");\n }\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n /* get inventory stocks from \"/available/categorized\" */\n try {\n url = new URL(availableUrl);\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n\n\n try {\n Log.d(TAG, \"getInventoryItems: getting inventory stocks\");\n jaResult = getResponseFromHttpUrl(url);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n try {\n for (int i = 0; i < jaResult.length(); i++) {\n JSONObject jo = (JSONObject) jaResult.get(i);\n int index = itemNames.indexOf(jo.getString(ITEM_NAME));\n if (index > -1) {\n InventoryItem currItem = items.get(index);\n currItem.setItemStock(jo.getInt(ITEM_COUNT));\n items.set(index, currItem);\n } else {\n // TODO: throw an exception here?\n Log.e(TAG, \"getInventoryItems: There is an item in the stock but not in the item table!\");\n }\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n return items;\n }", "@Test\n\t public void test002() {\n\t\tFloor newFloor = new Floor(6);\n\t\tShelf newShelf = new Shelf(new Point(0, 5));\n \tRobot newRobot = new Robot(newFloor,newShelf,2,2,100);\n \tinventory newInventory = new inventory(newFloor, newRobot);\n\t\t \n\t\tShelf s = newInventory.finditem(\"pen\");\n\t\tassertTrue(s.Item.contains(\"pen\"));\n\t }", "public void fillChest(Inventory inv);", "private void createItems()\n {\n Item belt, nappies, phone, money, cigarretes, \n jacket, cereal, shoes, keys, comics, bra, \n bread, bowl, computer;\n\n belt = new Item(2,\"Keeps something from falling\",\"Belt\");\n nappies = new Item(7,\"Holds the unspeakable\",\"Nappies\");\n phone = new Item(4, \"A electronic device that holds every answer\",\"Iphone 10\");\n money = new Item(1, \"A form of currency\",\"Money\");\n cigarretes = new Item(2,\"It's bad for health\",\"Cigarretes\");\n jacket = new Item(3,\"Keeps you warm and cozy\", \"Jacket\");\n cereal = new Item(3, \"What you eat for breakfast\",\"Kellog's Rice Kripsies\");\n shoes = new Item(5,\"Used for walking\", \"Sneakers\");\n keys = new Item(2, \"Unlock stuff\", \"Keys\");\n comics = new Item(2, \"A popular comic\",\"Batman Chronicles\");\n bra = new Item(3,\"What is this thing?, Eeeewww\", \"Bra\");\n bread = new Item(6,\"Your best source of carbohydrates\",\"Bread\");\n bowl = new Item(4,\"where food is placed\",\"Plate\");\n computer = new Item(10,\"A computational machine\",\"Computer\");\n\n items.add(belt);\n items.add(nappies);\n items.add(phone);\n items.add(money);\n items.add(cigarretes);\n items.add(jacket);\n items.add(cereal);\n items.add(shoes);\n items.add(keys);\n items.add(comics);\n items.add(bra);\n items.add(bread);\n items.add(bowl);\n items.add(computer);\n }", "public void useWheelChair(String secondWord)\n {\n if(secondWord == null){\n System.out.println(\"Take who?\");\n }\n else{\n //if there are items in the rooms\n if(currentRoom.emptyRoom() == false){\n Item chairWheel = null;\n for(Item chairWheelItem : inventory){\n if(chairWheelItem.getId().equals(\"wheelchair\")){\n chairWheel = chairWheelItem;\n }\n }\n if(chairWheel != null){\n maxWeight = 100;\n Item patient = currentRoom.getItemRoom(secondWord);\n if(patient != null){\n patient.changePickUpItem(true);\n if(patient.canBePickedUp() == true){\n if((inventoryWeight + patient.getItemWeight()) <= maxWeight){\n //take current item\n inventory.add(patient);\n inventoryWeight += patient.getItemWeight();\n currentRoom.removeItem(patient.getId());\n System.out.println(\"You are moving the patient: \" + patient.getId() + \".\");\n }\n else{\n System.out.println(\"You canīt get over the max weight.\");\n }\n }\n else{\n System.out.println(\"This patient canīt be moved.\");\n }\n }\n else{\n System.out.println(\"This patient donīt exist.\");\n }\n }\n else{\n System.out.println(\"You havenīt the wheelchair in your inventory.\");\n }\n }\n else{\n System.out.println(\"There are no items to take in this room.\");\n }\n }\n }", "public static void createItems(){\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"breadly\"), BREADLY);\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"hard_boiled_egg\"), HARD_BOILED_EGG);\n\n\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"ender_dragon_spawn_egg\"), ENDER_DRAGON_SPAWN_EGG);\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"wither_spawn_egg\"), WITHER_SPAWN_EGG);\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"illusioner_spawn_egg\"), ILLUSIONER_SPAWN_EGG);\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"giant_spawn_egg\"), GIANT_SPAWN_EGG);\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"spawn_spawn_egg\"), SPAWN_SPAWN_EGG);\n }", "static void addNewPieces() {\n ArrayList<Block> news = new ArrayList<>();\n news.add(new Block(new int[]{2, 3}, Tetrominos.I));\n news.add(new Block(new int[]{2, 3}, Tetrominos.J));\n news.add(new Block(new int[]{2, 3}, Tetrominos.L));\n news.add(new Block(new int[]{2, 3}, Tetrominos.O));\n news.add(new Block(new int[]{2, 3}, Tetrominos.S));\n news.add(new Block(new int[]{2, 3}, Tetrominos.T));\n news.add(new Block(new int[]{2, 3}, Tetrominos.Z));\n\n\n Collections.shuffle(news);\n newPiece.addAll(news);\n }", "private void addItems() {\n int random3 = 0;\n for (int i = 0; i < MAP_LENGTH; i++) {\n for (int j = 0; j < MAP_LENGTH; j++) {\n random3 = (int)(Math.round(Math.random()*9));\n if (tileMap[i][j].getTerrain() instanceof Grass) {\n if (adjacentCity(i, j) && tileMap[i][j].getCity() == null) { //Only have an item if possibly within city borders\n if (random3 == 0) {\n tileMap[i][j].setResource(new Fruit(i,j)); //Rep Fruit\n } else if (random3 == 1) {\n tileMap[i][j].setResource(new Animal(i,j)); //Rep Animal\n } else if (random3 == 2) {\n tileMap[i][j].setResource(new Forest(i,j)); //Rep Trees (forest)\n } else if (random3 == 3) {\n tileMap[i][j].setResource(new Crop(i,j)); //Rep Crop\n }\n }\n } else {\n if (adjacentCity(i, j)) {\n if (random3 < 2) {\n tileMap[i][j].setResource(new Fish(i, j)); //Rep fish\n } else if (random3 == 4) {\n if (Math.random() < 0.5) {\n tileMap[i][j].setResource(new Whale(i, j)); //Rep whale\n }\n }\n }\n }\n }\n }\n }", "private void pickItem() \n {\n if(currentRoom.getShortDescription() == \"in the campus pub\" && i.picked3 == false)\n {\n i.item3 = true;\n i.picked3 = true;\n System.out.println(\"You picked a redbull drink\");\n }\n else if(currentRoom.getShortDescription() == \"in th hallway\" && i.picked2 == false)\n {\n i.item2 = true;\n i.picked2 = true;\n System.out.println(\"You picked a torch\");\n }\n else if(currentRoom.getShortDescription() == \"in the office\" && i.picked1 == false)\n {\n i.item1 = true;\n i.picked1 = true;\n System.out.println(\"You picked a pair of scissors\");\n }\n else\n System.out.println(\"There is no items in the room!\");\n }", "public void render(GameContainer gc, Graphics g){\n\n for(Renderable r:renderables){\n r.render(gc, g);\n }\n\n if(this.gameData.getCurrentRoom().getRoomType() == MasarRoom.VICTORYROOM) {\n this.gameData.getImageList().get(2).draw(226, 284);\n }\n\n if(this.gameData.getCurrentRoom().getRoomType() == MasarRoom.DEFEATROOM) {\n this.gameData.getImageList().get(3).draw(120, 288);\n }\n\n\n if(roomType == GAMEROOM){\n\n for(Renderable l: this.gameData.getLinkList()){\n l.render(gc, g);\n }\n for(Renderable s: this.gameData.getSystemList()){\n s.render(gc, g);\n }\n\n this.gameData.getImageList().get(0).draw(300, 5);\n this.gameData.getImageList().get(1).draw(800, 5);\n this.gameData.getButtonsImages().get(\"Enemy\").drawNextSubimage(600, 16);\n this.gameData.getButtonsImages().get(\"Allied\").drawNextSubimage(500, 16);\n\n TrueTypeFont font = this.gameData.getFont(\"UITopFont\");\n font.drawString(536, 0, \"VS\" , Color.green);\n\n int popa = this.gameData.getPopA();\n int pope = this.gameData.getPopE();\n int resa = this.gameData.getResA();\n int rese = this.gameData.getResE();\n\n if ( popa > 1000000 ) font.drawString(480 - font.getWidth(\"\"+popa/1000000 + \"M\"), 0, \"\"+popa/1000000 + \"M\" , Color.cyan);\n else if ( popa > 1000 ) font.drawString(480 - font.getWidth(\"\"+popa/1000 + \"K\"), 0, \"\"+popa/1000 + \"K\" , Color.cyan);\n else font.drawString(480 - font.getWidth(\"\"+popa), 0, \"\"+popa , Color.cyan);\n font.drawString(295 - font.getWidth(\"\"+resa), 0, \"\"+resa , Color.cyan);\n\n if ( pope > 1000000 ) font.drawString(620, 0, \"\"+pope/1000000 + \"M\" , Color.red);\n else if ( pope > 1000 ) font.drawString(620, 0, \"\"+pope/1000 + \"K\" , Color.red);\n else font.drawString(620, 0, \"\"+pope , Color.red);\n font.drawString(830, 0, \"\"+rese , Color.red);\n\n for(WindowSystem w: this.gameData.getWindowList()){\n if(w.getMs().isShowWindow())\n w.render(gc, g);\n }\n\n //this.getClickManager().renderHitboxes(gc, g);\n\n }\n\n //this.getClickManager().renderHitboxes(gc, g);\n }", "private ItemStack[] getItemStack() {\n\n ItemStack[] stack = new ItemStack[54];\n int i = 0;\n // get the player's messages\n TVMResultSetInbox rs = new TVMResultSetInbox(plugin, uuid, start, 44);\n if (rs.resultSet()) {\n List<TVMMessage> messages = rs.getMail();\n for (TVMMessage m : messages) {\n // message\n ItemStack mess;\n if (m.isRead()) {\n mess = new ItemStack(Material.BOOK, 1);\n } else {\n mess = new ItemStack(Material.WRITABLE_BOOK, 1);\n }\n ItemMeta age = mess.getItemMeta();\n age.setDisplayName(\"#\" + (i + start + 1));\n String from = plugin.getServer().getOfflinePlayer(m.getWho()).getName();\n age.setLore(Arrays.asList(\"From: \" + from, \"Date: \" + m.getDate(), \"\" + m.getId()));\n mess.setItemMeta(age);\n stack[i] = mess;\n i++;\n }\n }\n\n int n = start / 44 + 1;\n // page number\n ItemStack page = new ItemStack(Material.BOWL, 1);\n ItemMeta num = page.getItemMeta();\n num.setDisplayName(\"Page \" + n);\n num.setCustomModelData(119);\n page.setItemMeta(num);\n stack[45] = page;\n // close\n ItemStack close = new ItemStack(Material.BOWL, 1);\n ItemMeta win = close.getItemMeta();\n win.setDisplayName(\"Close\");\n win.setCustomModelData(1);\n close.setItemMeta(win);\n stack[46] = close;\n // previous screen (only if needed)\n if (start > 0) {\n ItemStack prev = new ItemStack(Material.BOWL, 1);\n ItemMeta een = prev.getItemMeta();\n een.setDisplayName(\"Previous Page\");\n een.setCustomModelData(120);\n prev.setItemMeta(een);\n stack[48] = prev;\n }\n // next screen (only if needed)\n if (finish > 44) {\n ItemStack next = new ItemStack(Material.BOWL, 1);\n ItemMeta scr = next.getItemMeta();\n scr.setDisplayName(\"Next Page\");\n scr.setCustomModelData(116);\n next.setItemMeta(scr);\n stack[49] = next;\n }\n // read\n ItemStack read = new ItemStack(Material.BOWL, 1);\n ItemMeta daer = read.getItemMeta();\n daer.setDisplayName(\"Read\");\n daer.setCustomModelData(121);\n read.setItemMeta(daer);\n stack[51] = read;\n // delete\n ItemStack del = new ItemStack(Material.BOWL, 1);\n ItemMeta ete = del.getItemMeta();\n ete.setDisplayName(\"Delete\");\n ete.setCustomModelData(107);\n del.setItemMeta(ete);\n stack[53] = del;\n\n return stack;\n }", "private void makeObject() {\n\t\t\n\t\tItem I1= new Item(1,\"Cap\",10.0f,\"to protect from sun\");\n\t\tItemMap.put(1, I1);\n\t\t\n\t\tItem I2= new Item(2,\"phone\",100.0f,\"Conversation\");\n\t\tItemMap.put(2, I2);\n\t\t\n\t\tSystem.out.println(\"Objects Inserted\");\n\t}", "public void addPart() {\n\t\tengineCat.addPart(eg100);\n\t\tengineCat.addPart(eg133);\n\t\tengineCat.addPart(eg210);\n\t\tengineCat.addPart(ed110);\n\t\tengineCat.addPart(ed180);\n\t\tengineCat.addPart(eh120);\n\t\t\n\t\ttransCat.addPart(tm5);\n\t\ttransCat.addPart(tm6);\n\t\ttransCat.addPart(ta5);\n\t\ttransCat.addPart(ts6);\n\t\ttransCat.addPart(tsf7);\n\t\ttransCat.addPart(tc120);\n\t\t\n\t\textCat.addPart(xc);\n\t\textCat.addPart(xm);\n\t\textCat.addPart(xs);\n\t\t\n\t\tintCat.addPart(in);\n\t\tintCat.addPart(ih);\n\t\tintCat.addPart(is);\n\t}", "public void run() {\n Scanner sc=new Scanner(System.in);\n int numOfBox=sc.nextInt();\n int handCap=sc.nextInt();\n int boxCap=sc.nextInt();\n int numOfQuery=sc.nextInt();\n _boxes.add(new Box(0,handCap));\n for(int i=1;i<=numOfBox;i++){\n _boxes.add(new Box(i,boxCap));\n }\n for(int j=0;j<numOfQuery;j++){\n String query=sc.next();\n if(query.equals(\"purchase\")){\n String name=sc.next();\n int value=sc.nextInt();\n int boxNum=0;\n Item item=new Item(name,value);\n _items.add(item);\n for(int k=0;k<_boxes.size();k++){\n if(_boxes.get(k).getCapacity()>_boxes.get(k).getSize()){\n boxNum=k;\n _boxes.get(k).deposit(item);\n item.setLocation(_boxes.get(k));\n break;\n\n }\n }\n if(boxNum==0){\n System.out.println(\"item \"+name+\" is now being held\");\n }\n else{\n System.out.println(\"item \"+name+\" has been deposited to box \"+boxNum);\n } \n }\n if(query.equals(\"deposit\")){\n boolean hasfound=false;\n String name=sc.next();\n for(int i=0;i<_items.size();i++){\n if(_items.get(i).getName().equals(name)){\n hasfound=true;\n Item item=_items.get(i);\n if(item.getLocation().getNumber()!=0){\n System.out.println(\"item \"+name+\" is already in storage\");\n }\n else{\n for(int a=1;a<_boxes.size();a++){\n if(_boxes.get(a).getCapacity()>_boxes.get(a).getSize()){\n int boxNum=a;\n _boxes.get(a).deposit(item);\n _boxes.get(0).withdraw(item);\n item.setLocation(_boxes.get(a));\n System.out.println(\"item \"+name+\" has been deposited to box \"+boxNum);\n break;\n }\n }\n }\n break; \n }\n }\n if(hasfound==false){\n System.out.println(\"item \"+name+\" does not exist\");\n } \n }\n if(query.equals(\"withdraw\")){\n boolean hasfound=false;\n String name=sc.next();\n for(int i=0;i<_items.size();i++){\n if(_items.get(i).getName().equals(name)){\n hasfound=true;\n Item item=_items.get(i);\n if(item.getLocation().getNumber()==0){\n System.out.println(\"item \"+name+\" is already being held\");\n }\n else{\n if(_boxes.get(0).isFull()){\n System.out.println(\"cannot hold any more items\");\n }\n else{\n Box location=item.getLocation();\n location.withdraw(item);\n _boxes.get(0).deposit(item);\n item.setLocation(_boxes.get(0));\n System.out.println(\"item \"+name+\" has been withdrawn\");\n } \n }\n break; \n \n }\n } \n if(hasfound==false){\n System.out.println(\"item \"+name+\" does not exist\");\n }\n }\n if(query.equals(\"location\")){\n String name=sc.next();\n boolean hasfound=false;\n for(int i=0;i<_items.size();i++){\n if(_items.get(i).getName().equals(name)){\n hasfound=true;\n Item item=_items.get(i);\n if(item.getLocation().getNumber()==0){\n System.out.println(\"item \"+name+\" is being held\");\n }\n else{\n int num=item.getLocation().getNumber();\n System.out.println(\"item \"+name+\" is in box \"+num);\n } \n break; \n }\n \n }\n if(hasfound==false){\n System.out.println(\"item \"+name+\" does not exist\");\n } \n }\n if(query.equals(\"valuable\")){\n ArrayList<String> itemName=new ArrayList<String>();\n int highest=0;\n for(int i=0;i<_items.size();i++){\n if(_items.get(i).getValue()>highest){\n highest=_items.get(i).getValue();\n }\n \n }\n for(int b=0;b<_items.size();b++){\n if(_items.get(b).getValue()==highest){\n itemName.add(_items.get(b).getName());\n }\n }\n Collections.sort(itemName);\n System.out.println(itemName.get(0));\n } \n\n } \n }", "public void onLoadMenuTop10Selected(List<Track> topTenMediaItems);", "@Override\n public void openInventory() {\n PacketPlayOutOpenWindow packetPlayOutOpenWindow = new PacketPlayOutOpenWindow(this.fakeAnvil.getContainerId(), Containers.ANVIL, new ChatMessage(this.title));\n ((CraftPlayer) player).getHandle().playerConnection.sendPacket(packetPlayOutOpenWindow);\n ((CraftPlayer) player).getHandle().activeContainer = this.fakeAnvil;\n this.fakeAnvil.addSlotListener(((CraftPlayer) player).getHandle());\n }", "public static Item generate(){\n\n //this method lists a collection of new items. it then uses a random number generator\n //to pick one of the objects, and then returns the object so that the main method\n //can add it to the inventory.\n\n ItemType weapon = ItemType.weapon;\n Item IronSword = new Item(weapon, \"Iron Sword\", 8, 50, 10);\n Item GoldenSword = new Item(weapon, \"Golden Sword\", 10, 75, 15);\n Item AllumSword = new Item(weapon, \"Alluminum Sword\", 6, 35, 8);\n Item BowandQuiver = new Item(weapon, \"Bow & Quiver\", 4, 45, 7);\n Item BattleAxe = new Item(weapon, \"Battle Axe\", 12, 55, 13);\n\n ItemType armor = ItemType.armor;\n Item ChainChest = new Item(armor, \"Chain Mail Chestplate\", 8, 40, 30);\n Item IronChest = new Item(armor, \"Iron Chestplate\", 10, 50, 40);\n Item GoldenChest = new Item(armor, \"Golden Chestplate\", 12, 65, 50);\n Item ChainPants = new Item(armor, \"Chain Mail Pants\", 7, 40, 30);\n Item IronPants = new Item(armor, \"Iron Pants\", 9, 50, 40);\n Item GoldenPants = new Item(armor, \"Golden Pants\", 11, 65, 50);\n Item Helmet = new Item(armor, \"Helmet\", 5, 40, 20);\n\n ItemType other = ItemType.other;\n Item Bandage = new Item(other, \"Bandage\", 1, 2, 0);\n Item Wrench = new Item(other, \"Wrench\", 3, 10, 5);\n Item Bread = new Item(other, \"Bread Loaf\", 2, 4, 0);\n Item Water = new Item(other, \"Water Flask\", 3, 2, 0);\n\n Item Initializer = new Item(other, \"init\", 0, 0, 0);\n\t\tint ItemPick = RandomNum();\n Item chosen = Initializer;\n\n switch (ItemPick){\n case 1:\n chosen = IronSword;\n break;\n case 2:\n chosen = GoldenSword;\n break;\n case 3:\n chosen = AllumSword;\n break;\n case 4:\n chosen = BowandQuiver;\n break;\n case 5:\n chosen = BattleAxe;\n break;\n case 6:\n chosen = ChainChest;\n break;\n case 7:\n chosen = IronChest;\n break;\n case 8:\n chosen = GoldenChest;\n break;\n case 9:\n chosen = ChainPants;\n break;\n\t\t\t case 10:\n chosen = IronPants ;\n break;\n case 11:\n chosen = GoldenPants;\n break;\n case 12:\n chosen = Helmet;\n break;\n case 13:\n chosen = Bandage;\n break;\n case 14:\n chosen = Wrench;\n break;\n case 15:\n chosen = Bread;\n break;\n case 16:\n chosen = Water;\n break;\n }\n\n return chosen;\n }", "protected ItemBO segregateSelectedAndAdditionalInventoryForAnItem(ItemBO anItem) {\n\t\tlogger.info(\"segregateSelectedAndAdditionalInventoryForAnItem(...): Line # - Display Part #: \" + anItem.getLineNumber() + \" - \" + anItem.getDisplayPartNumber());\n\t\tlogger.info(\"segregateSelectedAndAdditionalInventoryForAnItem(...): anItem.getInventory().size(): \" + anItem.getInventory().size());\n\n\t\tList<InventoryBO> shortListedInventory = shortListRelevantInventory(anItem);\n\t\tif (shortListedInventory != null) {\n\t\t\tlogger.info(\"segregateSelectedAndAdditionalInventoryForAnItem(...): shortListedInventory.size(): \" + shortListedInventory.size());\n\t\t} else {\n\t\t\tlogger.info(\"segregateSelectedAndAdditionalInventoryForAnItem(...): shortListedInventory is null\");\n\t\t}\n\n\t\tif (!isPartFoundInMultipleLocations(anItem) || shortListedInventory == null || shortListedInventory.size() == 0) {\n\t\t\tanItem.setInventory(shortListedInventory);\n\t\t\tanItem.setAdditionalInventory(new ArrayList<InventoryBO>());\n\t\t} else { // Part found in multiple locations OR short-listed inventory is not null or empty\n\n\t\t\tList<InventoryBO> additionalInventory = new ArrayList<InventoryBO>();\n\t\t\tboolean sufficientQtyAvailable = hasSufficientQty(shortListedInventory, anItem);\n\t\t\tif (sufficientQtyAvailable) { // Short-listed Inventory has sufficient qty\n\t\t\t\t// Get remaining inventory locations. We will set them as additional inventory.\n\t\t\t\tadditionalInventory = getRemainingInventoryList(anItem, shortListedInventory);\n\t\t\t\n\t\t\t\tanItem.setInventory(shortListedInventory);\n\t\t\t\tanItem.setAdditionalInventory(additionalInventory);\n\t\t\t} else { // Short-listed Inventory does NOT have sufficient qty\n\t\t\t\tanItem = handleInsufficientQtyInShortlistedInventory(shortListedInventory, anItem);\n\t\t\t\tif (shortListedInventory != null) {\n\t\t\t\t\tlogger.info(\"segregateSelectedAndAdditionalInventoryForAnItem(...): shortListedInventory.size(): \" + shortListedInventory.size());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (anItem.getAdditionalInventory() != null) {\n\t\t\tlogger.info(\"segregateSelectedAndAdditionalInventoryForAnItem(...): anItem.getAdditionalInventory().size(): \" + anItem.getAdditionalInventory().size());\n\t\t} else {\n\t\t\tlogger.info(\"segregateSelectedAndAdditionalInventoryForAnItem(...): anItem.getAdditionalInventory() is null\");\n\t\t}\n\t\tlogger.info(\"segregateSelectedAndAdditionalInventoryForAnItem(...): ----------\");\n\n\t\treturn anItem;\n\t}", "public ArrayList<GameItemSingle> getVirtualGameData(){\n\n ArrayList<GameItemSingle> data=new ArrayList<>();\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor cursor = db.rawQuery(\"select * from \"+DATABASE_TABLE_SINGLE_PAGE + \" WHERE _type LIKE \" + \" '%virtual_pet_games%'\"+ \" ;\",null);\n StringBuffer stringBuffer = new StringBuffer();\n GameItemSingle singlePageItem = null;\n while (cursor.moveToNext()) {\n\n singlePageItem= new GameItemSingle();\n String id = cursor.getString(cursor.getColumnIndexOrThrow(\"id\"));\n String title = cursor.getString(cursor.getColumnIndexOrThrow(\"title_rendered\"));\n String content = cursor.getString(cursor.getColumnIndexOrThrow(\"content_rendered\"));\n String date = cursor.getString(cursor.getColumnIndexOrThrow(\"date\"));\n String app_icon = cursor.getString(cursor.getColumnIndexOrThrow(\"app_icon_image\"));\n singlePageItem.setTitle_rendered(title);\n singlePageItem.setContent_rendered(content);\n singlePageItem.set_date(date);\n singlePageItem.setApp_icon(app_icon);\n singlePageItem.set_id(id);\n\n stringBuffer.append(singlePageItem);\n data.add(singlePageItem);\n }\n\n return data;\n }", "public void act() \r\n {\n if(getOneIntersectingObject(Player.class)!=null)\r\n {\r\n if(MenuWorld.gamemode == 1)\r\n //marcheaza regenerarea labirintului(trecere la nivelul urmator in Modul Contra Timp)\r\n TAworld.shouldRegen=true;\r\n else\r\n { \r\n //reseteaza variabilele care tin de modul de joc\r\n MenuWorld.gamemode=-1;\r\n MenuWorld.isPlaying=false;\r\n for(int i=0;i<4;i++)\r\n ItemCounter.gems_taken[i]=0;\r\n \r\n //arata fereastra de castig \r\n PMworld.shouldShowVictoryWindow=true;\r\n }\r\n \r\n }\r\n \r\n }", "public void createRooms()\n {\n Room outside,bedroom, bathroom, hallway1, hallway2, spareroom, kitchen, fridge;\n\n // create the rooms\n bedroom = new Room(\"Bedroom\", \"your bedroom. A simple room with a little bit too much lego\");\n bathroom = new Room(\"Bathroom\", \"the bathroom where you take your business calls. Also plenty of toilet paper\");\n hallway1 = new Room(\"Hallway1\", \"the hallway outside your room, there is a dog here blocking your path. Youll need to USE something to distract him\");\n hallway2 = new Room(\"Hallway2\", \"the same hallway? This part leads to the spare room and kitchen\");\n spareroom = new Room(\"Spare room\", \"the spare room. This is for guests\");\n kitchen = new Room(\"Kitchen\", \"your kitchen. There is a bowl with cereal in it waiting for you,But its still missing some things\");\n fridge = new Room (\"Walk in Fridge\", \"a walkin fridge. Have you ever seen Ratatouille? Its like that\");\n outside = new Room(\"Outside\", \"the outside world, breathe it in\");\n \n \n Item toiletPaper, milk, spoon, poison;// creates the items and sets their room\n \n toiletPaper = new Item(\"Toilet-Paper\", hallway1);\n toiletPaper.setDescription(\"Just your standard bog roll. Dont let your dog get a hold of it\");\n bathroom.setItems(\"Toilet-Paper\",toiletPaper);\n \n milk = new Item(\"Milk\", kitchen);\n milk.setDescription(\"white and creamy, just like mama used to make\");\n fridge.setItems(\"Milk\", milk);\n \n spoon = new Item(\"Spoon\", kitchen);\n spoon.setDescription(\"Like a fork but for liquids\");\n spareroom.setItems(\"Spoon\", spoon);\n \n poison = new Item(\"Poison\", outside);\n poison.setDescription(\"This will probably drain all of your energy, dont USE it\");\n outside.setItems(\"Poison\", poison);\n \n // initialise room exits\n bedroom.setExit(\"east\", bathroom);\n bedroom.setExit(\"north\", hallway1);\n \n bathroom.setExit(\"west\", bedroom);\n \n hallway1.setExit(\"south\", bedroom);\n hallway1.setExit(\"north\", hallway2);\n \n hallway2.setExit(\"south\", hallway1);\n hallway2.setExit(\"west\", spareroom);\n hallway2.setExit(\"north\", kitchen);\n \n spareroom.setExit(\"east\", hallway2);\n \n kitchen.setExit(\"east\", outside);\n kitchen.setExit(\"west\", fridge);\n \n fridge.setExit(\"east\", kitchen);\n \n \n outside.setExit(\"west\", kitchen);\n \n\n this.currentRoom = bedroom; // start game in bedroom\n \n }", "private void playButtonActionPerformed(java.awt.event.ActionEvent evt) {\n for(AudioVisualMaterial currentAudio : audio){ //iterates through audio array\n currentMaterial = currentAudio; //passes local variable into class variable\n if(audioCB.getSelectedItem() == currentMaterial.getAuthor()){ //if comboBox selection matches an audio material's author\n currentMaterial.setupSoundClip();\n currentMaterial.playSoundClip(); //play audio sound clip\n }\n }\n\n //enhanced for loop that plays a video soundClip if selected when play button is pressed\n for(AudioVisualMaterial currentVideo : video){ //iterates through video array\n currentMaterial = currentVideo; //passes local variable into class variable\n if(videoCB.getSelectedItem() == currentMaterial.getTitle()){ //if comboBox selection matches a video's title\n currentMaterial.setupSoundClip();\n currentMaterial.playSoundClip(); //play video sound clip\n }\n }\n }", "private void setItems()\n {\n sewers.setItem(rope); \n promenade.setItem(rope);\n bridge.setItem(potion);\n tower.setItem(potion);\n throneRoomEntrance.setItem(potion);\n depths.setItem(shovel);\n crypt.setItem(shovel);\n }", "private void loadItems() {\n try {\n if (ServerIdUtil.isServerId(memberId)) {\n if (ServerIdUtil.containsServerId(memberId)) {\n memberId = ServerIdUtil.getLocalId(memberId);\n } else {\n return;\n }\n }\n List<VideoReference> videoReferences = new Select().from(VideoReference.class).where(VideoReference_Table.userId.is(memberId)).orderBy(OrderBy.fromProperty(VideoReference_Table.date).descending()).queryList();\n List<String> videoIds = new ArrayList<>();\n for (VideoReference videoReference : videoReferences) {\n videoIds.add(videoReference.getId());\n }\n itemList = new Select().from(Video.class).where(Video_Table.id.in(videoIds)).orderBy(OrderBy.fromProperty(Video_Table.date).descending()).queryList();\n } catch (Throwable t) {\n itemList = new ArrayList<>();\n }\n }", "private void takeItem(Command command) \n { \n if(!command.hasSecondWord()) { \n // if there is no second word, we don't know where to go... \n Logger.Log(\"What are you trying to take?\"); \n return; \n } \n \n String itemName = command.getSecondWord();\n String secondName = itemName + \"2\";\n \n Item thisItem = currentRoom.getItem(itemName);\n Item secondItem = currentRoom.getItem(secondName);\n \n if (thisItem == null) {\n Logger.Log(\"There isn't a \" + itemName + \"in here!\");\n }\n else if (player.inventory.containsKey(itemName)){\n Logger.Log(\"You take another \" + itemName + \" and put it in your backpack.\");\n player.addItem(secondName, secondItem); \n }\n else if (player.inventory.containsKey(itemName)&&(player.inventory.containsKey(secondName))){\n Logger.Log(\"You don't need any more \" + itemName + \"s!\");\n }\n else { \n Logger.Log(\"You take the \" + itemName + \" and put it in your backpack.\");\n player.addItem(itemName, thisItem);\n } \n \n }", "private static String[] placeInBag(String item, String[] inventory){\r\n for(int i=0; i<inventory.length; i++){\r\n if(inventory[i].equals(\"\")){\r\n inventory[i] = item;\r\n break;\r\n }\r\n }\r\n return inventory;\r\n }", "@Override\r\n\tpublic void BulidPartA() {\n\t product.add(\"part A\");\r\n\r\n\t}", "@Override\n @Test\n public void equipTest() {\n Axe axes;\n Sword sword;\n Staff staff;\n Spear spear;\n Luz luz;\n Oscuridad oscuridad;\n Anima anima;\n Bow bow;\n axes = new Axe(\"Axe\", 20, 1, 2);\n sword = new Sword(\"Sword\", 20, 1, 2);\n spear = new Spear(\"Spear\", 20, 1, 2);\n staff = new Staff(\"Staff\", 20, 1, 2);\n bow = new Bow(\"Bow\", 20, 2, 3);\n anima = new Anima(\"Anima\", 20, 1, 2);\n luz = new Luz(\"Luz\", 20, 1, 2);\n oscuridad = new Oscuridad(\"Oscuridad\", 20, 1, 2);\n sorcererAnima.addItem(axes);\n sorcererAnima.equipItem(axes);\n assertNull(sorcererAnima.getEquippedItem());\n sorcererAnima.items.remove(axes);\n sorcererAnima.addItem(sword);\n sorcererAnima.equipItem(sword);\n assertNull(sorcererAnima.getEquippedItem());\n sorcererAnima.items.remove(sword);\n sorcererAnima.addItem(spear);\n sorcererAnima.equipItem(spear);\n assertNull(sorcererAnima.getEquippedItem());\n sorcererAnima.items.remove(spear);\n sorcererAnima.addItem(staff);\n sorcererAnima.equipItem(staff);\n assertNull(sorcererAnima.getEquippedItem());\n sorcererAnima.items.remove(staff);\n sorcererAnima.addItem(bow);\n sorcererAnima.equipItem(bow);\n assertNull(sorcererAnima.getEquippedItem());\n sorcererAnima.items.remove(bow);}", "@Override\r\n\tpublic void setInventoryItems() {\n\t\t\r\n\t}", "private void updateShop(List<ItemType> items, int level) {\n\t\tfor (ItemType item : items) {\n\t\t\tString text = item.getTextureString();\n\t\t\ttext = item instanceof SpecialType ? text\n\t\t\t\t\t: text.substring(0, text.length() - 1)\n\t\t\t\t\t\t\t+ Integer.toString(level);\n\t\t\tTexture texture = textureManager.getTexture(text);\n\t\t\tImageButton button = generateItemButton(texture);\n\n\t\t\tbutton.addListener(new ClickListener() {\n\t\t\t\tpublic void clicked(InputEvent event, float x, float y) {\n\t\t\t\t\tstatus.setText(item.getName());\n\t\t\t\t\tif (selectedHero == null) {\n\t\t\t\t\t\tstatus.setText(\"Unsuccessful shopping, No hero exist.\");\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tif (selectedHero.getHealth() <= 0) {\n\t\t\t\t\t\tstatus.setText(\n\t\t\t\t\t\t\t\t\"Your Commander is dead. Can't buy anything.\");\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tboolean enoughResources = checkCost(selectedHero.getOwner(),\n\t\t\t\t\t\t\titem);\n\t\t\t\t\tif (enoughResources) {\n\t\t\t\t\t\tif (item instanceof WeaponType) {\n\t\t\t\t\t\t\tWeapon weapon = new Weapon((WeaponType) item,\n\t\t\t\t\t\t\t\t\tlevel);\n\t\t\t\t\t\t\tselectedHero.addItemToInventory(weapon);\n\t\t\t\t\t\t\tstatus.setText(boughtString + weapon.getName()\n\t\t\t\t\t\t\t\t\t+ \"(Weapon) for \"\n\t\t\t\t\t\t\t\t\t+ selectedHero.toString());\n\t\t\t\t\t\t} else if (item instanceof ArmourType) {\n\t\t\t\t\t\t\tArmour armour = new Armour((ArmourType) item,\n\t\t\t\t\t\t\t\t\tlevel);\n\t\t\t\t\t\t\tselectedHero.addItemToInventory(armour);\n\t\t\t\t\t\t\tstatus.setText(boughtString + armour.getName()\n\t\t\t\t\t\t\t\t\t+ \"(Armour) for \"\n\t\t\t\t\t\t\t\t\t+ selectedHero.toString());\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tboolean transactSuccess;\n\t\t\t\t\t\t\tSpecial special = new Special((SpecialType) item);\n\t\t\t\t\t\t\ttransactSuccess = selectedHero\n\t\t\t\t\t\t\t\t\t.addItemToInventory(special);\n\t\t\t\t\t\t\tif (transactSuccess) {\n\t\t\t\t\t\t\t\tstatus.setText(boughtString + special.getName()\n\t\t\t\t\t\t\t\t\t\t+ \"(Special) for \"\n\t\t\t\t\t\t\t\t\t\t+ selectedHero.toString());\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tstatus.setText(\n\t\t\t\t\t\t\t\t\t\t\"Unsuccessful Shopping, can only hold 4 specials\");\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tselectedHero.setStatsChange(true);\n\t\t\t\t\t\ttransact(selectedHero.getOwner(), item);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tString mes = \"Not enough resources.\";\n\t\t\t\t\t\tstatus.setText(mes);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tprivate boolean checkCost(int owner, ItemType item) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t});\n\t\t\tscrollTable.add(button).width(iconSize).height(iconSize).top();\n\t\t\tString stats = getItemStats(item, level);\n\t\t\tString cost = getItemCost(item, level);\n\t\t\tscrollTable.add(new Label(stats, skin)).width(iconSize).top()\n\t\t\t\t\t.left();\n\t\t\tscrollTable.add(new Label(cost, skin)).width(iconSize).top().left();\n\t\t\tscrollTable.row();\n\t\t}\n\t}", "public void addedToWorld(World w){\n PauseWorld world = (PauseWorld) w;\n world.addObject(nameLabel,this.getX(),this.getY()+itemSize/2+10);\n }" ]
[ "0.5788768", "0.57199615", "0.57176566", "0.56782097", "0.56610626", "0.56493", "0.5648799", "0.5646356", "0.5639971", "0.5634357", "0.5631907", "0.56169474", "0.55885553", "0.555131", "0.5548056", "0.5541402", "0.55138195", "0.55041426", "0.55021346", "0.55003726", "0.547903", "0.54776156", "0.5472842", "0.54533255", "0.5436936", "0.5407231", "0.53916836", "0.53857327", "0.53842926", "0.53732085", "0.5347653", "0.5345665", "0.5344665", "0.5334276", "0.5333658", "0.5321552", "0.5311421", "0.52816623", "0.52815264", "0.5275156", "0.52742684", "0.526424", "0.5260917", "0.5259814", "0.5254797", "0.52520365", "0.5250585", "0.5247187", "0.5245551", "0.52320355", "0.521863", "0.52184284", "0.5217234", "0.521547", "0.5214089", "0.5212166", "0.5207091", "0.5196949", "0.51959574", "0.51955926", "0.51954544", "0.5194582", "0.51924175", "0.5190761", "0.5175487", "0.5164908", "0.5164427", "0.5162646", "0.51586026", "0.51560587", "0.5153057", "0.5149875", "0.5142432", "0.51347685", "0.5134382", "0.51275617", "0.5127101", "0.51258075", "0.51223224", "0.51185864", "0.5112001", "0.5106214", "0.51009035", "0.5100118", "0.5094473", "0.509154", "0.5082098", "0.5081862", "0.507541", "0.50681347", "0.5068004", "0.506674", "0.50658935", "0.506523", "0.5064427", "0.5062305", "0.50561714", "0.5053928", "0.50504446", "0.5048288", "0.50457203" ]
0.0
-1
Factory function that creates a mapReducer object of the appropriate data type class for this oshdb backend implemenation
public abstract <X extends OSHDBMapReducible> MapReducer<X> createMapReducer(Class<X> forClass);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public InMemoryCombiningReducer() {\n\n\t\t}", "public interface Reducer<KeyIn extends WritableComparable<KeyIn> , ValueIn extends WritableComparable<ValueIn> , KeyOut extends WritableComparable<KeyOut> , ValueOut extends WritableComparable<ValueOut>> {\n\t\n\tpublic void reduce(KeyIn keyIn , Iterator<ValueIn> values , ReduceOutputCollector<KeyOut, ValueOut> outputCollector );\n\t\n}", "@Mapper\npublic interface ReduceMapper {\n\n public void updateStatus(DataCollectionEntity bean);\n\n public DataCollectionEntity findById(DataCollectionEntity bean);\n\n\n public List<DataCollectionEntity> pageReduceApply(DataCollectionEntity bean);\n\n public List<DataCollectionEntity> pageReduceApplyExport(DataCollectionEntity bean);\n\n public List<DataCollectionEntity> totalExport(DataCollectionEntity bean);\n\n public void saveReduceApply(DataCollectionEntity bean);\n\n public void updateReduceApply(DataCollectionEntity bean);\n\n public void updateApplyStatus(DataCollectionEntity bean);\n\n}", "<T> DataFrame<R,C> mapToObjects(Class<T> type, Function<DataFrameValue<R,C>,T> mapper);", "@Override\n public <KEYIN extends Serializable, VALUEIN extends Serializable, K extends Serializable, V extends Serializable, KOUT extends Serializable, VOUT extends Serializable> IMapReduce<KEYIN, VALUEIN, KOUT, VOUT>\n buildMapReduceEngine(@Nonnull final String name, @Nonnull final IMapperFunction<KEYIN, VALUEIN, K, V> pMapper, @Nonnull final IReducerFunction<K, V, KOUT, VOUT> pRetucer, final IPartitionFunction<K> pPartitioner) {\n return new SparkMapReduce(name, pMapper, pRetucer, pPartitioner);\n }", "@Override\n public <KEYIN extends Serializable, VALUEIN extends Serializable, K extends Serializable, V extends Serializable, KOUT extends Serializable, VOUT extends Serializable> IMapReduce<KEYIN, VALUEIN, KOUT, VOUT>\n buildMapReduceEngine(@Nonnull final String name, @Nonnull final IMapperFunction<KEYIN, VALUEIN, K, V> pMapper, @Nonnull final IReducerFunction<K, V, KOUT, VOUT> pRetucer) {\n return new SparkMapReduce(name, pMapper, pRetucer);\n }", "public interface Reducer<T, U> {\n U reduce(U collector, T item);\n}", "<K1, V1> KTable<K1, V1> reduce(Reducer<V1> addReducer,\n Reducer<V1> removeReducer,\n KeyValueMapper<K, V, KeyValue<K1, V1>> selector,\n Serializer<K1> keySerializer,\n Serializer<V1> valueSerializer,\n Deserializer<K1> keyDeserializer,\n Deserializer<V1> valueDeserializer,\n String name);", "@Test\n\tpublic void testReducer() {\n\n\t\tList<Text> values = new ArrayList<Text>();\n\t\tvalues.add(new Text(\"1745.09564282 5218.86073424\"));\n\n\t\t/*\n\t\t * For this test, the reducer's input will be \"cat 1 1\".\n\t\t */\n\t\treduceDriver.withInput(new Text(\"Sweden\"), values);\n\n\t\t/*\n\t\t * The expected output is \"cat 2\"\n\t\t */\n\t\treduceDriver.withOutput(new Text(\"(Sweden)\"), new Text(\"| in 2011$ values PPP, 1995 health cost: 1745.1| 2014 health cost: 5218.86| cost increase (%): 199.06%\\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\"));\n\n\t\t/*\n\t\t * Run the test.\n\t\t */\n\t\treduceDriver.runTest();\n\t}", "<T> DataFrame<R,C> mapToObjects(C colKey, Class<T> type, Function<DataFrameValue<R,C>,T> mapper);", "@Mapper\npublic interface UserRoleMapper {\n void deleteById(Map<String, Integer> param);\n\n void insertUserRole(Map<String, Integer> param);\n}", "private TypeMapper getTypeMapper() {\n\t\tif (JjsUtils.closureStyleLiteralsNeeded(this.options)) {\n\t\t\treturn new ClosureUniqueIdTypeMapper(jprogram);\n\t\t}\n\t\tif (this.options.useDetailedTypeIds()) {\n\t\t\treturn new StringTypeMapper(jprogram);\n\t\t}\n\t\treturn this.options.isIncrementalCompileEnabled()\n\t\t\t\t? compilerContext.getMinimalRebuildCache().getTypeMapper()\n\t\t\t\t: new IntTypeMapper();\n\t}", "public interface OperationLogMapper extends BaseMapper<OperationLog> {\n}", "public interface Mapper<T, T2> {\n\n /**\n * Sets the source object.\n *\n * @param source the source instance.\n * @return a <b>IOMap</b> instance.\n */\n Mapper<T, T2> from(T source);\n\n /**\n * Sets the target class.\n *\n * @param target the target class.\n * @return a <b>IOMap</b> instance.\n */\n Mapper<T, T2> to(Class<T2> target);\n\n /**\n * Sets an ignorable object with the ignorable fields for mapping operation.\n *\n * @param ignorable the ignorable instance.\n * @return a <b>IOMap</b> instance.\n */\n Mapper<T, T2> ignoring(Ignorable ignorable);\n\n /**\n * Sets a customizable object with the fields for the explicit mapping.\n *\n * @param customizable the customizable instance.\n * @return a <b>IOMap</b> instance.\n */\n Mapper<T, T2> relate(Customizable customizable);\n\n /**\n * Starts with the building target object\n *\n * @return a target object instance.\n */\n T2 build();\n\n}", "<R> ProcessOperation<R> map(RowMapper<R> rowMapper);", "public interface Mapper {\n /**\n * Map the provided input value to the new output value\n * @param key the key of the input value\n * @param input the actual input value\n * @return the value to store in the datastore\n */\n public Object map(String key, Object input);\n}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface WordOccurrencesMapper {\n \n /**\n * Instance of mapper\n */\n WordOccurrencesMapper INSTANCE =Mappers.getMapper(WordOccurrencesMapper.class);\n\n @Mapping(source = \"review.id\", target = \"reviewId\")\n WordOccurrencesDTO wordOccurrencesToWordOccurrencesDTO(WordOccurrences wordOccurrences);\n\n List<WordOccurrencesDTO> wordOccurrencesToWordOccurrencesDTOs(List<WordOccurrences> wordOccurrences);\n\n @Mapping(source = \"reviewId\", target = \"review\")\n WordOccurrences wordOccurrencesDTOToWordOccurrences(WordOccurrencesDTO wordOccurrencesDTO);\n\n List<WordOccurrences> wordOccurrencesDTOsToWordOccurrences(List<WordOccurrencesDTO> wordOccurrencesDTOs);\n\n default Review reviewFromId(Long id) {\n if (id == null) {\n return null;\n }\n Review review = new Review();\n review.setId(id);\n return review;\n }\n}", "public interface StatusMapper extends BaseMapper<Status> {\n\n}", "public interface RoleMapper extends MyMapper<Role> {\r\n\r\n List<Role> getRoleByMap(Map<String, Object> map);\r\n\r\n Role getRoleById(Integer id);\r\n\r\n Integer createRole(Role role);\r\n\r\n int updateRole(Role role);\r\n\r\n int deleteRole(Integer id);\r\n}", "static <S, T> PType<T> derived(Class<T> clazz, MapFn<S, T> inputFn, MapFn<T, S> outputFn,\n PType<S> base, PType[] subTypes) {\n WritableType<S, ?> wt = (WritableType<S, ?>) base;\n MapFn input = new CompositeMapFn(wt.getInputMapFn(), inputFn);\n MapFn output = new CompositeMapFn(outputFn, wt.getOutputMapFn());\n return new WritableType(clazz, wt.getSerializationClass(), input, output, subTypes);\n }", "MappedDatatype createMappedDatatype();", "MapType map(List<ReferenceOrderedDatum> rodData, char ref, LocusContext context);", "ReduceType reduceInit();", "private static void createTypeMap() {\n\n }", "public interface OrderStatusMapper extends BaseMapper<OrderStatus> {\n}", "@Repository(\"productTypeMapper\")\npublic interface ProductTypeMapper extends CommonMapper<ProductTypeInfo> {\n}", "public abstract T toObject(String uuid, Map<String, Object> data);", "Mapper<T, T2> from(T source);", "@Mapper\npublic interface RecruitMapper {\n\n /**\n * 根据招募表主键ID查询\n * @param id\n * @return\n */\n public Recruit getRecruitById(String id);\n\n /**\n * 根据商家ID查询对应招募信息\n * @param owner\n * @return\n */\n public List<Recruit> getRecruitListByOwner(String owner);\n\n public int insertRecruit(Recruit recruit);\n\n public int updateRecruit(Recruit recruit);\n}", "public MapReduceOutput mapReduce(final MapReduceCommand command) {\n ReadPreference readPreference = command.getReadPreference() == null ? getReadPreference() : command.getReadPreference();\n Map<String, Object> scope = command.getScope();\n Boolean jsMode = command.getJsMode();\n if (command.getOutputType() == MapReduceCommand.OutputType.INLINE) {\n\n MapReduceWithInlineResultsOperation<DBObject> operation =\n new MapReduceWithInlineResultsOperation<>(getNamespace(), new BsonJavaScript(command.getMap()),\n new BsonJavaScript(command.getReduce()), getDefaultDBObjectCodec())\n .filter(wrapAllowNull(command.getQuery()))\n .limit(command.getLimit())\n .maxTime(command.getMaxTime(MILLISECONDS), MILLISECONDS)\n .jsMode(jsMode != null && jsMode)\n .sort(wrapAllowNull(command.getSort()))\n .verbose(command.isVerbose())\n .collation(command.getCollation());\n\n if (scope != null) {\n operation.scope(wrap(new BasicDBObject(scope)));\n }\n if (command.getFinalize() != null) {\n operation.finalizeFunction(new BsonJavaScript(command.getFinalize()));\n }\n MapReduceBatchCursor<DBObject> executionResult = executor.execute(operation, readPreference, getReadConcern());\n return new MapReduceOutput(command.toDBObject(), executionResult);\n } else {\n String action;\n switch (command.getOutputType()) {\n case REPLACE:\n action = \"replace\";\n break;\n case MERGE:\n action = \"merge\";\n break;\n case REDUCE:\n action = \"reduce\";\n break;\n default:\n throw new IllegalArgumentException(\"Unexpected output type\");\n }\n\n MapReduceToCollectionOperation operation =\n new MapReduceToCollectionOperation(getNamespace(),\n new BsonJavaScript(command.getMap()),\n new BsonJavaScript(command.getReduce()),\n command.getOutputTarget(),\n getWriteConcern())\n .filter(wrapAllowNull(command.getQuery()))\n .limit(command.getLimit())\n .maxTime(command.getMaxTime(MILLISECONDS), MILLISECONDS)\n .jsMode(jsMode != null && jsMode)\n .sort(wrapAllowNull(command.getSort()))\n .verbose(command.isVerbose())\n .action(action)\n .databaseName(command.getOutputDB())\n .bypassDocumentValidation(command.getBypassDocumentValidation())\n .collation(command.getCollation());\n\n if (scope != null) {\n operation.scope(wrap(new BasicDBObject(scope)));\n }\n if (command.getFinalize() != null) {\n operation.finalizeFunction(new BsonJavaScript(command.getFinalize()));\n }\n try {\n MapReduceStatistics mapReduceStatistics = executor.execute(operation, getReadConcern());\n DBCollection mapReduceOutputCollection = getMapReduceOutputCollection(command);\n DBCursor executionResult = mapReduceOutputCollection.find();\n return new MapReduceOutput(command.toDBObject(), executionResult, mapReduceStatistics, mapReduceOutputCollection);\n } catch (MongoWriteConcernException e) {\n throw createWriteConcernException(e);\n }\n }\n }", "public interface PostCatgMapper {\n\n}", "public interface MapObjectType {\n}", "public interface TypeMapper {\n public <T> T sqlToJtype(Object sqlValue, Class<T> jType);\n public <T> T jToSql(Object jValue, String sqlType);\n}", "public interface TOP0201JobMapper {\n\n public int insertTOP0201(Map params) throws Exception;\n\n public int deleteTOP0201(Map params) throws Exception;\n}", "public Builder setRedFuncClass(\n Class<? extends ReduceFunction<?>> redFuncClass) {\n this.redFuncClass = redFuncClass;\n return this;\n }", "protected Map createMapMatchingType(MappingContext mappingContext) {\n Class<?> mapType = mappingContext.getTypeInformation().getSafeToWriteClass();\n if (mapType.isAssignableFrom(LinkedHashMap.class)) {\n return new LinkedHashMap();\n } else if (mapType.isAssignableFrom(TreeMap.class)) {\n return new TreeMap();\n } else {\n throw new ConfigMeMapperException(mappingContext, \"Unsupported map type '\" + mapType + \"'\");\n }\n }", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface PerformerMapper extends EntityMapper<PerformerDTO, Performer> {\n\n\n\n default Performer fromId(Long id) {\n if (id == null) {\n return null;\n }\n Performer performer = new Performer();\n performer.setId(id);\n return performer;\n }\n}", "Map<String, PrimitiveTypeProvider> convert(T data);", "public MapReduceOutput mapReduce(final String map, final String reduce, final String outputTarget,\n final MapReduceCommand.OutputType outputType, final DBObject query) {\n MapReduceCommand command = new MapReduceCommand(this, map, reduce, outputTarget, outputType, query);\n return mapReduce(command);\n }", "Mapper<T, T2> to(Class<T2> target);", "public OperationFactory() {\n initMap();\n }", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface Record25HerfinancieeringMapper extends EntityMapper<Record25HerfinancieeringDTO, Record25Herfinancieering> {\n\n\n\n default Record25Herfinancieering fromId(Long id) {\n if (id == null) {\n return null;\n }\n Record25Herfinancieering record25Herfinancieering = new Record25Herfinancieering();\n record25Herfinancieering.setId(id);\n return record25Herfinancieering;\n }\n}", "public interface ResourceMapper {\n\n /**\n * Delete one record by primary key.<br>\n * \n * @param uuid Primary key\n * @return The row number just inserted into the database\n * @since SDNO 0.5\n */\n int deleteByPrimaryKey(String uuid);\n\n /**\n * Add one record including all fields.<br>\n * \n * @param record New record\n * @return The row number just inserted into the database\n * @since SDNO 0.5\n */\n int insert(ResourcePojo record);\n\n /**\n * Add specified field, only for non empty fields.<br>\n * \n * @param record New record\n * @return The row number just inserted into the database\n * @since SDNO 0.5\n */\n int insertSelective(ResourcePojo record);\n\n /**\n * Query resource data by primary key.<br>\n * \n * @param bktName Bucket name\n * @return Resource data\n * @since SDNO 0.5\n */\n List<ResourcePojo> selectByBktName(String bktName);\n\n /**\n * Update specified field of resource data by primary key, only for non empty fields.<br>\n * \n * @param record Resource data record\n * @return The row number just updated in the database\n * @since SDNO 0.5\n */\n int updateByPrimaryKeySelective(ResourcePojo record);\n\n /**\n * Update one record by primary key.<br>\n * \n * @param record Resource data record\n * @return The row number just updated in the database\n * @since SDNO 0.5\n */\n int updateByPrimaryKey(ResourcePojo record);\n\n /**\n * Query resource collection by bucket name and model name.<br>\n * \n * @param bktName Bucket name\n * @param modelName Model name\n * @return Resource collection\n * @since SDNO 0.5\n */\n List<ResourcePojo> selectByBktAndModelName(@Param(\"bktName\") String bktName, @Param(\"modelName\") String modelName);\n}", "@Mapper\npublic interface SeguridadDtoMap {\n SeguridadDtoMap INSTANCE = Mappers.getMapper( SeguridadDtoMap.class );\n\n GrupoDto grupoToGrupoDto(Grupo grupo);\n\n Grupo grupoDtoToGrupo(GrupoDto grupoDto);\n}", "@Mapper(componentModel = \"spring\", uses = {OperationMapper.class, PecStatusChangeMatrixMapper.class, StatusPecMapper.class,})\npublic interface RaisonPecMapper extends EntityMapper <RaisonPecDTO, RaisonPec> {\n\n @Mapping(source = \"operation.id\", target = \"operationId\")\n @Mapping(source = \"operation.label\", target = \"operationLabel\")\n @Mapping(source = \"statusPec.id\", target = \"statusPecId\")\n @Mapping(source = \"statusPec.label\", target = \"statusPecLabel\")\n\n \n @Mapping(source = \"pecStatusChangeMatrix.id\", target = \"pecStatusChangeMatrixId\")\n @Mapping(source = \"pecStatusChangeMatrix.label\", target = \"pecStatusChangeMatrixLabel\")\n \n RaisonPecDTO toDto(RaisonPec raisonPec); \n\n @Mapping(source = \"operationId\", target = \"operation\")\n\n\n\n @Mapping(source = \"statusPecId\", target = \"statusPec\")\n\n \n @Mapping(source = \"pecStatusChangeMatrixId\", target = \"pecStatusChangeMatrix\")\n\n RaisonPec toEntity(RaisonPecDTO raisonPecDTO); \n default RaisonPec fromId(Long id) {\n if (id == null) {\n return null;\n }\n RaisonPec raisonPec = new RaisonPec();\n raisonPec.setId(id);\n return raisonPec;\n }\n}", "void materialize(String output_path, Map<String,String> prefixes, String id_interlink, String s_dataSource, String s_class_restriction,\n String t_dataSource, String t_class_restriction, String type_aggregate,\n String metric, String[] input_props);", "@Mapper\npublic interface CivilizationIndexMapper {\n\n @Insert(\"insert into t_timezerg_civilization_index values (#{id},#{cid},#{cdate})\")\n int add(CivilizationIndex civilizationIndex);\n\n @Delete(\"delete from t_timezerg_civilization_index where id = #{id}\")\n void delete(String id);\n\n @Select(\"select * from t_timezerg_civilization_index where cid = #{cid}\")\n CivilizationIndex selectByCid(String cid);\n\n @Select(\"select * from t_timezerg_civilization_index where id = #{id}\")\n CivilizationIndex selectById(String id);\n\n @Select(\"select ci.*,c.title from t_timezerg_civilization_index ci left join t_timezerg_civilization c on c.id = ci.cid order by ci.cdate desc\")\n List<HashMap> selectList();\n\n}", "public MapReduceOutput mapReduce(final String map, final String reduce, final String outputTarget,\n final MapReduceCommand.OutputType outputType, final DBObject query,\n final ReadPreference readPreference) {\n MapReduceCommand command = new MapReduceCommand(this, map, reduce, outputTarget, outputType, query);\n command.setReadPreference(readPreference);\n return mapReduce(command);\n }", "public interface PaymentOrderMapper extends Mapper<PaymentOrder>{\n\n}", "public interface TokenHistoryMapper {\n\n\n void create(TokenHistory tokenHistory);\n\n}", "@Mapper\npublic interface CategoryRepairDao extends BaseMapper<BackendMerchantCategoryEntity>{\n}", "public interface OneTableDMLMapper{\n int insertVaPlatAccInfo(Map<String, Object> map);\n int insertVaPlatInfo(Map<String,Object> map);\n int insertVaPlatVirtualAcctBal(Map<String, Object> params);\n int updateVaPlatVirtualAcctBalAdd(Map<String, Object> params);\n int updateVaPlatVirtualAcctBalSub(Map<String, Object> params);\n int insertVaPlatVirtualAcct(Map<String,Object> params);\n\n int updateVaMerchVirtualAcctBalAddForRefund(Map<String, Object> map);\n int insertVaMerchAccInfo(Map<String, Object> map);\n int insertVaMerchInfo(Map<String,Object> map);\n int insertVaMerchVirtualAcctBal(Map<String, Object> params);\n int updateVaMerchVirtualAcctBalAdd(Map<String, Object> params);\n int insertVaMerchRechargeSeq(Map<String, Object> params);\n int insertVaMerchWithdrawSeq(Map<String, Object> params);\n int updateVaMerchVirtualAcctBalSub(Map<String, Object> params);\n int insertVaMerchVirtualAcct(Map<String,Object> params);\n int dayEndTransferAmtForMerch(Map<String,Object> params);\n int deleteVaMerchAcctInfo(Map<String,Object> params);\n\n\n int updateVaCustVirtualAcctBalAddForRefund(Map<String, Object> map);\n int insertVaCustAccInfo(Map<String, Object> map);\n int insertVaCustInfo(Map<String,Object> map);\n int insertVaCustVirtualAcctBal(Map<String, Object> params);\n int updateVaCustVirtualAcctBalAdd(Map<String, Object> params);\n int updateVaCustVirtualAcctBalSub(Map<String, Object> params);\n int insertVaCustVirtualAcct(Map<String,Object> params);\n int insertVaCustRechargeSeq(Map<String,Object> params);\n int insertVaCustWithdrawSeq(Map<String,Object> params);\n int dayEndTransferAmtForCust(Map<String,Object> params);\n int deleteVaCustAcctInfo(Map<String,Object> params);\n\n int insertCmAcctTranSeq(Map<String,Object> params);\n int updateCmAcctTranSeq(Map<String,Object> params);\n\n int insertCmTranSeq(Map<String,Object> params);\n int updateCmTranSeq(Map<String,Object> params);\n\n int insertVaOrderInfo(Map<String,Object> params);\n int updateVaOrderInfo(Map<String,Object> params);\n int insertVaOrderSeq(Map<String,Object> params);\n\n int insertVaVirAcctSeq(Map<String,Object> params);\n int updateVaVirAcctSeq(Map<String,Object> params);\n int insertVaBindSeq(Map<String,Object> params);\n\n\n int insertVaTransferSeq(Map<String,Object> params);\n int insertTestUser(Map<String,Object> params);\n int updateProduceDay(Map<String,Object> params);\n\n int insertEodProcPrdLog(Map<String,Object> params);\n int insertEodProcLog(Map<String,Object> params);\n int updateEodProcPrdLog(Map<String,Object> params);\n int updateEodProcLog(Map<String,Object> params);\n\n\n\n}", "public interface CommonMapper {\r\n\r\n public Map selectSingleLine(String sqlStr);\r\n\r\n public List<Map> selectListMap(String sqlStr);\r\n\r\n public Integer selectCount(String sql);\r\n\r\n public Integer insertBatch(String sql);\r\n\r\n public Integer updateBatch(String sql);\r\n}", "@Mapper\npublic interface RoleMapper {\n @Insert(\"insert into T_Role(rname) values (#{rolename})\")\n int insertRole(@Param(\"rolename\") String rolename);\n\n @Update(\"update T_Role set rname=#{rolename} where rid=#{rid}\")\n int updateRole(@Param(\"rolename\") String rolename, String rid);\n\n @Delete(\"delete from T_Role where rid=#{rid}\")\n int deleteRole(@Param(\"rid\")String rid);\n\n @Select(\"select * from T_Role\")\n List<Role> listRole(int pageSize, int offset);\n}", "public interface TerminalMapper {\n\n public TerminalDic getValueForKey(TerminalDic terminalDic);\n\n public void saveValueForKey(TerminalDic terminalDic);\n}", "public interface IModelicaRecord extends ModelicaObject,Map<String,ModelicaObject> {\n /** ctor_index is -2 for ModelicaRecord and should be set to\n * -1 for any regular record that is returned to OMC.\n * The DefinitionsCreator will create record classes that fulfill\n * this criteria.\n * For a record in a uniontype, the value is 0..n where the index\n * corresponds to the order in which the the records were declared\n * in the uniontype.\n */\n int get_ctor_index();\n}", "public interface LocusWalker<MapType, ReduceType> {\n void initialize();\n public String walkerType();\n \n // Do we actually want to operate on the context?\n boolean filter(List<ReferenceOrderedDatum> rodData, char ref, LocusContext context);\n \n // Map over the org.broadinstitute.sting.atk.LocusContext\n MapType map(List<ReferenceOrderedDatum> rodData, char ref, LocusContext context);\n \n // Given result of map function\n ReduceType reduceInit();\n ReduceType reduce(MapType value, ReduceType sum);\n \n void onTraversalDone();\n }", "public interface RoleMapper extends BaseMapper<Role> {\n}", "@Mapper(componentModel = \"spring\")\npublic interface DataDictItemMapping {\n DataDictItemVo asDataDictItemVo(DataDictItem entity);\n\n DataDictItemOrdinaryVo asOrdinary(DataDictItem entity);\n\n @Mapping(target = \"priority\", ignore = true)\n @Mapping(target = \"lastUpdater\", ignore = true)\n @Mapping(target = \"lastUpdatedAt\", ignore = true)\n @Mapping(target = \"id\", ignore = true)\n @Mapping(target = \"dictId\", ignore = true)\n @Mapping(target = \"creator\", ignore = true)\n @Mapping(target = \"createdAt\", ignore = true)\n DataDictItem asDataDictItem(DataDictItemInsertRo ro);\n\n DataDictItemComplexVo asComplex(DataDictItem entity);\n\n DataDictItem asDataDictItem(DataDictItemUpdateRo ro);\n}", "private static TableMapper buildTableMapper(Class<?> dtoClass) {\r\n\r\n\t\tMap<String, FieldMapper> fieldMapperCache = null;\r\n\t\tField[] fields = dtoClass.getDeclaredFields();\r\n\r\n\t\tFieldMapper fieldMapper = null;\r\n\t\tTableMapper tableMapper = null;\r\n\t\ttableMapper = tableMapperCache.get(dtoClass);\r\n\t\tif (tableMapper != null) {\r\n\t\t\treturn tableMapper;\r\n\t\t}\r\n\t\ttableMapper = new TableMapper();\r\n\t\ttableMapper.setClazz(dtoClass);\r\n\t\tList<FieldMapper> uniqueKeyList = new LinkedList<FieldMapper>();\r\n\t\tList<FieldMapper> opVersionLockList = new LinkedList<FieldMapper>();\r\n\t\tAnnotation[] classAnnotations = dtoClass.getDeclaredAnnotations();\r\n\t\tfor (Annotation an : classAnnotations) {\r\n\t\t\tif (an instanceof TableMapperAnnotation) {\r\n\t\t\t\ttableMapper.setTableMapperAnnotation((TableMapperAnnotation) an);\r\n\t\t\t} else if (an instanceof Table) {\r\n\t\t\t\ttableMapper.setTable((Table) an);\r\n\t\t\t}\r\n\t\t}\r\n\t\tfieldMapperCache = new WeakHashMap<String, FieldMapper>(16);\r\n\t\tfor (Field field : fields) {\r\n\t\t\tfieldMapper = new FieldMapper();\r\n\t\t\tboolean b = fieldMapper.buildMapper(field);\r\n\t\t\tif (!b) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tswitch (fieldMapper.getOpLockType()) {\r\n\t\t\tcase Version:\r\n\t\t\t\tfieldMapper.setOpVersionLock(true);\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tif (fieldMapper.isUniqueKey()) {\r\n\t\t\t\tuniqueKeyList.add(fieldMapper);\r\n\t\t\t}\r\n\r\n\t\t\tif (fieldMapper.getIgnoreTag().length > 0) {\r\n\t\t\t\tfor (String t : fieldMapper.getIgnoreTag()) {\r\n\t\t\t\t\tfieldMapper.getIgnoreTagSet().add(t);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif (!\"\".equals(fieldMapper.getDbAssociationUniqueKey())) {\r\n\t\t\t\tfieldMapper.setForeignKey(true);\r\n\t\t\t}\r\n\r\n\t\t\tif (fieldMapper.isForeignKey()) {\r\n\t\t\t\tif (!tableMapperCache.containsKey(field.getType())) {\r\n\t\t\t\t\tbuildTableMapper(field.getType());\r\n\t\t\t\t}\r\n\t\t\t\tTableMapper tm = tableMapperCache.get(field.getType());\r\n\t\t\t\tString foreignFieldName = getFieldMapperByDbFieldName(tm.getFieldMapperCache(),\r\n\t\t\t\t\t\tfieldMapper.getDbAssociationUniqueKey()).getFieldName();\r\n\t\t\t\tfieldMapper.setForeignFieldName(foreignFieldName);\r\n\t\t\t}\r\n\r\n\t\t\tif (!\"\".equals(fieldMapper.getDbCrossedAssociationUniqueKey())) {\r\n\t\t\t\tfieldMapper.setCrossDbForeignKey(true);\r\n\t\t\t}\r\n\r\n\t\t\tif (fieldMapper.isCrossDbForeignKey()) {\r\n\t\t\t\tif (!tableMapperCache.containsKey(field.getType())) {\r\n\t\t\t\t\tbuildTableMapper(field.getType());\r\n\t\t\t\t}\r\n\t\t\t\tTableMapper tm = tableMapperCache.get(field.getType());\r\n\t\t\t\tString foreignFieldName = getFieldMapperByDbFieldName(tm.getFieldMapperCache(),\r\n\t\t\t\t\t\tfieldMapper.getDbCrossedAssociationUniqueKey()).getFieldName();\r\n\t\t\t\tfieldMapper.setForeignFieldName(foreignFieldName);\r\n\t\t\t}\r\n\r\n\t\t\tif (fieldMapper.isOpVersionLock()) {\r\n\t\t\t\topVersionLockList.add(fieldMapper);\r\n\t\t\t}\r\n\t\t\tfieldMapperCache.put(fieldMapper.getDbFieldName(), fieldMapper);\r\n\t\t}\r\n\t\ttableMapper.setFieldMapperCache(fieldMapperCache);\r\n\t\ttableMapper.setUniqueKeyNames(uniqueKeyList.toArray(new FieldMapper[uniqueKeyList.size()]));\r\n\t\ttableMapper.setOpVersionLocks(opVersionLockList.toArray(new FieldMapper[opVersionLockList.size()]));\r\n\t\ttableMapper.buildTableName();\r\n\t\ttableMapperCache.put(dtoClass, tableMapper);\r\n\t\treturn tableMapper;\r\n\t}", "public interface EmpIdleMapper {\n\n int deleteByIds(String[] idleIds);\n\n int deleteById(String idleId);\n\n List<Empidle> selectByEmp(String empId);\n\n EmployeeInfo selectByempId(String[] idleId);\n}", "@Mapper\npublic interface ScoreMapper {\n int insert(ScoreRecord record);\n ScoreRecord findById(int uid);\n int update(ScoreRecord scoreRecord);\n List<NameAndScore> findAll();\n List<NameAndScore> findAllBig(Integer minScore);\n}", "public interface StudentMapper {\n int add(Student student);\n\n int update(Student student);\n\n int deleteBysno(String sno);\n\n List<Map<String, Object>> queryStudentsListMap();\n\n Student queryStudentBySno(String sno);\n}", "public interface CommentMapper {\r\n int createComment(Comment comment);\r\n}", "@Override\r\n\tpublic ResultBean SaveOrUpdatetype(Map<String, String> map) {\n\t\tResultBean resultBean = new ResultBean();\r\n\t\ttry {\r\n\t\t\tCodeType codeType = new CodeType();\r\n\t\t\tcodeType.setCodetype(\"\"+MapUtils.getInteger(map, \"codetype\"));\r\n\t\t\tif(!(\"\").equals(MapUtils.getString(map, \"id\",\"\"))){\r\n\t\t\t\tcodeType.setId(MapUtils.getInteger(map, \"id\"));\r\n\t\t\t}\r\n\t\t\tcodeType.setCodedescription(MapUtils.getString(map, \"codedescription\"));\r\n\t\t\tif(codeMasterService.IsEcho(codeType)){\r\n\t\t\t\tcodeMasterService.updateType(codeType);\r\n\t\t\t\tresultBean.setSuccess(true);\r\n\t\t\t}else{\r\n\t\t\t\tresultBean.setSuccess(false);\r\n\t\t\t\tresultBean.setMsg(\"此代码类型编号重复\");\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\tresultBean.setSuccess(false);\r\n\t\t\tresultBean.setMsg(e.getMessage());\r\n\t\t}\r\n\t\treturn resultBean;\r\n\t}", "public interface CustMapper {\n public void createCust(CustDto custDto);\n\n public CustDto getCust(Long id);\n}", "@Test\n\tpublic void testMapReduce() {\n\n\t\t/*\n\t\t * For this test, the mapper's input will be \"1 cat cat dog\" \n\t\t */\n\t\tmapReduceDriver.withInput(new LongWritable(1), new Text(swedenHealth));\n\n\t\t/*\n\t\t * The expected output (from the reducer) is \"cat 2\", \"dog 1\". \n\t\t */\n\t\tmapReduceDriver.addOutput(new Text(\"(Sweden)\"), new Text(\"| in 2011$ values PPP, 1995 health cost: 1745.1| 2014 health cost: 5218.86| cost increase (%): 199.06%\\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\"));\n\n\t\t/*\n\t\t * Run the test.\n\t\t */\n\t\tmapReduceDriver.runTest();\n\t}", "@Override\r\n\tpublic Class getObjectType() {\n\t\treturn mapperInterface;\r\n\t}", "public static WritableComparable createValue(TypeDescription type) {\n switch (type.getCategory()) {\n case BOOLEAN: return new BooleanWritable();\n case BYTE: return new ByteWritable();\n case SHORT: return new ShortWritable();\n case INT: return new IntWritable();\n case LONG: return new LongWritable();\n case FLOAT: return new FloatWritable();\n case DOUBLE: return new DoubleWritable();\n case BINARY: return new BytesWritable();\n case CHAR:\n case VARCHAR:\n case STRING:\n return new Text();\n case DATE:\n return new DateWritable();\n case TIMESTAMP:\n case TIMESTAMP_INSTANT:\n return new OrcTimestamp();\n case DECIMAL:\n return new HiveDecimalWritable();\n case STRUCT: {\n OrcStruct result = new OrcStruct(type);\n int c = 0;\n for(TypeDescription child: type.getChildren()) {\n result.setFieldValue(c++, createValue(child));\n }\n return result;\n }\n case UNION: return new OrcUnion(type);\n case LIST: return new OrcList(type);\n case MAP: return new OrcMap(type);\n default:\n throw new IllegalArgumentException(\"Unknown type \" + type);\n }\n }", "public ElectCouncillor map(ElectCouncillorDTO selectedActionDTO);", "ROp() {super(null); _ops=new HashMap<>(); }", "public interface OperationMapper {\n\n\tOperation get(int id);\n\n\tvoid save(Operation operation);\n\n\tvoid update(Operation operation);\n\n\tvoid delete(int id);\n\n\tList<Operation> findAll();\n\n List<Operation> findByResource(int resourceId);\n\n Operation findOperationByName(String name);\n\n Operation getByUrl(String url);\n}", "Mapper<T, T2> relate(Customizable customizable);", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface TerminalMapper extends EntityMapper<TerminalDTO, Terminal> {\n\n\n\n default Terminal fromId(Long id) {\n if (id == null) {\n return null;\n }\n Terminal terminal = new Terminal();\n terminal.setId(id);\n return terminal;\n }\n}", "public interface CostReducer {\n /**\n * Get the percent cost reduction, from 0.0 to 1.0\n * @return The percent cost reduction.\n */\n float getCostReduction();\n\n /**\n * Get the percent item consume reduction, from 0.0 to 1.0\n * @return The percent item consume reduction.\n */\n float getConsumeReduction();\n\n /**\n * Get the amount to scale the end cost by.\n * @return The final scale to apply\n */\n float getCostScale();\n\n boolean isCostFree();\n\n boolean isConsumeFree();\n}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface EventdataMapper {\n\n @Mapping(source = \"application.id\", target = \"applicationId\")\n @Mapping(source = \"applicationevent.id\", target = \"applicationeventId\")\n @Mapping(source = \"applicationview.id\", target = \"applicationviewId\")\n @Mapping(source = \"application.name\", target = \"applicationName\")\n @Mapping(source = \"applicationevent.name\", target = \"applicationeventName\")\n @Mapping(source = \"applicationview.name\", target = \"applicationviewName\")\n EventdataDTO eventdataToEventdataDTO(Eventdata eventdata);\n\n List<EventdataDTO> eventdataToEventdataDTOs(List<Eventdata> eventdata);\n\n @Mapping(source = \"applicationId\", target = \"application\")\n @Mapping(source = \"applicationeventId\", target = \"applicationevent\")\n @Mapping(source = \"applicationviewId\", target = \"applicationview\")\n Eventdata eventdataDTOToEventdata(EventdataDTO eventdataDTO);\n\n List<Eventdata> eventdataDTOsToEventdata(List<EventdataDTO> eventdataDTOs);\n\n default Application applicationFromId(Long id) {\n if (id == null) {\n return null;\n }\n Application application = new Application();\n application.setId(id);\n return application;\n }\n\n default Applicationevent applicationeventFromId(Long id) {\n if (id == null) {\n return null;\n }\n Applicationevent applicationevent = new Applicationevent();\n applicationevent.setId(id);\n return applicationevent;\n }\n\n default Applicationview applicationviewFromId(Long id) {\n if (id == null) {\n return null;\n }\n Applicationview applicationview = new Applicationview();\n applicationview.setId(id);\n return applicationview;\n }\n}", "public interface UserMapper extends Mapper<User>{\n}", "public interface MapStore extends Closeable {\n\n /**\n * Creates a table with the given key.\n *\n * Note that this operation is idempotent\n * so a true response means that the table\n * exists after execution.\n *\n * @return true iff the table exists after execution\n */\n boolean createTable(\n String tableName,\n MapStoreTableKey tableKey\n );\n\n /**\n * Drops a table.\n *\n * @return true iff the drop was successful\n */\n boolean dropTable(String tableName);\n\n /**\n * Delete an item from the given table\n * with the give key.\n *\n * This should be idempotent if the item\n * does not exist.\n */\n void deleteItem(\n String tableName,\n MapStoreKey key\n );\n\n /**\n * Retrieves all items from the given table\n * with all keys.\n */\n List<Map<String, Object>> getAllItems(String tableName);\n\n /**\n * Retrieves an item from the given table\n * with the given key.\n *\n * Returns {@link Optional#empty()} if no\n * item exists with the given key.\n */\n Optional<Map<String, Object>> getItem(\n String tableName,\n MapStoreKey key\n );\n\n /**\n * Queries all items from the given table\n * which match the given {@link MapStoreKey}\n * range key operator.\n */\n List<Map<String, Object>> getItems(\n String tableName,\n MapStoreKey key,\n MapQueryOptions options\n );\n\n /**\n * Adds an item to the given table\n * under the given key.\n */\n Map<String, Object> putItem(\n String tableName,\n MapStoreKey key,\n Map<String, Object> payload\n );\n\n /**\n * Updates an item in the given table\n * under the given key.\n *\n * If no item exists at the given key,\n * this will fallback to {@link #putItem(String, MapStoreKey, Map)}\n * semantics.\n */\n Map<String, Object> updateItem(\n String tableName,\n MapStoreKey key,\n Map<String, Object> payload\n );\n}", "@Mapper\npublic interface TableMapper extends BaseMapper<Table> {\n void clear();\n}", "ProcessOperation<Map<String, Object>> map();", "public interface ColorMapper {\n\tpublic Color calculate(Object value);\n\t\n\tpublic JPanel createLegend();\n}", "@Repository\npublic interface RecordMapper {\n public int AddRecord(Record record);\n\n public List<Record> QueryRecordByBuyername(Map<String, Object> parameter);\n\n public List<Record>QueryAllRecord(Map<String, Object> parameter);\n\n public int QueryCount(Map<String, Object> parameter);\n\n public int QueryReCount(Map<String, Object> parameter);\n}", "@Override void apply(Env env) {\n if( env.isNum() ) { env.push(new ValNum(op(env.popDbl()))); return; }\n// if( env.isStr() ) { env.push(new ASTString(op(env.popStr()))); return; }\n Frame fr = env.popAry();\n final ASTUniOp uni = this; // Final 'this' so can use in closure\n Frame fr2 = new MRTask() {\n @Override public void map( Chunk[] chks, NewChunk[] nchks ) {\n for( int i=0; i<nchks.length; i++ ) {\n NewChunk n =nchks[i];\n Chunk c = chks[i];\n int rlen = c._len;\n if (c.vec().isEnum() || c.vec().isUUID() || c.vec().isString()) {\n for (int r = 0; r <rlen;r++) n.addNum(Double.NaN);\n } else {\n for( int r=0; r<rlen; r++ )\n n.addNum(uni.op(c.atd(r)));\n }\n }\n }\n }.doAll(fr.numCols(),fr).outputFrame(fr._names, null);\n env.pushAry(fr2);\n }", "public interface RWDeviceMapper {\n /**\n * 批量获取设备\n * 0\n *\n * @param longs\n * @return\n */\n public List<DeviceRoleDeviceRea> RWbatchCWsByDeviceId(List<String> longs);\n\n /**\n * 1\n *\n * @param longs\n * @return\n */\n public List<DeviceRoleDeviceRea> MHbatchCWsByDeviceId(List<String> longs);\n\n /**\n * 2\n *\n * @param longs\n * @return\n */\n public List<DeviceRoleDeviceRea> CWbatchCWsByDeviceId(List<String> longs);\n\n /**\n * 3\n *\n * @param longs\n * @return\n */\n public List<DeviceRoleDeviceRea> ECbatchCWsByDeviceId(List<String> longs);\n\n /**\n * 根据区域 查询 地表水设备\n *\n * @return\n */\n public List<XwEquipmentRwDO> getRWAllBySelect_v1(AreaToDeviceVO_v1 areaToDeviceVO_v1);\n /**\n * 根据区域 查询 地表水设备\n *\n * @return\n */\n public List<XwEquipmentRwDO> getRWAllBySelect_v1_admin(AreaToDeviceVO_v1 areaToDeviceVO_v1);\n\n /**\n * 根据区域 查询 井盖 设备\n *\n * @return\n */\n public List<XwEquipmentMhDO> getMHAllBySelect_v1(AreaToDeviceVO_v1 areaToDeviceVO_v1);\n /**\n * 根据区域 查询 井盖 设备\n *\n * @return\n */\n public List<XwEquipmentMhDO> getMHAllBySelect_v1_admin(AreaToDeviceVO_v1 areaToDeviceVO_v1);\n\n /**\n * 根据区域 查询 生活用水 设备\n *\n * @return\n */\n public List<XwEquipmentCwDO> getCWAllBySelect_v1(AreaToDeviceVO_v1 areaToDeviceVO_v1);\n /**\n * 根据区域 查询 生活用水 设备\n *\n * @return\n */\n public List<XwEquipmentCwDO> getCWAllBySelect_v1_admin(AreaToDeviceVO_v1 areaToDeviceVO_v1);\n\n /**\n * 根据区域 查询 电梯 设备\n *\n * @return\n */\n public List<XwEquipmentEcDO> getECAllBySelect_v1(AreaToDeviceVO_v1 areaToDeviceVO_v1);\n /**\n * 根据区域 查询 电梯 设备\n *\n * @return\n */\n public List<XwEquipmentEcDO> getECAllBySelect_v1_admin(AreaToDeviceVO_v1 areaToDeviceVO_v1);\n}", "public interface SpeedFactorDao extends SqlMapDao<SpeedFactor, HashMap> {\n}", "@Mapper\npublic interface CscpFuncDao {\n @Insert(\"insert into cscp_org_func values(#{orgID,jdbcType=VARCHAR},#{funcID,jdbcType=VARCHAR})\")\n void saveOrgFunc(@Param(\"orgID\") String orgID, @Param(\"funcID\") String funcID);\n @Select(\"select f.id,f.func_name,f.func_type,f.func_desc from cscp_org_func of,cscp_function f where of.org_id=#{orgID,jdbcType=VARCHAR} and of.func_id=f.id and f.func_type=1\")\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType= JdbcType.VARCHAR, id=true),\n @Result(column=\"func_type\", property=\"funcType\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"func_name\", property=\"funcName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"func_desc\", property=\"description\", jdbcType=JdbcType.VARCHAR)\n })\n List<CscpFunc> getFuncs(String orgID);\n @Select(\"select menu_id from cscp_func_menu m left join cscp_org_func of on m.func_id=of.func_id where of.org_id=#{orgID,jdbcType=VARCHAR}\")\n List<String> getFuncMenus(String orgID);\n}", "public interface ExamHistoryItemDAO extends Mapper<ExamHistoryItem> {\n\n}", "private Object deserializeMap(Object datum, Schema fileSchema, Schema mapSchema, MapTypeInfo columnType)\n throws AvroSerdeException {\n Map<String, Object> map = new HashMap<String, Object>();\n Map<CharSequence, Object> mapDatum = (Map)datum;\n Schema valueSchema = mapSchema.getValueType();\n TypeInfo valueTypeInfo = columnType.getMapValueTypeInfo();\n for (CharSequence key : mapDatum.keySet()) {\n Object value = mapDatum.get(key);\n map.put(key.toString(), worker(value, fileSchema == null ? null : fileSchema.getValueType(),\n valueSchema, valueTypeInfo));\n }\n\n return map;\n }", "@Mapper\npublic interface NationReferenceMapper {\n\n @Insert(\"insert into t_timezerg_nation_reference values (#{id},#{nid},#{rid})\")\n int add(NationReference nationReference);\n\n @Select(\"select * from t_timezerg_nation_reference where nid = #{nid} and rid = #{rid}\")\n NationReference selectByNidAndRid(NationReference nationReference);\n\n @Select(\"select * from t_timezerg_nation_reference where id = #{id}\")\n NationReference selectById(String id);\n\n @Delete(\"delete from t_timezerg_nation_reference where rid = #{rid}\")\n void deleteByRid(String rid);\n\n @Delete(\"delete from t_timezerg_nation_reference where nid = #{nid}\")\n void deleteByNid(String nid);\n\n @Delete(\"delete from t_timezerg_nation_reference where id = #{id}\")\n void deleteById(String id);\n\n @Select(\"SELECT nr.*,n.title FROM t_timezerg_nation_reference nr LEFT JOIN t_timezerg_nation n ON nr.nid = n.id WHERE nr.rid = #{rid}\")\n List<HashMap> selectByRid(String rid);\n\n @Select(\"SELECT nr.*,r.title FROM t_timezerg_nation_reference nr LEFT JOIN t_timezerg_reference r ON nr.rid = r.id WHERE nr.nid = #{nid}\")\n List<HashMap> selectByNid(String nid);\n\n}", "public DataRepository(Mapper<T, K> mapper){\n this.mapper = mapper;\n }", "public interface CustomerMapper {\n\n public List<Customer> queryByCondition(CustomerDto customerParameter);\n\n public List<Customer> queryByTemp(CustomerDto customerParameter);\n\n public Customer queryById(Long Id);\n\n public void save(CustomerDto customerParameter);\n\n public void update(CustomerDto customerParameter);\n\n public void delete(Long Id);\n\n public List<Long> queryIdsByName(CustomerDto customerParameter);\n}", "public interface UserInfoMapper extends Mapper<UserInfo> {\n\n}", "public interface Operator {\n\n Map<String, Operator> oprators = Factory.instance();\n\n /**\n * calculate first operator second such as 1 + 2\n * @param first\n * @param second\n * @return\n */\n @NotNull\n BigDecimal calculate(@NotNull BigDecimal first, @NotNull BigDecimal second);\n\n int priority();\n\n\n\n class Factory {\n public static Map<String, Operator> instance() {\n Map<String, Operator> instance = new HashMap();\n\n instance.put(\"+\", new AddOperator());\n instance.put(\"-\", new SubOperator());\n instance.put(\"*\", new MultiOperator());\n instance.put(\"/\", new DiviOperator());\n\n return instance;\n }\n }\n\n}", "@Mapper\npublic interface ScholarshipGradeMapper {\n /**\n * 保存年级申请人数\n */\n void saveGradeConfig(Scholarship2Grade scholarship2Grade);\n\n /**\n * 修改申请人数\n * @param\n */\n void updateScholarshipCollege(Scholarship2Grade scholarship2Grade);\n\n /**\n * 获取年级配置信息\n * @return\n */\n Scholarship2Grade getGradeConfigByCollegeIdAndGrade(Map map);\n\n}", "public abstract void createMap();", "public MappingType createMappingType() {\n\t\treturn mappingFactory.createMappingType();\n\t}", "@Repository\npublic interface CategoryMapper extends BaseMapper<Category> {\n}", "private static QueryMapper buildQueryMapper(Class<?> dtoClass, Class<?> pojoClass) {\r\n\t\tQueryMapper queryMapper = queryMapperCache.get(dtoClass);\r\n\t\tif (queryMapper != null) {\r\n\t\t\treturn queryMapper;\r\n\t\t}\r\n\t\tMap<String, ConditionMapper> conditionMapperCache = new WeakHashMap<>(16);\r\n\t\tMap<String, OrMapper> orMapperCache = new WeakHashMap<>(4);\r\n\t\tField[] fields = null;\r\n\r\n\t\tConditionMapperAnnotation conditionMapperAnnotation = null;\r\n\t\tConditionMapper conditionMapper = null;\r\n\t\tOr or = null;\r\n\t\tOrMapper orMapper = null;\r\n\t\tqueryMapper = new QueryMapper();\r\n\t\tfields = dtoClass.getDeclaredFields();\r\n\r\n\t\tAnnotation[] conditionAnnotations = null;\r\n\r\n\t\tfor (Field field : fields) {\r\n\t\t\tconditionAnnotations = field.getDeclaredAnnotations();\r\n\t\t\tif (conditionAnnotations.length == 0) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tfor (Annotation an : conditionAnnotations) {\r\n\t\t\t\tif (an instanceof ConditionMapperAnnotation) {\r\n\t\t\t\t\tconditionMapperAnnotation = (ConditionMapperAnnotation) an;\r\n\t\t\t\t\tconditionMapper = new ConditionMapper();\r\n\t\t\t\t\tbuildConditionMapper(conditionMapper, conditionMapperAnnotation, pojoClass, field);\r\n\r\n\t\t\t\t\tconditionMapperCache.put(field.getName(), conditionMapper);\r\n\t\t\t\t} else if (an instanceof Or) {\r\n\t\t\t\t\tor = (Or) an;\r\n\t\t\t\t\torMapper = new OrMapper();\r\n\t\t\t\t\torMapper.setFieldName(field.getName());\r\n\t\t\t\t\tConditionMapper[] conditionMappers = new ConditionMapper[or.value().length];\r\n\t\t\t\t\tint i = 0;\r\n\t\t\t\t\tfor (ConditionMapperAnnotation cma : or.value()) {\r\n\t\t\t\t\t\tconditionMappers[i] = new ConditionMapper();\r\n\t\t\t\t\t\tbuildConditionMapper(conditionMappers[i], cma, pojoClass, field);\r\n\t\t\t\t\t\ti++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\torMapper.setConditionMappers(conditionMappers);\r\n\t\t\t\t\torMapperCache.put(field.getName(), orMapper);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tqueryMapper.setConditionMapperCache(conditionMapperCache);\r\n\t\tqueryMapper.setOrMapperCache(orMapperCache);\r\n\t\tqueryMapperCache.put(dtoClass, queryMapper);\r\n\t\treturn queryMapper;\r\n\t}", "@Mapper\npublic interface AuthorityMapper {\n\n Authority create(Authority authority);\n\n Authority update(Authority authority);\n\n Authority delete(Authority authority);\n\n List<Authority> search(PageCondition condition);\n\n}", "Counter registerOperation(Class<? extends Operation> operationType);" ]
[ "0.56560296", "0.56388855", "0.55249095", "0.54160804", "0.5369538", "0.533273", "0.52002996", "0.5160414", "0.5138678", "0.5046648", "0.4998388", "0.49955028", "0.49700463", "0.4967759", "0.49247912", "0.49247274", "0.48899132", "0.4867596", "0.48610768", "0.4858983", "0.48517326", "0.48390612", "0.48357192", "0.48240358", "0.48215005", "0.47823188", "0.47779268", "0.4757545", "0.47559828", "0.4728945", "0.4713281", "0.4701427", "0.46806157", "0.46641558", "0.46544093", "0.46410543", "0.46346843", "0.46331507", "0.4592388", "0.4582848", "0.4573785", "0.45620537", "0.45547828", "0.45538947", "0.45494333", "0.45470923", "0.45461577", "0.4536181", "0.45342425", "0.45251134", "0.45224875", "0.451808", "0.45175546", "0.45114928", "0.44895256", "0.4457402", "0.44510913", "0.44410953", "0.44384518", "0.44362655", "0.44243595", "0.44219583", "0.44217223", "0.44202697", "0.44075692", "0.43978545", "0.43972424", "0.43969646", "0.4395389", "0.4389927", "0.43885097", "0.43859437", "0.438008", "0.43771845", "0.4374087", "0.43732584", "0.43729427", "0.43689775", "0.43657613", "0.43558082", "0.43479347", "0.4328158", "0.4325818", "0.43195206", "0.4314889", "0.4310659", "0.43098816", "0.42973572", "0.42971075", "0.42943123", "0.42918667", "0.42913476", "0.42909968", "0.42875257", "0.42860374", "0.4283443", "0.4283418", "0.42815924", "0.4280004", "0.4263194" ]
0.8223294
0
returns metadata about the given OSHDB (for example copyright information, currentness of the data, spatial extent, etc.)
public abstract String metadata(String property);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Nullable\n @Generated\n @Selector(\"metadata\")\n public native NSDictionary<?, ?> metadata();", "public MetaData getMetaData();", "io.dstore.engine.MetaInformation getMetaInformation(int index);", "io.dstore.engine.MetaInformation getMetaInformation(int index);", "io.dstore.engine.MetaInformation getMetaInformation(int index);", "io.dstore.engine.MetaInformation getMetaInformation(int index);", "io.dstore.engine.MetaInformation getMetaInformation(int index);", "public HashMap getMetaData() ;", "@GET\n @Path( \"/databaseMetadata\" )\n @Produces( { APPLICATION_XML, APPLICATION_JSON } )\n public IDatabaseConnection getDatabaseMetadata() {\n return stagingDatabase.getDatbaseMetadata();\n }", "Metadata getMetaData();", "public interface IDBPOI {\n\t/** Name of the database */\n static final String DB_NAME = \"discoveryRallye\";\n \n /** Name of the table */\n static final String DB_TABLE_POIS = \"pois\";\n \n /** version number of the database */\n static final int DB_VERSION \t\t= 1;\n \n /** name of the id column */\n static final String ATTR_ID = \"_id\";\n \n /** name of the name column */\n static final String ATTR_NAME = \"name\";\n \n /** name of the longitude column */\n static final String ATTR_LON = \"longitude\";\n \n /** name of the latitude column */\n static final String ATTR_LAT = \"latitude\";\n}", "StorableIndexInfo getIndexInfo();", "java.util.List<io.dstore.engine.MetaInformation> \n getMetaInformationList();", "java.util.List<io.dstore.engine.MetaInformation> \n getMetaInformationList();", "java.util.List<io.dstore.engine.MetaInformation> \n getMetaInformationList();", "java.util.List<io.dstore.engine.MetaInformation> \n getMetaInformationList();", "java.util.List<io.dstore.engine.MetaInformation> \n getMetaInformationList();", "private void getMetadata() {\n masterRoot = AbstractMetadata.getAbstractedMetadata(sourceProduct);\n masterMetadata = new MetadataDoris(masterRoot);\n masterOrbit = new OrbitsDoris();\n masterOrbit.setOrbit(masterRoot);\n \n // SLAVE METADATA\n // hash table or just map for slaves - now it supports only a single sourceSlave image\n slaveRoot = sourceProduct.getMetadataRoot().getElement(AbstractMetadata.SLAVE_METADATA_ROOT).getElementAt(0);\n slaveMetadata = new MetadataDoris(slaveRoot);\n slaveOrbit = new OrbitsDoris();\n slaveOrbit.setOrbit(slaveRoot);\n }", "Map<String, Object> getAllMetadata();", "public static String getDbInfo(VariableSpace space, MaxMindGeoIPLookupMeta meta) {\n if (Const.isEmpty(meta.getDbLocation())) {\n return (\"\"); //$NON-NLS-1$\n }\n\n String dbInfoStr = null;\n try {\n \n MaxMindHelper helper = new MaxMindHelper(space, meta);\n helper.setupMaxMindDatabase();\n \n DatabaseReader ls = helper.getMaxMindDatabase().getLookupService();\n\n Metadata dbInfo = ls.getMetadata();\n\n dbInfoStr = (dbInfo == null) ? null : dbInfo.toString();\n ls.close();\n } catch (Exception e) {\n dbInfoStr = \"Error opening DB file: '\" + meta.getDbLocation() + \"'\";\n new ErrorDialog(Display.getCurrent().getActiveShell(), \"Error\", dbInfoStr, e);\n }\n return (Const.isEmpty(dbInfoStr) ? \"No DB info header, the file still may be valid.\" : dbInfoStr);\n }", "public abstract String getSummaryForDatabase();", "public interface MetaData extends MetaSearch {\n\t/** place holder for mandatory meta data */\n\tpublic static String sPLACE_HOLDER = \"(...)\";\n\n\t/*------------------------------------------------------------------*/\n\t/**\n\t * get archive with which this MetaData instance is associated (null for\n\t * template meta data).\n\t * \n\t * @return open archive associated with these meta data.\n\t */\n\tpublic Archive getArchive();\n\n\t/*------------------------------------------------------------------*/\n\t/**\n\t * set template meta data from which descriptions for matching database objects\n\t * are copied\n\t * \n\t * @param mdTemplate template meta data.\n\t * @throws IOException if an I/O error occurred.\n\t */\n\tpublic void setTemplate(MetaData mdTemplate) throws IOException;\n\n\t/*\n\t * ==================================================================== global\n\t * properties\n\t * ====================================================================\n\t */\n\t/**\n\t * get current version of SIARD format of XML. If an file of an older SIARD\n\t * format is opened, the older version is returned until a change in the meta\n\t * data is saved, at which point the meta data are saved in the current format.\n\t * \n\t * @return version of SIARD format of XML.\n\t */\n\tpublic String getVersion();\n\n\t/*------------------------------------------------------------------*/\n\t/**\n\t * set name of the archived database (must not be null or empty!).\n\t * \n\t * @param sDbName name of the archived database.\n\t */\n\tpublic void setDbName(String sDbName);\n\n\t/**\n\t * get name of the archived database.\n\t * \n\t * @return name of the archived database.\n\t */\n\tpublic String getDbName();\n\n\t/*------------------------------------------------------------------*/\n\t/**\n\t * set short free form description of the database content.\n\t * \n\t * @param sDescription short free form description of the database content.\n\t */\n\tpublic void setDescription(String sDescription);\n\n\t/**\n\t * get short free form description of the database content.\n\t * \n\t * @return short free form description of the database content.\n\t */\n\tpublic String getDescription();\n\n\t/*------------------------------------------------------------------*/\n\t/**\n\t * set name of person responsible for archiving the database.\n\t * \n\t * @param sArchiver name of person responsible for archiving the database.\n\t */\n\tpublic void setArchiver(String sArchiver);\n\n\t/**\n\t * get name of person responsible for archiving the database.\n\t * \n\t * @return name of person responsible for archiving the database.\n\t */\n\tpublic String getArchiver();\n\n\t/*------------------------------------------------------------------*/\n\t/**\n\t * set contact data (telephone number or email address) of archiver.\n\t * \n\t * @param sArchiverContact contact data (telephone number or email address) of\n\t * archiver.\n\t */\n\tpublic void setArchiverContact(String sArchiverContact);\n\n\t/**\n\t * get contact data (telephone number or email address) of archiver.\n\t * \n\t * @return contact data (telephone number or email address) of archiver.\n\t */\n\tpublic String getArchiverContact();\n\n\t/*------------------------------------------------------------------*/\n\t/**\n\t * set name of data owner (section and institution responsible for data) of\n\t * database when it was archived.\n\t * \n\t * @param sDataOwner name of data owner.\n\t */\n\tpublic void setDataOwner(String sDataOwner);\n\n\t/**\n\t * get name of data owner (section and institution responsible for data) of\n\t * database when it was archived.\n\t * \n\t * @return name of data owner.\n\t */\n\tpublic String getDataOwner();\n\n\t/*------------------------------------------------------------------*/\n\t/**\n\t * set time span during which data where entered into the database.\n\t * \n\t * @param sDataOriginTimespan time span during which data where entered into the\n\t * database.\n\t */\n\tpublic void setDataOriginTimespan(String sDataOriginTimespan);\n\n\t/**\n\t * get time span during which data where entered into the database.\n\t * \n\t * @return time span during which data where entered into the database.\n\t */\n\tpublic String getDataOriginTimespan();\n\n\t/*------------------------------------------------------------------*/\n\t/**\n\t * set global folder for external LOB files. Can only be set if the field is not\n\t * null or the SIARD archive is open for modification of primary data and still\n\t * empty. It must not be set to null. It must start with \"..\", \"/\" or \"file:/\".\n\t * It must be terminated with \"/\" (because it denotes a folder). If the given\n\t * URI starts with \"file:/\", it refers to a remote absolute folder. If it starts\n\t * with \"/\" it refers to an absolute local folder. Otherwise it is a relative\n\t * URI. If the global lobFolder is set, it is to be resolved relative to it.\n\t * Otherwise it must start with \"..\" which refers to the folder containing the\n\t * SIARD file.\n\t * \n\t * @param uriLobFolder URI for global folder for external files.\n\t * @throws IOException if the value could not be set.\n\t */\n\tpublic void setLobFolder(URI uriLobFolder) throws IOException;\n\n\t/**\n\t * get global folder for external LOB files.\n\t * \n\t * @return root folder for external LOB files.\n\t */\n\tpublic URI getLobFolder();\n\n\t/**\n\t * absolute global folder for external LOB files or null, if no global LOB\n\t * folder is set.\n\t * \n\t * @return absolute global folder for external LOB files or null, if no global\n\t * LOB folder is set.\n\t */\n\tpublic URI getAbsoluteLobFolder();\n\n\t/*------------------------------------------------------------------*/\n\t/**\n\t * set name and version of program that generated the metadata file. Can only be\n\t * set if the SIARD archive is open for modification of primary data.\n\t * \n\t * @param sProducerApplication name and version of program that generated the\n\t * metadata file.\n\t * @throws IOException if the value could not be set.\n\t */\n\tpublic void setProducerApplication(String sProducerApplication) throws IOException;\n\n\t/**\n\t * get name and version of program that generated the metadata file.\n\t * \n\t * @return name and version of program that generated the metadata file.\n\t */\n\tpublic String getProducerApplication();\n\n\t/*------------------------------------------------------------------*/\n\t/**\n\t * get date of creation of archive (automatically generated by SIARD).\n\t * \n\t * @return date of creation of archive (automatically generated by SIARD).\n\t */\n\tpublic Calendar getArchivalDate();\n\n\t/*------------------------------------------------------------------*/\n\t/**\n\t * get message digest codes over all primary data in folder \"content\".\n\t * \n\t * @return message digest codes over all primary data in folder \"content\".\n\t */\n\tpublic List<MessageDigestType> getMessageDigest();\n\n\t/*------------------------------------------------------------------*/\n\t/**\n\t * set DNS name of client machine from which connection to the database was\n\t * established for archiving. Can only be set if the SIARD archive is open for\n\t * modification of primary data.\n\t * \n\t * @param sClientMachine DNS name of client machine from which connection to the\n\t * database was established for archiving.\n\t * @throws IOException if the value could not be set.\n\t */\n\tpublic void setClientMachine(String sClientMachine) throws IOException;\n\n\t/**\n\t * get DNS name of client machine from which connection to the database was\n\t * established for archiving.\n\t * \n\t * @return DNS name of client machine from which connection to the database was\n\t * established for archiving.\n\t */\n\tpublic String getClientMachine();\n\n\t/*------------------------------------------------------------------*/\n\t/**\n\t * set name of database product and version from which database originates. Can\n\t * only be set if the SIARD archive is open for modification of primary data.\n\t * \n\t * @param sDatabaseProduct name of database product and version from which\n\t * database originates.\n\t * @throws IOException if the value could not be set.\n\t */\n\tpublic void setDatabaseProduct(String sDatabaseProduct) throws IOException;\n\n\t/**\n\t * get name of database product and version from which database originates.\n\t * \n\t * @return name of database product and version from which database originates.\n\t */\n\tpublic String getDatabaseProduct();\n\n\t/*------------------------------------------------------------------*/\n\t/**\n\t * set connection string (JDBC URL) used for archiving. Can only be set if the\n\t * SIARD archive is open for modification of primary data.\n\t * \n\t * @param sConnection connection string (JDBC URL) used for archiving.\n\t * @throws IOException if the value could not be set.\n\t */\n\tpublic void setConnection(String sConnection) throws IOException;\n\n\t/**\n\t * get connection string (JDBC URL) used for archiving.\n\t * \n\t * @return connection string (JDBC URL) used for archiving.\n\t */\n\tpublic String getConnection();\n\n\t/*------------------------------------------------------------------*/\n\t/**\n\t * set database user used for archiving Can only be set if the SIARD archive is\n\t * open for modification of primary data.\n\t * \n\t * @param sDatabaseUser database user used for archiving.\n\t * @throws IOException if the value could not be set.\n\t */\n\tpublic void setDatabaseUser(String sDatabaseUser) throws IOException;\n\n\t/**\n\t * get database user used for archiving.\n\t * \n\t * @return database user used for archiving.\n\t */\n\tpublic String getDatabaseUser();\n\n\t/*\n\t * ==================================================================== list\n\t * properties\n\t * ====================================================================\n\t */\n\t/*------------------------------------------------------------------*/\n\t/**\n\t * get number of schema meta data entries.\n\t * \n\t * @return number of schema meta data entries.\n\t */\n\tpublic int getMetaSchemas();\n\n\t/**\n\t * get the schema meta data with the given index.\n\t * \n\t * @param iSchema index of schema meta data.\n\t * @return schema meta data.\n\t */\n\tpublic MetaSchema getMetaSchema(int iSchema);\n\n\t/**\n\t * get the schema meta data with the given name.\n\t * \n\t * @param sName name of schema meta data.\n\t * @return schema meta data.\n\t */\n\tpublic MetaSchema getMetaSchema(String sName);\n\n\t/*------------------------------------------------------------------*/\n\t/**\n\t * get number of user meta data entries.\n\t * \n\t * @return number of user meta data entries.\n\t */\n\tpublic int getMetaUsers();\n\n\t/**\n\t * get the user meta data with the given index.\n\t * \n\t * @param iUser index of user meta data.\n\t * @return user meta data.\n\t */\n\tpublic MetaUser getMetaUser(int iUser);\n\n\t/**\n\t * get the user meta data with the given user name.\n\t * \n\t * @param sName user name.\n\t * @return user meta data.\n\t */\n\tpublic MetaUser getMetaUser(String sName);\n\n\t/**\n\t * add new user to meta data. A new user can only be created if the SIARD\n\t * archive is open for modification of primary data.\n\t * \n\t * @param sName user name of the new user meta data.\n\t * @return user meta data.\n\t * @throws IOException if new user could be created.\n\t */\n\tpublic MetaUser createMetaUser(String sName) throws IOException;\n\n\t/*------------------------------------------------------------------*/\n\t/**\n\t * get number of role meta data entries.\n\t * \n\t * @return number of role meta data entries.\n\t */\n\tpublic int getMetaRoles();\n\n\t/**\n\t * get the role meta data with the given index.\n\t * \n\t * @param iRole index of role meta data.\n\t * @return role meta data.\n\t */\n\tpublic MetaRole getMetaRole(int iRole);\n\n\t/**\n\t * get the role meta data with the given role name.\n\t * \n\t * @param sName role name.\n\t * @return role meta data.\n\t */\n\tpublic MetaRole getMetaRole(String sName);\n\n\t/**\n\t * add new role meta data. A new role can only be created if the SIARD archive\n\t * is open for modification of primary data.\n\t * \n\t * @param sName role name of the new role meta data.\n\t * @param sAdmin name of administrator (user or role) of the new role.\n\t * @return role meta data.\n\t * @throws IOException if new user could be created.\n\t */\n\tpublic MetaRole createMetaRole(String sName, String sAdmin) throws IOException;\n\n\t/*------------------------------------------------------------------*/\n\t/**\n\t * get number of privilege meta data entries.\n\t * \n\t * @return number of privilege meta data entries.\n\t */\n\tpublic int getMetaPrivileges();\n\n\t/**\n\t * get the privilege meta data with the given index.\n\t * \n\t * @param iPrivilege index of privilege meta data.\n\t * @return privilege meta data.\n\t */\n\tpublic MetaPrivilege getMetaPrivilege(int iPrivilege);\n\n\t/**\n\t * get the privilege meta data with the given content.\n\t * \n\t * @param sType type of privilege including ROLE privilege or ALL PRIVILEGES.\n\t * @param sObject object of privilege (or null for ROLE privilege).\n\t * @param sGrantor name of grantor of privilege (user or role).\n\t * @param sGrantee name od grantee of privilege (user or role).\n\t * @return privilege meta data.\n\t */\n\tpublic MetaPrivilege getMetaPrivilege(String sType, String sObject, String sGrantor, String sGrantee);\n\n\t/**\n\t * add new privilege meta data. A new privilege can only be created if the SIARD\n\t * archive is open for modification of primary data.\n\t * \n\t * @param sType type of privilege including ROLE privilege or ALL PRIVILEGES.\n\t * @param sObject privilege object (may be null for ROLE privilege)\n\t * @param sGrantor name of grantor (user or role).\n\t * @param sGrantee name of grantee (user or role).\n\t * @return privilge meta data.\n\t * @throws IOException if new user could be created.\n\t */\n\tpublic MetaPrivilege createMetaPrivilege(String sType, String sObject, String sGrantor, String sGrantee)\n\t\t\tthrows IOException;\n\n\t/*\n\t * ==================================================================== methods\n\t * ====================================================================\n\t */\n\t/*------------------------------------------------------------------*/\n\t/**\n\t * checks whether this is the meta data instance of a valid archive, i.e.\n\t * whether it contains at least one table containing at least one record of\n\t * primary data.\n\t * \n\t * @return true, if instance is valid.\n\t */\n\tpublic boolean isValid();\n\n}", "com.cmpe275.grpcComm.MetaData getMetaData();", "@Override\n \t\t\t\tpublic String getMetadataGraphName() {\n \t\t\t\t\treturn \"http://opendata.cz/data/metadata\";\n \t\t\t\t}", "public PDMetadata getMetadata() {\n/* 528 */ PDMetadata retval = null;\n/* 529 */ COSBase mdStream = this.stream.getDictionaryObject(COSName.METADATA);\n/* 530 */ if (mdStream != null)\n/* */ {\n/* 532 */ if (mdStream instanceof COSStream) {\n/* */ \n/* 534 */ retval = new PDMetadata((COSStream)mdStream);\n/* */ }\n/* 536 */ else if (!(mdStream instanceof org.apache.pdfbox.cos.COSNull)) {\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 542 */ throw new IllegalStateException(\"Expected a COSStream but was a \" + mdStream\n/* */ \n/* 544 */ .getClass().getSimpleName());\n/* */ } \n/* */ }\n/* 547 */ return retval;\n/* */ }", "private String metadata() {\n\t\tStringBuilder s = new StringBuilder();\n\t\ts.append(\"#######################################\");\n\t\ts.append(\"\\n# Metadata of query set\");\n\t\ts.append(\"\\n#\");\n\t\ts.append(\"\\n# Queries\");\n\t\ts.append(\"\\n# \\tTotal: \" + this.num_queries);\n\t\ts.append(\"\\n# \\tPoint: \" + this.num_pt_queries + \" (\" + 100 * ((double) this.num_pt_queries/this.num_queries) +\"%)\");\n\t\ts.append(\"\\n# \\tRange: \" + this.num_range_queries + \" (\" + 100 * ((double) this.num_range_queries/this.num_queries) +\"%)\");\n\t\ts.append(\"\\n#\");\n\t\ts.append(\"\\n# Operators\");\n\t\ts.append(\"\\n# \\tTotal: \" + (this.num_and_ops + this.num_or_ops) + \" (\" + ((double) (this.num_and_ops + this.num_or_ops)/this.num_queries) +\" per query)\");\n\t\ts.append(\"\\n# \\tAND: \" + this.num_and_ops);\n\t\ts.append(\"\\n# \\tOR: \" + this.num_or_ops);\n\t\ts.append(\"\\n#\");\n\t\ts.append(\"\\n# Attributes\");\n\t\ts.append(\"\\n# \\tTotal queried: \" + this.num_attributes);\n\t\ts.append(\"\\n#\");\n\t\ts.append(\"\\n# Bins\");\n\t\ts.append(\"\\n# \\tTotal queried: \" + this.num_bins);\n\t\ts.append(\"\\n# \\tPer query: \" + ((double) this.num_bins/this.num_queries));\n\t\ts.append(\"\\n#######################################\\n\");\n\t\treturn s.toString();\n\t}", "public TreeMap<Object, Metadata> metadata_reader(String filepath) throws Exception {\r\n String lang = Globals.CURRENT_LOCALE.getLanguage();\r\n TreeMap<Object, Metadata> metadatas = new TreeMap<Object, Metadata>();\r\n\r\n //Hash dei MIDs dei nodi obbligatori\r\n TreeMap forceAddMID = new TreeMap();\r\n forceAddMID.put(\"98\", 1);\r\n forceAddMID.put(\"14\", 1);\r\n forceAddMID.put(\"15\", 1);\r\n forceAddMID.put(\"64\", 1);\r\n forceAddMID.put(\"65\", 1);\r\n forceAddMID.put(\"122\", 1);\r\n forceAddMID.put(\"105\", 1);\r\n forceAddMID.put(\"23\", 1); //format\r\n forceAddMID.put(\"24\", 1); //location\r\n forceAddMID.put(\"25\", 1); //filesize\r\n forceAddMID.put(\"17\", 1); //technical\r\n forceAddMID.put(\"22\", 1); //Classification\r\n forceAddMID.put(\"45\", 1); //Taxonpath\r\n forceAddMID.put(\"46\", 1); //Source\r\n forceAddMID.put(\"47\", 1); //Taxon\r\n forceAddMID.put(\"82\", 1); //Kontextuelle Angaben\r\n forceAddMID.put(\"89\", 1); //REFERENZ\r\n forceAddMID.put(\"94\", 1); //Referenz\r\n forceAddMID.put(\"95\", 1); //Referenznummer\r\n forceAddMID.put(\"137\", 1); //Referenznummer\r\n forceAddMID.put(\"123\", 1); //identifiers\r\n forceAddMID.put(\"124\", 1); //identifiers\r\n forceAddMID.put(\"125\", 1); //identifiers\r\n forceAddMID.put(\"5\", 1); //keywords\r\n\tforceAddMID.put(\"96\", 1); // GPS\r\n forceAddMID.put(\"6\", 1); // Copertura\r\n forceAddMID.put(\"84\", 1); // Dimensioni\r\n forceAddMID.put(\"83\", 1); // Descrizione\r\n forceAddMID.put(\"93\", 1); // Tipo Materiale\r\n forceAddMID.put(\"88\", 1); // Unita di misura\r\n forceAddMID.put(\"85\", 1); // Lunghezza\r\n forceAddMID.put(\"86\", 1); // Larghezza\r\n forceAddMID.put(\"87\", 1); // Altezza\r\n forceAddMID.put(\"92\", 1); // Diametro\r\n \r\n forceAddMID.put(\"11\", 1); // Contributo\r\n forceAddMID.put(\"12\", 1); // Ruolo\r\n //forceAddMID.put(\"126\", 1); // Altro Ruolo\r\n forceAddMID.put(\"13\", 1); // Dati Personali\r\n forceAddMID.put(\"14\", 1); // Nome\r\n forceAddMID.put(\"15\", 1); // Cognome \r\n forceAddMID.put(\"63\", 1); // Ente\r\n forceAddMID.put(\"64\", 1); // Titolo\r\n forceAddMID.put(\"65\", 1); // Titolo\r\n //forceAddMID.put(\"66\", 1); // Tipo\r\n forceAddMID.put(\"148\", 1); // Numero Matricola\r\n \r\n /*forceAddMID.put(\"115\", 1); // Provenienza\r\n forceAddMID.put(\"114\", 1); // Provenienza - info\r\n forceAddMID.put(\"121\", 1); // Provenienza - tipo materiale\r\n forceAddMID.put(\"119\", 1); // Provenienza - note\r\n forceAddMID.put(\"107\", 1); // Provenienza - ruolo\r\n forceAddMID.put(\"106\", 1); // Provenienza - dati personali\r\n forceAddMID.put(\"108\", 1); // Provenienza - Nome\r\n forceAddMID.put(\"109\", 1); // Provenienza - Cognome\r\n forceAddMID.put(\"113\", 1); // Provenienza - Ente\r\n forceAddMID.put(\"110\", 1); // Provenienza - Titolo uno\r\n forceAddMID.put(\"111\", 1); // Provenienza - Titolo due\r\n forceAddMID.put(\"112\", 1); // Provenienza - tipo\r\n forceAddMID.put(\"117\", 1); // Provenienza - contributo\r\n forceAddMID.put(\"118\", 1); // Provenienza - contributo\r\n forceAddMID.put(\"116\", 1); // Provenienza - contributo\r\n forceAddMID.put(\"120\", 1); // Provenienza - contributo*/\r\n \r\n try {\r\n //selectedClassificationList = new TreeMap<String, String>();\r\n \r\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\r\n DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\r\n Document doc;\r\n \r\n File urlf = new File(filepath);\r\n doc = dBuilder.parse(urlf);\r\n\r\n Node n = doc.getFirstChild();\r\n\r\n if (n.getNodeType() == Node.ELEMENT_NODE) {\r\n Element iENode = (Element) n;\r\n metadata_reader_metadatas(iENode, metadatas, false, forceAddMID, lang);\r\n }\r\n } catch (Exception ex) {\r\n throw ex;\r\n }\r\n\r\n return metadatas;\r\n }", "public abstract List<ColumnSpecification> metadata();", "com.google.cloud.compute.v1.Metadata getMetadata();", "public interface Ods {\n\t// *******************************************************************************\n\t// * General sizes\n\t// *******************************************************************************\n\t\n\tpublic static final int SIZE_BYTE = 1;\n\tpublic static final int SIZE_WORD = 2;\n\tpublic static final int SIZE_DWORD = 4;\n\t\n\t// *******************************************************************************\n\t// * CD structures\n\t// *******************************************************************************\n\t\n\tpublic static final int WORDRECORDLENGTH = 0xFF00;\n\tpublic static final int SIZE_LSIG = SIZE_WORD // Signature\n\t + SIZE_DWORD; // Length\n\tpublic static final int SIZE_WSIG = SIZE_WORD // Signature\n\t\t\t + SIZE_WORD; // Length\n\t\n\tpublic static final short SIG_CDFILEHEADER = 97;\n\tpublic static final int SIZE_CDFILEHEADER = SIZE_LSIG // Header\n\t + SIZE_WORD // FilleExtLen\n\t + SIZE_DWORD // FileDataSize\n\t + SIZE_DWORD // SegCount\n\t + SIZE_DWORD // Flags\n\t + SIZE_DWORD; // Reserved\n\tpublic static final short SIG_CDFILESEGMENT = 96;\n\tpublic static final int SIZE_CDFILESEGMENT = SIZE_LSIG // Header\n\t\t\t + SIZE_WORD // DataSize\n\t + SIZE_WORD // SegSize\n\t + SIZE_DWORD // Flags\n\t + SIZE_DWORD; // Reserved\n\tpublic static final short SIG_CDIMAGEHEADER = 125;\n\tpublic static final int SIZE_CDIMAGEHEADER = SIZE_LSIG // Signature\n + SIZE_WORD // ImageType\n + SIZE_WORD // Width\n + SIZE_WORD // Height\n + SIZE_DWORD // ImageDataSize\n + SIZE_DWORD // SegCount\n + SIZE_DWORD // Flags\n + SIZE_DWORD; // Reserved\n\tpublic static final short SIG_CDIMAGESEGMENT = 124;\n\tpublic static final int SIZE_CDIMAGESEGMENT = SIZE_LSIG // Header\n + SIZE_WORD // DataSize\n + SIZE_WORD; // SegSize\n\tpublic static final int SIZE_RECTSIZE = SIZE_WORD // width\n\t\t\t + SIZE_WORD; // height\n\tpublic static final int SIZE_CROPRECT = SIZE_WORD // left\n\t\t\t + SIZE_WORD // top\n\t\t\t + SIZE_WORD // right\n\t\t\t + SIZE_WORD; // bottom\n\tpublic static final short SIG_CDGRAPHIC = 153;\n\tpublic static final int SIZE_CDGRAPHIC = SIZE_LSIG // Signature\n\t\t\t + SIZE_RECTSIZE // DestSize\n\t\t\t + SIZE_RECTSIZE // CropSize\n\t\t\t + SIZE_CROPRECT // CropOffset\n\t\t\t + SIZE_WORD // fResize\n\t\t\t + SIZE_BYTE // Version\n\t\t\t + SIZE_BYTE // bFlags\n\t\t\t + SIZE_WORD; // wReserved\n\tpublic static final byte CDGRAPHIC_VERSION3 = 2;\n\n\tpublic static final short SIG_CDEVENT = (short)(249 | 0xFF00);\n\tpublic static final short SIZE_CDEVENT = SIZE_WSIG // Signature\n\t\t\t + SIZE_DWORD // Flags\n\t\t\t + SIZE_WORD // EventType\n\t\t\t + SIZE_WORD // ActionType\n\t\t\t + SIZE_DWORD // ActionLength\n\t\t\t + SIZE_WORD // SignatureLength\n\t\t\t + SIZE_BYTE * 14; // Reserved[14]\n\tpublic static final short SIG_CDBLOBPART = (short)(220 | WORDRECORDLENGTH);\n\tpublic static final int SIZE_CDBLOBPART = SIZE_WSIG // Signature\n\t\t\t + SIZE_WORD // OwnerSig\n\t\t\t + SIZE_WORD // Length\n\t\t\t + SIZE_WORD // BlobMax\n\t\t\t + SIZE_BYTE * 8; // Reserved[8]\n\t\n\tpublic static final short HTML_EVENT_LIBRARY = 22;\n\tpublic static final short ACTION_TYPE_JAVASCRIPT = 4;\n}", "private void initMetadata() throws IOException {\n \n // start by reading the file header\n in.seek(0);\n byte[] toRead = new byte[4];\n in.read(toRead);\n long order = batoi(toRead); // byte ordering\n little = toRead[2] != 0xff || toRead[3] != 0xff;\n metadata.put(\"Byte Order\", new Boolean(little));\n \n in.skipBytes(4);\n in.read(toRead);\n long version = DataTools.bytesToLong(toRead, little);\n metadata.put(\"Version\", new Long(version));\n \n byte[] er = new byte[2];\n in.read(er);\n short count = DataTools.bytesToShort(er, little);\n metadata.put(\"Count\", new Short(count));\n \n in.skipBytes(2);\n \n in.read(toRead);\n long offset = DataTools.bytesToLong(toRead, little);\n \n // skip to first tag\n in.seek(offset);\n \n // read in each tag and its data\n \n for (int i=0; i<count; i++) {\n in.read(er);\n short tag = DataTools.bytesToShort(er, little);\n in.skipBytes(2);\n \n in.read(toRead);\n offset = DataTools.bytesToLong(toRead, little);\n \n in.read(toRead);\n long fmt = DataTools.bytesToLong(toRead, little);\n metadata.put(\"Format\", new Long(fmt));\n \n in.read(toRead);\n long numBytes = DataTools.bytesToLong(toRead, little);\n metadata.put(\"NumBytes\", new Long(numBytes));\n \n if (tag == 67 || tag == 68) {\n byte[] b = new byte[1];\n in.read(b);\n boolean isOpenlab2;\n if (b[0] == '0') isOpenlab2 = false;\n else isOpenlab2 = true;\n metadata.put(\"isOpenlab2\", new Boolean(isOpenlab2));\n \n in.skipBytes(2);\n in.read(er);\n short layerId = DataTools.bytesToShort(er, little);\n metadata.put(\"LayerID\", new Short(layerId));\n \n in.read(er);\n short layerType = DataTools.bytesToShort(er, little);\n metadata.put(\"LayerType\", new Short(layerType));\n \n in.read(er);\n short bitDepth = DataTools.bytesToShort(er, little);\n metadata.put(\"BitDepth\", new Short(bitDepth));\n \n in.read(er);\n short opacity = DataTools.bytesToShort(er, little);\n metadata.put(\"Opacity\", new Short(opacity));\n \n // not sure how many bytes to skip here\n in.skipBytes(10);\n \n in.read(toRead);\n long type = DataTools.bytesToLong(toRead, little);\n metadata.put(\"ImageType\", new Long(type));\n \n // not sure how many bytes to skip\n in.skipBytes(10);\n \n in.read(toRead);\n long timestamp = DataTools.bytesToLong(toRead, little);\n metadata.put(\"Timestamp\", new Long(timestamp));\n \n in.skipBytes(2);\n \n if (isOpenlab2 == true) {\n byte[] layerName = new byte[127];\n in.read(layerName);\n metadata.put(\"LayerName\", new String(layerName));\n \n in.read(toRead);\n long timestampMS = DataTools.bytesToLong(toRead, little);\n metadata.put(\"Timestamp-MS\", new Long(timestampMS));\n \n in.skipBytes(1);\n byte[] notes = new byte[118];\n in.read(notes);\n metadata.put(\"Notes\", new String(notes));\n }\n else in.skipBytes(123);\n }\n else if (tag == 69) {\n in.read(toRead);\n long platform = DataTools.bytesToLong(toRead, little);\n metadata.put(\"Platform\", new Long(platform));\n \n in.read(er);\n short units = DataTools.bytesToShort(er, little);\n metadata.put(\"Units\", new Short(units));\n \n in.read(er);\n short imageId = DataTools.bytesToShort(er, little);\n metadata.put(\"ID\", new Short(imageId));\n in.skipBytes(1);\n \n byte[] toRead2 = new byte[8];\n double xOrigin = DataTools.readDouble(in, little);\n metadata.put(\"XOrigin\", new Double(xOrigin));\n double yOrigin = DataTools.readDouble(in, little);\n metadata.put(\"YOrigin\", new Double(yOrigin));\n double xScale = DataTools.readDouble(in, little);\n metadata.put(\"XScale\", new Double(xScale));\n double yScale = DataTools.readDouble(in, little);\n metadata.put(\"YScale\", new Double(yScale));\n in.skipBytes(1);\n \n byte[] other = new byte[31];\n in.read(other);\n metadata.put(\"Other\", new String(other));\n }\n \n // Initialize OME metadata\n \n if (ome != null) {\n OMETools.setBigEndian(ome, !little);\n if (metadata.get(\"BitDepth\") != null) {\n int bitDepth = ((Integer) metadata.get(\"BitDepth\")).intValue();\n String type;\n \n if (bitDepth <= 8) type = \"int8\";\n else if (bitDepth <= 16) type = \"int16\";\n else type = \"int32\";\n \n OMETools.setPixelType(ome, type);\n }\n if (metadata.get(\"Timestamp\") != null) {\n OMETools.setCreationDate(ome, (String) metadata.get(\"Timestamp\"));\n }\n \n if (metadata.get(\"XOrigin\") != null) {\n Double xOrigin = (Double) metadata.get(\"XOrigin\");\n OMETools.setStageX(ome, xOrigin.floatValue());\n }\n \n if (metadata.get(\"YOrigin\") != null) {\n Double yOrigin = (Double) metadata.get(\"YOrigin\");\n OMETools.setStageY(ome, yOrigin.floatValue());\n }\n \n if (metadata.get(\"XScale\") != null) {\n Double xScale = (Double) metadata.get(\"XScale\");\n OMETools.setPixelSizeX(ome, xScale.floatValue());\n }\n \n if (metadata.get(\"YScale\") != null) {\n Double yScale = (Double) metadata.get(\"YScale\");\n OMETools.setPixelSizeY(ome, yScale.floatValue());\n }\n }\n in.seek(offset);\n }\n }", "public interface FS2MetaSnapshot {\r\n\r\n Date createdOn();\r\n\r\n String createdBy();\r\n \r\n void dump(PrintStream printStream);\r\n\r\n // obtain a single header\r\n String[] getHeader(String key);\r\n\r\n // get the set of all header names\r\n Set<String> getHeaderNames();\r\n\r\n // set of key/value pairs providing metadata for this object\r\n FS2ObjectHeaders getHeaders();\r\n\r\n URI getURI();\r\n\r\n // when was this snapshot taken?\r\n Date snapshotTime();\r\n\r\n // TODO add these later... should be pluggable config...\r\n // boolean isEncrypted();\r\n // boolean isCompressed();\r\n\r\n // JSON representation of this snapshot\r\n String toJSON();\r\n\r\n}", "public void dumpImageMetaData(Uri uri) {\n // BEGIN_INCLUDE (dump_metadata)\n\n // The query, since it only applies to a single document, will only return one row.\n // no need to filter, sort, or select fields, since we want all fields for one\n // document.\n Cursor cursor = getActivity().getContentResolver()\n .query(uri, null, null, null, null, null);\n\n try {\n // moveToFirst() returns false if the cursor has 0 rows. Very handy for\n // \"if there's anything to look at, look at it\" conditionals.\n if (cursor != null && cursor.moveToFirst()) {\n\n // Note it's called \"Display Name\". This is provider-specific, and\n // might not necessarily be the file name.\n String displayName = cursor.getString(\n cursor.getColumnIndex(OpenableColumns.DISPLAY_NAME));\n //Toast.makeText(getActivity(),\"Display Name: \"+ displayName, Toast.LENGTH_SHORT).show();\n imageInfo += \"Name:\" + displayName;\n int sizeIndex = cursor.getColumnIndex(OpenableColumns.SIZE);\n // If the size is unknown, the value stored is null. But since an int can't be\n // null in java, the behavior is implementation-specific, which is just a fancy\n // term for \"unpredictable\". So as a rule, check if it's null before assigning\n // to an int. This will happen often: The storage API allows for remote\n // files, whose size might not be locally known.\n String size = null;\n if (!cursor.isNull(sizeIndex)) {\n // Technically the column stores an int, but cursor.getString will do the\n // conversion automatically.\n size = cursor.getString(sizeIndex);\n } else {\n size = \"Unknown\";\n }\n imageInfo += \"Size: \" + size;\n //Toast.makeText(getActivity(),\"Size: \"+size,Toast.LENGTH_SHORT).show();\n }\n } finally {\n if (cursor != null) {\n cursor.close();\n }\n }\n // END_INCLUDE (dump_metadata)\n }", "public edu.ustb.sei.mde.morel.resource.morel.IMorelMetaInformation getMetaInformation();", "@Override\n\tpublic DBMetadata getMetadata() {\n\t\treturn null;\n\t}", "public ObjectInfo getObjectInfo();", "public Map<String, Variant<?>> GetMetadata();", "int getMeta();", "@Override\n public String getMetadata(DOI doi) throws DoiException {\n Response<String> response = dataCiteClient.getMetadata(doi.getDoiName());\n throwExceptionOnBadResponse(response);\n return response.body();\n }", "public String toString() {\n\t\tif (_error)\n\t\t\treturn \"An error occured -- Could not fetch database metadata.\";\n\t\treturn _buffer.toString();\n\t}", "public static DbInfo computeDbInfo(Connection connection) {\n try {\n DatabaseMetaData metaData = connection.getMetaData();\n String url = metaData.getURL();\n if (url != null) {\n try {\n return JdbcConnectionUrlParser.parse(url, connection.getClientInfo());\n } catch (Throwable ex) {\n // getClientInfo is likely not allowed.\n return JdbcConnectionUrlParser.parse(url, null);\n }\n } else {\n return DbInfo.DEFAULT;\n }\n } catch (SQLException se) {\n return DbInfo.DEFAULT;\n }\n }", "public interface HiveMetaDao {\n String getLocationByDbAndTable(Map<String, String> map);\n List<String> getDbsByUser(String userName);\n List<Map<String, Object>> getTablesByDbNameAndUser(Map<String, String> map);\n Long getPartitionSize(Map<String, String> map);\n List<String> getPartitions(Map<String, String> map);\n List<Map<String, Object>> getColumns(Map<String, String> map);\n List<Map<String, Object>> getPartitionKeys(Map<String, String> map);\n String getTableComment(@Param(\"DbName\") String DbName, @Param(\"tableName\") String tableName);\n}", "public Map<String, Variant<?>> GetMetadata(int position);", "io.dstore.engine.MetaInformationOrBuilder getMetaInformationOrBuilder(\n int index);", "io.dstore.engine.MetaInformationOrBuilder getMetaInformationOrBuilder(\n int index);", "io.dstore.engine.MetaInformationOrBuilder getMetaInformationOrBuilder(\n int index);", "io.dstore.engine.MetaInformationOrBuilder getMetaInformationOrBuilder(\n int index);", "io.dstore.engine.MetaInformationOrBuilder getMetaInformationOrBuilder(\n int index);", "public ShowTableMetadataResponse showTableMetadata(ShowTableMetadataRequest request) throws GPUdbException {\n ShowTableMetadataResponse actualResponse_ = new ShowTableMetadataResponse();\n submitRequest(\"/show/table/metadata\", request, actualResponse_, false);\n return actualResponse_;\n }", "protected static LibMetaData createLibMetaData(LibMetaData lmd) {\n MetaData metaData = new MetaData();\r\n metaData.add(\"IsThing\", new Integer(1), null, MetaDataEntry.FIX_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"ImageSource\", \"Items\", null, MetaDataEntry.ANY_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"Image\", new Integer(0), null, MetaDataEntry.POSITIVE_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"Number\", new Integer(1), null, MetaDataEntry.POSITIVE_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n lmd.add(THING, metaData);\r\n \r\n metaData = new MetaData(lmd.get(\"thing\"));\r\n metaData.add(\"IsItem\", new Integer(1), null, MetaDataEntry.FIX_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"ImageSource\", \"Items\", null, MetaDataEntry.ANY_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"Image\", new Integer(1), null, MetaDataEntry.POSITIVE_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"Name\", \"Thing\", null, MetaDataEntry.ANY_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"NameType\", new Integer(Description.NAMETYPE_NORMAL), null, MetaDataEntry.FIX_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"Z\", new Integer(Thing.Z_ITEM), null, MetaDataEntry.FIX_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n lmd.add(ITEM, metaData);\r\n \r\n metaData = new MetaData(lmd.get(\"thing\"));\r\n metaData.add(\"IsBeing\",new Integer(1), null, MetaDataEntry.FIX_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"ImageSource\", \"Creatures\", null, MetaDataEntry.ANY_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"Image\", new Integer(340), null, MetaDataEntry.POSITIVE_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"IsMobile\",new Integer(1), new Integer[]{new Integer(0), new Integer(1)}, MetaDataEntry.CERTAIN_VALUES, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"IsBlocking\", new Integer(1), new Integer[]{new Integer(0), new Integer(1)}, MetaDataEntry.CERTAIN_VALUES, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"MoveCost\", new Integer(100), null, MetaDataEntry.POSITIVE_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"DeathDecoration\", \"blood pool\", null, MetaDataEntry.ANY_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"NameType\", new Integer(Description.NAMETYPE_NORMAL), null, MetaDataEntry.FIX_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"Z\", new Integer(Thing.Z_MOBILE), null, MetaDataEntry.FIX_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n lmd.add(BEING, metaData);\r\n \r\n lmd = createEffectMetaData(lmd);\r\n lmd = createPoisonMetaData(lmd);\r\n lmd = createFoodMetaData(lmd);\r\n lmd = createScrollMetaData(lmd);\r\n lmd = createMissileMetaData(lmd);\r\n lmd = createRangedWeaponMetaData(lmd);\r\n lmd = createPotionMetaData(lmd);\r\n lmd = createWandMetaData(lmd);\r\n lmd = createRingMetaData(lmd);\r\n lmd = createCoinMetaData(lmd);\r\n lmd = createArmourMetaData(lmd);\r\n lmd = createWeaponMetaData(lmd);\r\n lmd = createSecretMetaData(lmd);\r\n lmd = createSpellBookMetaData(lmd);\r\n lmd = createChestMetaData(lmd);\r\n lmd = createDecorationMetaData(lmd);\r\n lmd = createSceneryMetaData(lmd);\r\n lmd = createPortalMetaData(lmd);\r\n lmd = createTrapMetaData(lmd);\r\n createMonsterMetaData(lmd);\r\n createPersonMetaData(lmd);\r\n return lmd;\r\n }", "private static void initializeNewOmMetadataManager(\n File omDbDir)\n throws IOException {\n omConfiguration = new OzoneConfiguration();\n omConfiguration.set(OZONE_OM_DB_DIRS,\n omDbDir.getAbsolutePath());\n omConfiguration.set(OMConfigKeys\n .OZONE_OM_ENABLE_FILESYSTEM_PATHS, \"true\");\n omMetadataManager = new OmMetadataManagerImpl(\n omConfiguration, null);\n\n String volumeKey = omMetadataManager.getVolumeKey(VOL);\n OmVolumeArgs args =\n OmVolumeArgs.newBuilder()\n .setObjectID(VOL_OBJECT_ID)\n .setVolume(VOL)\n .setAdminName(TEST_USER)\n .setOwnerName(TEST_USER)\n .build();\n omMetadataManager.getVolumeTable().put(volumeKey, args);\n\n OmBucketInfo bucketInfo1 = OmBucketInfo.newBuilder()\n .setVolumeName(VOL)\n .setBucketName(BUCKET_ONE)\n .setObjectID(BUCKET_ONE_OBJECT_ID)\n .setBucketLayout(getFSOBucketLayout())\n .build();\n\n OmBucketInfo bucketInfo2 = OmBucketInfo.newBuilder()\n .setVolumeName(VOL)\n .setBucketName(BUCKET_TWO)\n .setObjectID(BUCKET_TWO_OBJECT_ID)\n .setBucketLayout(getLegacyBucketLayout())\n .build();\n\n OmBucketInfo bucketInfo3 = OmBucketInfo.newBuilder()\n .setVolumeName(VOL)\n .setBucketName(BUCKET_THREE)\n .setObjectID(BUCKET_THREE_OBJECT_ID)\n .setBucketLayout(getOBSBucketLayout())\n .build();\n\n String bucketKey = omMetadataManager.getBucketKey(\n bucketInfo1.getVolumeName(), bucketInfo1.getBucketName());\n String bucketKey2 = omMetadataManager.getBucketKey(\n bucketInfo2.getVolumeName(), bucketInfo2.getBucketName());\n String bucketKey3 = omMetadataManager.getBucketKey(\n bucketInfo3.getVolumeName(), bucketInfo3.getBucketName());\n\n omMetadataManager.getBucketTable().put(bucketKey, bucketInfo1);\n omMetadataManager.getBucketTable().put(bucketKey2, bucketInfo2);\n omMetadataManager.getBucketTable().put(bucketKey3, bucketInfo3);\n }", "@Override\n public DatabaseMetaData getMetaData() throws SQLException\n {\n logger.debug(\n \" public DatabaseMetaData getMetaData() throws SQLException\");\n\n return new SnowflakeDatabaseMetaData(this);\n }", "@NotNull\n\tpublic StringBuilder getMetadata() {\n\t\tStringBuilder metadata = new StringBuilder();\n\t\tif (title != null)\n\t\t\tmetadata.append(title).append(\" \");\n\t\tif (authors != null)\n\t\t\tfor (String author : authors)\n\t\t\t\tmetadata.append(author).append(\" \");\n\t\tif (miscMetadata != null)\n\t\t\tfor (String metadata0 : miscMetadata)\n\t\t\t\tmetadata.append(metadata0).append(\" \");\n\t\treturn metadata;\n\t}", "private static void initMetadataContext(SessionState state)\n\t{\n\t\t// define MetadataSets map\n\t\tList metadataGroups = (List) state.getAttribute(STATE_METADATA_GROUPS);\n\t\tif(metadataGroups == null)\n\t\t{\n\t\t\tmetadataGroups = new Vector();\n\t\t\tstate.setAttribute(STATE_METADATA_GROUPS, metadataGroups);\n\t\t}\n\t\t// define DublinCore\n\t\tif( !metadataGroups.contains(new MetadataGroup(rb.getString(\"opt_props\"))) )\n\t\t{\n\t\t\tMetadataGroup dc = new MetadataGroup( rb.getString(\"opt_props\") );\n\t\t\t// dc.add(ResourcesMetadata.PROPERTY_DC_TITLE);\n\t\t\t// dc.add(ResourcesMetadata.PROPERTY_DC_DESCRIPTION);\n\t\t\tdc.add(ResourcesMetadata.PROPERTY_DC_ALTERNATIVE);\n\t\t\tdc.add(ResourcesMetadata.PROPERTY_DC_CREATOR);\n\t\t\tdc.add(ResourcesMetadata.PROPERTY_DC_PUBLISHER);\n\t\t\tdc.add(ResourcesMetadata.PROPERTY_DC_SUBJECT);\n\t\t\tdc.add(ResourcesMetadata.PROPERTY_DC_CREATED);\n\t\t\tdc.add(ResourcesMetadata.PROPERTY_DC_ISSUED);\n\t\t\t// dc.add(ResourcesMetadata.PROPERTY_DC_MODIFIED);\n\t\t\t// dc.add(ResourcesMetadata.PROPERTY_DC_TABLEOFCONTENTS);\n\t\t\tdc.add(ResourcesMetadata.PROPERTY_DC_ABSTRACT);\n\t\t\tdc.add(ResourcesMetadata.PROPERTY_DC_CONTRIBUTOR);\n\t\t\t// dc.add(ResourcesMetadata.PROPERTY_DC_TYPE);\n\t\t\t// dc.add(ResourcesMetadata.PROPERTY_DC_FORMAT);\n\t\t\t// dc.add(ResourcesMetadata.PROPERTY_DC_IDENTIFIER);\n\t\t\t// dc.add(ResourcesMetadata.PROPERTY_DC_SOURCE);\n\t\t\t// dc.add(ResourcesMetadata.PROPERTY_DC_LANGUAGE);\n\t\t\t// dc.add(ResourcesMetadata.PROPERTY_DC_COVERAGE);\n\t\t\t// dc.add(ResourcesMetadata.PROPERTY_DC_RIGHTS);\n\t\t\tdc.add(ResourcesMetadata.PROPERTY_DC_AUDIENCE);\n\t\t\tdc.add(ResourcesMetadata.PROPERTY_DC_EDULEVEL);\n\t\t\tmetadataGroups.add(dc);\n\t\t\tstate.setAttribute(STATE_METADATA_GROUPS, metadataGroups);\n\t\t}\n\t\t/*\n\t\t// define DublinCore\n\t\tif(!metadataGroups.contains(new MetadataGroup(\"Test of Datatypes\")))\n\t\t{\n\t\t\tMetadataGroup dc = new MetadataGroup(\"Test of Datatypes\");\n\t\t\tdc.add(ResourcesMetadata.PROPERTY_DC_TITLE);\n\t\t\tdc.add(ResourcesMetadata.PROPERTY_DC_DESCRIPTION);\n\t\t\tdc.add(ResourcesMetadata.PROPERTY_DC_ANYURI);\n\t\t\tdc.add(ResourcesMetadata.PROPERTY_DC_DOUBLE);\n\t\t\tdc.add(ResourcesMetadata.PROPERTY_DC_DATETIME);\n\t\t\tdc.add(ResourcesMetadata.PROPERTY_DC_TIME);\n\t\t\tdc.add(ResourcesMetadata.PROPERTY_DC_DATE);\n\t\t\tdc.add(ResourcesMetadata.PROPERTY_DC_BOOLEAN);\n\t\t\tdc.add(ResourcesMetadata.PROPERTY_DC_INTEGER);\n\t\t\tmetadataGroups.add(dc);\n\t\t\tstate.setAttribute(STATE_METADATA_GROUPS, metadataGroups);\n\t\t}\n\t\t*/\n\t}", "public DatabaseMetaData(Statement s) {\n\t\t_stmt = s; // SQL-Connection\n\t\t_buffer = new StringBuffer(); // Output goes here\n\t\t_tables = new ArrayList<String>(); // List of tables\n\t\t\n\t\ttry {\n\t\t\t// Put table names in `_tables`\n\t\t\textractTableNames(_stmt.executeQuery(composeTableNamesQuery()));\n\n\t\t\t// fetch the string representation of each tables meta-data\n\t\t\tfor (String name : _tables)\n\t\t\t\t_buffer.append(new TableMeta(name)); \n\t\t} catch (SQLException e) { _error = true;}\n\t}", "public Iterable<SequenceInformation> extractMetadata(ExtractionContext extractionContext) throws SQLException;", "public PDMetadata getMetadata()\n {\n PDMetadata retval = null;\n COSBase mdStream = stream.getDictionaryObject(COSName.METADATA);\n if (mdStream instanceof COSStream)\n {\n retval = new PDMetadata((COSStream) mdStream);\n } \n else if (mdStream instanceof COSNull)\n {\n // null is authorized\n } \n else if (mdStream != null)\n {\n throw new IllegalStateException(\"Expected a COSStream but was a \"\n + mdStream.getClass().getSimpleName());\n }\n return retval;\n }", "DatabaseInformationFull(Database db) {\n super(db);\n }", "java.lang.String getMetadata(int index);", "java.lang.String getMetadata(int index);", "Information getInfo();", "public io.dstore.engine.MetaInformation getMetaInformation(int index) {\n return metaInformation_.get(index);\n }", "public io.dstore.engine.MetaInformation getMetaInformation(int index) {\n return metaInformation_.get(index);\n }", "public io.dstore.engine.MetaInformation getMetaInformation(int index) {\n return metaInformation_.get(index);\n }", "public io.dstore.engine.MetaInformation getMetaInformation(int index) {\n return metaInformation_.get(index);\n }", "public io.dstore.engine.MetaInformation getMetaInformation(int index) {\n return metaInformation_.get(index);\n }", "@Override\n public String getProvenanceMetadataGraphName() {\n return \"http://opendata.cz/data/provenanceMetadata\";\n }", "@Override\n public Hashtable<String, String> getLongInformation() {\n Hashtable<String, String> information = getInformation();\n \n information.put(\"size\", getSize().getTextual());\n information.put(\"chemical\", \"\" + isChemical());\n information.put(\"trapped people\", \"\" + getTrappedPeople());\n information.put(\"number of injured\", \"\" + getNumberOfInjured());\n information.put(\"description\", \"\" + getDescription());\n \n return information;\n }", "org.apache.calcite.avatica.proto.Responses.RpcMetadata getMetadata();", "org.apache.calcite.avatica.proto.Responses.RpcMetadata getMetadata();", "org.apache.calcite.avatica.proto.Responses.RpcMetadata getMetadata();", "org.apache.calcite.avatica.proto.Responses.RpcMetadata getMetadata();", "org.apache.calcite.avatica.proto.Responses.RpcMetadata getMetadata();", "org.apache.calcite.avatica.proto.Responses.RpcMetadata getMetadata();", "org.apache.calcite.avatica.proto.Responses.RpcMetadata getMetadata();", "org.apache.calcite.avatica.proto.Responses.RpcMetadata getMetadata();", "org.apache.calcite.avatica.proto.Responses.RpcMetadata getMetadata();", "org.apache.calcite.avatica.proto.Responses.RpcMetadata getMetadata();", "org.apache.calcite.avatica.proto.Responses.RpcMetadata getMetadata();", "org.apache.calcite.avatica.proto.Responses.RpcMetadata getMetadata();", "org.apache.calcite.avatica.proto.Responses.RpcMetadata getMetadata();", "org.apache.calcite.avatica.proto.Responses.RpcMetadata getMetadata();", "public SharedMemory infos();", "public abstract String apachedb(int size);", "Map<String, String> getCustomMetadata();", "public abstract Object getMetadata(String key);", "private static void populateOMDB() throws IOException {\n // Bucket1 FSO layout\n writeKeyToOm(reconOMMetadataManager,\n KEY_ONE,\n BUCKET_ONE,\n VOL,\n FILE_ONE,\n KEY_ONE_OBJECT_ID,\n BUCKET_ONE_OBJECT_ID,\n BUCKET_ONE_OBJECT_ID,\n VOL_OBJECT_ID,\n KEY_ONE_SIZE,\n getFSOBucketLayout());\n\n // Bucket2 Legacy layout\n writeKeyToOm(reconOMMetadataManager,\n KEY_TWO,\n BUCKET_TWO,\n VOL,\n FILE_TWO,\n KEY_TWO_OBJECT_ID,\n PARENT_OBJECT_ID_ZERO,\n BUCKET_TWO_OBJECT_ID,\n VOL_OBJECT_ID,\n KEY_TWO_SIZE,\n getLegacyBucketLayout());\n\n // Bucket3 OBS layout\n writeKeyToOm(reconOMMetadataManager,\n KEY_THREE,\n BUCKET_THREE,\n VOL,\n FILE_THREE,\n KEY_THREE_OBJECT_ID,\n PARENT_OBJECT_ID_ZERO,\n BUCKET_THREE_OBJECT_ID,\n VOL_OBJECT_ID,\n KEY_THREE_SIZE,\n getOBSBucketLayout());\n }", "SongMetadata getSongForUserAndFingerprint(String user, Fingerprint fp) throws SQLException;", "org.chromium.components.paint_preview.common.proto.PaintPreview.MetadataProto getMetadata();", "stockFilePT102.StockHeaderDocument.StockHeader getStockHeader();", "public void saveFeatureMetadata();", "private ApiInfo metadata() {\n\t\treturn new ApiInfoBuilder().title(\"# Online Home Decor Store #\")\n\t\t\t\t.description(\"Suppliers and Categories operations are present\").build();\t\n\t}", "public static void shoInfo() {\n\t\tSystem.out.println(description);\n\t \n\t}", "java.util.Map<java.lang.String, java.lang.String>\n getMetadataMap();", "java.util.Map<java.lang.String, java.lang.String>\n getMetadataMap();", "public SongMetada getMetadata() {\n\t\treturn metadata;\n\t}", "public MetaData getMetaData() {\r\n \treturn metaData;\r\n }", "public MetadataStore getMetadataStoreForDisplay() {\n \t\t\tfinal MetadataStore store = omeMeta.getRoot();\n \t\t\tif (service.isOMEXMLMetadata(store)) {\n \t\t\t\tservice.removeBinData((OMEXMLMetadata) store);\n \t\t\t\tfor (int i = 0; i < getImageCount(); i++) {\n \t\t\t\t\tif (((OMEXMLMetadata) store).getTiffDataCount(i) == 0) {\n \t\t\t\t\t\tservice.addMetadataOnly((OMEXMLMetadata) store, i);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t\treturn store;\n \t\t}", "public interface DatabaseOperations {\n\n public static final String DATABASE_NAME = \"ghost_database\";\n\n public static final String TABLE_SIGHTINGS = \"SIGHTINGS\";\n\n public static final String ROW_ID = \"_id\";\n\n public static final String TITLE = \"title\";\n public static final String DESCRIPTION = \"DESCRIPTION\";\n public static final String LATITUDE = \"lat\";\n public static final String LONGITUDE = \"lon\";\n public static final String RATING = \"rating\";\n}", "private void readMetaData(int location) throws IOException {\n //Log.i(LOG_Task, \"/readMetaData\");\n long read = 0;\n String md = \"\"; // The metadata\n // Skipping stream until get to the metadata\n InputStream is = conn.getInputStream();\n while (read != location) { read += is.skip(location - read);}\n // The first byte of metadata tell how large the metadata is\n int mdl = is.read() * 16;\n //Log.i(LOG_Task, \"Skipped \" + read + \" bytes, reading \" + mdl + \" next bytes for metadatas\");\n // Start reading metadata if there is some\n if (mdl > 0) {\n read = 0;\n // try to read metadata 3 times at most, because the stream might be corrupted\n for (int i = 0; i < 3; i++){\n byte[] mdb = new byte[mdl - (int) read];\n read = is.read(mdb);\n md += new String(mdb, 0, mdb.length);\n //Log.i(LOG_Task, \"read:\" + read + \"/\" + mdl + \"bytes\");\n if (read==mdl) {break;} // Got enough needed data\n }\n //Log.i(LOG_Task, \"raw metadata: \" + md);\n // Get the chunks of metadata\n String[] metdatas = new String(md.trim().getBytes(), \"utf-8\").split(\";\");\n // Extract metadata in form StreamTitle='DELTA GOODREM - BORN TO TRY';\n for (String data : metdatas) {\n //Log.i(LOG_Task, data);\n String[] item = data.split(\"-|=\");\n // Extract the data line contains StreamTitle (replace \"\" to avoid this: StreamT��itle)\n if (item[0].replaceAll(\"[^\\\\p{Alnum}\\\\s]\", \"\").compareTo(\"StreamTitle\") == 0) {\n currentTitle = item[1].replaceAll(\"[^\\\\p{Alnum}\\\\s]\", \"\");\n currentArtist = (item.length == 3) ? item[2].replaceAll(\"[^\\\\p{Alnum}\\\\s]\", \"\") : \"\";\n }\n }\n Log.i(LOG_Task, \"Title: \" + currentTitle + \" | Artist: \" + currentArtist);\n }\n is.close();\n }" ]
[ "0.58490574", "0.57695425", "0.5762886", "0.5762886", "0.5762886", "0.5762886", "0.5762886", "0.56761676", "0.56454635", "0.55995685", "0.5598432", "0.55981785", "0.55217266", "0.55217266", "0.55217266", "0.55217266", "0.55217266", "0.54828334", "0.5472656", "0.5436417", "0.5422972", "0.5366514", "0.5348675", "0.5346584", "0.53416467", "0.5332193", "0.5311988", "0.530416", "0.5303743", "0.5297211", "0.52409637", "0.5196329", "0.5189039", "0.51565254", "0.51421976", "0.51356035", "0.508532", "0.5063149", "0.5052607", "0.503183", "0.5020854", "0.5005566", "0.4995119", "0.4982612", "0.4982612", "0.4982612", "0.4982612", "0.4982612", "0.49755841", "0.49740794", "0.49597728", "0.4938862", "0.49364093", "0.49330202", "0.49277717", "0.49264684", "0.4920164", "0.4915509", "0.4913953", "0.4913953", "0.49122837", "0.49023178", "0.49023178", "0.49023178", "0.49023178", "0.49023178", "0.4890215", "0.48884416", "0.48852262", "0.48852262", "0.48852262", "0.48852262", "0.48852262", "0.48852262", "0.48852262", "0.48852262", "0.48852262", "0.48852262", "0.48852262", "0.48852262", "0.48852262", "0.48852262", "0.4884922", "0.4879263", "0.48759615", "0.48612478", "0.48576966", "0.48516315", "0.48473215", "0.48227322", "0.48182008", "0.48178384", "0.48140436", "0.48064858", "0.48064858", "0.48037833", "0.48032263", "0.47882637", "0.47874883", "0.47752228" ]
0.48288152
89
sets the "table/cache" name prefix to be used with this oshdb
public OSHDBDatabase prefix(String prefix) { this.prefix = prefix; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setPrefix(String prefix);", "@Override\n\tprotected String getCacheKeyPrefix() {\n\t\treturn super.getCacheKeyPrefix();\n\t}", "private void splitTablePrefix(String prefix, Table table) {\n\t\twhile(prefix.trim().length() > 0) {\n\t\t\t// resolve \"hostmode=[share|exclusive]\";\n\t\t\tPattern pattern = Pattern.compile(SQLParser.TABLE_PREFIX_HOSTMODE1);\n\t\t\tMatcher matcher = pattern.matcher(prefix);\n\t\t\tif(matcher.matches()) {\n\t\t\t\tString s = matcher.group(1);\n\t\t\t\tprefix = matcher.group(2);\n\t\t\t\tif (\"share\".equalsIgnoreCase(s)) {\n\t\t\t\t\ttable.setMode(Table.SHARE);\n\t\t\t\t} else if (\"exclusive\".equalsIgnoreCase(s)) {\n\t\t\t\t\ttable.setMode(Table.EXCLUSIVE);\n\t\t\t\t}\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tpattern = Pattern.compile(SQLParser.TABLE_PREFIX_HOSTMODE2);\n\t\t\tmatcher = pattern.matcher(prefix);\n\t\t\tif(matcher.matches()) {\n\t\t\t\tString s = matcher.group(1);\n\t\t\t\tprefix = \"\";\n\t\t\t\tif (\"share\".equalsIgnoreCase(s)) {\n\t\t\t\t\ttable.setMode(Table.SHARE);\n\t\t\t\t} else if (\"exclusive\".equalsIgnoreCase(s)) {\n\t\t\t\t\ttable.setMode(Table.EXCLUSIVE);\n\t\t\t\t}\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t// resolve \"cache=[yes|no]\"\n\t\t\tpattern = Pattern.compile(SQLParser.TABLE_PREFIX_HOSTCACHE1);\n\t\t\tmatcher = pattern.matcher(prefix);\n\t\t\tif(matcher.matches()) {\n\t\t\t\tString s = matcher.group(1);\n\t\t\t\tprefix = matcher.group(2);\n\t\t\t\tif(\"yes\".equalsIgnoreCase(s)) {\n\t\t\t\t\ttable.setCaching(true);\n\t\t\t\t} else if(\"no\".equalsIgnoreCase(s)) {\n\t\t\t\t\ttable.setCaching(false);\n\t\t\t\t}\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tpattern = Pattern.compile(SQLParser.TABLE_PREFIX_HOSTCACHE2);\n\t\t\tmatcher = pattern.matcher(prefix);\n\t\t\tif(matcher.matches()) {\n\t\t\t\tString s = matcher.group(1);\n\t\t\t\tprefix = \"\";\n\t\t\t\tif(\"yes\".equalsIgnoreCase(s)) {\n\t\t\t\t\ttable.setCaching(true);\n\t\t\t\t} else if(\"no\".equalsIgnoreCase(s)) {\n\t\t\t\t\ttable.setCaching(false);\n\t\t\t\t}\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t// resolve \"chunksize=[digit]M\"\n\t\t\tpattern = Pattern.compile(SQLParser.TABLE_PREFIX_CHUNKSIZE1);\n\t\t\tmatcher = pattern.matcher(prefix);\n\t\t\tif(matcher.matches()) {\n\t\t\t\tString s = matcher.group(1);\n\t\t\t\tprefix = matcher.group(2);\n\t\t\t\tint value = Integer.parseInt(s);\n\t\t\t\ttable.setChunkSize(value * 1024 * 1024);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tpattern = Pattern.compile(SQLParser.TABLE_PREFIX_CHUNKSIZE2);\n\t\t\tmatcher = pattern.matcher(prefix);\n\t\t\tif(matcher.matches()) {\n\t\t\t\tString s = matcher.group(1);\n\t\t\t\tprefix = \"\";\n\t\t\t\tint value = Integer.parseInt(s);\n\t\t\t\ttable.setChunkSize(value * 1024 * 1024);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t// resolve \"chunkcopy=[digit]\"\n\t\t\tpattern = Pattern.compile(SQLParser.TABLE_PREFIX_CHUNKCOPY1);\n\t\t\tmatcher = pattern.matcher(prefix);\n\t\t\tif(matcher.matches()) {\n\t\t\t\tString s = matcher.group(1);\n\t\t\t\tprefix = matcher.group(2);\n\t\t\t\ttable.setCopy(Integer.parseInt(s));\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tpattern = Pattern.compile(SQLParser.TABLE_PREFIX_CHUNKCOPY2);\n\t\t\tmatcher = pattern.matcher(prefix);\n\t\t\tif(matcher.matches()) {\n\t\t\t\tString s = matcher.group(1);\n\t\t\t\tprefix = \"\";\n\t\t\t\ttable.setCopy(Integer.parseInt(s));\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t// resolve \"primehost=[digit]\"\n\t\t\tpattern = Pattern.compile(SQLParser.TABLE_PREFIX_PRIMEHOST1);\n\t\t\tmatcher = pattern.matcher(prefix);\n\t\t\tif(matcher.matches()) {\n\t\t\t\tString s = matcher.group(1);\n\t\t\t\tprefix = matcher.group(2);\n\t\t\t\ttable.setPrimes(Integer.parseInt(s));\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tpattern = Pattern.compile(SQLParser.TABLE_PREFIX_PRIMEHOST2);\n\t\t\tmatcher = pattern.matcher(prefix);\n\t\t\tif(matcher.matches()) {\n\t\t\t\tString s = matcher.group(1);\n\t\t\t\tprefix = \"\";\n\t\t\t\ttable.setPrimes(Integer.parseInt(s));\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t// resolve \"clusters=[digit]\"\n\t\t\tpattern = Pattern.compile(SQLParser.TABLE_PREFIX_CLUSTERS_NUM1);\n\t\t\tmatcher = pattern.matcher(prefix);\n\t\t\tif(matcher.matches()) {\n\t\t\t\tString s = matcher.group(1);\n\t\t\t\tClusters clusters = table.getClusters();\n\t\t\t\tclusters.setNumber(Integer.parseInt(s));\n\t\t\t\tprefix = matcher.group(2);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tpattern = Pattern.compile(SQLParser.TABLE_PREFIX_CLUSTERS_NUM2);\n\t\t\tmatcher = pattern.matcher(prefix);\n\t\t\tif(matcher.matches()) {\n\t\t\t\tString s = matcher.group(1);\n\t\t\t\tClusters clusters = table.getClusters();\n\t\t\t\tclusters.setNumber(Integer.parseInt(s));\n\t\t\t\tprefix = \"\";\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t// resolve \"clusters='[ip]' \"\n\t\t\tpattern = Pattern.compile(SQLParser.TABLE_PREFIX_CLUSTERS_IP);\n\t\t\tmatcher = pattern.matcher(prefix);\n\t\t\tif(matcher.matches()) {\n\t\t\t\tString s = matcher.group(1);\n\t\t\t\tprefix = matcher.group(2);\n\t\t\t\tClusters clusters = table.getClusters();\n\t\t\t\t// split ip address\n\t\t\t\tString[] elems = s.split(\",\");\n\t\t\t\tfor(String ip : elems) {\n//\t\t\t\t\tpattern = Pattern.compile(SQLParser.IPv4);\n//\t\t\t\t\tmatcher = pattern.matcher(ip);\n//\t\t\t\t\tif (!matcher.matches()) {\n//\t\t\t\t\t\tthrow new SQLSyntaxException(\"syntax error:%s\", ip);\n//\t\t\t\t\t}\n//\t\t\t\t\tfor (int i = 1; i < 5; i++) {\n//\t\t\t\t\t\ts = matcher.group(i);\n//\t\t\t\t\t\tif (Integer.parseInt(s) > 255) {\n//\t\t\t\t\t\t\tthrow new SQLSyntaxException(\"ip address error:%s\", ip);\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (!isIPv4(ip)) {\n\t\t\t\t\t\tthrow new SQLSyntaxException(\"invalid ip address:%s\", ip);\n\t\t\t\t\t}\n\t\t\t\t\tclusters.add(ip);\n\t\t\t\t}\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tthrow new SQLSyntaxException(\"syntax error:%s\", prefix);\n\t\t}\n\t}", "public void setNameSpacePrefix(String nsPrefix) {\n this.nsPrefix = nsPrefix;\n }", "@Transient\n public void setCacheKey(String key) {\n String keyVals[];\n if(key.contains(\".\")) {\n keyVals = key.split(\".\");\n } else {\n keyVals = new String[] {key};\n }\n this.setTableName(keyVals[0]);\n }", "public void setPropertyPrefix(String prefix);", "public EasyFKCache(CacheManager cache,\n\t\t\t\t\t String prefix){\n\t\t \n\t\tthis( cache );\n\t\t\n\t\t// set the prefix\n\t\tthis.keyPrefix = prefix;\n\t}", "public void testSetNamespacePrefix() throws RepositoryException{\n String prefix = \"prefix\";\n String uri =\"uri\";\n session.setNamespacePrefix(prefix, uri);\n \n sessionControl.replay();\n sfControl.replay();\n \n jt.setNamespacePrefix(prefix, uri);\n }", "void declarePrefix(String prefix, String namespace);", "public void prefix( String base ) {\r\n\t\tthis.prefix = base;\r\n\t\ts.prefix( base );\r\n\t}", "public void setPrefix(String inPrefix)\n\t{\n\t\t//local constants\n\n\t\t//local variables\n\n\t\t/*******************************************************************************/\n\n\t\t//Set the prefix to the inPrefix.\n\t\tprefix = inPrefix;\n\n\t}", "@Updatable\n public String getPrefix() {\n return prefix;\n }", "public void updateTableName() {\n\t\tif (!isDeserializing && getHibernateModel() != null) {\n\t\t\tsetTableName(getHibernateModel().getHibernateImplementation().getDbObjectName(getName()));\n\t\t}\n\t}", "public void setPrefix(java.lang.String prefix) {\r\n this.prefix = prefix;\r\n }", "public void setPrefix(String prefix) {\n\t\tthis.prefix = prefix;\n\t}", "public void setPrefix(String prefix) {\n\t\tthis.prefix = prefix;\n\t}", "@Override\n\tpublic String getPrefix() {\n\t\treturn getClass().getSimpleName()+\":\"+prefix;\n\t}", "public void setTableName(String value) {\n setAttributeInternal(TABLENAME, value);\n }", "@Transient\n public String getCacheKey() {\n return this.getTableName();\n }", "public void setTableName(String newVal) {\n if ((newVal != null && this.tableName != null && (newVal.compareTo(this.tableName) == 0)) || \n (newVal == null && this.tableName == null && tableName_is_initialized)) {\n return; \n } \n this.tableName = newVal; \n\n tableName_is_modified = true; \n tableName_is_initialized = true; \n }", "public void setKeyPrefix(String keyPrefix) {\n\t\tthis.keyPrefix = keyPrefix;\n\t}", "public void setPrefix(java.lang.String prefix) {\n this.prefix = prefix;\n }", "public TableName name();", "public void setTableName(String tmp) {\n this.tableName = tmp;\n }", "@Override\n\tpublic String getTableName() {\n\t\treturn \"DMDB.GY_DM_ZJLX\";\n\t}", "public void setTableName(String name) {\n this.tableName = name;\n }", "public DatadogBuilder prefix(@Nullable String prefix) {\n this.prefix = prefix;\n return this;\n }", "private static String makeTableBaseName(int number) {\n return \"bi_\" + Integer.toString(number);\n }", "private static java.lang.String generatePrefix(java.lang.String namespace) {\r\n if(namespace.equals(\"http://www.huawei.com.cn/schema/common/v2_1\")){\r\n return \"ns1\";\r\n }\r\n return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();\r\n }", "default String getAliasPrefix() {\n\t\treturn getDataSet() + \"_\";\n\t}", "public HardZoneSearchKey()\n\t{\n\t\tsuper(new HardZone()) ;\n\t\t_Prefix = getTableName() + \".\";\n\t}", "public void setDbTable(String v) {this.dbTable = v;}", "public void setPrefix (java.lang.String prefix) {\n\t\tthis.prefix = prefix;\n\t}", "private String getQualifiedSrcDsTableName() {\n return sourceDB + \".\" + DATASET_TABLE_NAME;\n }", "public ImplementPrefix() {\n root = new TrieNode('$');\n }", "public Builder setVersionNamePrefix(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n versionNamePrefix_ = value;\n onChanged();\n return this;\n }", "public PrefixMappingCache(JDBCConnectionCredentials connectionCredentials) {\n super(CACHE_LIFETIME);\n this.connectionCredentials = connectionCredentials;\n }", "private String getEntitiesTableName()\n {\n\tString prefix = PropertyLookup.getTableNamePrefix();\n\tString separator = PropertyLookup.getTableNameSeparator();\n\tString suffix = PropertyLookup.getEntitiesTableNameSuffix();\n\n\treturn prefix + separator + catalogId + separator + suffix;\n }", "private void appendPrimaryTableName() {\n super.appendTableName(Constants.FROM, joinQueryInputs.primaryTableName);\n }", "public void setGroupTable(String name) throws BuildException {\n dbTable.setGroupTable(name);\n }", "@DSComment(\"Package priviledge\")\n @DSBan(DSCat.DEFAULT_MODIFIER)\n @DSSink({DSSinkKind.SENSITIVE_UNCATEGORIZED})\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:00:49.411 -0500\", hash_original_method = \"4549801F41C68E0A6A490696C062C72D\", hash_generated_method = \"8B62B5695F36760CAD8EDCDC235C2C64\")\n \nvoid declarePrefix(String prefix, String uri) {\n // Lazy processing...\n if (!declsOK) {\n throw new IllegalStateException (\"can't declare any more prefixes in this context\");\n }\n if (!declSeen) {\n copyTables();\n }\n if (declarations == null) {\n declarations = new ArrayList<String>();\n }\n\n prefix = prefix.intern();\n uri = uri.intern();\n if (\"\".equals(prefix)) {\n if (\"\".equals(uri)) {\n defaultNS = null;\n } else {\n defaultNS = uri;\n }\n } else {\n prefixTable.put(prefix, uri);\n uriTable.put(uri, prefix); // may wipe out another prefix\n }\n declarations.add(prefix);\n }", "public String prefix() {\n return this.prefix;\n }", "public void setStatusTableName(String name)\n\t{\n\t\tm_statusTableName = name;\n\t}", "public void setShMetadataPrefix(String val) {\n\n\t\tshMetadataPrefix = val;\n\n\t}", "@Override\n\tprotected String getTableName() {\n\t\treturn super.getTableName();\n\t}", "boolean setPrefix(String prefix);", "public void setPrefix(boolean prefix) {\n this.prefix = prefix;\n }", "private String getPrefixDuringSave(String namespace) {\r\n EPackage ePackage = extendedMetaData.getPackage(namespace);\r\n if (ePackage == null) {\r\n ePackage = extendedMetaData.demandPackage(namespace);\r\n // This will internally create a nice prefix\r\n }\r\n String prefix = ePackage.getNsPrefix();\r\n // I'm not sure if the following code is needed, but I keep it to avoid inconsistencies\r\n if (!packages.containsKey(ePackage)) {\r\n packages.put(ePackage, prefix);\r\n }\r\n prefixesToURIs.put(prefix, namespace);\r\n return prefix;\r\n }", "public void setMetadataPrefix(String val) {\n\n\t\tmetadataPrefix = val;\n\n\t}", "public String getTableDbName() {\r\n return \"t_package\";\r\n }", "public static void setGeneratedKeyPrefix(\n\t\tString\tprefix)\n\t{\n\t\tgeneratedKeyPrefix = prefix;\n\t}", "protected String getTableName()\n {\n return immutableGetTableName();\n }", "public void setTablename(String tablename) {\n this.tablename = tablename == null ? null : tablename.trim();\n }", "public String getPrefix()\n\t{\n\t\t//local constants\n\n\t\t//local variables\n\n\t\t/*******************************************************************************/\n\n\t\t//Return the prefix of the name.\n\t\treturn prefix;\n\n\t}", "public String getPrefix() {\n \t\t\treturn prefix;\n \t\t}", "public java.lang.String getNameSpacePrefix()\n {\n return nsPrefix;\n }", "public java.lang.String getNameSpacePrefix()\n {\n return nsPrefix;\n }", "public java.lang.String getNameSpacePrefix()\n {\n return nsPrefix;\n }", "public String getPrefixKey() {\n return \"qa.journal.item.\" + key;\n }", "public String getPrefix() {\n return prefix;\n }", "private void setNamespacePrefix(int index, String prefix) {\n if (index < m_prefixes.length) {\n m_prefixes[index] = prefix;\n } else if (m_extensionUris != null) {\n index -= m_prefixes.length;\n for (int i = 0; i < m_extensionUris.length; i++) {\n int length = m_extensionUris[i].length;\n if (index < length) {\n m_extensionPrefixes[i][index] = prefix;\n break;\n } else {\n index -= length;\n }\n }\n }\n }", "public Builder setNameKeySpace(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n nameKeySpace_ = value;\n onChanged();\n return this;\n }", "public String getPrefixString() {\n/* 105 */ return this.prefix;\n/* */ }", "private static java.lang.String generatePrefix(java.lang.String namespace) {\n if(namespace.equals(\"http://dto.thirdsdk.api.pms.cms.hikvision.com/xsd\")){\n return \"ns1\";\n }\n return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();\n }", "private String getPrefixesString() {\n\t\t//TODO: Include dynamic way of including this\n\t\treturn \"@prefix core: <http://vivoweb.org/ontology/core#> .\";\n\t}", "public final ListS3 setPrefix(final String prefix) {\n properties.put(PREFIX_PROPERTY, prefix);\n return this;\n }", "public void setTableName(String tableName) {\r\n\t\tcheckIfConfigurationModificationIsAllowed();\r\n\t\tthis.tableMetaDataContext.setTableName(tableName);\r\n\t}", "public String getPrefix()\n\t{\n\t\treturn prefix;\n\t}", "public abstract String getPrefix();", "public void setEventPrefix(String value) {\n JsoHelper.setAttribute(getJsObj(), \"eventPrefix\", value);\n }", "public void setNameSpace(String namespace) {\n this.namespace = namespace;\n }", "protected abstract void defineNamespace(int index, String prefix)\n throws IOException;", "public void setPathTableName(String name)\n\t{\n\t\tm_pathsTableName = name;\n\t}", "public String getPrefix() {\n\t\treturn prefix;\n\t}", "public void prefix(String prf) {\n\tprefixes.append(prf);\n }", "String tableName2Name(String name);", "TableCache(String paramterName, String tableName) {\n\n cache = new HashMap<>(1);\n cache.put(paramterName, tableName);\n\n }", "@Override\r\n\t\tpublic void setPrefix(String prefix) throws DOMException\r\n\t\t\t{\n\t\t\t\t\r\n\t\t\t}", "public AbstractSQLTableModel()\n\t{\n\t\ttry\n\t\t{\n\t\t\tthis.prefix = TableHelper.getPrefixForTable(this.getDBTableName());\n\t\t} catch( SQLException e ) {\n\t\t\tApplicationLogger.logError(\"cannot aquire prefix for \" + this.getDBTableName() );\n\t\t\tApplicationLogger.logError(e);\n\t\t}\n\t\tsetupDBColumns();\n\t}", "public void setTableName(final String tableName)\n {\n immutableSetTableName(tableName);\n }", "public String getPrefix();", "public String getPrefix();", "String getTableName();", "SqlTables(String tableName){\n\t\t\t this.tableName = tableName; \n\t\t}", "private void populatePrefixMappings(OntModel model) {\n\t\tMap<String, String> pm = model.getNsPrefixMap();\n\t\tneededPrefixesForQueries = new String[pm.keySet().size()];\n\t\tint i=0;\n\t\tfor(String key:pm.keySet())\n\t\t{\n\t\t\tneededPrefixesForQueries[i] = key + \": <\" + pm.get(key) + \">\";\n\t\t\ti++;\n\t\t}\n\t}", "static String getTableName(Configuration conf) {\n String layout = conf.get(MRUtils.TABLE_LAYOUT_PROP,\n RdfCloudTripleStoreConstants.TABLE_LAYOUT.SPO.toString());\n String prefix = conf.get(MRUtils.TABLE_PREFIX_PROPERTY,\n RdfCloudTripleStoreConstants.TBL_PRFX_DEF);\n return RdfCloudTripleStoreUtils.layoutPrefixToTable(\n RdfCloudTripleStoreConstants.TABLE_LAYOUT.valueOf(layout), prefix);\n }", "public String getPrefix()\n {\n return this.prefix;\n }", "public void setName(String name)\n/* */ {\n/* 368 */ this.name = name;\n/* 369 */ this.fullName = name;\n/* 370 */ this.namespace = null;\n/* */ }", "private String getPrefixForObject(Context context, DSpaceObject dso)\n {\n String prefix = getConfigProperty(context,\n CFG_PREFIX, dso);\n return prefix;\n }", "private void genFillNamespacePrefixes(ArrayList nss, MethodBuilder mb) {\n if (nss != null) {\n for (int i = 0; i < nss.size(); i++) {\n mb.appendDUP();\n mb.appendLoadConstant(i);\n String prefix = ((NamespaceDefinition)nss.get(i)).getPrefix();\n if (prefix == null) {\n prefix = \"\";\n }\n mb.appendLoadConstant(prefix);\n mb.appendAASTORE();\n }\n }\n }", "String getVersionNamePrefix();", "@Override\r\n\tprotected String getKeyspaceName() {\n\t\treturn KEYSPACE;\r\n\t}", "public String getPrefix() {\n return this.prefix;\n }", "DbObjectName createDbObjectName();", "public String getPrefix() {\n return Prefix;\n }", "public String generateTemporaryTableName(String baseTableName) {\n \t\treturn \"HT_\" + baseTableName;\n \t}", "public String getXMLSchemaPrefix()\n {\n return getPreferenceStore().getString(CONST_XSD_DEFAULT_PREFIX_TEXT);\n }", "Rule StPrefixScopeAndId() {\n return Sequence(\n \"smalltalk.prefix\",\n Identifier(),\n actions.pushStPrefixNamespaceNode());\n }", "@attribute(value = \"\", required = true)\t\r\n\tpublic void setTable(String table) {\r\n\t\tthis.table = table;\r\n\t}", "public String getTableDbName() {\r\n return \"t_testplans\";\r\n }" ]
[ "0.63174826", "0.62798077", "0.6076143", "0.59812886", "0.5931997", "0.58763516", "0.582472", "0.58119804", "0.57789564", "0.5738746", "0.5726194", "0.57241493", "0.5687719", "0.5667206", "0.5655526", "0.5655526", "0.5648863", "0.5638188", "0.5617156", "0.5606137", "0.56022507", "0.5600846", "0.5584797", "0.5581053", "0.5563708", "0.5538622", "0.55174536", "0.5502929", "0.54936934", "0.5493018", "0.54914397", "0.54801947", "0.54793376", "0.54514754", "0.5450232", "0.5432607", "0.5416321", "0.5375727", "0.5355475", "0.53547716", "0.5342043", "0.533373", "0.53223044", "0.5321261", "0.5317561", "0.53066295", "0.5304838", "0.53034747", "0.52927756", "0.5283839", "0.52810293", "0.5272094", "0.52642953", "0.52617204", "0.52523685", "0.52442133", "0.52442133", "0.52442133", "0.52158684", "0.5214669", "0.5213826", "0.52080804", "0.5207891", "0.5206637", "0.519983", "0.5197798", "0.51962936", "0.5192301", "0.51904154", "0.5185774", "0.5178906", "0.5168852", "0.5166198", "0.5164391", "0.5163617", "0.51605517", "0.5152301", "0.5151127", "0.51471496", "0.5129131", "0.5124729", "0.5124729", "0.5120532", "0.5116743", "0.51073635", "0.5090472", "0.5089656", "0.5089405", "0.50890374", "0.5084368", "0.5075148", "0.50697714", "0.5066655", "0.5059833", "0.505903", "0.50562257", "0.50384426", "0.503811", "0.5035201", "0.50351363" ]
0.675836
0
returns the currently set db "table/cache" name prefix
public String prefix() { return this.prefix; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Transient\n public String getCacheKey() {\n return this.getTableName();\n }", "public String getDBTableName()\n\t{\n\t\treturn this.getClass().getSimpleName();\n\t}", "public String getTableName() {\n\t\treturn this.getTableName(this.currentClass());\n\t}", "public String getTableDbName() {\r\n return \"t_package\";\r\n }", "private String getQualifiedSrcDsTableName() {\n return sourceDB + \".\" + DATASET_TABLE_NAME;\n }", "public TableName name();", "@Override\n\tprotected String getCacheKeyPrefix() {\n\t\treturn super.getCacheKeyPrefix();\n\t}", "public String getTableDbName() {\r\n return \"t_testplans\";\r\n }", "private String getEntitiesTableName()\n {\n\tString prefix = PropertyLookup.getTableNamePrefix();\n\tString separator = PropertyLookup.getTableNameSeparator();\n\tString suffix = PropertyLookup.getEntitiesTableNameSuffix();\n\n\treturn prefix + separator + catalogId + separator + suffix;\n }", "protected String getStrainBackupBoxPrefix(Db db)\n\t{\n\t\tString sql = \"exec spMet_getStrainCollectionBackupBoxPrefix '\" + getStrainType() + \" Strain'\";\n\t\tString prefix = db.getHelper().getDbValue(sql, db);\n\t\treturn prefix;\n\t}", "java.lang.String getDatabaseName();", "java.lang.String getDatabaseName();", "java.lang.String getDatabaseName();", "java.lang.String getDatabaseName();", "private String getHiveDatabase(String namespace) {\n if (namespace == null) {\n return null;\n }\n String tablePrefix = cConf.get(Constants.Dataset.TABLE_PREFIX);\n return namespace.equals(Id.Namespace.DEFAULT.getId()) ? namespace : String.format(\"%s_%s\", tablePrefix, namespace);\n }", "public String getDbTable() {return dbTable;}", "public String getDistinctTableName() {\n return getTableName(false, false, true, false);\n }", "String getTableName();", "public String getTableName() {\n if (tableName == null) {\n tableName = Strings.tableize(ActiveRecords.findActiveRecordBaseName(getClass()));\n }\n return tableName;\n }", "public String getFullName()\n {\n String schema = db.getSchema();\n return (schema!=null) ? schema+\".\"+name : name;\n }", "String getBaseTable();", "public abstract String getDatabaseTableName(String entityName);", "public String getTableName() {\n return getTableName(false, false, false, false);\n }", "public String getTableDbName() {\r\n return \"t_phase\";\r\n }", "protected String getTableName()\n {\n return immutableGetTableName();\n }", "public String getGroupTable() {\n return dbTable.getGroupTable();\n }", "public String getDataBaseName() {\r\n\t\treturn dataBaseName + \".db\";\r\n\t}", "public String getTableName() {\r\n\t\treturn this.tableMetaDataContext.getTableName();\r\n\t}", "public final String getTableName() {\n\t\treturn wTableName;\n\t}", "public String getPrefix()\n\t{\n\t\t//local constants\n\n\t\t//local variables\n\n\t\t/*******************************************************************************/\n\n\t\t//Return the prefix of the name.\n\t\treturn prefix;\n\n\t}", "public String getGlobalTableName() {\n return this.globalTableName;\n }", "private String getPhysicalDbName() {\n String pdbName =TestConfiguration.getCurrent().getJDBCUrl();\n if (pdbName != null)\n pdbName=pdbName.substring(pdbName.lastIndexOf(\"oneuse\"),pdbName.length());\n else {\n // with JSR169, we don't *have* a protocol, and so, no url, and so\n // we'll have had a null.\n // But we know the name of the db is something like system/singleUse/oneuse#\n // So, let's see if we can look it up, if everything's been properly\n // cleaned, there should be just 1...\n pdbName = (String) AccessController.doPrivileged(new java.security.PrivilegedAction() {\n String filesep = getSystemProperty(\"file.separator\");\n public Object run() {\n File dbdir = new File(\"system\" + filesep + \"singleUse\");\n String[] list = dbdir.list();\n // Some JVMs return null for File.list() when the directory is empty\n if( list != null)\n {\n if(list.length > 1)\n {\n for( int i = 0; i < list.length; i++ )\n {\n if(list[i].indexOf(\"oneuse\")<0)\n continue;\n else\n {\n return list[i];\n }\n }\n // give up trying to be smart, assume it's 0\n return \"oneuse0\";\n }\n else\n return list[0];\n }\n return null;\n }\n });\n \n }\n return pdbName;\n }", "public static String getCacheNameForTenantDatastore() {\n \n StringBuilder cacheName = new StringBuilder();\n cacheName.append(FHIRRequestContext.get().getTenantId())\n .append(\"~\")\n .append(FHIRRequestContext.get().getDataStoreId());\n return cacheName.toString();\n }", "public String getMapTableName() {\n return getTableName(false, false, false, true);\n }", "@Override\n public String getDatabaseName() {\n return mappings.getDatabaseName();\n }", "default String getAliasPrefix() {\n\t\treturn getDataSet() + \"_\";\n\t}", "public String getTablename() {\n return tablename;\n }", "String tableName2Name(String name);", "public static String getCacheName0()\n {\n return s_sCacheName0;\n }", "String getTableName(String name);", "String jobTableName();", "@Override\r\n\tpublic String getDataBaseName(String[] sql) {\n\t\treturn UsedDataBase.getUsedDataBase();\r\n\t}", "private String extractTableName() {\n\t\treturn fromElement.getQueryable().getTableName();\n\t}", "public String databaseName();", "public String getKeyWordTableName() {\r\n\t\treturn keyWordTableName;\r\n\t}", "@Override\n\tpublic String getTableName() {\n\t\treturn \"DMDB.GY_DM_ZJLX\";\n\t}", "@Override\n public String getLocalKey() {\n if (prefixComponentIndex < prefix.size())\n return prefix.get(prefixComponentIndex);\n else\n return null;\n }", "public String getDbName();", "public String getStrainPrefix(Db db)\n\t{\n\t\tString prefix = dbHelper.getDbValue(\"exec spMet_getStrainPrefix '\" \n\t\t\t\t+ getStrainType() + \"'\", db);\n\t\tString suffix = dbHelper.getDbValue(\"exec spMet_getIDSuffix\", db);\n\t\tif(WtUtils.isNullOrBlank(suffix))\n\t\t\tsuffix = \"\";\n\t\telse\n\t\t\tsuffix = suffix + \"-\";\n\t\treturn prefix + \"-\" + suffix;\n\t}", "@Override\n\tpublic String getPrefix() {\n\t\treturn getClass().getSimpleName()+\":\"+prefix;\n\t}", "private static String getDefaultDatabaseName(Context context) {\n\t\treturn context.getClass().getSimpleName();\n\t}", "public String getMetricsDbNameWithMetadataUrlPrefix() {\n StringBuilder sb = new StringBuilder(config.getMetadataUrlPrefix());\n sb.append(\"_\");\n sb.append(config.getOptional(\"kylin.metrics.influx-db\", \"KYLIN_METRICS\"));\n return sb.toString();\n }", "@Override\n\tprotected String getTableName() {\n\t\treturn super.getTableName();\n\t}", "public String getName() {\n return cache.getName();\n }", "public String getName(){\n\t\t\treturn tableName;\n\t\t}", "@Override\n\tpublic String getTableName() {\n\t\tString sql=\"dip_dataurl\";\n\t\treturn sql;\n\t}", "public static String getCacheClassName( ) {\n return CACHE_CLASS_NAME;\n }", "protected String getStrainBoxPrefix(Db db)\n\t{\n\t\tString sql = \"exec spMet_getStrainCollectionBoxPrefix '\" + getStrainType() + \" Strain'\";\n\t\tString prefix = dbHelper.getDbValue(sql, db);\n\t\treturn prefix;\n\t}", "String getTempTableName(String name);", "DbObjectName createDbObjectName();", "private String generateSqlServerTemporaryTableName() {\n return \"temp\" + temporaryTableCounter.getAndIncrement();\n }", "@Override\n\tpublic String getTableName(int arg0) throws SQLException {\n\t\treturn tMeta[0].tableName();\n\t}", "private String getPrefixDuringSave(String namespace) {\r\n EPackage ePackage = extendedMetaData.getPackage(namespace);\r\n if (ePackage == null) {\r\n ePackage = extendedMetaData.demandPackage(namespace);\r\n // This will internally create a nice prefix\r\n }\r\n String prefix = ePackage.getNsPrefix();\r\n // I'm not sure if the following code is needed, but I keep it to avoid inconsistencies\r\n if (!packages.containsKey(ePackage)) {\r\n packages.put(ePackage, prefix);\r\n }\r\n prefixesToURIs.put(prefix, namespace);\r\n return prefix;\r\n }", "public String getTableDbName() { return \"t_trxtypes\"; }", "public static String getCacheName1()\n {\n return s_sCacheName1;\n }", "private static String makeTableBaseName(int number) {\n return \"bi_\" + Integer.toString(number);\n }", "public abstract String getDatabaseName();", "protected String getDatabaseName() {\n\t\treturn database;\n\t}", "public java.lang.String getNameSpacePrefix()\n {\n return nsPrefix;\n }", "public java.lang.String getNameSpacePrefix()\n {\n return nsPrefix;\n }", "public java.lang.String getNameSpacePrefix()\n {\n return nsPrefix;\n }", "String pvTableName();", "public String getXMLSchemaPrefix()\n {\n return getPreferenceStore().getString(CONST_XSD_DEFAULT_PREFIX_TEXT);\n }", "public String table() {\n return tableName;\n }", "public String table() {\n return tableName;\n }", "protected String getMonarchTableName(Table tbl) {\n // 1. If region name property is not provided use hive's table name.\n // 2. Use '_'(underscore) instead of '.'(dot) since gemfire\n // does not allow querying when region name contain dot.\n String tableName = tbl.getParameters().get(MonarchUtils.REGION);\n if (tableName == null) {\n tableName = tbl.getDbName() + \"_\" + tbl.getTableName();\n }\n return tableName;\n }", "public String getTableName() \n\t{\n\t return tableName ;\n\t}", "public String getName() {\n return tableName;\n }", "public String getConstantTableName(){\n return CONSTANT_TABLE_NAME;\n }", "public String getTableKey() {\n return tableKey;\n }", "@Override\r\n\tprotected String getSchemaSpacePattern() throws SQLException {\r\n\t\tString schema = databaseConnection.getSchema();\r\n\t\tif ((schema == null) || schema.isEmpty()) {\r\n\t\t\tschema = dbmd.getUserName();\r\n\t\t}\r\n\t\treturn schema;\r\n\t}", "public String getTranslatedTableName()\n {\n return DBProvider.translateTableName(this.getUntranslatedTableName());\n }", "public String getKeyPrefix() {\n\t\treturn keyPrefix;\n\t}", "public String getBaseTable() {\n Object ref = baseTable_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n baseTable_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "private String getCorrectCallLogTableName() {\n Uri uri = CallLog.Calls.CONTENT_URI;\n String testTableName = CallLog.Calls._ID + \" in (select \" + CallLog.Calls._ID +\n \" from calls group by \" + CallLog.Calls.NUMBER + \")\";\n\n Cursor cursor = null;\n try {\n if (ActivityCompat.checkSelfPermission(getActivity(), Manifest.permission.READ_CALL_LOG) != PackageManager.PERMISSION_GRANTED) {\n\n }\n cursor = getContext().getContentResolver().query(uri,\n new String[]{CallLog.Calls._ID}, testTableName, null, null);\n cursor.moveToNext();\n } catch (Exception e) {\n if (e.getMessage().toLowerCase().contains(\"no such table\")) {\n return \"logs\";\n } else if (BuildConfig.DEBUG) {\n Log.d(TAG, \"Exception while checking table name\", e);\n }\n } finally {\n Util.close(cursor);\n }\n return \"calls\";\n }", "public static String getActualTableName(String utableName)\n {\n String tn = (DBFactory.TableNameMap != null)? DBFactory.TableNameMap.get(utableName) : null;\n return (tn != null)? tn : utableName;\n }", "public static String getPrefix() {\n return getConfiguration().getPath(\"General.Prefix\").getString();\n }", "public String getTableName() throws DatabaseSchemaException {\n return Database.getTableName(clazz);\n }", "public static String getDatabaseClassName() {\n\t\tif (xml == null) return null;\n\t\treturn databaseClassName;\n\t}", "public String getIdPrefix() {\n \t\treturn idPrefix;\n \t}", "@java.lang.Override\n public java.lang.String getDatabaseName() {\n java.lang.Object ref = databaseName_;\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 databaseName_ = s;\n return s;\n }\n }", "@java.lang.Override\n public java.lang.String getDatabaseName() {\n java.lang.Object ref = databaseName_;\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 databaseName_ = s;\n return s;\n }\n }", "@java.lang.Override\n public java.lang.String getDatabaseName() {\n java.lang.Object ref = databaseName_;\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 databaseName_ = s;\n return s;\n }\n }", "@java.lang.Override\n public java.lang.String getDatabaseName() {\n java.lang.Object ref = databaseName_;\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 databaseName_ = s;\n return s;\n }\n }", "public String getPrefixKey() {\n return \"qa.journal.item.\" + key;\n }", "public String getTableNameString() {\n return tableName;\n }", "public String getDBName()\n {\n return dbServer;\n }", "String getPrefix();", "String getPrefix();", "String getPrefix();" ]
[ "0.67249644", "0.6653005", "0.6514692", "0.6476501", "0.6449535", "0.63890934", "0.6357697", "0.6183025", "0.616416", "0.6148796", "0.6108826", "0.6108826", "0.6108826", "0.6108826", "0.60808206", "0.60753125", "0.60747784", "0.6021309", "0.6016591", "0.60041755", "0.60013306", "0.5959799", "0.5958528", "0.595713", "0.5956797", "0.5956387", "0.59521914", "0.5951592", "0.5943212", "0.5924349", "0.5908047", "0.589937", "0.5888981", "0.587643", "0.58583206", "0.58505076", "0.5832353", "0.5831566", "0.58274025", "0.58270365", "0.58157325", "0.5801689", "0.58010465", "0.5799712", "0.57903117", "0.5788321", "0.57840073", "0.5777139", "0.5763694", "0.575151", "0.57420975", "0.574098", "0.5732736", "0.5728001", "0.5718656", "0.5714805", "0.5714192", "0.5709604", "0.5704415", "0.57027227", "0.57018787", "0.56988704", "0.5688241", "0.5684794", "0.5676584", "0.5657167", "0.56553733", "0.5647816", "0.5643246", "0.5643246", "0.5643246", "0.56299573", "0.5620003", "0.5607031", "0.5607031", "0.5598398", "0.5579959", "0.557198", "0.55674964", "0.5559306", "0.5541738", "0.55358523", "0.55281806", "0.5513704", "0.5507916", "0.5506582", "0.5504651", "0.54980767", "0.54907453", "0.5488387", "0.5484448", "0.5484448", "0.5484448", "0.5484448", "0.5478977", "0.5472172", "0.54649454", "0.5462186", "0.5462186", "0.5462186" ]
0.54807806
94
JSONParser parser = new JSONParser();
public Map<String,Double> doDetection(){ if(recordingFile!=null){ FileManager fm = new FileManager(recordingFile); signal = fm.readFile(); if(signal!=null){ //for(int i=0;i<256;i++) // System.out.print(signal[i]+", "); System.out.println("tamaño:: "+signal.length); Map<String,Double> resultadoCanal= classify(); System.out.println("resultadoCanal "+resultadoCanal.size()); return resultadoCanal; } } else{ System.out.println("El archivo no existe"); } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "TorrentJsonParser getJsonParser();", "public TestRunJsonParser(){\n }", "protected JsonParser getJsonParser( ) {\r\n\t\treturn jsonParser;\r\n\t}", "private static void loadParser() {\n if(parser_ == null)\n parser_ = ConfigIOFactory.getInstance(\"json\");\n }", "private JsonUtil() {\n this.parser = new JSONParser();\n get_text();\n }", "public native Object parse( Object json );", "public JSONLoader() {}", "private JSON() {\n\t}", "private JsonUtils() {}", "public JSONLoader( LoadingManager manager ) {}", "public interface PojoParser {\n\n\n /**\n * Method which converts the Pojo to JSON Object\n * @return return the framed {@link JSONObject} instance\n */\n public abstract JSONObject toJson();\n\n /**\n * Method which convert JSON to POJO.\n * @param jsonObject Josn object which need to be parsed.\n */\n public abstract void fromJson(JSONObject jsonObject);\n}", "private JSONHelper() {\r\n\t\tsuper();\r\n\t}", "@Deprecated\n/* */ public JsonParser createJsonParser(URL url)\n/* */ throws IOException, JsonParseException\n/* */ {\n/* 976 */ return createParser(url);\n/* */ }", "public interface JsonParser {\n\n /**\n * convert string to POJO\n *\n * @param jsonString - string to convert to POJO\n * @param classType - POJO Type / Class Type to use for the deserialization\n * @param <T> the returned desirialized POJO\n * @return desiarilized POJO\n */\n <T> T toJsonPOJO(String jsonString, Class<T> classType);\n\n /**\n * convert from POJO to json string\n * @param data POJO to convert to json String\n * @return json string\n */\n String toJSONString(Object data);\n}", "private JsonUtils() { }", "void fromJson(JsonStaxParser parser) throws SyntaxException, IOException;", "public void parseJSONData(Object JSONdata){\n\n\t}", "Gson() {\n }", "public JsonParser createParser(URL url)\n/* */ throws IOException, JsonParseException\n/* */ {\n/* 782 */ IOContext ctxt = _createContext(url, true);\n/* 783 */ InputStream in = _optimizedStreamFromURL(url);\n/* 784 */ return _createParser(_decorate(in, ctxt), ctxt);\n/* */ }", "private JsonUtils()\r\n {\r\n // Private constructor to prevent instantiation\r\n }", "private Parser () { }", "public JsonParser createParser(char[] content)\n/* */ throws IOException\n/* */ {\n/* 899 */ return createParser(content, 0, content.length);\n/* */ }", "@Test\n public void testParseJson() {\n System.out.println(\"parseJson\");\n JsnParser instance = new JsnParser();\n instance.parseJson();\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "public Parser()\n{\n //nothing to do\n}", "private static Gson gson() {\n return JsonUtils.buildGson(gb -> gb.registerTypeAdapter(Json.class, (JsonSerializer<Json>) (json, type, jsonSerializationContext) ->\n jsonParser.parse(json.value())\n ));\n }", "@Override\n\tpublic void onParser(JSONArray response) {\n\n\t}", "public JSONUtils() {\n\t\tsuper();\n\t}", "public Parser() {}", "@Deprecated\n/* */ public JsonParser createJsonParser(String content)\n/* */ throws IOException, JsonParseException\n/* */ {\n/* 1057 */ return createParser(content);\n/* */ }", "@Test\n\tpublic void testParse(){\n\t\t{\n\t HttpServletRequest request = mock(HttpServletRequest.class); \n\t IParser iParserObject = new ParseJSON();\n\t \n\t String stringObject = \"{key: 'value'}\";\n\t \tStringReader stringReaderObject=new StringReader(stringObject);\n\t \tBufferedReader bufferReaderObject = new BufferedReader(stringReaderObject);\n\n\t try {\n\t\t\t\twhen(request.getReader()).thenReturn(bufferReaderObject);\n\t\t\t} catch (IOException e2) {\n\t\t\t\te2.printStackTrace();\n\t\t\t}\n\n\t JSONObject jsonObject = iParserObject.parse(request);\n\t assertNotNull(jsonObject);\n\t assertEquals(1, jsonObject.length());\n\t assertEquals(\"value\",jsonObject.get(\"key\"));\n\t }\n \t}", "public interface JSONAdapter {\n public JSONObject toJSONObject();\n}", "private JsonUtils() {\n\t\tsuper();\n\t}", "@Deprecated\n/* */ public JsonParser createJsonParser(InputStream in)\n/* */ throws IOException, JsonParseException\n/* */ {\n/* 1002 */ return createParser(in);\n/* */ }", "public interface JSONParserService extends Service {\r\n\r\n /**\r\n * Parses from json to map\r\n *\r\n * @param json data\r\n * @return Map<String, Object> or null, if json equals null\r\n */\r\n Map<String, Object> parseToMap(String json);\r\n\r\n /**\r\n * Parses from map to json\r\n *\r\n * @param data map with data\r\n * @return json or null, if map equals null\r\n */\r\n String parseMapToJson(Map<String, Object> data);\r\n\r\n /**\r\n * Parses from object to json\r\n *\r\n * @param obj object that will be parsed to json\r\n * @return json or null if invalid data\r\n */\r\n String parseObjectToJson(Object obj);\r\n\r\n /**\r\n * Parses from json to object of T class\r\n *\r\n * @param json string of json with data object\r\n * @param classObject type object\r\n *\r\n * @return T object or null, if transferred incorrect data\r\n */\r\n <T> T parseToObject(Object json, Class<T> classObject);\r\n\r\n /**\r\n * Parses from json to collection of object's T class\r\n *\r\n * @param json string of json with data objects\r\n * @param typeClass type of objects collection\r\n *\r\n * @return collection of object's T class or null, if transferred incorrect data\r\n */\r\n <T> Collection<T> parseToCollectionObjects(Object json, Type typeClass);\r\n\r\n\r\n}", "void mo28373a(JSONObject jSONObject);", "public Parser()\n {\n //nothing to do\n }", "public JsonParser createParser(InputStream in)\n/* */ throws IOException, JsonParseException\n/* */ {\n/* 809 */ IOContext ctxt = _createContext(in, false);\n/* 810 */ return _createParser(_decorate(in, ctxt), ctxt);\n/* */ }", "public JsonParser createParser(File f)\n/* */ throws IOException, JsonParseException\n/* */ {\n/* 755 */ IOContext ctxt = _createContext(f, true);\n/* 756 */ InputStream in = new FileInputStream(f);\n/* 757 */ return _createParser(_decorate(in, ctxt), ctxt);\n/* */ }", "public JsonParser createParser(Reader r)\n/* */ throws IOException, JsonParseException\n/* */ {\n/* 829 */ IOContext ctxt = _createContext(r, false);\n/* 830 */ return _createParser(_decorate(r, ctxt), ctxt);\n/* */ }", "@Deprecated\n/* */ public JsonParser createJsonParser(Reader r)\n/* */ throws IOException, JsonParseException\n/* */ {\n/* 1021 */ return createParser(r);\n/* */ }", "public OrotParser() {\n createPackagesJson();\n }", "public abstract void fromJson(JSONObject jsonObject);", "public interface Parser {\n\n}", "public void parse() {\n }", "public JsonObject()\n\t{\n\t\tsuper(ParserUtil.OBJECT_OPEN, ParserUtil.OBJECT_CLOSE);\n\t\tsetup();\n\t}", "public JSONModel() {\n jo = new JSONObject();\n }", "@Deprecated\n/* */ public JsonParser createJsonParser(File f)\n/* */ throws IOException, JsonParseException\n/* */ {\n/* 951 */ return createParser(f);\n/* */ }", "public JsonFactory() { this(null); }", "void parse();", "public JsonArray() {\n }", "String getJSON();", "public JsonParser createParser(DataInput in)\n/* */ throws IOException\n/* */ {\n/* 920 */ IOContext ctxt = _createContext(in, false);\n/* 921 */ return _createParser(_decorate(in, ctxt), ctxt);\n/* */ }", "public static JSONObject parseJSON(JSONParser jsonParser, String line) {\n try {\n return (JSONObject) jsonParser.parse(line);\n } catch (ParseException e) {\n return null;\n }\n }", "public interface JSONPopulator {\n void populate(JSONObject data);\n}", "public interface JSONPopulator {\n void populate(JSONObject data);\n}", "public interface JSONPopulator {\n void populate(JSONObject data);\n}", "protected Parser getParser() {\n\t\treturn myParser;\n\t}", "@Test\n public void jsonTest(){\n }", "public void testGetJSON() {\n\t}", "private GraphParser(){ \n\t}", "@Override\n\tpublic JSON parse(String in) throws IOException {\n\t\tMyJSON js = new MyJSON();\n\t\t//count brackets make sure they match\n\t\tif(!syntaxOkay(in)){\n\t\t\tthrow new IllegalStateException(\"Mismatched brackets error\");\n\t\t}\n\t\t//get rid of spaces to make things easier\n\t\tString withoutSpaces = remove(in, ' ');\n\t\t//handles edge case of an empty object\n\t\tString withoutBraces = remove(withoutSpaces, '{');\n\t\twithoutBraces = remove(withoutBraces, '}');\n\t\tif(withoutBraces.length() == 0){\n\t\t\treturn js;\n\t\t}\n\t\tint colonIndex = in.indexOf(\":\");\n\t\tString key = in.substring(0, colonIndex);\n\t\tString value = in.substring(colonIndex + 1);\n\n\t\tif(value.contains(\":\")){\n\t\t\t//this means the value is an object so we figure out how many strings to add to the object\n\t\t\tString[] values = value.split(\",\");\n\t\t\t//creates a temp for the new object\n\t\t\tMyJSON temp = new MyJSON();\n\t\t\tfillObject(values, temp);\n\t\t\tkey = removeOutsides(key);\n\t\t\tjs.setObject(key, temp);\n\t\t}else{\n\t\t\t//the base case that actually puts things as a JSON object\n\t\t\tkey = removeOutsides(key);\n\t\t\tvalue = removeOutsides(value);\n\t\t\tjs.setString(key, value);\n\t\t}\n\n\t\treturn js;\n\t}", "public static void main(String[] argv) throws ParseException \t\r\n {\r\n JSONParser jsParser = new JSONParser();\r\n\r\n \r\n \r\n Object ob;\r\n\t\ttry (BufferedReader br = new BufferedReader(new FileReader(FILENAME))) \r\n\t\t{\r\n\t\t\tob = jsParser.parse(br);\r\n\t System.out.println(ob);\r\n\r\n\t JSONObject json = (JSONObject) jsParser.parse(ob.toString());\r\n\t \r\n\r\n\t System.out.println(\"name=\" + json.get(\"jeuadmin-result\")); // name=MyNode\r\n\t \r\n JSONArray msgList =(JSONArray) json.get(\"values\");\r\n Iterator<String>iterator = msgList.iterator();\r\n \r\n/*\r\n Iterator<String>iterator = msgList.iterator();\r\n while(iterator.hasNext()) \r\n {\r\n System.out.println(iterator.next());\r\n }\r\n\r\n*/\r\n\t \r\n\t System.out.println(\"name=\" + \"\"); // name=MyNode\r\n\r\n//\t System.out.println(\"width=\" + json.get(\"width\")); // width=200\r\n\t\r\n\t\t} \r\n\t\tcatch (IOException e) \r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t} \r\n\t\t\r\n/*\r\n Object ob;\r\n\t\ttry \r\n\t\t{\r\n\t\t\tob = jsParser.parse(txt);\r\n\t System.out.println(ob); // {\"name\":\"MyNode\", \"width\":200, \"height\":100}\r\n\t JSONObject json = (JSONObject) jsParser.parse(txt);\r\n\t System.out.println(\"name=\" + json.get(\"name\")); // name=MyNode\r\n\t System.out.println(\"width=\" + json.get(\"width\")); // width=200\r\n\t\t} \r\n\t\tcatch (ParseException e) \r\n\t\t{\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n*/\r\n\t\t\r\n }", "public JsonParser createParser(String content)\n/* */ throws IOException, JsonParseException\n/* */ {\n/* 879 */ int strLen = content.length();\n/* */ \n/* 881 */ if ((this._inputDecorator != null) || (strLen > 32768) || (!canUseCharArrays()))\n/* */ {\n/* */ \n/* 884 */ return createParser(new StringReader(content));\n/* */ }\n/* 886 */ IOContext ctxt = _createContext(content, true);\n/* 887 */ char[] buf = ctxt.allocTokenBuffer(strLen);\n/* 888 */ content.getChars(0, strLen, buf, 0);\n/* 889 */ return _createParser(buf, 0, strLen, ctxt, true);\n/* */ }", "public interface Parser {\n\n ParsedObject[] parse();\n}", "Parse createParse();", "<T> T parseToObject(Object json, Class<T> classObject);", "public void fromJSON(String json) throws JSONException;", "public JSONResponse(String jsonString) {\n this.jsonString = jsonString;\n }", "private Object onParse(final String content) throws IOException{\n if(null == this.mBean)\n return null;\n\n try{\n return JSON.parseObject(content, this.mBean);\n }catch(Exception e){\n throw new IOException(e.getMessage());\n }\n }", "void mo59932a(String str, JSONObject jSONObject);", "public JSONUser(){\n\t}", "public static void initialize() {\r\n\t\tjson = new JSONFile(filePath);\t\r\n\t}", "@Override\r\n\t protected void onPostExecute(String result) {\r\n\t super.onPostExecute(result);\r\n\t \r\n\t ParserTask parserTask = new ParserTask();\r\n\t \r\n\t // Invokes the thread for parsing the JSON data\r\n\t parserTask.execute(result);\r\n\t }", "public static Json getInstance() {\n\t\treturn instance;\n\t}", "public static JSONBuilder newInstance(){\n return new JSONBuilder();\n }", "private Parser() {\n objetos = new ListaEnlazada();\n }", "public JSONObject parseJson(String response) {\n\t\tSystem.out.println(response);\n\t\tJSONObject json = (JSONObject) JSONSerializer.toJSON(response);\n\t\treturn json; \n\t}", "public Game() \n {\n parser = new Parser();\n }", "private static ConfigImpl loadJson(Reader reader) {\n ConfigImpl ret = new ConfigImpl();\n JsonParser parser = new JsonParser();\n JsonElement element = parser.parse(reader);\n loadJson(element, ret, \"\");\n return ret;\n }", "@Test\n public void simpleObject() throws IOException {\n String obj = \"{\\\"name\\\":\\\"value\\\",\\\"int\\\":1302,\\\"float\\\":1.57,\"\n + \"\\\"negint\\\":-5,\\\"negfloat\\\":-1.57,\\\"floatexp\\\":-1.5e7}\";\n JsonLexer l = new JsonLexer(new StringReader(obj));\n JsonParser p = new JsonParser(l);\n Map<String, Object> m = p.parseObject();\n\n assertEquals(6, m.size());\n assertEquals(\"value\", m.get(\"name\"));\n assertEquals(1302L, m.get(\"int\"));\n assertEquals(1.57, m.get(\"float\"));\n assertEquals(-5L, m.get(\"negint\"));\n assertEquals(-1.57, m.get(\"negfloat\"));\n assertEquals(-1.5e7, m.get(\"floatexp\"));\n }", "T fromJson(Object source);", "@Test\n public void jsonTest() {\n // TODO: test json\n }", "void mo26099a(String str, JSONObject jSONObject);", "public ClaseJson() {\n }", "public JSONModel(final String json) throws JSONException {\n jo = new JSONObject(json);\n }", "String getJson();", "String getJson();", "String getJson();", "public static JsonElement stringToJSON2(String json) {\n try {\n JsonElement parser = new JsonPrimitive(json);\n System.out.println(parser.getAsString());\n //JsonObject Jso = new JsonObject();\n //Jso = (JsonObject) parser.p(json);\n return parser;\n } catch (Exception e) {\n return new JsonObject();\n }\n }", "protected Object readResolve()\n/* */ {\n/* 353 */ return new JsonFactory(this, this._objectCodec);\n/* */ }", "private ObjectTagsParser getTagsParser() {\n if (parser == null) {\n parser = new ObjectTagsParser();\n parser.put(\"appObj\", this);\n }\n return parser;\n }", "public JSONNode() {\n map = new HashMap<>();\n }", "Map<String, Object> parseToMap(String json);", "public JsonParser createParser(char[] content, int offset, int len)\n/* */ throws IOException\n/* */ {\n/* 908 */ if (this._inputDecorator != null) {\n/* 909 */ return createParser(new CharArrayReader(content, offset, len));\n/* */ }\n/* 911 */ return _createParser(content, offset, len, _createContext(content, true), false);\n/* */ }", "public OnionooParser() {\n\n\t}", "public MinecraftJson() {\n }", "CParser getParser();", "public Parser() {\n\t\tpopulateMaps();\n\t}", "interface JSONParser<DataType>\n{\n DataType Parse(JSONObject jsonObject);\n}", "public JsonField() {\n }", "public final native JSONLoaderObject parse(JavaScriptObject json,String texturePath)/*-{\r\n\treturn this.parse(json,texturePath);\r\n\t}-*/;" ]
[ "0.78375787", "0.7252489", "0.7247768", "0.7239377", "0.7074104", "0.6905444", "0.6875698", "0.68338794", "0.67268485", "0.6611893", "0.6580231", "0.651468", "0.64823645", "0.6461589", "0.6418066", "0.63896245", "0.632296", "0.63177794", "0.62897575", "0.6285468", "0.6237056", "0.61972815", "0.6195086", "0.6194724", "0.6184555", "0.6169447", "0.6144015", "0.6110771", "0.61097854", "0.6098046", "0.6045954", "0.60194916", "0.6013248", "0.60063744", "0.59745014", "0.59631914", "0.5948701", "0.5941526", "0.5935714", "0.59348017", "0.5933787", "0.5931435", "0.5930624", "0.5913185", "0.5886882", "0.58817935", "0.5870903", "0.58612335", "0.58496606", "0.58212703", "0.58197486", "0.5815638", "0.58145094", "0.5790233", "0.5790233", "0.5790233", "0.578297", "0.5779546", "0.57482094", "0.5746794", "0.5746773", "0.5742354", "0.57259303", "0.5711686", "0.57079864", "0.5707017", "0.57060426", "0.570367", "0.5701578", "0.5699973", "0.56952775", "0.56946903", "0.56860477", "0.56610507", "0.5659427", "0.5657779", "0.5634398", "0.56320757", "0.5604395", "0.56033456", "0.5603136", "0.5600306", "0.5599457", "0.55937934", "0.55820876", "0.5571517", "0.5571517", "0.5571517", "0.5553937", "0.55534333", "0.55363405", "0.553319", "0.5525335", "0.55197865", "0.5517634", "0.5514337", "0.54973966", "0.549602", "0.54940516", "0.5489173", "0.5486851" ]
0.0
-1
TODO Autogenerated method stub
@Override public void decrementPop(int x) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void incrementPop(int x) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void configure(Context context) { this.pollFrequency = context.getInteger(this.CONF_POLL_FREQUENCY, DEFAULT_POLL_FREQUENCY); //zabbix hosts String hosts = context.getString(this.CONF_HOSTS); if (hosts == null || hosts.isEmpty()) { throw new ConfigurationException("Hosts list cannot be empty."); } parseHostsFromString(hosts); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void start() { try { hostname = InetAddress.getLocalHost().getHostName().split("\\.")[0]; }catch (Exception ex2) { logger.warn("Unknown error occured", ex2); } collectorRunnable.server = this; if (service.isShutdown() || service.isTerminated()) { service = Executors.newSingleThreadScheduledExecutor(); } service.scheduleWithFixedDelay(collectorRunnable, 0, pollFrequency, TimeUnit.SECONDS); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void stop() { service.shutdown(); while (!service.isTerminated()) { try { logger.warn("Waiting for zabbix service to stop"); service.awaitTermination(500, TimeUnit.MILLISECONDS); } catch (InterruptedException ex) { logger.warn("Interrupted while waiting" + " for zabbix monitor to shutdown", ex); service.shutdownNow(); } } zabbixServers.clear(); }
{ "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
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.menu_main, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.actions, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tgetMenuInflater().inflate(R.menu.actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.actions_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main_actions, menu);\n\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.action_bar_menu, menu);\r\n\t\tmMenu = menu;\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.act_bar_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_actions, menu);\r\n\t\treturn true;\r\n //return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\r\n\t inflater.inflate(R.menu.action_bar_all, menu);\r\n\t return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\t super.onCreateOptionsMenu(menu);\n\t\tMenuInflater muu= getMenuInflater();\n\t\tmuu.inflate(R.menu.cool_menu, menu);\n\t\treturn true;\n\t\t\n\t\t\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.adventure_archive, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.archive_menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n \tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n \t\tinflater.inflate(R.menu.main, menu);\n \t\tsuper.onCreateOptionsMenu(menu, inflater);\n \t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.action_menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater bow=getMenuInflater();\n\t\tbow.inflate(R.menu.menu, menu);\n\t\treturn true;\n\t\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.action_menu, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\t\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\t\t\n\t\t/* Inflate the menu; this adds items to the action bar if it is present */\n\t\tgetMenuInflater().inflate(R.menu.act_main, menu);\t\t\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflate = getMenuInflater();\n inflate.inflate(R.menu.menu, ApplicationData.amvMenu.getMenu());\n return true;\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.menu, menu);\n\t\t\treturn true; \n\t\t\t\t\t\n\t\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.main, menu);\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) \n {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_bar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_item, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.menu, menu);\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t \n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\t//menu.clear();\n\t\tinflater.inflate(R.menu.soon_to_be, menu);\n\t\t//getActivity().getActionBar().show();\n\t\t//getActivity().getActionBar().setBackgroundDrawable(\n\t\t\t\t//new ColorDrawable(Color.rgb(223, 160, 23)));\n\t\t//return true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n this.getMenuInflater().inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.main, menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu( Menu menu, MenuInflater inflater )\n\t{\n\t\tsuper.onCreateOptionsMenu( menu, inflater );\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\r\n \t// We must call through to the base implementation.\r\n \tsuper.onCreateOptionsMenu(menu);\r\n \t\r\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_menu, menu);\r\n\r\n return true;\r\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.inter_main, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.action, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu (Menu menu){\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.custom_action_bar, menu);\n\t\treturn true;\n\t}", "public void initMenubar() {\n\t\tremoveAll();\n\n\t\t// \"File\"\n\t\tfileMenu = new FileMenuD(app);\n\t\tadd(fileMenu);\n\n\t\t// \"Edit\"\n\t\teditMenu = new EditMenuD(app);\n\t\tadd(editMenu);\n\n\t\t// \"View\"\n\t\t// #3711 viewMenu = app.isApplet()? new ViewMenu(app, layout) : new\n\t\t// ViewMenuApplicationD(app, layout);\n\t\tviewMenu = new ViewMenuApplicationD(app, layout);\n\t\tadd(viewMenu);\n\n\t\t// \"Perspectives\"\n\t\t// if(!app.isApplet()) {\n\t\t// perspectivesMenu = new PerspectivesMenu(app, layout);\n\t\t// add(perspectivesMenu);\n\t\t// }\n\n\t\t// \"Options\"\n\t\toptionsMenu = new OptionsMenuD(app);\n\t\tadd(optionsMenu);\n\n\t\t// \"Tools\"\n\t\ttoolsMenu = new ToolsMenuD(app);\n\t\tadd(toolsMenu);\n\n\t\t// \"Window\"\n\t\twindowMenu = new WindowMenuD(app);\n\n\t\tadd(windowMenu);\n\n\t\t// \"Help\"\n\t\thelpMenu = new HelpMenuD(app);\n\t\tadd(helpMenu);\n\n\t\t// support for right-to-left languages\n\t\tapp.setComponentOrientation(this);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp=getMenuInflater();\n\t\tblowUp.inflate(R.menu.welcome_menu, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.item, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.resource, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu,menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.home_action_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.template, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n Log.d(\"onCreateOptionsMenu\", \"create menu\");\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.socket_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_menu, menu);//Menu Resource, Menu\n\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actionbar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(toolbar_res, menu);\n updateMenuItemsVisibility(menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t// \n\t\tMenuInflater mi = getMenuInflater();\n\t\tmi.inflate(R.menu.thumb_actv_menu, menu);\n\t\t\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.swag_list_activity_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\n\t\treturn true;\n\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.jarvi, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "public void onCreateOptionsMenu(Menu menu, MenuInflater inflater){\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater menuInflater) {\n menuInflater.inflate(R.menu.main, menu);\n\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.add__listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actmain, menu);\r\n return true;\r\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.buat_menu, menu);\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.layout.menu, menu);\n\t\treturn true;\n\t}", "@Override\npublic boolean onCreateOptionsMenu(Menu menu) {\n\n\t\n\t\n\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\n\treturn super.onCreateOptionsMenu(menu);\n}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ichat, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater)\n\t{\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\tinflater.inflate(R.menu.expenses_menu, menu);\n\t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.action_bar, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp = getMenuInflater();\n\t\tblowUp.inflate(R.menu.status, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ui_main, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_activity_actions, menu);\n return true;\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }" ]
[ "0.7246102", "0.7201358", "0.7194834", "0.7176498", "0.71066517", "0.7039537", "0.7037961", "0.70112145", "0.70094734", "0.69807225", "0.6944953", "0.69389373", "0.6933199", "0.6916928", "0.6916928", "0.6891486", "0.68831646", "0.68754137", "0.68745375", "0.68621665", "0.68621665", "0.68621665", "0.68621665", "0.68515885", "0.68467957", "0.68194443", "0.6817494", "0.6813087", "0.6813087", "0.6812847", "0.6805774", "0.6801204", "0.6797914", "0.6791314", "0.6789091", "0.67883503", "0.6783642", "0.6759701", "0.6757412", "0.67478645", "0.6744127", "0.6744127", "0.67411774", "0.6740183", "0.6726017", "0.6723245", "0.67226785", "0.67226785", "0.67208904", "0.67113477", "0.67079866", "0.6704564", "0.6699229", "0.66989094", "0.6696622", "0.66952467", "0.66865396", "0.6683476", "0.6683476", "0.6682188", "0.6681209", "0.6678941", "0.66772443", "0.6667702", "0.66673946", "0.666246", "0.6657578", "0.6657578", "0.6657578", "0.6656586", "0.66544783", "0.66544783", "0.66544783", "0.66524047", "0.6651954", "0.6650132", "0.66487855", "0.6647077", "0.66467404", "0.6646615", "0.66464466", "0.66449624", "0.6644209", "0.6643461", "0.6643005", "0.66421187", "0.6638628", "0.6634786", "0.6633529", "0.6632049", "0.6632049", "0.6632049", "0.66315657", "0.6628954", "0.66281766", "0.6627182", "0.6626297", "0.6624309", "0.6619582", "0.6618876", "0.6618876" ]
0.0
-1
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); //noinspection SimplifiableIfStatement if (id == R.id.action_settings) { return true; } return super.onOptionsItemSelected(item); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n //\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // Back button clicked\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // app icon in action bar clicked; goto parent activity.\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n switch (id) {\r\n case android.R.id.home:\r\n // app icon in action bar clicked; go home\r\n this.finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // app icon in action bar clicked; go home\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n Log.e(\"clik\", \"action bar clicked\");\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n\t public boolean onOptionsItemSelected(MenuItem item) {\n\t int id = item.getItemId();\n\t \n\t\t\tif (id == android.R.id.home) {\n\t\t\t\t// Respond to the action bar's Up/Home button\n\t\t\t\t// NavUtils.navigateUpFromSameTask(this);\n\t\t\t\tonBackPressed();\n\t\t\t\treturn true;\n\t\t\t}\n\t \n\t \n\t return super.onOptionsItemSelected(item);\n\t }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n // Respond to the action bar's Up/Home button\r\n case android.R.id.home:\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle presses on the action bar items\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n case R.id.action_clear:\n return true;\n case R.id.action_done:\n\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onActionHomePressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId())\n {\n case android.R.id.home :\n super.onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId ()) {\n case android.R.id.home:\n onBackPressed ();\n return true;\n\n default:\n break;\n }\n return super.onOptionsItemSelected ( item );\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t switch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\t// app icon in action bar clicked; go home \n\t\t\tIntent intent = new Intent(this, Kelutral.class); \n\t\t\tintent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); \n\t\t\tstartActivity(intent); \n\t\t\treturn true;\t\t\n\t case R.id.Search:\n\t \treturn onSearchRequested();\n\t\tcase R.id.AppInfo:\n\t\t\t// Place holder menu item\n\t\t\tIntent newIntent = new Intent(Intent.ACTION_VIEW,\n\t\t\t\t\tUri.parse(\"http://forum.learnnavi.org/mobile-apps/\"));\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\n\t\tcase R.id.Preferences:\n\t\t\tnewIntent = new Intent(getBaseContext(), Preferences.class);\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\t\n\t }\n\t return false;\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n onBackPressed();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // Intent homeIntent = new Intent(this, MainActivity.class);\n // homeIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n // startActivity(homeIntent);\n finish();\n return true;\n default:\n return (super.onOptionsItemSelected(item));\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // setResult and close the activity when Action Bar Up Button clicked.\n if (item.getItemId() == android.R.id.home) {\n setResult(RESULT_CANCELED);\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // This ID represents the Home or Up button. In the case of this\n // activity, the Up button is shown. Use NavUtils to allow users\n // to navigate up one level in the application structure. For\n // more details, see the Navigation pattern on Android Design:\n //\n // http://developer.android.com/design/patterns/navigation.html#up-vs-back\n //\n \tgetActionBar().setDisplayHomeAsUpEnabled(false);\n \tgetFragmentManager().popBackStack();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if(id == android.R.id.home){\n onBackPressed();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@RequiresApi(api = Build.VERSION_CODES.M)\n @Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif(item.getItemId()==android.R.id.home)\r\n\t\t{\r\n\t\t\tgetActivity().onBackPressed();\r\n\t\t}\r\n\t\treturn super.onOptionsItemSelected(item);\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if(item.getItemId()==android.R.id.home){\n super.onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n return false;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n //Back arrow\n case android.R.id.home:\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // android.R.id.home是Android内置home按钮的id\n finish();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n this.onBackPressed();\n return false;\n }\n return false;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n int id = item.getItemId();\n\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n\r\n case android.R.id.home:\r\n /*Intent i= new Intent(getApplication(), MainActivity.class);\r\n i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);\r\n startActivity(i);*/\r\n onBackPressed();\r\n finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case android.R.id.home:\n this.finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Pass the event to ActionBarDrawerToggle, if it returns\n // true, then it has handled the app icon touch event\n if (mDrawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n\n // Handle your other action bar items...\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n NavUtils.navigateUpFromSameTask(getActivity());\n return true;\n case R.id.action_settings:\n Intent i = new Intent(getActivity(), SettingsActivity.class);\n startActivity(i);\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n //Fixes the Up Button\n if(id == android.R.id.home) {\n BuildRoute.this.finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()){\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return true;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if (id == android.R.id.home) {\n NavUtils.navigateUpFromSameTask(this);\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n break;\r\n }\r\n return true;\r\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif (item.getItemId() == android.R.id.home) {\n\t\t\tfinish();\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n onBackPressed();\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if ( id == android.R.id.home ) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.home) {\r\n NavUtils.navigateUpFromSameTask(this);\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_about) {\r\n AboutDialog();\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_exit) {\r\n finish();\r\n return true;\r\n }\r\n\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n//noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n// finish the activity\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item)\n {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if( id == android.R.id.home ) // Back button of the actionbar\n {\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\t\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\t\tswitch (item.getItemId()) {\r\n\t\t\tcase android.R.id.home:\r\n\t\t\t\tfinish();\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\treturn super.onOptionsItemSelected(item);\r\n\t\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n return true;\n }\n return false;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if(id == android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n if (item.getItemId() == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\r\n\t\tcase android.R.id.home:\r\n\t\t\tsetResult(RESULT_OK, getIntent());\r\n\t\t\tfinish();\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n\n case android.R.id.home:\n this.finish();\n return true;\n }\n return true;\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tint id = item.getItemId();\n\t\tif (id == android.R.id.home) {\n\t\t\tfinish();\n\t\t\treturn true;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if (id == android.R.id.home) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n //NavUtils.navigateUpFromSameTask(this);\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // todo: goto back activity from here\n finish();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n // Handle item selection\r\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n return true;\r\n\r\n case me.cchiang.lookforthings.R.id.action_sample:\r\n// Snackbar.make(parent_view, item.getTitle() + \" Clicked \", Snackbar.LENGTH_SHORT).show();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tcase R.id.scan_menu:\n\t\t\tonScan();\n\t\t\tbreak;\n\t\tcase R.id.opt_about:\n\t\t\t//onAbout();\n\t\t\tbreak;\n\t\tcase R.id.opt_exit:\n\t\t\tfinish();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t\treturn true;\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n super.onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(@NonNull MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n finish();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if(id==android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\r\n\t switch (item.getItemId()) {\r\n\t \t// back to previous page\r\n\t case android.R.id.home:\r\n\t finish();\r\n\t return true;\r\n\t }\r\n\t return super.onOptionsItemSelected(item);\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId())\n {\n case android.R.id.home:\n this.finish();\n return (true);\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case R.id.home:{\n NavUtils.navigateUpFromSameTask(this);\n return true;\n }\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n switch(item.getItemId())\n {\n case android.R.id.home:\n super.onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\treturn true;\n\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n\r\n int id = item.getItemId();\r\n if(id==android.R.id.home){\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }" ]
[ "0.79041183", "0.7805934", "0.77659106", "0.7727251", "0.7631684", "0.7621701", "0.75839096", "0.75300384", "0.74873656", "0.7458051", "0.7458051", "0.7438486", "0.742157", "0.7403794", "0.7391802", "0.73870087", "0.7379108", "0.7370295", "0.7362194", "0.7355759", "0.73454577", "0.734109", "0.73295504", "0.7327726", "0.73259085", "0.73188347", "0.731648", "0.73134047", "0.7303978", "0.7303978", "0.7301588", "0.7298084", "0.72932935", "0.7286338", "0.7283324", "0.72808945", "0.72785115", "0.72597474", "0.72597474", "0.72597474", "0.725962", "0.7259136", "0.7249966", "0.7224023", "0.721937", "0.7216621", "0.72045326", "0.7200649", "0.71991026", "0.71923256", "0.71851367", "0.7176769", "0.7168457", "0.71675026", "0.7153402", "0.71533287", "0.71352696", "0.71350807", "0.71350807", "0.7129153", "0.7128639", "0.7124181", "0.7123387", "0.7122983", "0.71220255", "0.711715", "0.711715", "0.711715", "0.711715", "0.7117043", "0.71169263", "0.7116624", "0.71149373", "0.71123946", "0.7109806", "0.7108778", "0.710536", "0.7098968", "0.70981944", "0.7095771", "0.7093572", "0.7093572", "0.70862055", "0.7082207", "0.70808214", "0.7080366", "0.7073644", "0.7068183", "0.706161", "0.7060019", "0.70598614", "0.7051272", "0.70374316", "0.70374316", "0.7035865", "0.70352185", "0.70352185", "0.7031749", "0.703084", "0.7029517", "0.7018633" ]
0.0
-1
Below method will not work if any number is repeating odd time The key to solve this problem is bit manipulation. XOR will return 1 only on two different bits. So if two numbers are the same, XOR will return 0. Finally only one number left.
public static int singleNumber(int[] A) { int x = 0; for (int a : A) { x = x ^ a; } return x; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int singleNumber2(int[] nums) {\n int res = 0;\n for (int num : nums) {\n res ^= num;\n }\n return res;\n }", "public static int singleNumberXOR(int[] nums) {\n\n int i = 0;\n for (int num : nums) {\n i ^= num;\n }\n\n return i;\n }", "static void findRepeating(int A[]) {\n int xor = 0;\n for (int i = 0; i < A.length; i++) {\n System.out.println(A[i]+ \" \"+ ((1 << A[i])));\n xor ^= (1 << A[i]);\n }\n System.out.println(\" xor \"+xor);\n\n System.out.println(\"The odd occurring elements are: \");\n for (int i = 0; i < A.length; i++) {\n if ((xor & (1 << A[i])) > 0) {\n System.out.printf(\"%d \", A[i]);\n xor ^= (1 << A[i]); // to avoid printing duplicates\n }\n }\n }", "public int singleNumber(int[] nums) {\n int bit = 0;\n for (int i : nums) {\n bit ^= i;\n System.out.println(bit);\n }\n return bit;\n }", "public static void findNumberOccurringOddTimes() {\n int arr[] = {1, 1, 2, 2, 3, 3, 3};\n int result = 0;\n for (int num : arr)\n result ^= num;\n System.out.println(\"Odd times occurring number : \" + result);\n }", "public static int singleNumber2(int[] nums) {\n int result = 0;\n for (int i : nums) result ^= i;\n return result;\n }", "private static int xorOperation(int n, int start) {\n\t\tint num = start;\n\t\tint ans = start;\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tnum = start + 2*i;\n\t\t\tans = ans^num;\n\t\t}\n\t\treturn ans;\n\t}", "static int getMissingNo (int a[], int n) \n { \n int x1 = a[0]; \n int x2 = 1; \n \n for (int i = 1; i <= n; i++) {\n if(i != n)\n x1 = x1 ^ a[i]; \n x2 = x2 ^ (i+1); \n \n }\n System.out.println(\"x2 :\"+x2);\n return (x1 ^ x2); \n \n /* //For xor of all the elements \n //in array \n for (int i = 1; i < n; i++) {\n \n System.out.print(x1+\" ^ \"+a[i]);\n x1 = x1 ^ a[i]; \n System.out.println(\"=\"+x1);\n \n }\n System.out.println(\"x1 :\"+x1);\n System.out.println(\"==\");\n //For xor of all the elements \n // from 1 to n+1 \n for (int i = 2; i <= n+1; i++) {\n \tSystem.out.print(x2+\" ^ \"+i);\n x2 = x2 ^ i; \n System.out.println(\"=\"+x2);\n }\n \n System.out.println(\"x2 :\"+x2);\n return (x1 ^ x2); */\n }", "public int singleNumber(int[] nums) {\n int result = 0;\n for (int i = 0; i < nums.length; i++) {\n result ^= nums[i];\n }\n return result;\n }", "public int singleNumber(int[] nums) {\n int ans = 0;\n for (int num : nums) {\n ans ^= num;\n }\n return ans;\n }", "static void findTwoMissingNumber(int a[]) {\n int miss1 = 0;\n int miss2;\n int miss1miss2 = 0;\n\n int size = a.length;\n for (int i = 0; i < size; i++) {\n miss1miss2 ^= ((i + 1) ^ a[i]);\n }\n\n miss1miss2 ^= (size + 1);\n miss1miss2 ^= (size + 2);\n\n int diff = miss1miss2 & (-miss1miss2);\n\n for (int i = 0; i < size; i++) {\n if (((i + 1) & diff) > 0)\n miss1 ^= (i + 1);\n\n if ((a[i] & diff) > 0)\n miss1 ^= a[i];\n }\n\n if (((size + 1) ^ diff) > 0)\n miss1 ^= (size + 1);\n\n if (((size + 2) ^ diff) > 0)\n miss1 ^= (size + 2);\n\n miss2 = miss1miss2 ^ miss1;\n\n System.out.println(miss1);\n System.out.println(miss2);\n }", "public int missingNumber(int[] nums) {\n \n int result = 0;\n \n for(int i = 0; i < nums.length; i++){\n //to make for loop goes continuously, we put XOR nums.length after the loop \n result ^= nums[i] ^ i;\n }\n \n //we do XOR nums.length(i.e. n) now\n \n return result^nums.length;\n }", "static int findOneMissingNumber(int a[]) {\n int number = 0;\n int size = a.length;\n for (int i = 0; i < size; i++)\n number ^= ((i + 1) ^ a[i]);\n number ^= (size + 1);\n return number;\n }", "public static long xor(long a, long b) {\n\t\treturn a ^ b;\n\t}", "public int singleNumber_k2_p1(int[] A) {\n int x1 = 0;\n\n for (int i : A) {\n x1 ^= i;\n }\n\n return x1;\n }", "bool isEven(int n)\r\n{\n\tif (n ^ 1 == n + 1)\r\n\t\treturn true;\r\n\telse\r\n\t\treturn false;\r\n}", "public bit xor(bit other)\n\t{\n\t\tbit xorBit = new bit();\n\t\t\n\t\tif(bitHolder.getValue() == other.getValue())\n\t\t{\n\t\t\txorBit.setValue(0);\n\t\t}else\n\t\t{\n\t\t\txorBit.setValue(1);\n\t\t}\n\t\t\n\t\treturn xorBit;\n\t}", "public int singleNumber(int[] nums) {\n\t\tint ones = 0, twos = 0;\n\t\tfor (int n : nums) {\n\t\t\tones = (ones ^ n) & ~twos;\n\t\t\ttwos = (twos ^ n) & ~ones;\n\t\t}\n\t\treturn ones;\n\t}", "public int missingNumber(int[] nums) {\n\n int result = 0;\n\n for (int i = 1; i <= nums.length; i++) {\n result = result ^ i;\n }\n\n for (int i = 0; i < nums.length; i++) {\n result = result ^ nums[i];\n }\n\n return result;\n }", "public int singleNumber1(int[] nums) {\n\t\tif(nums == null || nums.length == 0) return 0;\n\t \n\t int n = nums.length;\n\t int ans = 0;\n\t for(int i=0; i<n; i++) {\n\t ans ^= nums[i];\n\t System.out.println(ans);\n\t }\n\t \n\t return ans;\n }", "int xnor(int num1, int num2)\n {\n return ~((num1 | num2) & ~(num1 & num2));\n }", "public int singleNumber(int[] nums) {\n if (nums == null || nums.length == 0)\n return 0;\n int rst = nums[0];\n for (int i = 1; i < nums.length; i++)\n rst ^= nums[i];\n return rst;\n }", "public static void main(String[] args) {\n\t\t\r\n\t\tint[] a = {1,2,4,1,2};//4 = 100, 1 = 001{1^0 =1, 0^0=0, 0^1=1, 1^1=0}\r\n\t\tint result = a[0];\r\n\t\tfor(int i =1; i<a.length;i++)\r\n\t\t{\r\n\t\t\tresult=result^a[i];\r\n\t\t}\r\n\t\tSystem.out.println(\"single repeated elements is: \"+result);\r\n\t}", "public int singleNumber(final List<Integer> A) {\n int a=0, b=0;\n for(int i=0;i<A.size();i++){\n int n = (a & ~A.get(i)) | (b & A.get(i));\n b = (b & ~A.get(i)) | (~a & ~b & A.get(i));\n a = n;\n }\n return a|b;\n }", "public static int method3(int temp[]) {\r\n\t\tint res = 0;\r\n\t\tfor (int i = 0; i < temp.length; i++) {\r\n\t\t\tres = res ^ temp[i];\r\n\t\t}\r\n\t\treturn res;\r\n\t}", "@Override\n public int findMissingNumber(int[] nums) {\n if (nums == null || nums.length == 0) {\n return 0;\n }\n int n = nums.length;\n int xor = n;\n for (int i = n - 1; i > 0; i--) {\n xor ^= i;\n }\n for (int i = 0; i < n; i++) {\n xor ^= nums[i];\n }\n return xor;\n }", "public int get_odd_occurences_optimal_v2(int[] a) {\n\t\tint result = 0;\n\t\tfor (int i = 0; i < a.length; i++) {\n\t\t\tresult ^= i;\n\t\t}\n\t\treturn result;\n\t}", "private static int xorShift(int r) {\n r ^= r << 1;\n r ^= r >>> 3;\n r ^= r << 10;\n return r;\n }", "static int missingNumber(int[] nums) {\n int ret = 0;\n for(int i = 0; i < nums.length; i++) {\n ret ^= i;\n ret ^= nums[i];\n }\n return ret^=nums.length;\n }", "public int[] singleNumberIII(int[] nums) {\n int bit = 0;\n for (int i : nums) {\n bit ^= i;\n }\n bit &= -bit;\n int[] ans = new int[2];\n for (int i : nums) {\n if ((i & bit) == 0) ans[0] ^= i;\n else ans[1] ^= i;\n }\n return ans;\n }", "@Test\n public void calculationOfNoRedundantBitsIsCorrect() {\n final int length = 10;\n final int expectedNoRedundantBits = 5;\n\n // When performing calculation of noRedundantBits\n final int noRedundantBits = HammingAlgorithm.calculateNoRedundantBits(length);\n\n // Then check if noRedundantBits is as expected\n assertThat(noRedundantBits).isEqualTo(expectedNoRedundantBits);\n }", "private static int calculateParity(long hash) {\n int parity = 0;\n for (int i = 0; i < 64; i += 2) {\n parity += (hash & 0x3);\n hash >>= 2;\n }\n return (parity & 0x3);\n }", "public static String xor(String firstInput, String secondInput) { \n StringBuilder result = new StringBuilder();\n\n for (int i = 0; i < firstInput.length(); i++) {\n if (firstInput.charAt(i) == secondInput.charAt(i)) {\n result.append(\"0\");\n } else {\n result.append(\"1\");\n }\n }\n\n return result.toString();\n }", "public static int missingNumberBitManipulation(int[] nums) {\n if (nums == null || nums.length == 0) return -1;\n\n int missing = nums.length;\n for (int i = 0; i < nums.length; i++) {\n missing ^= i ^ nums[i];\n }\n return missing;\n }", "boolean isOddOrEven(int n){\n return (n & 1) == 0;\n }", "public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int n = in.nextInt();\n int lonelyNumber = 0;\n int a[] = new int[n];\n for(int a_i=0; a_i < n; a_i++){\n a[a_i] = in.nextInt();\n }\n \n for (int index = 0; index < a.length; index++) {\n lonelyNumber ^= a[index];\n }\n \n System.out.println(lonelyNumber);\n }", "public static int getSum(int a, int b) {\n// Integer.toBinaryString(a) ^ Integer.toBinaryString(b);\n return a ^ b;\n }", "private void swapUsingXOR() {\n int x = 5;\n int y = 5;\n System.out.println(\"swapUsingXOR : Input x \" + x);\n System.out.println(\"swapUsingXOR : Input y \" + y);\n // Code to swap 'x' (1010) and\n //\t\t\t\t'y' (0101)\n x = x ^ y; // x now becomes 15 (1111)\n y = x ^ y; // y becomes 10 (1010)\n x = x ^ y; // x becomes 5 (0101)\n\n System.out.println(\"swapUsingXOR : Output x \" + x);\n System.out.println(\"swapUsingXOR : Output x \" + y);\n }", "public int singleNumberII(int[] nums) {\n int ans = 0;\n for (int i = 0; i < 32; i++) {\n int sum = 0;\n for (int j = 0; j < nums.length; j++) {\n if (((nums[j] >> i) & 1) == 1) {\n sum ++;\n sum %= 3;\n }\n }\n if (sum != 0) {\n ans |= sum << i;\n }\n }\n return ans;\n }", "public static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint n = 4;\n\t\tint numList[] = {2, 5, 3, 3};\n\t\tint oddnumList[] = new int[2];\n\t\t\n\t\tHashMap <Integer, Integer> oddnumCntMap = new HashMap <Integer, Integer> ();\n\t\tint oddnumCnt = 1;\n\t\tfor (int i=0; i<numList.length; i++) {\n\t\t\tif (oddnumCntMap.containsKey(numList[i])) {\n\t\t\t\toddnumCnt = oddnumCntMap.get(numList[i])+1;\n\t\t\t}\n\t\t\toddnumCntMap.put(numList[i], oddnumCnt);\n\t\t}\n\t\n\t\tint idx = 0;\n\t\tfor (Integer numCK : oddnumCntMap.keySet()) {\n\t\t\tif (oddnumCntMap.get(numCK)%3==1) {\n\t\t\t\toddnumList[idx++] = numCK;\n\t\t\t}\n\t\t}\n\t\t\n\t\tint xor_result = oddnumList[0] ^ oddnumList[1];\n\t\t\n\t\tSystem.out.println(\"XOR결과--->\"+xor_result);\n\t}", "private static int xorShift(int r) {\n r ^= (r << 13);\n r ^= (r >>> 17);\n return r ^ (r << 5);\n }", "public int checkOddOccurences( int[] A ){\n\tfor (int i=0;i<A.length;i++){\n\t\tint z=0;\n\t\tfor (int j=0;j<A.length;j++){\n\t\t\tif (i != j){\n\t\t\t\tif (A[i]==A[j]){\n\t\t\t\t\tz++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (z==0){\n\t\t\treturn A[i];\n\t\t}\n\t}\n }", "public static int countOne(int number) {\r\n\t\tint count = 0;\r\n\t\tfor (int i = 0; i < 32; i++) {\r\n\t\t\tif ((number & 1) == 1) {\r\n\t\t\t\tcount++;\r\n\t\t\t}\r\n\t\t\tnumber = number >>> 1;\r\n\t\t}\r\n\t\treturn count;\r\n\t}", "static int countXorPair(int[] arr, int n)\n {\n // To store count of odd and even numbers\n int odd = 0, even = 0;\n\n for (int i = 0; i < n; i++) {\n // Increase even if number is even otherwise increase odd\n if (arr[i] % 2 == 0)\n even++;\n else\n odd++;\n }\n\n // Return number of pairs\n return odd * even;\n }", "public Object visitBitwiseXorExpression(GNode n) {\n Object a, b, result;\n \n nonboolean = true;\n \n dostring = true;\n \n a = dispatch(n.getGeneric(0));\n b = dispatch(n.getGeneric(1));\n \n dostring = false;\n \n if (a instanceof Long && b instanceof Long) {\n result = (Long) a ^ (Long) b;\n }\n else {\n result = parens(a) + \" ^ \" + parens(b);\n }\n \n return result;\n }", "private static int findMissingNumber( int[] a, int n) {\n int result = 0;\n for(int i=1; i<(n+1)+1; i++) {\n result = result ^ i;\n }\n for(int i=0; i<a.length; i++) {\n result = result ^ a[i];\n }\n return result;\n }", "public static int lonelyInteger(int[] array)\n {\n int result = 0;\n \n for (int val : array)\n {\n // because there is only 1, xor will produce the unique result. \n result ^= val;\n }\n \n return result;\n }", "private static synchronized int nextMask() {\n return (int) Math.pow(2, maskCount++);\n }", "public int solution(int[] A) {\n int mid = A.length/2, res =0;\n for (int i = 0, j = mid+1; i < mid ; i++,j++)\n\t\t\t\tres = res ^ (A[i] ^ A[j]);\n\t\treturn res ^ A[mid];\n }", "int odd_palindrome(int head) {\n\t\tint tail=0;\n\t\tint exp=1; //10 exponent number\n\t\tfor(int r=head/10; r>0; r/=10) {\n\t\t\tint d = r%10;\n\t\t\ttail=tail*10+d;\n\t\t\texp *= 10;\n\t\t}\n\t\treturn head * exp + tail;\n\t}", "public static void main(String[] args) {\n\t\tScanner input = new Scanner(System.in);\r\n\t\tint a = input.nextInt();\r\n\t\tint b = input.nextInt();\r\n\t\tint num = a ^ b;\r\n\t\tint count = 0;\r\n\t\twhile(num != 0) {\r\n\t\t\tcount++;\r\n\t\t\tnum = (num - 1) & num;\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(count);\r\n\t}", "public static int findSingleNumber(int[] nums) {\r\n\t\tint answer = 0;\r\n\t\tfor (int c = 0; c < nums.length; c++) {\r\n\t\t\tanswer ^= nums[c];\r\n\t\t\tSystem.out.println(answer);\r\n\t\t}\r\n\t\treturn answer;\r\n\t}", "private int nextPowerOf2(int n)\n {\n if (n > 0 && (n & (n - 1)) == 0)\n return n;\n \n int count = 0;\n for (;n != 0; n = n >> 1)\n count += 1;\n \n return 1 << count;\n }", "private static int[] szyfrujXOR(String str, String key) {\n int[] output = new int[str.length()];\n for(int i = 0; i < str.length(); i++) {\n int o = (Integer.valueOf(str.charAt(i)) ^ Integer.valueOf(key.charAt(i % (key.length() - 1)))) + '0';\n output[i] = o;\n }\n return output; \n }", "public static int nextPowerOfTwo(int x) {\n if (x == 0) return 1;\n x--;\n x |= x >> 1;\n x |= x >> 2;\n x |= x >> 4;\n x |= x >> 8;\n return (x | x >> 16) + 1;\n }", "public int findRepeatNumber(int[] nums) {\n for(int i = 0;i<nums.length;i++){\n while(nums[i]!=i){\n if(nums[i]==nums[nums[i]]) {\n return nums[i];\n }\n else{\n int tmp = nums[nums[i]];\n nums[nums[i]] = nums[i];\n nums[i]= tmp;\n }\n }\n }\n return -1;\n }", "public String xor(String a, String b){\n\t\tint a_int = Integer.parseInt(a,2);\n\t\tint b_int = Integer.parseInt(b,2);\n\t\tint resXor = (a_int^b_int);\n\t\treturn completeBytes(\"\"+Integer.toBinaryString(resXor), a.length());\n\t}", "int equalPairOfBits(int n, int m) {\n return ((BinaryOperator<Integer>) (a, b) -> {\n String one = Integer.toBinaryString(a);\n String two = Integer.toBinaryString(b);\n //FUCK YO SHIT, THIS IS STUPID\n int max = Math.max(one.length(), two.length());\n if (max != one.length())\n one = IntStream.range(0, max - one.length())\n .mapToObj(aq -> \"0\")\n .reduce(\"\", (r, c) -> r + c) + one;\n if (max != two.length())\n two = IntStream.range(0, max - two.length())\n .mapToObj(aq -> \"0\")\n .reduce(\"\", (r, c) -> r + c) + two;\n for (int i = max - 1, j = 0; i > -1; --i, j++) {\n if (one.charAt(i) == two.charAt(i))\n return (int) Math.pow(2, j);\n }\n return 0;\n }).apply(n, m);\n }", "public PerformOperation isOdd() {\n return n -> ((n & 1) == 1);\n }", "public int get_odd_occurences_brute_force(int[] a) {\n\t\tint count = 0;\n\t\tfor (int i = 0; i < a.length; i++) {\n\t\t\tfor (int j = 0; j < a.length; j++) {\n\t\t\t\tif (a[i] == a[j]) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tif (count % 2 != 0)\n\t\t\t\treturn a[i];\n\t\t}\n\t\treturn -1;\n\t}", "private static int longestConsecutiveSetBit(int num){\n int c= 0;\n int l =0;\n while(num >0){\n if((num & 1) == 0){\n if(c>l){\n l =c;\n }\n c= 0;\n }else {\n c += (num & 1);\n\n }\n num >>=1;\n }\n if(c>l){\n return c;\n }\n return l;\n }", "static int[] xor(int[] s1, int[] s2) {\n int[] array = new int[s1.length];\n for (int i = 0; i < s1.length; i++) {\n array[i] = s1[i] ^ s2[i];\n }\n return array;\n }", "@Override\n\tpublic void visit(BitwiseXor arg0) {\n\t\t\n\t}", "public static int[] findSingleNumbers(int[] nums) {\n int n1xn2 = 0;\n for (int num : nums) {\n n1xn2 ^= num;\n }\n\n // get the rightmost bit that is '1'\n int rightmostSetBit = 1;\n while ((rightmostSetBit & n1xn2) == 0) {\n rightmostSetBit = rightmostSetBit << 1;\n }\n int num1 = 0, num2 = 0;\n for (int num : nums) {\n if ((num & rightmostSetBit) != 0) // the bit is set\n num1 ^= num;\n else // the bit is not set\n num2 ^= num;\n }\n return new int[] { num1, num2 };\n }", "public static int singleNumber(int[] nums){\n\t\t\n\t\tint ones=0, twos=0, threes=0;\n\t\tfor(int i : nums)\n\t\t{\n\t\t\tSystem.out.println(i);\n\t\t\ttwos |= ones & i;\n\t\t\tones ^= i;\n\t\t\tthrees = ones & twos;\n\t\t\t\n\t\t\tSystem.out.println(\"ones: \" + ones + \" twos: \" + twos + \" threes:\" + threes);\n\t\t\t\n\t\t\tones &= ~threes;\n\t\t\ttwos &= ~threes;\n\t\t\tSystem.out.println(\"ones: \" + ones + \" twos: \" + twos + \" threes:\" + threes);\n\t\t\t\n\t\t}\n\t\t\n\t\treturn ones;\n\t\t\n\t}", "public int findRepeatNumber2(int[] nums) {\n for (int i = 0; i < nums.length; i++) {\n while (nums[i] != i){\n //check if the num[i] == num[num[i]], if yes return, if not swap it\n int temp = nums[i];\n if (nums[i] == nums[nums[i]]){\n return nums[i];\n }\n //swap\n nums[i] = nums[temp];\n nums[temp] = temp;\n }\n }\n return 0;\n }", "public static void main(String[] args) {\n\n\t\tint[] a = { 2, 3, 5, 6, 5, 3, 6, 2, 1 };\n\t\tint res = a[0];\n\n\t\tfor (int i = 1; i <= a.length - 1; i++)\n\n\t\t{\n\t\t\tres = res ^ a[i]; // xor -bitwise operator\n\t\t}\n\n\t\tSystem.out.println(res);\n\n\t}", "public short computeParityOfWord(long word) {\n short first = (short)word;\n short second = (short)(word >>= 16);\n short third = (short)(word >>= 16);\n short fourth = (short)(word >> 16);\n\n return (short)((parityMap.get(first) +\n parityMap.get(second) +\n parityMap.get(third) +\n parityMap.get(fourth)) %\n 2);\n }", "public static long nextPowerOfTwo(long x) {\n if (x == 0) return 1;\n x--;\n x |= x >> 1;\n x |= x >> 2;\n x |= x >> 4;\n x |= x >> 8;\n x |= x >> 16;\n return (x | x >> 32) + 1;\n }", "@Override\n\tpublic void visit(BitwiseXor arg0) {\n\n\t}", "public static byte setOddParityByte(byte b) {\r\n\t\tif ((countOnes(b) % 2) == 0) {\r\n\t\t\t// even number of 1's => invert least significant bit\r\n\t\t\tb ^= 0x01;\r\n\t\t}\r\n\t\treturn b;\r\n\t}", "public final void ruleAstExpressionBitxor() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:1531:2: ( ( ( rule__AstExpressionBitxor__Group__0 ) ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:1532:1: ( ( rule__AstExpressionBitxor__Group__0 ) )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:1532:1: ( ( rule__AstExpressionBitxor__Group__0 ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:1533:1: ( rule__AstExpressionBitxor__Group__0 )\n {\n before(grammarAccess.getAstExpressionBitxorAccess().getGroup()); \n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:1534:1: ( rule__AstExpressionBitxor__Group__0 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:1534:2: rule__AstExpressionBitxor__Group__0\n {\n pushFollow(FOLLOW_rule__AstExpressionBitxor__Group__0_in_ruleAstExpressionBitxor3216);\n rule__AstExpressionBitxor__Group__0();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getAstExpressionBitxorAccess().getGroup()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "private boolean isPowerOfTwo(int x) {\n return (x & (x - 1)) == 0;\n }", "public final void rule__AstExpressionBitxor__Group_1__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:17467:1: ( ( ( rule__AstExpressionBitxor__RightAssignment_1_2 ) ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:17468:1: ( ( rule__AstExpressionBitxor__RightAssignment_1_2 ) )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:17468:1: ( ( rule__AstExpressionBitxor__RightAssignment_1_2 ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:17469:1: ( rule__AstExpressionBitxor__RightAssignment_1_2 )\n {\n before(grammarAccess.getAstExpressionBitxorAccess().getRightAssignment_1_2()); \n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:17470:1: ( rule__AstExpressionBitxor__RightAssignment_1_2 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:17470:2: rule__AstExpressionBitxor__RightAssignment_1_2\n {\n pushFollow(FOLLOW_rule__AstExpressionBitxor__RightAssignment_1_2_in_rule__AstExpressionBitxor__Group_1__2__Impl35157);\n rule__AstExpressionBitxor__RightAssignment_1_2();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getAstExpressionBitxorAccess().getRightAssignment_1_2()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public void xor(FormatableBitSet otherBit)\n \t{\n \t\tif (otherBit == null) {\n \t\t\treturn;\n \t\t}\n \t\tint otherLength = otherBit.getLength();\n \t\tif (otherLength > getLength()) {\n \t\t\tgrow(otherLength);\n \t\t}\n \n \t\tint obByteLen = otherBit.getLengthInBytes();\n \t\tfor (int i = 0; i < obByteLen; ++i) {\n \t\t\tvalue[i] ^= otherBit.value[i];\n \t\t}\n \t\tif (SanityManager.DEBUG) {\n \t\t\tSanityManager.ASSERT(invariantHolds(),\"xor() broke invariant\");\n \t\t}\n \t}", "public static void xor(ImageProcessor input, ImageProcessor output) {\r\n\t\tfor (int x = 0; x < output.getWidth(); x++) {\r\n\t\t\tfor (int y = 0; y < output.getHeight(); y++) {\r\n\t\t\t\tboolean a = input.get(x, y) > 127;\r\n\t\t\t\tboolean b = output.get(x, y) > 127;\r\n\t\t\t\tboolean aXORb = (a && !b) || (!a && b);\r\n\t\t\t\toutput.set(x, y, aXORb ? WHITE : BLACK);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "static int toggleBit(int n){\n return n & (n-1);\n }", "public int get_odd_occurences_optimal_v1(int[] a) {\n\t\tHashMap<Integer, Integer> hashSet = new HashMap<>();\n\t\tfor (int i = 0; i < a.length; i++) {\n\t\t\tif (hashSet.containsKey(a[i])) {\n\t\t\t\thashSet.put(a[i], hashSet.get(a[i]) + 1);\n\t\t\t} else {\n\t\t\t\thashSet.put(a[i], 1);\n\t\t\t}\n\t\t}\n\t\tfor (Integer i : hashSet.keySet()) {\n\t\t\tif (hashSet.get(i) % 2 != 0) {\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t}", "public static int calculateSyndrome1(int[] inputArray) {\n return (inputArray[0] +\n inputArray[1] +\n inputArray[2] +\n inputArray[3] +\n inputArray[4] +\n inputArray[5] +\n inputArray[6] +\n inputArray[7] +\n inputArray[8] +\n inputArray[9]) % 11;\n }", "public static int findNearestPowerofTwo(int n) {\n\t\tif ((n & n - 1) == 0) {\n return n;\n }\n int a = 1;\n while (a < n) {\n a = a << 1;\n }\n\n\n return a >> 1;\n\t}", "private int Sum0(int x) {\n int a = ROTR(2, x);\n int b = ROTR(13, x);\n int c = ROTR(22, x);\n int ret = a ^ b ^ c;\n return ret;\n }", "public void missingNumberEfficient2(int[] array, int n) {\n\t\t\n\t\tint X = 0;\n\t\tint Y = 0;\n\t\t\n\t\tfor(int i = 0; i < array.length; i++) {\n\t\t\tX ^= array[i];\n\t\t}\n\t\t\n\t\tfor(int i = 1; i <= n; i++) {\n\t\t\tY ^= i;\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Missing Number is : \" + (X ^ Y));\n\t}", "public static int singleNumber(int[] nums, int k) {\n int len = nums.length, result = 0;\n int[] countBits = new int[32];\n\n for (int i = 0; i < 32; i++) {\n for (int j = 0; j < len; j++) {\n // if the bit position at i is set, we increment countBits[i] by 1.\n if (((nums[j] >> i) & 1) == 1)\n countBits[i]++;\n }\n\n result |= ((countBits[i] % k) << i);\n }\n return result;\n }", "int nextBits(int bits);", "int getNibble(int num, int which)\n {\n return 0b1111 & num >> (which << 2);\n }", "public int[] exclusive_or(int[] array1, int[] array2) {\n int L = array1.length;\n int R = array2.length;\n int[] r_array = new int[L];\n int[] e_array = { -4, -4, -4, -4 }; // -4 dient der Fehlererkennung\n\n if (L == R && L > 0) {\n for (int i = 0; i < L; i++) {\n r_array[i] = array1[i] ^ array2[i];\n }\n return r_array;\n } else\n return e_array;\n }", "boolean multipleOf2(int num)\n {\n return (num & 0b1) != 1;\n }", "public static void main(String[] args) {\n\t\tint a[]= {2,3,4,5,6,5,4,3,2};\r\n\t\tfor(int i:a) {\r\n \t\t\tSystem.out.print(\" \"+i);\r\n \t\t}\r\n \t\tSystem.out.println();\r\n \t\tSystem.out.print(\"Missing number \");\r\n \t\tint single=a[0];\r\n \t\tfor(int i=1;i<a.length;i++) {\r\n \t\t single=single^a[i];\r\n \t\t}\r\n \t\tSystem.out.print(single);\r\n \t\t\r\n \r\n\t}", "private static int getNext(int n) {\n int temp = n;\n int c0 = 0, c1 = 0;\n\n while ((temp & 1) == 0 && temp != 0) {\n c0++;\n temp >>= 1;\n }\n\n while ((temp & 1) == 1) {\n c1++;\n temp >>= 1;\n }\n\n if (c0 + c1 == 31 || c0 + c1 == 0 /*temp == 0*/) return -1;\n n |= (1 << (c0 + c1)); // flip the first non-trailing zero to one\n n &= ~((1 << (c0 + c1)) - 1); // set all trailing bits to zero\n n |= (1 << (c1 - 1) ) - 1; //\n return n;\n }", "public static int calculateSyndrome2(int[] inputArray) {\n return (inputArray[0] +\n 2 * inputArray[1] +\n 3 * inputArray[2] +\n 4 * inputArray[3] +\n 5 * inputArray[4] +\n 6 * inputArray[5] +\n 7 * inputArray[6] +\n 8 * inputArray[7] +\n 9 * inputArray[8] +\n 10 * inputArray[9]) % 11;\n }", "public boolean solution(int[] bits) {\n int length = bits.length ;\n if(bits[length - 1] == 1){\n return false;\n }\n int index =0;\n boolean flag = true;\n while(index < length){\n if(bits[index] == 0){\n index +=1 ;\n flag = true;\n }else{\n index +=2 ;\n flag = false;\n }\n }\n return flag;\n }", "public static int[] receive(int a[], int parity_count) {\n\n int power;\n // We shall use the value stored in 'power' to find the correct bits to check for parity.\n\n int parity[] = new int[parity_count];\n // 'parity' array will store the values of the parity checks.\n\n String syndrome = new String();\n // 'syndrome' string will be used to store the integer value of error location.\n\n for (power = 0; power < parity_count; power++) {\n // We need to check the parities, the same no of times as the no of parity bits added.\n\n for (int i = 0; i < a.length; i++) {\n // Extracting the bit from 2^(power):\n\n int k = i + 1;\n String s = Integer.toBinaryString(k);\n int bit = ((Integer.parseInt(s)) / ((int) Math.pow(10, power))) % 10;\n if (bit == 1) {\n if (a[i] == 1) {\n parity[power] = (parity[power] + 1) % 2;\n }\n }\n }\n syndrome = parity[power] + syndrome;\n }\n // This gives us the parity check equation values.\n // Using these values, we will now check if there is a single bit error and then correct it.\n\n int error_location = Integer.parseInt(syndrome, 2);\n if (error_location != 0) {\n System.out.println(\"Error is at location \" + error_location + \".\");\n a[error_location - 1] = (a[error_location - 1] + 1) % 2;\n System.out.println(\"Corrected code is:\");\n for (int i = 0; i < a.length; i++) {\n System.out.print(a[a.length - i - 1]);\n }\n System.out.println();\n } \n\n // Finally, we shall extract the original data from the received (and corrected) code:\n power = parity_count - 1;\n int count = a.length-parity_count-1;\n int[] returnArray = new int[count+1];\n for (int i = a.length; i > 0; i--) {\n if (Math.pow(2, power) != i) {\n returnArray[count] = a[i - 1];\n count--;\n } else {\n power--;\n }\n }\n /*System.out.print(\"Original data sent was: \");\n for (int i : returnArray) {\n System.out.print(i);\n }\n System.out.println();*/\n return returnArray;\n }", "public final void rule__AstExpressionBitxor__OperatorAssignment_1_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:25186:1: ( ( ( '^' ) ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:25187:1: ( ( '^' ) )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:25187:1: ( ( '^' ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:25188:1: ( '^' )\n {\n before(grammarAccess.getAstExpressionBitxorAccess().getOperatorCircumflexAccentKeyword_1_1_0()); \n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:25189:1: ( '^' )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:25190:1: '^'\n {\n before(grammarAccess.getAstExpressionBitxorAccess().getOperatorCircumflexAccentKeyword_1_1_0()); \n match(input,92,FOLLOW_92_in_rule__AstExpressionBitxor__OperatorAssignment_1_150604); \n after(grammarAccess.getAstExpressionBitxorAccess().getOperatorCircumflexAccentKeyword_1_1_0()); \n\n }\n\n after(grammarAccess.getAstExpressionBitxorAccess().getOperatorCircumflexAccentKeyword_1_1_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "static boolean isPowerOfTwo(int n) \n{\n\tif (n==0) return false;\n \treturn (n & (n-1)) == 0;\n}", "static int hash(int h) {\n\t\t // This function ensures that hashCodes that differ only by constant \n\t\t // multiples at each bit position have a bounded number of collisions \n\t\t // (approximately 8 at default load factor).\n\t\th ^= (h >>> 20) ^ (h >>> 12);\n\t\treturn h ^ (h >>> 7) ^ (h >>> 4);\n\t}", "@Test\n\tvoid RepeatedNumberTest() \n\t{ int[] oneNum = new int[] {1};\n\t\tint[] twoDiffNums = new int[] {1, 2};\n\t\tint[] twoSameNums = new int[] {2, 2};\n\t\tint[] insideOut = new int[] {5, 4, 3, 2, 1, 1, 2, 3, 4, 5};\n\t\t\n\t\tassertFalse(utilities.RepeatedNumber(oneNum));\n\t\tassertFalse(utilities.RepeatedNumber(twoDiffNums));\n\t\tassertTrue(utilities.RepeatedNumber(twoSameNums));\n\t\tassertTrue(utilities.RepeatedNumber(insideOut));\n\t}", "static int toggleBit(int n, int pos){\n return n ^ (1<<pos);\n }", "public int checkPowerOfTwo(int n) {\r\n\t\tint powerOfTwo=1;\r\n\t\tif(n==0){\r\n\t\t\tpowerOfTwo=1;\r\n\t\t}\r\n\t\telse{\r\n\t\tfor(int i=0;i<n;i++){\r\n\t\t\tpowerOfTwo =powerOfTwo*2 ;\r\n\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn powerOfTwo;\r\n\t }", "static int check(int x, int a, int b) \n\t{ \n\t\t// sum of digits is 0 \n\t\tif (x == 0) \n\t\t{ \n\t\t\treturn 0; \n\t\t} \n\n\t\twhile (x > 0) \n\t\t{ \n\n\t\t\t// if any of digits in sum is \n\t\t\t// other than a and b \n\t\t\tif (x % 10 != a & x % 10 != b) \n\t\t\t{ \n\t\t\t\treturn 0; \n\t\t\t} \n\n\t\t\tx /= 10; \n\t\t} \n\n\t\treturn 1; \n\t}", "public static final int[] get_XOR(){\n\t\treturn get_AND();\n\t}" ]
[ "0.6936267", "0.69327515", "0.6883419", "0.6834304", "0.6795365", "0.6697747", "0.66747004", "0.66255915", "0.66101867", "0.6483748", "0.64601547", "0.6442926", "0.64105266", "0.6403261", "0.63604826", "0.63389796", "0.63132006", "0.6306473", "0.6304141", "0.6271335", "0.62682194", "0.6257162", "0.6256456", "0.6251572", "0.6237665", "0.6229536", "0.6201862", "0.61777073", "0.6157264", "0.61440194", "0.61058587", "0.6073117", "0.60582817", "0.6045034", "0.60126257", "0.5999541", "0.599206", "0.5988562", "0.59796476", "0.5973155", "0.5945679", "0.5917208", "0.58973277", "0.58931595", "0.5889683", "0.5867646", "0.5863205", "0.5859449", "0.58568126", "0.5845041", "0.5844636", "0.58248186", "0.5809479", "0.5803073", "0.5791604", "0.5781955", "0.5776251", "0.57754445", "0.57726514", "0.57680714", "0.576669", "0.57471204", "0.57425934", "0.57425797", "0.5696736", "0.5691667", "0.56891006", "0.56775695", "0.56774133", "0.5655611", "0.5644284", "0.5641113", "0.56405455", "0.5635249", "0.5627386", "0.5603308", "0.5601694", "0.5600242", "0.55975306", "0.5574466", "0.55698323", "0.55623513", "0.55596006", "0.55520415", "0.5547247", "0.5539656", "0.5538544", "0.5538292", "0.5516344", "0.5514405", "0.55086595", "0.54974437", "0.549009", "0.54892737", "0.5484234", "0.54824424", "0.5473877", "0.54677343", "0.546539", "0.54639435" ]
0.573807
64
The empty constructor for ProActive.newActive().
public P2PFirstContact() { // The empty constructor }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Produto() {}", "public Activator() {\r\n\t}", "private ObjActiveNotPlanned() {\n\t\tsuper(\"OBJ_ACTIVE_NOT_PLANNED\", Wetrn.WETRN);\n\n\t\t// Initialise data type\n\t\tgetDataType();\n\t}", "public ACTable() {\r\n super();\r\n }", "public Prova() {}", "public Profile() {}", "public Persona() {\n\t}", "public Instance() {\n }", "public Persona() {\n \t\n }", "public Promo(int id, String code, int discount, int minPrice, boolean active)\n {\n this.id = id;\n this.code = code;\n this.discount = discount;\n this.minPrice = minPrice;\n this.active = active;// initialise instance variables\n \n }", "public Basic() {}", "public static void setActive(profile p){\n active = p;\n }", "public Curso() {\r\n }", "public Investigator() {}", "protected IPCGCallDetailCreator()\r\n {\r\n // empty\r\n }", "public SysSkillConferpo()\n {\n }", "@DISPID(-2147417603)\n @PropGet\n com4j.Com4jObject constructor();", "public ProfileSetupActivity() {\n }", "public CustomerNew () {\n\t\tsuper();\n\t}", "public Loyalty() {}", "public static profile getActive(){\n return active;\n }", "public PromoBonusImpl() {\n }", "Reproducible newInstance();", "public Naive() {\n\n }", "public Purp() {\n }", "public BrokerAlgo() {}", "@com.exedio.cope.instrument.Generated\n\t\tprivate Target(final com.exedio.cope.ActivationParameters ap){super(ap);}", "@Ignore\n public Proba() {\n }", "public Individual()\r\n\t{\r\n\t}", "public ActiveCall(final String caller, final String callee, final Long timeStart) {\n\tsuper(caller, callee);\n\tthis.timeStart = timeStart;\n }", "public Activity() {\n }", "public TaskCurrent() {\n\t}", "public Vaccine() {\n\t}", "public PaymentDetails () {\n\t}", "public Persona() {\n }", "public CreateStatus()\n {\n super(new DataMap(), null);\n }", "public Communication(Messaging activeMQ) {\r\n\t\tSystem.out.println(\"test 2 : constructor called\");\r\n\t\tthis.activeMQ = activeMQ;\r\n\t}", "public Account(){\r\n System.out.println(\"Called of empty constructor.\");\r\n }", "public Produit() {\n\t\tsuper();\n\t}", "public PppoeSessionInfo() {\n }", "private ATCres() {\r\n // prevent to instantiate this class\r\n }", "private Instantiation(){}", "@SuppressWarnings(\"unused\")\n public NoConstructor() {\n // Empty\n }", "public Classroom() {\n\t}", "public ActiveRowMapper() {\n\t}", "public LiveConnectDemo() {\n }", "ConstructorPractice () {\n\t\tSystem.out.println(\"Default Constructor\");\n\t}", "public AETinteractions() {\r\n\t}", "defaultConstructor(){}", "public Estado() {\r\n //Constructor vacio\r\n }", "public Persona() {\n\t\t// TODO Auto-generated constructor stub\n\t}", "public MonHoc() {\n }", "public void setActive(java.lang.Boolean active) {\n this.active = active;\n }", "public Identity() {\n\n\t}", "public Odi11AgentImpl() {\n }", "public Livro() {\n\n\t}", "public void setActive() {\n\t\tactive = true;\n\t}", "public Produit() {\n }", "public void setActive(Boolean active) {\n\t\tthis.Active = active;\n\t}", "public QLearnAgent() {\n\t\tthis(name);\t\n\t}", "public Account() {\n // special case of the word \"this\"\n this(\"01234\", 0.00, \"Default Name\", \"Default Email\", \"Default Phone\");\n System.out.println(\"Empty constructor called\"); // only called once when instantiated.\n }", "public Status(){\n this(StatusDescription.REGISTERED);\n }", "protected Status() {\r\n\t\t;\r\n\t}", "void DefaultConstructor(){}", "public Alojamiento() {\r\n\t}", "public Excellon ()\n {}", "public Account() {\n this(null, 0);\n }", "private HYCOM() {\n }", "public AvaliacaoRisco() {\n }", "public Ctacliente() {\n\t}", "public ApplicationCreator() {\n }", "public ProPoolExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "public Subscription() {\n System.out.println(\"create new subscription\");\n }", "public void setActive(boolean active) {\r\n this.active = active;\r\n }", "public Partage() {\n }", "public ProducerPlan()\r\n\t{\r\n\t\tgetLogger().info(\"Created: \"+this);\r\n\t}", "public void setActive(boolean active) {\r\n this.active = active;\r\n }", "public Pasien() {\r\n }", "public Job() {\r\n\t\tSystem.out.println(\"Constructor\");\r\n\t}", "public Persona(){\n \n }", "public Persona(){\n \n }", "public NativePointerStateManagerImpl()\n {\n }", "public void setActiveStatus( String activeStatus ) {\n this.activeStatus = activeStatus;\n }", "public void setActiveStatus( String activeStatus ) {\n this.activeStatus = activeStatus;\n }", "private Sequence() {\n this(\"<Sequence>\", null, null);\n }", "public void setActive(boolean active) {\n this.active = active;\n }", "public void setActive(boolean active) {\n this.active = active;\n }", "public void setActive(boolean active) {\n this.active = active;\n }", "public Scoped() {\n }", "public void setActive(Boolean active) {\n this.active = active;\n }", "public TacChrtypmstVOImpl() {\n }", "public PosicionArista() {\n this(new Posicion(), OrientacionArista.Este);\n }", "public Product() {\n\t}", "public TAppAccess() {\n\t}", "Classroom() {}", "public CMObject newInstance();", "public Overview() {\n\t\t// It will work whenever i create object with using no parameter const\n\t\tSystem.out.println(\"This is constructor\");\n\t}", "protected void noActiveActivity() {\n\t\tLog.i(STARTUP, \"no active activity\");\n\t\tcancelNotification();\n\t\tcreateNotification();\n\t\tstartMainService();\t\t\n\t}", "public void setActive(boolean active)\n {\n this.active = active;\n }", "public prueba()\r\n {\r\n }" ]
[ "0.6653623", "0.61791736", "0.6158647", "0.6112363", "0.6078234", "0.58514947", "0.58454937", "0.57815886", "0.5740329", "0.5723183", "0.5720244", "0.5718118", "0.5711957", "0.57099074", "0.5700188", "0.56916016", "0.5671901", "0.5665383", "0.56534684", "0.5648817", "0.5647673", "0.5647343", "0.56439686", "0.5633912", "0.5630198", "0.5629619", "0.56285506", "0.5626526", "0.562427", "0.5621417", "0.5615661", "0.5603944", "0.5600674", "0.559275", "0.5588887", "0.5583387", "0.5574858", "0.5573305", "0.55646175", "0.5564539", "0.5563601", "0.55599123", "0.5544935", "0.5523676", "0.5520254", "0.5518855", "0.5515567", "0.5510425", "0.55083406", "0.55073357", "0.5497919", "0.54970694", "0.54947203", "0.5481172", "0.54790306", "0.5477183", "0.5474941", "0.5474448", "0.54742724", "0.5473435", "0.5473156", "0.54722726", "0.5461556", "0.54596895", "0.54594976", "0.5448869", "0.5437444", "0.5435835", "0.54346716", "0.5432986", "0.54329085", "0.5421882", "0.54193133", "0.54183155", "0.54117554", "0.5410183", "0.5406632", "0.54047173", "0.54046607", "0.5398689", "0.5398689", "0.53976774", "0.5395362", "0.5395362", "0.5394304", "0.5389496", "0.5389496", "0.5389496", "0.5389406", "0.538823", "0.53880936", "0.5386614", "0.5383552", "0.53818864", "0.53791505", "0.5378435", "0.5375045", "0.5367338", "0.53667736", "0.5365612" ]
0.54351556
68
Construct a new P2PFirstContact.
public P2PFirstContact(Vector peers, P2PAcquaintanceManager acquaintances, P2PService local) { this.peers = peers; this.acqGroup = acquaintances; this.localP2pService = local; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public P2PFirstContact() {\n // The empty constructor\n }", "private Contact createBaseContact()\n {\n Contact contact = new Contact();\n contact.setName(new Name(new LastName(\"Doe\"), new FirstName(\"John\")));\n contact.setAddress(new Address(new StreetAddress(\"123 Main St\"),\n null,\n new GeneralProperty(\"Tucson\"),\n new State(\"AZ\"),\n new Zip(\"85750\")));\n contact.setPhone(new Phone(\"(520) 123-4567\"));\n contact.setEmail(new Email(\"[email protected]\"));\n\n return contact;\n }", "public Contact() {\n\t}", "public Contact(){\n\t\t\n\t}", "public Contact(){}", "@Override\n\tpublic void openFirstContact() {\n\t\t\n\t}", "public Contact() {\n }", "public Contact() {\n }", "public Contact() {\n }", "public Contact() {\n super();\n }", "private Constructor getConstructor() throws Exception {\r\n return type.getConstructor(Contact.class, label, Format.class);\r\n }", "public Contact() {\n\t\tsuper(org.jooq.examples.sqlserver.adventureworks.person.tables.Contact.Contact);\n\t}", "public static Person fromContact(Contact contact){\n Person person = new Person();\n person.id = contact.getId();\n person.fullname = contact.getDisplaydName();\n if(contact.getNumbers().size() > 0){\n person.phone = contact.getNumbers().get(0).getNormalizedNumber();\n }\n if(contact.getEmails().size() > 0){\n person.email = contact.getEmails().get(0).getEmail();\n }\n person.photo = contact.getPhotoUri();\n return person;\n }", "com.polytech.spik.protocol.SpikMessages.Contact getContact();", "public HLCContactDetails() {\n }", "public OneToOneChat getOneToOneChat(ContactId contact) throws RcsServiceException {\n\t\tif (api != null) {\n\t\t\ttry {\n\t\t\t\treturn new OneToOneChat(api.getOneToOneChat(contact));\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new RcsServiceException(e.getMessage());\n\t\t\t}\n\t\t} else {\n\t\t\tthrow new RcsServiceNotAvailableException();\n\t\t}\n\t}", "ShipmentContactMech createShipmentContactMech();", "private ContactImpl createContactWithSupportedProperties(IVCardContactProperties contactProperties) throws MappingMissingException {\r\n ContactCreator contactCreator = new ContactCreator(this.contactTemplateModel, speedDialManager);\r\n ContactImpl createdContact = contactCreator.createContactWithProperties(contactProperties);\r\n \r\n return createdContact;\r\n }", "public Contact() {\n accumulatedNormalImpulse = 0.0;\n accumulatedTangentImpulse = 0.0;\n }", "public Contact (String fname, String sname, String id, String phone){\r\n\t\tfirstName = fname;\r\n\t\tsurname = sname;\r\n\t\tuniqueID = id;\r\n\t\tphoneNumber = phone;\r\n\t}", "private com.google.protobuf.SingleFieldBuilder<\n com.polytech.spik.protocol.SpikMessages.Contact, com.polytech.spik.protocol.SpikMessages.Contact.Builder, com.polytech.spik.protocol.SpikMessages.ContactOrBuilder> \n getContactFieldBuilder() {\n if (contactBuilder_ == null) {\n if (!(typeCase_ == 1)) {\n type_ = com.polytech.spik.protocol.SpikMessages.Contact.getDefaultInstance();\n }\n contactBuilder_ = new com.google.protobuf.SingleFieldBuilder<\n com.polytech.spik.protocol.SpikMessages.Contact, com.polytech.spik.protocol.SpikMessages.Contact.Builder, com.polytech.spik.protocol.SpikMessages.ContactOrBuilder>(\n (com.polytech.spik.protocol.SpikMessages.Contact) type_,\n getParentForChildren(),\n isClean());\n type_ = null;\n }\n typeCase_ = 1;\n return contactBuilder_;\n }", "public Contact(Parcel in){\n\n readFromParcel(in);\n\n }", "public BwContact getContact() {\n if (contact == null) {\n contact = new BwContact();\n }\n\n return contact;\n }", "public ContactInfo() {\n\n }", "public Contact getNodeContact(Node node) {\n\t\tContact contact = new Contact();\n\t\tif (node.getNodeType() == Node.ELEMENT_NODE) {\n\t\t\tElement element = (Element) node;\n\t\t\tcontact.setName(element.getElementsByTagName(INFO[1]).item(0).getTextContent());\n\t\t\tcontact.setPhone(element.getElementsByTagName(INFO[2]).item(0).getTextContent());\n\t\t}\n\t\treturn contact;\n\t}", "public com.polytech.spik.protocol.SpikMessages.Contact getContact() {\n if (typeCase_ == 1) {\n return (com.polytech.spik.protocol.SpikMessages.Contact) type_;\n }\n return com.polytech.spik.protocol.SpikMessages.Contact.getDefaultInstance();\n }", "@ApiMethod(name = \"createContact\", path = \"contact\", httpMethod = HttpMethod.POST)\n\tpublic Contact createContact(final ContactForm form) {\n\t\tfinal Key<Contact> key = Contact.allocateKey();\n\t\tContact contact = new Contact(key.getId(), form);\n\n\t\tofy().save().entity(contact).now();\n\n\t\treturn contact;\n\t}", "public OneToOneChat getOneToOneChatExt(Set<ContactId> contacts) throws RcsServiceException {\n if (api != null) {\n try {\n return new OneToOneChat(api.getOneToOneChatExt(new ArrayList<ContactId>(contacts)));\n } catch (Exception e) {\n throw new RcsServiceException(e.getMessage());\n }\n } else {\n throw new RcsServiceNotAvailableException();\n }\n }", "public Builder setContact(kr.pik.message.Profile.Contact value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n contact_ = value.getNumber();\n onChanged();\n return this;\n }", "public static Contact createContact (String name, String phoneNumber){\n\n return new Contact(name, phoneNumber);\n\n }", "Contact createUnresolvedContact(String address, String persistentData, ContactGroup parentGroup);", "kr.pik.message.Profile.Contact getContact();", "public GetContactRequest()\r\n {\r\n }", "@Test\n\tpublic void constructorTest() throws PassengerException{\n\t\tFirst myPassenger = new First(10,100);\n\t\tassertNotNull(myPassenger);\n\t}", "public org.hl7.fhir.Contact addNewContact()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.Contact target = null;\n target = (org.hl7.fhir.Contact)get_store().add_element_user(CONTACT$6);\n return target;\n }\n }", "public Person( String emailAddress, String first, String last, \r\n String password, String currency, String creditCard )\r\n {\r\n setEmail( emailAddress );\r\n setFirstName( first );\r\n setLastName( last );\r\n setPassword( password );\r\n setCurrency( currency );\r\n setCreditCard( creditCard );\r\n }", "public com.polytech.spik.protocol.SpikMessages.Contact getContact() {\n if (contactBuilder_ == null) {\n if (typeCase_ == 1) {\n return (com.polytech.spik.protocol.SpikMessages.Contact) type_;\n }\n return com.polytech.spik.protocol.SpikMessages.Contact.getDefaultInstance();\n } else {\n if (typeCase_ == 1) {\n return contactBuilder_.getMessage();\n }\n return com.polytech.spik.protocol.SpikMessages.Contact.getDefaultInstance();\n }\n }", "public Person(String first, String last) {\n\t\tthis(first, last, -1);\n\t}", "public SalesPerson(String firstName, String lastName, String ppsNumber){\r\n //pulls the constructor with parameters from the superclass SalesEmployee\r\n super(firstName, lastName, ppsNumber);\r\n }", "private Contact(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public Person(String first, String last) {\n // Set instance var firstname to what is called from constructor\n this.firstName = first; \n // Set instance var lastname to what is called from constructor\n this.lastName = last;\n }", "public static WSCustomerContact createWSCustomerContact() {\n\t\t// Contact info\n\t\tWSCustomerContact contact = null;\n\t\tString contactType = BackOfficeGlobals.BACKOFFICE_CONTACT_TYPE_PRIMARY;\n\t\tString emailName = BackOfficeUtils.generateRandomString(BackOfficeGlobals.BACKOFFICE_DEFAULT_EMAIL_NAME_LENGTH);\n\t\tString email = emailName + BackOfficeGlobals.BACKOFFICE_DEFAULT_EMAIL_ADDRESS_PROVIDER;\n\t\tString dateOfBirth = BackOfficeGlobals.BACKOFFICE_CUSTOMER_BIRTHDATE_ZULU;\n\t\tString username = email;\n\t\tString password = BackOfficeGlobals.BACKOFFICE_CUSTOMER_PASSWORD;\n\t\tWSAddress address = null;\n\t\tList<WSPhone> phone = null;\n\t\tWSName name = null;\n\t\tString pin = BackOfficeGlobals.BACKOFFICE_CUSTOMER_PIN;\n\t\tList<WSSecurityQA> securityQAs = null;\n\t\tWSPersonalIdentifier personalIdentifierInfo = null;\n\t\tString addressId = null;\t\t\t\t\t\t\t\t// If address Object present this must be null and vice-versa\n\t\t\n\t\t// WSAddress fields\n\t\tString address1 = BackOfficeGlobals.BACKOFFICE_CUSTOMER_ADDRESS1;\n\t\tString address2 = BackOfficeGlobals.BACKOFFICE_CUSTOMER_ADDRESS2;\n\t\tString address3 = BackOfficeGlobals.BACKOFFICE_CUSTOMER_ADDRESS3;\n\t\tString city = BackOfficeGlobals.BACKOFFICE_CUSTOMER_CITY;\n\t\tString state = BackOfficeGlobals.BACKOFFICE_CUSTOMER_STATE;\n\t\tString postalCode = BackOfficeGlobals.BACKOFFICE_CUSTOMER_POSTAL_CODE;\n\t\tString country = BackOfficeGlobals.BACKOFFICE_CUSTOMER_COUNTRY;\n\n\t\t// Personal identifier\n\t\tpersonalIdentifierInfo = new WSPersonalIdentifier(emailName, BackOfficeGlobals.BACKOFFICE_PERSONAL_ID_TYPE_DRIVERS_LICENSE);\n\t\t\t\t\n\t\tLOG.info(\"##### Creating Generic WSCustomerContactInfo\");\n\t\t\n\t\t// WSPhone fields\n\t\tWSPhone phone1 = new WSPhone(BackOfficeGlobals.BACKOFFICE_CUSTOMER_PHONE_NUMBER, BackOfficeGlobals.BACKOFFICE_PHONE_TYPE_MOBILE, country);\n\t\tphone = Arrays.asList(phone1);\n\t\t\n\t\t// WSSecurityQA fields are Optional\n\n\t\t// Create WSAddress\n\t\taddress = new WSAddress(address1, address2, address3, city, state, postalCode, country);\n\t\t\n\t\t// Create WSName (use the randomly generated email \"name\" as First and Last Name. Suffix and Title optional)\n\t\tname = new WSName(emailName, emailName, \"\", \"\");\n\t\t\n\t\t// Create WSCustomerContact\n\t\tcontact = new WSCustomerContact(contactType, name, address, addressId, phone, email, dateOfBirth, personalIdentifierInfo, username, password, pin, securityQAs);\n\n\t\treturn contact;\n\t}", "public Builder setContact(com.polytech.spik.protocol.SpikMessages.Contact value) {\n if (contactBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n type_ = value;\n onChanged();\n } else {\n contactBuilder_.setMessage(value);\n }\n typeCase_ = 1;\n return this;\n }", "public Address getPrimaryContactParsed();", "public Person (String firstName, String lastName, String address) {\n this.firstName = firstName;\n this.lastName = lastName;\n this.address = address;\n\n }", "public FirstName() {\n super();\n }", "public static Contacts createContacts(String name,String phoneNumber){\n //it calling the constuctor to create an new contact record\n return new Contacts(name,phoneNumber);\n\n }", "public PortugueseAddressContactDTO() {\r\n\t\tsuper();\r\n\t}", "public void setPrimaryContact(String contact);", "public static PacientContact createEntity(EntityManager em) {\n PacientContact pacientContact = new PacientContact()\n .name(DEFAULT_NAME)\n .lastname(DEFAULT_LASTNAME)\n .street(DEFAULT_STREET)\n .streetnumber(DEFAULT_STREETNUMBER)\n .suitnumber(DEFAULT_SUITNUMBER)\n .phonenumber1(DEFAULT_PHONENUMBER_1)\n .phonenumber2(DEFAULT_PHONENUMBER_2)\n .email1(DEFAULT_EMAIL_1)\n .email2(DEFAULT_EMAIL_2)\n .facebook(DEFAULT_FACEBOOK)\n .twitter(DEFAULT_TWITTER)\n .instagram(DEFAULT_INSTAGRAM)\n .snapchat(DEFAULT_SNAPCHAT)\n .linkedin(DEFAULT_LINKEDIN)\n .vine(DEFAULT_VINE);\n return pacientContact;\n }", "public Person1() {\n\t\tsuper();\n\t}", "@Override\n\tpublic Contact handRequest() {\n\t\tIvalidation valid = new ValidContact();\n\t\t\n\t\t\n\t\tContact newContact = new Contact(this.name, this.noPhone, this.email);\t//create new contact\n\t\t\n\t\tvalid = new ValidContact();\n\t\tif(valid.valid(newContact)) {\n\t\t\tAppContact2Data.addContactToData(newContact);\n\t\t\tSystem.out.print(\"\\nSuccessfull!\\n\");\n\t\t\treturn newContact;\n\t\t}\n\t\treturn null;\n\t}", "private TradeContact(String contactName, String contactTel, String contactMail) {\r\n\t\tsetContactPoint(contactName);\r\n\t\tsetContactTelephone(contactTel);\r\n\t\tsetContactEmail(contactMail);\r\n\t}", "@Override\n\tpublic void onBeginContact(Contact c) {\n\t\t\n\t}", "public Contact createContactFromFile(String fileName) {\n try {\n String path = \"src/test/resources/dummy_data/\" + fileName;\n File file = new File(path);\n return mapper.readValue(file, Contact.class);\n } catch (IOException e) {\n e.printStackTrace();\n return null;\n }\n }", "public Contact(String name, String phoneNumber) {\n this.name = name;\n this.phoneNumber = phoneNumber;\n\n }", "public Contact createUnresolvedContact(String address,\n String persistentData)\n {\n return createUnresolvedContact( address\n , persistentData\n , getServerStoredContactListRoot());\n }", "public void setContactFirstName(String contactFirstName) {\n \n this.contactFirstName = contactFirstName;\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 }", "public p7p2() {\n }", "public void setContactFirstName(String contactFirstName) {\n this.contactFirstName = contactFirstName;\n }", "public Person() {\r\n setPersonID(null);\r\n setAssocUserName(null);\r\n setFirstName(null);\r\n setLastName(null);\r\n setGender(null);\r\n setFatherID(null);\r\n setMotherID(null);\r\n setSpouseID(null);\r\n }", "com.polytech.spik.protocol.SpikMessages.ContactOrBuilder getContactOrBuilder();", "public com.polytech.spik.protocol.SpikMessages.ContactOrBuilder getContactOrBuilder() {\n if (typeCase_ == 1) {\n return (com.polytech.spik.protocol.SpikMessages.Contact) type_;\n }\n return com.polytech.spik.protocol.SpikMessages.Contact.getDefaultInstance();\n }", "public myContact(Address address, String type, Object identity, Object boss){\n\t\tmyAddress = address;\n\t\tmyType = type;\n\t\tmyIdentity = identity;\n\t\tmyBoss = boss;\n\t}", "public PowerContactSettings () {\n }", "public StreetAddress() {}", "private ContactFactory() {\n throw new AssertionError();\n }", "public PcepFactory getPcepMessageFactory1() {\n return FACTORY1;\n }", "public Person2(String fname, String lname) {\n this.fname = fname;\n this.lname = lname;\n }", "public Contact(String lastName, String firstName, \r\n\t\t\tString address, String city, String phoneNumber) {\r\n\t\t\r\n\t\tthis.lastName = lastName.trim();\r\n\t\tthis.firstName = firstName.trim();\r\n\t\tthis.address = address.trim();\r\n\t\tthis.city = city.trim();\r\n\t\tthis.phoneNumber = phoneNumber.trim();\r\n\t\t\r\n\t}", "public PBFTPrepare createPrepareMessage(PBFTPrePrepare pp){\n PBFTPrepare p = new PBFTPrepare(pp, getLocalServerID());\n return p;\n }", "public SourceContact getContact()\n {\n return contact;\n }", "public Persona() {\n\t}", "Contact(final String n, final String e, final String p) {\n this.name = n;\n this.email = e;\n this.phoneNumber = p;\n }", "public PDContactSend() {\n this.email = new ArrayList<>();\n this.phone = new ArrayList<>();\n this.active_flag = true;\n }", "public Builder mergeContact(com.polytech.spik.protocol.SpikMessages.Contact value) {\n if (contactBuilder_ == null) {\n if (typeCase_ == 1 &&\n type_ != com.polytech.spik.protocol.SpikMessages.Contact.getDefaultInstance()) {\n type_ = com.polytech.spik.protocol.SpikMessages.Contact.newBuilder((com.polytech.spik.protocol.SpikMessages.Contact) type_)\n .mergeFrom(value).buildPartial();\n } else {\n type_ = value;\n }\n onChanged();\n } else {\n if (typeCase_ == 1) {\n contactBuilder_.mergeFrom(value);\n }\n contactBuilder_.setMessage(value);\n }\n typeCase_ = 1;\n return this;\n }", "public PDContactSend(PDContactReceived pc) {\n this.name = pc.getName();\n this.id = pc.getId();\n if(pc.getOrg_id() != null) {\n this.org_id = pc.getOrg_id().getValue();\n }\n this.email = pc.getEmail();\n this.phone = pc.getPhone();\n this.visible_to = pc.getVisible_to();\n this.active_flag = pc.getActive_flag();\n this.v_id = pc.getV_id();\n this.creationTime = pc.getCreationTime();\n if(pc.getOwner_id() != null){\n this.owner_id = pc.getOwner_id().getId();\n }\n this.modifiedTime = pc.getModifiedTime();\n\n\n }", "public Person() {\n\t\t\n\t}", "public String first() {\n\t\t\n\t\treturn \"\\n#1: \" + contacts[0].toString();\n\t}", "public kr.pik.message.Profile.Contact getContact() {\n kr.pik.message.Profile.Contact result = kr.pik.message.Profile.Contact.valueOf(contact_);\n return result == null ? kr.pik.message.Profile.Contact.UNRECOGNIZED : result;\n }", "public PDContactSend(JSONContact c, Long owner) {\n this.name = c.getFirstName() + \" \" + c.getSurname();\n if(name.equals(\" \")) name = \"Anonymous\";\n this.active_flag = true;\n this.visible_to = 3;\n ContactDetail emaild = new ContactDetail(c.getEmail(), true);\n this.email = new ArrayList<>();\n this.email.add(emaild);\n ContactDetail phoned = new ContactDetail(c.getPhone(), true);\n ContactDetail mobiled = new ContactDetail(c.getMobile(), false);\n this.phone = new ArrayList<>();\n this.phone.add(phoned);\n this.phone.add(mobiled);\n this.v_id = c.getObjid();\n try {\n if(c.getCreationTime() != null){\n String[] dateFormatter = c.getCreationTime().split(\"T\");\n String date = dateFormatter[0];\n String time = dateFormatter[1];\n this.creationTime = date + \" \" + time;\n }\n } catch (Exception e){\n System.out.println(\"Could not set creation time for \" + this.name);\n this.creationTime = \"2000-01-01 00:00:00\";\n }\n this.owner_id = owner;\n this.modifiedTime = c.getModified();\n this.position = c.getPosition();\n if(c.getOwnedByTeam()) this.ownedBy = \"ZUK\";\n else this.ownedBy = \"Not ZUK\";\n\n }", "public com.polytech.spik.protocol.SpikMessages.ContactOrBuilder getContactOrBuilder() {\n if ((typeCase_ == 1) && (contactBuilder_ != null)) {\n return contactBuilder_.getMessageOrBuilder();\n } else {\n if (typeCase_ == 1) {\n return (com.polytech.spik.protocol.SpikMessages.Contact) type_;\n }\n return com.polytech.spik.protocol.SpikMessages.Contact.getDefaultInstance();\n }\n }", "public void setFirst(boolean first){\r\n\t\tfirstCoordinate = first;\r\n\t}", "private ContactManager() {\n }", "public void create(Person p) {\n\t\t\n\t}", "public final FixedJoint newFixedJoint( Body body1, Body body2 )\n {\n FixedJoint joint = newFixedJointImpl( body1, body2 );\n \n //addJoint( joint );\n \n return ( joint );\n }", "public Contact(int userID, String userFirstName, String userLastName, String lastMessage) {\n super(userID, userFirstName,userLastName, Friend.STATUS_ACCEPTED);\n this.lastMessage = lastMessage;\n this.avatar = null;\n }", "ShipmentContactMechType createShipmentContactMechType();", "public kr.pik.message.Profile.Contact getContact() {\n kr.pik.message.Profile.Contact result = kr.pik.message.Profile.Contact.valueOf(contact_);\n return result == null ? kr.pik.message.Profile.Contact.UNRECOGNIZED : result;\n }", "public PSO() {\r\n initialiseNetwork();\r\n initialisePSO();\r\n }", "public void setPrimaryContact(java.lang.String primaryContact) {\n this.primaryContact = primaryContact;\n }", "public void CreatePerson(Person p){\n\t\tWeddingConnectionPoolManager con = new WeddingConnectionPoolManager(); \n\t\t Person p1 = new Person(p.getId(), p.getFirstName(), p.getLastName(), p.getRelationship(),\n\t\t\t\t p.getAddress(), p.getPhone(), p.getEmail(), p.getComment(), user.getId());\n\t\t System.out.println(\"p1 : \" + p1);\n\t\t System.out.println(\"p : \" + p);\n\t\t// TODO - should to iterate on the results that returns when calling to \"getpersons\" method.\n\t\tPersonDBManager.getInstance().CreateNewPerson(con.getConnectionFromPool(), p1);\t\n\t}", "@Override\n\tpublic void beginContact(Contact c) {\n\t\tFixture fa = c.getFixtureA();\n\t\tFixture fb = c.getFixtureB();\n\t\t\n\t\tif (fa.getUserData() != null && fa.getUserData().equals(\"pies\")) {\n\t\t\tnumeroDePisadas++;\n\t\t}\n\t\tif (fb.getUserData() != null && fb.getUserData().equals(\"pies\")) {\n\t\t\tnumeroDePisadas++;\n\t\t}\n\t\t//Borrar Moneda\n\t\tif (fa.getUserData() != null && fa.getUserData().equals(\"moneda\")) {\n\t\t\tcuerposBorrar.add(fa.getBody());\n\t\t}\n\t\t\n\t\tif (fb.getUserData() != null && fb.getUserData().equals(\"moneda\")) {\n\t\t\tcuerposBorrar.add(fb.getBody());\n\t\t}\n\t\tif(fa.getUserData() != null && fa.getUserData().equals(\"mina\")) {\n\t\t\tjugadorMuerto = true;\n\t\t}\n\t\tif(fb.getUserData() != null && fb.getUserData().equals(\"mina\")) {\n\t\t\tjugadorMuerto = true;\n\t\t}\n\t\t\n\t\tif(fa.getUserData() != null && fa.getUserData().equals(\"cangrejo\")) {\n\t\t\tjugadorMuerto = true;\n\t\t}\n\t\tif(fb.getUserData() != null && fb.getUserData().equals(\"cangrejo\")) {\n\t\t\tjugadorMuerto = true;\n\t\t}\n\t\t\n\t\tif(fa.getUserData() != null && fa.getUserData().equals(\"pulpo\")) {\n\t\t\tjugadorMuerto = true;\n\t\t}\n\t\tif(fb.getUserData() != null && fb.getUserData().equals(\"pulpo\")) {\n\t\t\tjugadorMuerto = true;\n\t\t}\n\t\t//System.out.println(fa.getUserData() + \" , \" + fb.getUserData());\n\t\t\n\t}", "public Person(String first, String middle, String last) {\n this.firstNames = first+ \" \" +middle;\n this.lastName = last;\n }", "public ExtractorFactory(Contact contact, Annotation label, Format format) {\r\n this.contact = contact;\r\n this.format = format;\r\n this.label = label;\r\n }", "public com.politrons.avro.AvroPerson.Builder setFirstName(java.lang.CharSequence value) {\n validate(fields()[4], value);\n this.first_name = value;\n fieldSetFlags()[4] = true;\n return this; \n }", "public Person() {\r\n\t\tid = \"00000\";\r\n\t\tfName = \"unknown\";\r\n\t\tlName = \"unknown\";\r\n\t\tbirthday = LocalDate.now();\r\n\t\tphone = \"unknown\";\r\n\t\tstatus = \"unknown\";\r\n\t\tcontacts = new ArrayList<String>();\r\n\t}", "public Persona() {\n \t\n }", "public Person(String name, String address, String postalCode, String city, String phone){\n // initialise instance variables\n this.name = name;\n this.address = address;\n this.postalCode = postalCode;\n this.city = city;\n this.phone = phone;\n }" ]
[ "0.7711639", "0.59570706", "0.5904111", "0.57841736", "0.5770209", "0.5760051", "0.5724445", "0.5724445", "0.5724445", "0.5673191", "0.53846705", "0.5378309", "0.5329392", "0.5300667", "0.51313573", "0.51261663", "0.51133734", "0.51065314", "0.5087809", "0.5067119", "0.505223", "0.5050085", "0.5024893", "0.5023252", "0.4994372", "0.49197808", "0.49157718", "0.49112096", "0.49048433", "0.49015617", "0.48590994", "0.48571852", "0.48532146", "0.4850111", "0.4848584", "0.48383728", "0.48183808", "0.4808488", "0.48046893", "0.47967795", "0.47922534", "0.47876737", "0.47832265", "0.47429183", "0.4741945", "0.47392288", "0.47209123", "0.4712315", "0.4705355", "0.4704594", "0.4700802", "0.4695714", "0.46955186", "0.46930537", "0.46887985", "0.46862942", "0.46694604", "0.46674687", "0.4661808", "0.4661343", "0.46494555", "0.46381384", "0.4636113", "0.46190518", "0.4611671", "0.46107572", "0.46029136", "0.4572657", "0.45559996", "0.45540214", "0.45518836", "0.45494893", "0.45490465", "0.45400998", "0.45394102", "0.45282966", "0.45259866", "0.45111355", "0.45098972", "0.4509573", "0.45063883", "0.4506299", "0.45003814", "0.44998777", "0.44977093", "0.44937208", "0.44886467", "0.4488523", "0.4487389", "0.44814047", "0.44753444", "0.44687346", "0.4468219", "0.44675148", "0.44639862", "0.44571695", "0.44542804", "0.4453964", "0.44529748", "0.44477555" ]
0.6287603
1
Sequancialy try to contact all peer and add them in the group of acquaintances.
public void runActivity(Body body) { this.peers = StartP2PService.checkingPeersUrl(this.peers); // First coontact connectingPeer(); while (body.isAlive()) { if (this.peers.size() != 0) { if (this.acqGroup.size() == 0) { // We have some url and we know nobody connectingPeer(); } try { Thread.sleep(Long.parseLong(System.getProperty(PROPERTY_TTU))); } catch (Exception e) { } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void connectingPeer() {\n for (int index = 0; index < this.peers.size(); index++) {\n String peerUrl = urlAdderP2PNodeName((String) this.peers.get(index));\n try {\n Node distNode = NodeFactory.getNode(peerUrl);\n P2PService peer = (P2PService) distNode.getActiveObjects(P2PService.class.getName())[0];\n \n if (!peer.equals(this.localP2pService)) {\n // Send a message to the remote peer to record me\n peer.register(this.localP2pService);\n // Add the peer in my group of acquaintances\n this.acqGroup.add(peer);\n }\n } catch (Exception e) {\n logger.debug(\"The peer at \" + peerUrl +\n \" couldn't be contacted\", e);\n }\n }\n }", "public void askForPeers() {\n\t\tif(peers.size() < maximumConnections) {\n\t\t\tpropagateToAllPeers(new PeerAskMessage());\n\t\t}\n\t}", "public P2PFirstContact(Vector peers, P2PAcquaintanceManager acquaintances,\n P2PService local) {\n this.peers = peers;\n this.acqGroup = acquaintances;\n this.localP2pService = local;\n }", "private void connectToAll() {\n for (AStarNode node : getNodes()) {\n node.resetConnection();\n for (AStarNode connect : getNodes()) {\n if (isValid(node, connect)) {\n node.connect(connect);\n }\n }\n }\n }", "public void avoidBotAndOtherASs(Set<Integer> ASesToLieAbout, Set<AS> advertiseToTheseASes) {\n BGPPath pathOfMerit = new BGPPath(this.asn * -1);\n\n /*\n * Lying reverse poison, prepend bot ASes\n */\n for (Integer tAS : this.botSet) {\n pathOfMerit.appendASToPath(tAS);\n }\n\n /*\n * If we have ASs to lie about apart from the critical side AS, do it here\n */\n if (ASesToLieAbout != null && !(ASesToLieAbout.isEmpty())) {\n for (Integer tAS : ASesToLieAbout) {\n pathOfMerit.appendASToPath((tAS));\n }\n }\n\n pathOfMerit.prependASToPath(this.asn);\n\n // If we don't have a specific AS set to advertise out to, advertise to all interfaces.\n if (advertiseToTheseASes == null || advertiseToTheseASes.isEmpty()) {\n\n /*\n * Advertise to all of our customers\n */\n for (AS tCust : this.customers) {\n tCust.advPath(pathOfMerit);\n }\n\n /*\n * Since this is a hole punched route, we always advertise to peers and prov\n */\n for (AS tPeer : this.peers) {\n tPeer.advPath(pathOfMerit);\n }\n\n for (AS tProv : this.providers) {\n tProv.advPath(pathOfMerit);\n }\n\n /*\n * Update the adj-out-rib with the correct set of ASes we have\n * adverstised the current best path to\n */\n\n Set<AS> newAdvTo = new HashSet<>();\n\n newAdvTo.addAll(this.customers);\n newAdvTo.addAll(this.peers);\n newAdvTo.addAll(this.providers);\n\n this.adjOutRib.put(this.asn * -1, newAdvTo);\n } else {\n for (AS tAS : advertiseToTheseASes) {\n tAS.advPath(pathOfMerit);\n }\n\n Set<AS> newAdvTo = new HashSet<>();\n\n newAdvTo.addAll(advertiseToTheseASes);\n\n this.adjOutRib.put(this.asn * -1, newAdvTo);\n }\n }", "void setConstraints(List<MessageConstraint> allConstraints) {\n\t\tfor (MessageConstraint c : allConstraints) {\n\t\t\tif (c.getPortal() != this)\n\t\t\t\tcontinue;\n\t\t\tMap<Worker<?, ?>, MessageConstraint> senderMap = constraints.get(c.getSender());\n\t\t\tif (senderMap == null) {\n\t\t\t\tsenderMap = new IdentityHashMap<>();\n\t\t\t\tconstraints.put(c.getSender(), senderMap);\n\t\t\t}\n\t\t\tsenderMap.put(c.getRecipient(), c);\n\t\t}\n\t}", "public void sendAdverts() {\n\t\tfor (int pfx = 0; pfx < pfxList.size(); pfx++){\n\t\t\tfor(int lnk = 0; lnk < nborList.size(); ++lnk){\n\t\t\t\tif(lnkVec.get(lnk).helloState == 0){\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tPacket p = new Packet();\n\t\t\t\tp.protocol = 2; p.ttl = 100;\n\t\t\t\tp.srcAdr = myIp;\n\t\t\t\tp.destAdr = lnkVec.get(lnk).peerIp;\n\t\t\t\tp.payload = String.format(\"RPv0\\ntype: advert\\n\" \n\t\t\t\t\t\t+ \"pathvec: %s %.3f %d %s\\n\",\n\t\t\t\t\t\tpfxList.get(pfx).toString(), now, 0, myIpString); //potential problems\n\t\t\t\tfwdr.sendPkt(p,lnk);\n\t\t\t}\n\t\t}\n\t}", "public void addAllToConference();", "private void updatePeers() {\n\t\tif (files == null)\n\t\t\treturn;\n\t\tArrayList<Piece> neededPieces = files.getNeededPieces();\n\t\tfor (int i = 0; i < peers.size(); i++) {\n\t\t\tPeer p = peers.get(i);\n\t\t\tboolean hasNoPieces = true;\n\t\t\tfor (int j = 0; j < neededPieces.size(); j++) {\n\t\t\t\tif (p.getClient().getBitfield().hasPiece(neededPieces.get(j).getIndex())) {\n\t\t\t\t\thasNoPieces = false;\n\t\t\t\t\tif (!p.getClient().isInterested()) {\n\t\t\t\t\t\tp.addToQueue(new MessageInterested());\n\t\t\t\t\t\tp.getClient().interested();\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (hasNoPieces && p.getClient().isInterested()) {\n\t\t\t\tp.addToQueue(new MessageUninterested());\n\t\t\t\tp.getClient().uninterested();\n\t\t\t}\n\t\t\tif (p.getMyClient().isInterested() && p.getClient().isChoked()) {\n\t\t\t\tp.addToQueue(new MessageUnchoke());\n\t\t\t\tp.getClient().unchoke();\n\t\t\t} else if (!p.getMyClient().isInterested() && !p.getClient().isChoked()) {\n\t\t\t\tp.addToQueue(new MessageChoke());\n\t\t\t\tp.getClient().choke();\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic void updateAll() {\n\t\tList<Request> requests = peer.getRequests();\n\t\tfor(Request request : requests){\t\t\t\n\t\t\tupdateAccounting(request);\t\t\t\t\n\t\t}\n\t\t\n\t\t/**\n\t\t * Once the accounting for all requests of each peer was performed, \n\t\t * we now update the lastUpdatedTime of each accounting info. \n\t\t */\n\t\tfor(AccountingInfo accInfo : accountingList)\n\t\t\taccInfo.setLastUpdated(TimeManager.getInstance().getTime());\n\t\t\t\t\n\t\tfinishRequests();\n\t}", "boolean set_up_connection_to_peers() {\n sockets = new Socket[num_peers];\n int cnt = 0;\n for (int i = 0; i < peer_ip.length; i++) {\n if (peer_id[i] < id) {\n try {\n sockets[i] = new Socket(peer_ip[i], peer_port[i]);\n tcp_out_stream[i] = new ObjectOutputStream(sockets[i].getOutputStream());\n print(\"Peer \" + id + \" successfully connects to \" + peer_id[i]);\n cnt++;\n } catch (IOException e) {\n // TODO Auto-generated catch block\n print(\"Failed to connect to \" + peer_id[i] + \", \" + peer_ip[i] + \":\" + peer_port[i]);\n return false;\n }\n } else {\n sockets[i] = null; //to be connected by later peers.\n }\n }\n print(\"Peer \" + id + \" TCP connection done. Connected to \" + cnt + \" peers\");\n return true;\n }", "public void sendPeerListToAll() {\r\n\t\tPacket packet = new Packet();\r\n\t\tpacket.eventCode = 1;\r\n\t\tfor(int i = 0; i < peerClientNodeConnectionList.size(); i++) {\r\n\t\t\tPeer peer = new Peer();\r\n\t\t\tpeer.peerID = peerClientNodeConnectionList.get(i).peerClientID;\r\n\t\t\tpeer.peerIP = peerClientNodeConnectionList.get(i).peerClientIP;\r\n\t\t\tpeer.peerPort = peerClientNodeConnectionList.get(i).peerClientListeningPort;\r\n\t\t\tpacket.peerList.add(peer);\r\n\t\t}\r\n\t\t\r\n\t\tfor(int i = 0; i < peerClientNodeConnectionList.size(); i++) {\r\n\t\t\ttry {\r\n\t\t\t\tpeerClientNodeConnectionList.get(i).outStream.writeObject(packet);\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}\t\t\t\r\n\t\t}\r\n\t}", "private void processPeers() {\n\t\tif (System.currentTimeMillis() - lastPeerUpdate > 20000) {\n\t\t\tupdatePeers();\n\t\t\tlastPeerUpdate = System.currentTimeMillis();\n\t\t}\n\t\tif (System.currentTimeMillis() - lastPeerCheck > 5000) {\n\t\t\tcleanPeerList();\n\t\t\tlastPeerCheck = System.currentTimeMillis();\n\t\t}\n\t}", "public void getAlreadyConnectedPeers() {\n ArrayList<Peer> alreadyConnected = parent.getConnections(name);\n for(Peer p : alreadyConnected) {\n if(p.connected()) {\n addPeer(p.getIP());\n nodeConnection(p.getIP());\n }\n }\n }", "@Test(expected = IllegalArgumentException.class)\n public void testAddAlreadyRegisteredPeer() {\n replay(participantsConfig);\n\n peerManager.activate();\n\n peerManager.addPeerDetails(newPeer.name().get(),\n IpAddress.valueOf(PEER_IP),\n newPeer.connectPoint(),\n newPeer.interfaceName());\n }", "public void updateClientParty()\n\t{\n\t\tfor(int i = 0; i < getParty().length; i++)\n\t\t\tupdateClientParty(i);\n\t}", "void processWaitingAssociations() {\n\t\tint numberOfConnectedViaImport = 0;\n\t\tint numberOfConnectedViaPackage = 0;\n\t\tint numberOfConnectedViaAttribute = 0;\n\t\tint numberOfConnectedViaLocalVariable = 0;\n\t\tint numberOfConnectedViaMethod = 0;\n\n for (FamixAssociation association : theModel.waitingAssociations) {\n try {\n \tboolean fromExists = false;\n \tboolean toExists = false;\n \tboolean toHasValue = false;\n \tboolean chainingInvocation = false;\n \tboolean typeIsAccess = false;\n \tboolean nextAssociationIsIndirect = false;\n \tString toRemainderChainingInvocation = \"\";\n \tString toString = \"\";\n \tFamixInvocation theInvocation = null;\n\n /* Test helpers\n \tif (association.from.contains(\"husacct.define.presentation.jdialog.ExceptionRuleJDialog\")) {\n \t\tif (association.lineNumber == 74) {\n \t \t\t\t\tboolean breakpoint = true;\n \t\t\t}\n \t} */\n\n \t// Check if association.from refers to an existing class\n \tif (theModel.classes.containsKey(association.from)) {\n \t\tfromExists = true;\n \t} \n \t// Check if association.to (or a part of it) refers to an existing class or library\n if ((association.to != null) && !association.to.equals(\"\") && !association.to.trim().equals(\".\")){ \n \ttoHasValue = true;\n \tif (theModel.classes.containsKey(association.to) || theModel.libraries.containsKey(\"xLibraries.\" + association.to)) {\n \t\ttoExists = true;\n \t} else { // Check if a part of association.to refers to an existing class or library \n if (association.to.contains(\".\")) {\n\t\t\t \tString[] allSubstrings = association.to.split(\"\\\\.\");\n\t\t\t \ttoString = allSubstrings[0];\n\t\t for (int i = 1; i < allSubstrings.length ; i++) {\n\t\t \ttoString += \".\"+ allSubstrings[i];\n\t\t \tif (theModel.classes.containsKey(toString) || theModel.libraries.containsKey(\"xLibraries.\" + toString)) {\n\t\t \t\tif ((association instanceof FamixInvocation)) {\n\t\t theInvocation = (FamixInvocation) association;\n\t\t association.to = toString;\n\t\t\t \t\ttoExists = true;\n\t\t\t \t\tchainingInvocation = true;\n\t\t\t\t\t // Put the remainder in a variable; needed to create a separate indirect association later on remainder substrings\n\t\t\t\t\t i++;\n\t\t\t \t\tif (allSubstrings.length >= i) {\n\t\t\t\t \t\ttoRemainderChainingInvocation = allSubstrings[i];\n\t\t\t\t\t\t for (int j = i + 1; j < allSubstrings.length ; j++) {\n\t\t\t\t\t\t \ttoRemainderChainingInvocation = toRemainderChainingInvocation + \".\" + allSubstrings[j];\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}\n }\n\n \t// Objective: If FamixAssociation.to is a name instead of a unique name, than replace it by the unique name of a FamixEntity (Class or Library) it represents. \n\n /* 0) Select and process FamixInvocations with a composed to-name\n * If FamixAssociation.to is composed of substrings (a chaining assignment or call), a dependency to the type of the first substring is a direct dependency.\n * Dependencies to types of the following substrings are determined afterwards. The next one is indirect, if the first substring is a method or variable of a super class, otherwise it is direct.\n * Algorithm: Split the string and try to identify the type of the first substring. Create a separate association to identify dependencies to following substring (variables or methods). \n * If the type of the first substring is identified, replace the substring by the type in the next association, and store this association to be processed later on. \n * */\n if (fromExists && !toExists && toHasValue){\n \tif ((association instanceof FamixInvocation)) {\n theInvocation = (FamixInvocation) association;\n if (association.to.contains(\".\")) {\n\t\t\t \tString[] allSubstrings = association.to.split(\"\\\\.\");\n\t\t\t \tif (allSubstrings.length > 1) {\n\t\t\t \tchainingInvocation = true;\n\t\t\t \tassociation.to = allSubstrings[0]; \n\t\t\t // Put the remainder in a variable; needed to create a separate indirect association later on remainder substrings\n\t\t\t toRemainderChainingInvocation = allSubstrings[1];\n\t\t\t for (int i = 2; i < allSubstrings.length ; i++) {\n\t\t\t \ttoRemainderChainingInvocation = toRemainderChainingInvocation + \".\" + allSubstrings[i];\n\t\t\t }\n\t\t\t \t}\n }\n }\n }\n \n // 1) Try to derive the unique name from the imports.\n if (fromExists && !toExists && toHasValue){\n \tif (!association.to.contains(\".\")) {\n\t toString = findClassInImports(association.from, association.to);\n\t if (!toString.equals(\"\")) {\n\t association.to = toString;\n \t\t\ttoExists = true;\n \t\t\tnumberOfConnectedViaImport ++;\n\t }\n \t}\n }\n\t \n // 2) Find out or association.to refers to a type in the same package as the from class.\n if (fromExists && !toExists && toHasValue){\n \tif (!association.to.contains(\".\")) {\n\t \tString belongsToPackage = theModel.classes.get(association.from).belongsToPackage;\n\t toString = findClassInPackage(association.to, belongsToPackage);\n\t if (!toString.equals(\"\")) { // So, in case association.to does not contain \".\" AND association.to shares the same package as association.from \n\t association.to = toString;\n\t \t\t\ttoExists = true;\n \t\t\ttypeIsAccess = true;\n\t \t\t\tnumberOfConnectedViaPackage ++;\n\t }\n \t}\n }\n\n \t// 3) Determine if association.to is an (inherited) attribute. If so determine the type of the attribute. \n if ((association instanceof FamixInvocation) && (!association.to.endsWith(\")\"))) {\n \t \tString classOfAttribute = findAttribute(association.from, association.to);\n \t if (!classOfAttribute.equals(\"\")) {\n\t \t\t\tif (!classOfAttribute.equals(association.from)) { // classOfAttribute refers to a super class \n\t\t \t// Create an access dependency on the superclass.\n\t\t \t\t\t\tFamixInvocation newIndirectInvocation = indirectAssociations_AddIndirectInvocation(\"AccessPropertyOrField\", association.from, classOfAttribute, theInvocation.lineNumber, theInvocation.belongsToMethod, association.to, theInvocation.nameOfInstance, false);\n\t\t \taddToModel(newIndirectInvocation); \n\t\t\t \t\t\tnumberOfDerivedAssociations ++;\n\t }\n \t \t\tFamixStructuralEntity entity = theModel.structuralEntities.get(classOfAttribute + \".\" + association.to);\n \t \t\tif (entity.declareType != null && !entity.declareType.equals(\"\")){\n \t \t\t\tassociation.to = entity.declareType;\n \t \tnumberOfConnectedViaAttribute++;\n \t \tif (chainingInvocation) { \n \t \t\t// The invocation is not added to the model yet, because it reflects an invisible access of the type of variable. Creating a new derived invocation is redundant.\n\t \t \tassociation.type = \"Undetermined\";\n\t \t \ttheInvocation.invocationName = toRemainderChainingInvocation;\n\t \t \twaitingDerivedAssociations.add(theInvocation);\n \t \t} else {\n\t\t\t\t\t\t\t\t// The invocation is added as an access invocation to the referred type; the return value of the complete string.\n\t \t \tassociation.type = \"AccessPropertyOrField\";\n\t\t \t\t\ttoExists = true;\n\t \t\t\ttypeIsAccess = true;\n\t\t\t\t\t\t\t}\n \t \t\t}\n \t \t}\n } \n \n // 4) Find out or association.to refers to a local variable or parameter: Get StructuralEntity on key ClassName.MethodName.VariableName\n\t if (fromExists && !toExists && toHasValue && (!association.to.endsWith(\")\"))){\n if (association instanceof FamixInvocation) {\n\t\t \tString searchKey = association.from + \".\" + theInvocation.belongsToMethod + \".\" + theInvocation.to;\n\t \tif (theModel.structuralEntities.containsKey(searchKey)) {\n\t \t\tFamixStructuralEntity entity = theModel.structuralEntities.get(searchKey);\n\t \t\tif (entity.declareType != null && !entity.declareType.equals(\"\")){\n\t \t\t\ttheInvocation.to = entity.declareType;\n\t\t \t\t\ttoExists = true;\n\t \t\t\ttypeIsAccess = true;\n\t\t \t\t\tnumberOfConnectedViaLocalVariable ++;\n\t \t\t}\n\t \t}\n }\n \t}\n\n \t// 5) Determine if association.to is an (inherited) method. If so determine the return type of the method. \n if ((association instanceof FamixInvocation) && (association.to.endsWith(\")\"))) {\n \tboolean methodFound = false;\n \tFamixMethod foundMethod = findInvokedMethodOnName(association.from, theInvocation.belongsToMethod, association.from, association.to);\n \t if (foundMethod != null) {\n \t \tmethodFound = true;\n \t } else { // Determine if association.to is an inherited method. \n \t \t\tString superClassName = indirectAssociations_findSuperClassThatContainsMethod(association.from, theInvocation.belongsToMethod, association.from, association.to);\n \t \t\tif ((superClassName != null) && !superClassName.equals(\"\")) {\n \t \tfoundMethod = findInvokedMethodOnName(association.from, theInvocation.belongsToMethod, superClassName, association.to);\n \t \t if (foundMethod != null) {\n \t \t \tmethodFound = true;\n \t\t \t// Create a call dependency on the superclass;\n \t\t \t\t\t\tFamixInvocation newInvocation = indirectAssociations_AddIndirectInvocation(\"InvocMethod\", theInvocation.from, superClassName, theInvocation.lineNumber, theInvocation.belongsToMethod, association.to, theInvocation.nameOfInstance, false);\n \t\t \taddToModel(newInvocation); \n \t\t\t \t\t\tnumberOfDerivedAssociations ++;\n \t }\n \t \t\t\t}\n \t }\n \t if (!methodFound) {\n \t \t// Check if the method is a constructor call\n \t \tString className = association.to.substring(0, association.to.indexOf(\"(\"));\n\t toString = findClassInImports(association.from, className);\n\t if (!toString.equals(\"\")) {\n\t \t \t\tassociation.to = toString;\n\t \t \t\tassociation.type = \"InvocMethod\";\n\t\t \t\t\ttoExists = true;\n\t \t \t}\n \t }\n \t if (methodFound) {\n \t \t// Determine the return type of the method.\n \t if ((foundMethod != null) && (foundMethod.declaredReturnType != null) && !foundMethod.declaredReturnType.equals(\"\")) {\n \t \tassociation.to = foundMethod.declaredReturnType;\n \t \tnumberOfConnectedViaMethod++;\n \t \tif (chainingInvocation) { \n \t \t\t// The invocation is not added to the model yet, because it reflects an invisible access of the return type of the method. Creating a new derived invocation is redundant.\n\t \t \tassociation.type = \"Undetermined\";\n\t \t \ttheInvocation.invocationName = toRemainderChainingInvocation;\n\t \t \twaitingDerivedAssociations.add(theInvocation);\n \t \t} else {\n\t\t\t\t\t\t\t\t// The invocation is added as an access invocation to the referred type; the return value of the complete string.\n\t \t \tassociation.type = \"AccessPropertyOrField\";\n\t\t \t\t\ttoExists = true;\n\t\t\t\t\t\t\t}\n \t \t\t}\n \t \t}\n \t}\n \n if (fromExists && toExists) {\n\t\t\t\t\tif (!association.from.equals(association.to) && (theModel.classes.containsKey(association.to) || theModel.libraries.containsKey(\"xLibraries.\" + association.to))) {\n\t \t\t\t\tdetermineSpecificExtendType(association);\n \t\t\tif (typeIsAccess && association.type.startsWith(\"Invoc\")) {\n \t\t\t\tassociation.type = \"AccessPropertyOrField\";\n \t\t\t}\n\t\t\t\t\t\taddToModel(association);\n\t\t\t\t\t} else {\n\t \t\t\t// Do nothing\n\t\t\t\t\t}\n\t\t\t\t\tif (association instanceof FamixInvocation) {\n\t\t\t\t\t\tif (chainingInvocation) { // If true, create an association to identify dependencies to the remaining parts of the chain. Store it temporarily; it is processed in a separate method. \n\t\t FamixInvocation indirectAssociation = new FamixInvocation();\n\t\t indirectAssociation.type = \"Undetermined\";\n\t\t indirectAssociation.isIndirect = nextAssociationIsIndirect;\n\t\t indirectAssociation.from = association.from;\n\t\t indirectAssociation.lineNumber = association.lineNumber;\n\t\t indirectAssociation.to = association.to;\n\t\t indirectAssociation.invocationName = toRemainderChainingInvocation;\n\t\t indirectAssociation.belongsToMethod = theInvocation.belongsToMethod;\n\t\t indirectAssociation.nameOfInstance = theInvocation.nameOfInstance;\n\t\t waitingDerivedAssociations.add(indirectAssociation);\n\t\t\t\t\t\t} else {\n\t\t \t\t\t// Do nothing\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n } else {\n \tif (!chainingInvocation) { \n \t\tnumberOfNotConnectedWaitingAssociations ++;\n \t} else {\n \t\t// Do nothing\n \t}\n \t\n }\n \t\t\t\n calculateProgress();\n //Needed to check if Thread is allowed to continue\n \tif (!ServiceProvider.getInstance().getControlService().getState().contains(States.ANALYSING)) {\n break;\n \t}\n\n } catch (Exception e) {\n \tString associationType = association.type;\n \t this.logger.error(new Date().toString() + \" \" + e + \" \" + associationType + \" \" + association.toString());\n \t e.printStackTrace();\n }\n }\n // Add the indirect associations created during this process to FamixModel.associations\n for (FamixAssociation indirectAssociation : indirectAssociations) {\n \taddToModel(indirectAssociation);\n }\n\n this.logger.info(new Date().toString() + \" Connected via 1) Import: \" + numberOfConnectedViaImport + \", 2) Package: \" + numberOfConnectedViaPackage + \", 3) Variable: \" + numberOfConnectedViaAttribute \n \t\t+ \", 4) Local var: \" + numberOfConnectedViaLocalVariable + \", 5) Method: \" + numberOfConnectedViaMethod + \", 6) Inherited var/method: \" + numberOfDerivedAssociations);\n }", "public void connectClusters()\n\t{\n//\t\tfor(int i = 0; i<edges.size();i++)\n//\t\t{\n//\t\t\tEdgeElement edge = edges.get(i);\n//\t\t\tString fromNodeID = edge.fromNodeID;\n//\t\t\tNodeElement fromNode = findSubNode(fromNodeID);\n//\t\t\tString toNodeID = edge.toNodeID;\n//\t\t\tNodeElement toNode = findSubNode(toNodeID); \n//\t\t\t\n//\t\t\tif(fromNode != null && toNode != null)\n//\t\t\t{\n//\t\t\t\tPortInfo oport = new PortInfo(edge, fromNode);\n//\t\t\t\tfromNode.addOutgoingPort(oport);\n//\t\t\t\tedge.addIncomingPort(oport);\n//\t\t\t\tPortInfo iport = new PortInfo(edge, toNode);\n//\t\t\t\ttoNode.addIncomingPort(iport);\n//\t\t\t\tedge.addOutgoingPort(iport);\n//\t\t\t}\n//\t\t}\n\t}", "void attachPeer(Activity act) {\n\t\tact.runOnUiThread(new Runnable() {\n\t\t\t@Override public void run() {\n\t\t\t\tFragmentTransaction ft = act.getFragmentManager().beginTransaction();\n\t\t\t\tft.add(new Peer(), PEER_TAG);\n\t\t\t\tft.commit();\n\t\t\t\tact.getFragmentManager().executePendingTransactions();\n\t\t\t}\n\t\t});\n\t}", "private void setUpPeers() {\n SdxParticipantsConfig.PeerConfig peer1 =\n new SdxParticipantsConfig.PeerConfig(Optional.of(PEER1_NAME),\n IpAddress.valueOf(PEER_IP),\n SW1_ETH1,\n INTERFACE_SW1_ETH1);\n\n // Set up the related expectations\n expect(participantsConfig.getPortForPeer(IpAddress.valueOf(PEER_IP)))\n .andReturn(SW1_ETH1).anyTimes();\n expect(participantsConfig.\n getInterfaceNameForPeer(IpAddress.valueOf(PEER_IP)))\n .andReturn(INTERFACE_SW1_ETH1).anyTimes();\n expect(participantsConfig.getPeerForName(Optional.of(PEER1_NAME)))\n .andReturn(peer1).anyTimes();\n expect(participantsConfig.getPeerForIp(IpAddress.valueOf(PEER_IP)))\n .andReturn(peer1).anyTimes();\n\n // Set up expectations for peers that will be added\n expect(participantsConfig.\n getInterfaceNameForPeer(IpAddress.valueOf(NEW_PEER1_IP)))\n .andReturn(null).anyTimes();\n expect(participantsConfig.getPortForPeer(IpAddress.valueOf(NEW_PEER1_IP)))\n .andReturn(null).anyTimes();\n expect(participantsConfig.getPeerForIp(IpAddress.valueOf(NEW_PEER1_IP)))\n .andReturn(null).anyTimes();\n expect(participantsConfig.\n getInterfaceNameForPeer(IpAddress.valueOf(NEW_PEER2_IP)))\n .andReturn(null).anyTimes();\n expect(participantsConfig.getPortForPeer(IpAddress.valueOf(NEW_PEER2_IP)))\n .andReturn(null).anyTimes();\n expect(participantsConfig.getPeerForName(Optional.of(NEW_PEER_NAME)))\n .andReturn(null).anyTimes();\n expect(participantsConfig.node()).andReturn(null).anyTimes();\n }", "private List<Identifier> determineAdapters(Message msg, PeerInfo newPeerInfo){\r\n\t\t\r\n\t\tif (peerToAdaptersMappings.size() > MAP_SIZE_LIMIT) peerToAdaptersMappings.clear();\r\n\t\t\r\n\t\tif (peerToAdaptersMappings.containsKey(newPeerInfo)){ //uses just peer id comparison here. \r\n\t\t\t//this is a known recipient\r\n\t\t\t//However, we still need to check if the available list of adapters (routing list) is valid.\r\n\t\t\t\r\n\t\t\tPair<List<Identifier>, PeerInfo> p;\r\n\t\t\tp = peerToAdaptersMappings.get(newPeerInfo);\r\n\t\t\t\r\n\t\t\tint i = 1;\r\n\t\t\twhile (p == null && i<4) { //this can happen if another thread flushed the entry in the meantime. That same thread should also update the value, though\r\n\t\t\t\ttry {\r\n\t\t\t\t\tThread.sleep(i*20);\r\n\t\t\t\t} catch (InterruptedException ignored) {}\r\n\t\t\t\tp = peerToAdaptersMappings.get(newPeerInfo);\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (i >= 4 && p == null){\r\n\t\t\t\t//the other thread obviously did not do the job yet. We will take care of it in the rest of the method.\r\n\t\t\t}else{\r\n\t\t\t\tPeerInfo oldPeerInfo = p.second;\r\n\t\t\t\tif (newPeerInfo.equalsByDeepCoparison(oldPeerInfo)){\r\n\t\t\t\t\treturn p.first; //return the existing list of adapters, since nothing changed in the PeerInfo from last time\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} \r\n\t\t\r\n\t\t// if we arrived here it means, either:\r\n\t\t// sending message to this peer for the first time \r\n\t\t// OR\r\n\t\t// the information we have is outdated, so let's update it\r\n\t\t\r\n\r\n\t\tList<Identifier> adapters = adapterMgr.createEndpointForPeer(newPeerInfo); //need not be synced, since invoking createEndpointForPeer multiple times should be fine\r\n\t\tPair<List<Identifier>, PeerInfo> p = new Pair<List<Identifier>, PeerInfo>(adapters, newPeerInfo);\r\n\t\t\r\n\t\tsynchronized(peerToAdaptersMappings){ //just using ConcurrentHashMap is not enough, because we need to save the reference to the map's key in the second object of the Pair, which is the object of the map, and if 2 thread repeat put, the value will get updated, but that value will contain the wrong reference to the key, meaning that subsequently the deep comparison between the old and the new PeerInfo object will not be possible\r\n\t\t\tpeerToAdaptersMappings.remove(newPeerInfo); //in reality, we remove an existing entry, if any. Since the PeerInfo.equals just compares Ids, it should locate the exact entry.\r\n\t\t\tpeerToAdaptersMappings.put(newPeerInfo, p); //we now put in the new value, which is a Pair, whose second element points to the key of the entry in the peerToAdaptersMappings where the Pair value belongs\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t// Now we have the list of all possible Adapters trough which we can deliver the message to the peer.\r\n\t\t// However, depending on peer's stated delivery policy we may want to restrict this list.\r\n\t\t// For example, in case of DeliveryPolicy.PREFERRED, we will just return the first Adapter.\r\n\t\t// But, in case of either TO_ALL_CHANNELS or AT_LEAST_ONE, we return all adapters, because in either case\r\n\t\t// the policy foresees sending to multiple adapters, but interpreting responses from all/one channel as ultimate success, respectively. \r\n\t\t\r\n\t\t\r\n\t\tif (newPeerInfo.getDeliveryPolicy() == DeliveryPolicy.Peer.PREFERRED){\r\n\t\t\tIdentifier preferred = adapters.get(0);\r\n\t\t\tList<Identifier> prefList = new ArrayList<Identifier>();\r\n\t\t\tprefList.add(preferred);\r\n\t\t\treturn prefList;\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn adapters;\r\n\t}", "public void receiveFromFollowees(Set<Candidate> candidates) {\n\r\n \tSet<Transaction> goodTx = new HashSet<Transaction>();\r\n \tcounter+=1; \r\n \tfor (Candidate c: candidates){\r\n \t\tint cnt=0;\r\n // maybe try adding a check to see if random followees are in the set of candidate.senders\r\n // \t\tRandom random = new Random();\r\n // \t\tint randi = random.nextInt(followees.length-1);\r\n // \t\twhile(!followees[randi]){\r\n // \t\t\trandi = random.nextInt();\r\n // \t\t}\r\n \t\tif (!txcount.containsKey(c.tx)){\r\n \t\t\ttxcount.put(c.tx, 1);\r\n \t\t}\r\n \t\telse {\r\n \t\t\tcnt = txcount.get(c.tx)+1;\r\n \t\t\ttxcount.put(c.tx, cnt);\r\n \t\t}\r\n \t}\r\n \tfor (Transaction tx: txcount.keySet()){\r\n// \t\tif (counter<2&&txcount.get(tx)>2) {\r\n // \t\tSystem.out.println(\"counter:\"+counter+ \"txcount:\"+txcount.get(tx));\r\n \t\tif (counter<4){\r\n // \t\t\tSystem.out.println(\"counter:\"+counter+ \"txcount:\"+txcount.get(tx));\r\n \t\t\tgoodTx.add(tx);\r\n \t\t}\r\n \t\telse if (counter>3&&txcount.get(tx)>counter){\r\n \t\t//\t \t\tSystem.out.println(\"counter:\"+counter+ \"txcount:\"+txcount.get(tx));\r\n \t\t\tgoodTx.add(tx);\r\n \t\t}\r\n// \t\telse if ((txcount.get(tx)>9*(counter/10))){\r\n \t\telse {\r\n \t\t\ttxcount.put(tx,0);\r\n \t\t}\r\n }\r\n }", "private void lastResortFindPeer() {\n\t\tDecentLogger.write(\"Resolving peers from DNS (last resort)\");\n\t\tfor(String seed: DNS_SEEDS) {\n\t\t\tArrayList<InetAddress> hosts = DNSResolver.getARecords(seed);\n\t\t\tif(hosts != null) {\n\t\t\t\tcheckList(hosts);\n\t\t\t}\n\t\t}\n\t}", "public void peersAdded(List<Response> peerList) {\n peerList.stream()\n .filter(peer -> connectionMap.get(peer.getString(\"address\")) == null &&\n !peer.getString(\"version\").isEmpty())\n .forEach(peer -> {\n connectionList.add(peer);\n connectionMap.put(peer.getString(\"address\"), peer);\n if (State.fromCode(peer.getInt(\"state\")) == State.CONNECTED)\n activeCount++;\n });\n fireTableDataChanged();\n }", "public Service() {\n if (peers[0] == null) {\n Service.peers[0] = new Peer(clave7);\n Service.peers[1] = new Peer(clave8);\n Service.peers[2] = new Peer(clave9);\n Service.peers[0].addPeer(new EntradaTEncam(clave1, HOSTS[0], PUERTO));\n Service.peers[0].addPeer(new EntradaTEncam(clave2, HOSTS[0], PUERTO));\n Service.peers[0].addPeer(new EntradaTEncam(clave3, HOSTS[0], PUERTO));\n Service.peers[0].addPeer(new EntradaTEncam(clave4, HOSTS[1], PUERTO));\n Service.peers[0].addPeer(new EntradaTEncam(clave5, HOSTS[1], PUERTO));\n Service.peers[0].addPeer(new EntradaTEncam(clave6, HOSTS[1], PUERTO));\n //Service.peers[0].addPeer(new EntradaTEncam(clave7, HOSTS[2], PUERTO));\n Service.peers[0].addPeer(new EntradaTEncam(clave8, HOSTS[2], PUERTO));\n Service.peers[0].addPeer(new EntradaTEncam(clave9, HOSTS[2], PUERTO));\n Service.peers[1].addPeer(new EntradaTEncam(clave1, HOSTS[0], PUERTO));\n Service.peers[1].addPeer(new EntradaTEncam(clave2, HOSTS[0], PUERTO));\n Service.peers[1].addPeer(new EntradaTEncam(clave3, HOSTS[0], PUERTO));\n Service.peers[1].addPeer(new EntradaTEncam(clave4, HOSTS[1], PUERTO));\n Service.peers[1].addPeer(new EntradaTEncam(clave5, HOSTS[1], PUERTO));\n Service.peers[1].addPeer(new EntradaTEncam(clave6, HOSTS[1], PUERTO));\n Service.peers[1].addPeer(new EntradaTEncam(clave7, HOSTS[2], PUERTO));\n //Service.peers[1].addPeer(new EntradaTEncam(clave8, HOSTS[2], PUERTO));\n Service.peers[1].addPeer(new EntradaTEncam(clave9, HOSTS[2], PUERTO));\n Service.peers[2].addPeer(new EntradaTEncam(clave1, HOSTS[0], PUERTO));\n Service.peers[2].addPeer(new EntradaTEncam(clave2, HOSTS[0], PUERTO));\n Service.peers[2].addPeer(new EntradaTEncam(clave3, HOSTS[0], PUERTO));\n Service.peers[2].addPeer(new EntradaTEncam(clave4, HOSTS[1], PUERTO));\n Service.peers[2].addPeer(new EntradaTEncam(clave5, HOSTS[1], PUERTO));\n Service.peers[2].addPeer(new EntradaTEncam(clave6, HOSTS[1], PUERTO));\n Service.peers[2].addPeer(new EntradaTEncam(clave7, HOSTS[2], PUERTO));\n Service.peers[2].addPeer(new EntradaTEncam(clave8, HOSTS[2], PUERTO));\n //Service.peers[2].addPeer(new EntradaTEncam(clave9, HOSTS[2], PUERTO));\n }\n }", "@Test(expected = IllegalArgumentException.class)\n public void testAddPeerWithNameInUse() {\n replay(participantsConfig);\n\n peerManager.activate();\n\n peerManager.addPeerDetails(PEER1_NAME,\n newPeer.ip(),\n newPeer.connectPoint(),\n newPeer.interfaceName());\n }", "private void addPeer(DecentSocket socket) {\n\t\tInetAddress address = socket.getInetAddress();\n\t\tif(canAddPeer(address)) {\n\t\t\tpeers.put(address, socket);\n\t\t\t//If this is the client's first peer, flush the message queue\n\t\t\tif(peers.size() == 1) {\n\t\t\t\tflushMessageQueue();\n\t\t\t\tDecentLogger.write(\"Flushed message queue\");\n\t\t\t}\n\t\t\tDecentLogger.write(\"Added new peer: \"+address.getHostAddress());\n\t\t\twritePeers();\n\t\t\tif(peers.size() < maximumConnections) {\n\t\t\t\tsocket.send((new PeerAskMessage()));\n\t\t\t}\n\t\t}\n\t}", "protected void deliverMessages()\n {\n Set<Envelope> envelopes = messengerDao.getEnvelopes();\n\n Map<String, Set<Envelope>> peerEnvelopesMap = Maps.newHashMap();\n int maxTimeToLive = 0;\n //distribute envelops to peers\n for ( Envelope envelope : envelopes )\n {\n if ( envelope.getTimeToLive() > maxTimeToLive )\n {\n maxTimeToLive = envelope.getTimeToLive();\n }\n Set<Envelope> peerEnvelopes = peerEnvelopesMap.get( envelope.getTargetPeerId() );\n if ( peerEnvelopes == null )\n {\n //sort by createDate asc once more\n peerEnvelopes = new TreeSet<>( new Comparator<Envelope>()\n {\n @Override\n public int compare( final Envelope o1, final Envelope o2 )\n {\n return o1.getCreateDate().compareTo( o2.getCreateDate() );\n }\n } );\n peerEnvelopesMap.put( envelope.getTargetPeerId(), peerEnvelopes );\n }\n\n peerEnvelopes.add( envelope );\n }\n\n\n //try to send messages in parallel - one thread per peer\n try\n {\n for ( Map.Entry<String, Set<Envelope>> envelopsPerPeer : peerEnvelopesMap.entrySet() )\n {\n Peer targetPeer = messenger.getPeerManager().getPeer( envelopsPerPeer.getKey() );\n if ( targetPeer.isLocal() )\n {\n completer.submit(\n new LocalPeerMessageSender( messenger, messengerDao, envelopsPerPeer.getValue() ) );\n }\n else\n {\n completer.submit(\n new RemotePeerMessageSender( messengerDao, targetPeer, envelopsPerPeer.getValue() ) );\n }\n }\n\n //wait for completion\n try\n {\n for ( int i = 0; i < peerEnvelopesMap.size(); i++ )\n {\n Future<Boolean> future = completer.take();\n future.get();\n }\n }\n catch ( InterruptedException | ExecutionException e )\n {\n LOG.warn( \"ignore\", e );\n }\n }\n catch ( PeerException e )\n {\n LOG.error( e.getMessage(), e );\n }\n }", "public static synchronized Boolean addKnownPeers(udpSocket peer) {\n if ((knownPeers.size() - outgoing.size() + 1) <= Integer.parseInt(config.get(\"maximumIncommingConnections\"))) {\n knownPeers.add(peer);\n if (peer.type != \"client from server\") {\n outgoing.add(peer);\n }\n log.info(\"Added peer to udppeerlist\");\n return true;\n }\n log.info(\"Did not add peer to udppeerlist\");\n return false;\n }", "public void action() {\n for (int i = 0; i < myAgent.friends.size(); ++i) {\n SendRequestToFriend(myAgent.friends.get(i));\n }\n\n // Crée un filtre pour lire d'abord les messages des amis et des leaders des amis\n MessageTemplate temp = MessageTemplate.MatchReceiver(myfriends);\n MessageTemplate temp2 = MessageTemplate.MatchReceiver(friendsLeader);\n MessageTemplate tempFinal = MessageTemplate.or(temp, temp2);\n\n // Réception des messages\n ACLMessage messageFriendly = myAgent.receive(tempFinal);\n // si on n'est pas dans un groupe\n if (messageFriendly != null && !inGroup) {\n \t// s'il reçoit une proposition d'un amis/ leader d'un ami, il accepte, peu importe le poste et s econsidère dans le groupe\n if (messageFriendly.getPerformative() == ACLMessage.PROPOSE) {\n AcceptProposal(messageFriendly, Group.Role.valueOf(messageFriendly.getContent()));\n inGroup = true;\n }\n // s'il reçoit un CONFIRM, il enregistre le leader\n else if (messageFriendly.getPerformative() == ACLMessage.CONFIRM) {\n myLeader = messageFriendly.getSender();\n }\n // s'il reçoit un INFORM, il enregistre l'AID du leader de son ami afin de recevoir ses messages et lui demande son poste préféré\n else if (messageFriendly.getPerformative() == ACLMessage.INFORM) {\n AddFriendsLeaderToList(messageFriendly);\n AnswerByAskingPreferedJob(messageFriendly);\n }\n // sinon, il renvoie une erreur\n else {\n System.out.println( \"Friendly received unexpected message: \" + messageFriendly );\n }\n }\n // si on est dans un groupe\n else if (messageFriendly != null && inGroup) { \n \t// s'il reçoit une requete et qu'il est déjà dans un groupe, il renvoir l'AID de son leader à son ami\n if (messageFriendly.getPerformative() == ACLMessage.REQUEST) {\n SendLeaderAID(messageFriendly);\n }\n // s'il reçoit un DISCONFIRM, il se remet en quete de job\n else if (messageFriendly.getPerformative() == ACLMessage.DISCONFIRM) {\n inGroup = false;\n AnswerByAskingPreferedJob(messageFriendly);\n }\n else {\n \t// sinon, il refuse tout offre\n RefuseOffer(messageFriendly);\n }\n }\n else {\n \t// on check ensuite les messages des inconnus, une fois ceux des amis triés\n ACLMessage messageFromInconnu = myAgent.receive();\n \n // si on n'est pas dans un groupe\n if (messageFromInconnu != null && !inGroup) {\n \n boolean offerPreferedJob = messageFromInconnu.getPerformative() == ACLMessage.PROPOSE && messageFromInconnu.getContent().equals((\"\\\"\" + myAgent.preferedRole.toString() + \"\\\"\"));\n boolean offerNotPreferedJob = messageFromInconnu.getPerformative() == ACLMessage.PROPOSE && messageFromInconnu.getContent() != (\"\\\"\" + myAgent.preferedRole.toString() + \"\\\"\" );\n \n //on accepte l offre s'il s'agit de notre role préféré\n if (offerPreferedJob){\n AcceptProposal(messageFromInconnu, myAgent.preferedRole);\n }\n // on refuse s'il ne s'agit pas de notre offre favorite en redemandant notre job préféré\n else if (offerNotPreferedJob){\n RefuseOffer(messageFromInconnu);\n }\n // si on reçoit une confimation, on se considère dans un groupe et on enregistre notre leader\n else if (messageFromInconnu.getPerformative() == ACLMessage.CONFIRM){\n inGroup = true;\n myLeader = messageFromInconnu.getSender();\n }\n // sinon, il s'agit d'une erreure\n else {\n System.out.println( \"Friendly received unexpected message: \" + messageFromInconnu );\n }\n }\n // si on est dans un groupe\n else if (messageFromInconnu != null && inGroup) {\n \t// si on reçoit une requete, on renvoie à notre leader\n if (messageFromInconnu.getPerformative() == ACLMessage.REQUEST) {\n SendLeaderAID(messageFromInconnu);\n }\n // si on reçoit un DISCONFIRM, on repart en quete de job\n else if (messageFromInconnu.getPerformative() == ACLMessage.DISCONFIRM) {\n inGroup = false;\n AnswerByAskingPreferedJob(messageFromInconnu);\n }\n // sinon on refuse\n else {\n RefuseOffer(messageFromInconnu);\n }\n }\n // si le message est vide, on bloque le flux\n else {\n block();\n }\n }\n }", "@Test\n public void testGetPeerAddresses() {\n replay(participantsConfig);\n\n peerManager.activate();\n\n List<IpAddress> expectedAddresses = new ArrayList<>();\n expectedAddresses.add(IpAddress.valueOf(PEER_IP));\n expectedAddresses.add(IpAddress.valueOf(NEW_PEER1_IP));\n Collections.sort(expectedAddresses);\n\n List<IpAddress> actualAddresses =\n peerManager.getPeerAddresses(bgpConfig);\n Collections.sort(actualAddresses);\n\n assertEquals(expectedAddresses, actualAddresses);\n }", "private void establishConnection() {\n\n try {\n\n for(Clone clone:this.clones){\n ClearConnection connection = new ClearConnection();\n connection.connect(clone.getIp(), clone.getOffloadingPort(), 5 * 1000);\n this.connections.add(connection);\n }\n\n this.protocol = new ERAMProtocol();\n this.ode = new ERAMode();\n\n } catch (Exception e) {\n Log.e(TAG,\"Connection setup with the Remote Server failed - \" + e);\n }\n }", "public void llenarContactos() {\n\t\t SharedPreferences prefs = getSharedPreferences(\"MisPreferenciasTrackxi\",Context.MODE_PRIVATE);\n String telemer = prefs.getString(\"telemer\", null);\n String correoemer = prefs.getString(\"correoemer\", null);\n String telemer2 = prefs.getString(\"telemer2\", null);\n String correoemer2 = prefs.getString(\"correoemer2\", null);\n \n\t\taddContact(telemer,correoemer);\n\n\t\tif(telemer2!=null){\n\t\t\taddContact(telemer2,correoemer2);\n\t\t}\n\t}", "private synchronized void trySendToServer() throws SecurityException, KeyPoolException, IdentityException, IOException {\n if (Thread.currentThread().isInterrupted()) return;\n\n // Wait for enough proofs (don't forget we included our proof)\n if (proofs.size() >= HelperConstants.MAX_BYZANTINE_USERS + 1 + 1) {\n // Send records to all known servers\n this.user.trySendLocationReport(new Report(this.myRecord, List.copyOf(proofs)));\n // System.out.printf(\"[epoch %d] Got OK from quorum of servers\\n\", this.myRecord.getEpoch());\n\n // kill all threads\n for(Thread t: ongoingProofRequests) {\n // I will kill myself last\n if (t.isAlive() && Thread.currentThread().getId() != t.getId()) t.interrupt();\n }\n }\n }", "private void connectToPeer() {\n mStatusText.append(\"Connecting to device...\\n\");\n\n String deviceKey = (String) mDevices.getSelectedItem();\n final WifiDirectDevice device = mGoodDevices.get(deviceKey);\n if (device == null) {\n mStatusText.append(\"Device no longer exists, refreshing peers...\\n\");\n discoverPeers();\n return;\n }\n\n WifiP2pConfig config = new WifiP2pConfig();\n config.deviceAddress = device.deviceAddress;\n config.wps.setup = WpsInfo.PBC; // push-button connect (as opposed to PIN, etc)\n\n // Set groupOwnerIntent so there aren't 2 groupowners.\n // It ranges between 0-15 , higher the value, higher\n // the possibility of becoming a groupOwner\n config.groupOwnerIntent = 0;\n\n if (mServiceDevices != null) {\n final WifiDirectDevice wDevice = mServiceDevices.get(deviceKey);\n if (wDevice != null && !wDevice.isGroupOwner && Integer.valueOf(wDevice.record.get(\"id\").toString()) < WifiDirectUtilities.ID) {\n// // Create a group\n// mManager.createGroup(mChannel, new WifiP2pManager.ActionListener() {\n// @Override\n// public void onSuccess() {\n// MainActivity.this.onGroupCreateResult(-1);\n// }\n//\n// @Override\n// public void onFailure(int reasonCode) {\n// MainActivity.this.onGroupCreateResult(reasonCode);\n// }\n// });\n this.mIsGO = true;\n config.groupOwnerIntent = 1;\n }\n }\n\n mManager.connect(mChannel, config, new WifiP2pManager.ActionListener() {\n\n @Override\n public void onSuccess() {\n mStatusText.append(\"Connected via WiFi!\\n\");\n // BroadcastReceiver will note when the connection changes in WIFI_P2P_PEERS_CHANGED_ACTION\n }\n\n @Override\n public void onFailure(int reasonCode) {\n logEvent(TAG, WifiDirectUtilities.getFailureReasonMessage(reasonCode));\n }\n });\n }", "public void start() {\n synchronized (car) {\n LOG.fine(\"Validating APPLY Record\");\n try {\n dir = cas.createChannel(epicsTop.buildEpicsChannelName(name + \".DIR\"), Dir.CLEAR);\n dir.registerListener(new DirListener());\n val = cas.createChannel(epicsTop.buildEpicsChannelName(name + \".VAL\"), 0);\n mess = cas.createChannel(epicsTop.buildEpicsChannelName(name + \".MESS\"), \"\");\n omss = cas.createChannel(epicsTop.buildEpicsChannelName(name + \".OMSS\"), \"\");\n clid = cas.createChannel(epicsTop.buildEpicsChannelName(name + \".CLID\"), 0);\n\n car.start();\n for (CadRecord cad : cads) {\n cad.start();\n cad.getCar().registerListener(new CarListener());\n }\n } catch (CAException e) {\n LOG.log(Level.SEVERE, e.getMessage(), e);\n }\n }\n }", "@Test\n public void testAddPeerDetailsSuccess() {\n participantsConfig.addPeer(newPeer);\n expectLastCall().once();\n replay(participantsConfig);\n\n peerManager.activate();\n\n peerManager.addPeerDetails(newPeer.name().get(),\n newPeer.ip(),\n newPeer.connectPoint(),\n newPeer.interfaceName());\n verify(participantsConfig);\n }", "public void updateIdentities() {\n // get a list of the internal conversation addresses\n ArrayList<String> addresses = new ArrayList<>();\n for (int i = 0; i < size(); i++)\n addresses.add(get(i).getFromAddress());\n\n // retrieve and set the identities of the internal addresses\n ArrayList<String> identities = retrieveIdentities(addresses);\n for (int i = 0; i < size(); i++)\n get(i).setIdentity(identities.get(i));\n }", "public void addContacts() {\r\n\t\t\r\n\t\t\r\n\t}", "private boolean canAddPeer(InetAddress candidate) {\n\t\treturn peers.size() < maximumConnections && !peers.containsKey(candidate) && !candidate.equals(externalIP) && !candidate.equals(internalIP) && !candidate.isLoopbackAddress();\n\t}", "void accountPeerAdded(String peerId);", "@Test\n\tpublic void testFastHandshakePeerIDHaveAll() throws Exception {\n\n\t\t// Given\n\t\tPieceDatabase pieceDatabase = MockPieceDatabase.create (\"1\", 16384);\n\t\tpieceDatabase.start (true);\n\t\tBitField wantedPieces = pieceDatabase.getPresentPieces().not();\n\t\tPeerServices peerServices = mock (PeerServices.class);\n\t\tPeerSetContext peerSetContext = new PeerSetContext (peerServices, pieceDatabase, mock (RequestManager.class), null);\n\t\twhen(peerSetContext.requestManager.piecesAvailable (any (ManageablePeer.class))).thenReturn (false);\n\t\tMockConnection mockConnection = new MockConnection();\n\t\tPeerHandler handler = new PeerHandler (peerSetContext, mockConnection, new PeerID(), new PeerStatistics(), true, false);\n\n\t\t// When\n\t\tmockConnection.mockInput (PeerProtocolBuilder.bitfieldMessage (wantedPieces));\n\t\thandler.connectionReady (mockConnection, true, true);\n\n\t\t// Then\n\t\tmockConnection.mockExpectOutput (PeerProtocolBuilder.haveAllMessage());\n\t\tmockConnection.mockExpectOutput (PeerProtocolBuilder.allowedFastMessage (0));\n\t\tmockConnection.mockExpectNoMoreOutput();\n\n\n\t\tpieceDatabase.terminate (true);\n\n\t}", "void addpeer(Node p) {\n\t\tpeers.add(p);\n\t}", "public boolean\tconnectTo(Node peer) {\n\t Link link = new Link(this,peer);\n\t if (links.contains(link))\n\t\treturn false;\n\t links.add(link);\n\t peer.links.add(link);\n\t allLinks.add(link);\n\t return true;\n\t}", "private void connectToUsers() {\n\n\t\tlookUpUsers();\n\t\ttry {\n\t\t\tfor (Map.Entry<String, UserInterface> e : remoteUsers.entrySet()) {\n\t\t\t\tcryptoUtils.addCertToList(e.getKey(), e.getValue().getCertificate());\n\t\t\t\te.getValue().connectUser(this.id, getCertificate());\n\t\t\t}\n\t\t} catch (RemoteException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n public void importContacts() {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"importContacts\");\n }\n\n for (int i = 0; i < contactsForImportation.size(); i++) {\n\n if (contactsForImportation.get(i).getObject1()) {\n ConnectathonParticipant cp = new ConnectathonParticipant();\n ConnectathonParticipantQuery query = new ConnectathonParticipantQuery();\n query.testingSession().eq(TestingSession.getSelectedTestingSession());\n query.email().eq(contactsForImportation.get(i).getObject2().getEmail());\n\n if (query.getCount() == 0) {\n\n try {\n\n cp.setEmail(contactsForImportation.get(i).getObject2().getEmail());\n cp.setFirstname(contactsForImportation.get(i).getObject2().getFirstname());\n cp.setLastname(contactsForImportation.get(i).getObject2().getLastname());\n cp.setMondayMeal(true);\n cp.setTuesdayMeal(true);\n cp.setWednesdayMeal(true);\n cp.setThursdayMeal(true);\n cp.setFridayMeal(true);\n cp.setVegetarianMeal(false);\n cp.setSocialEvent(false);\n cp.setTestingSession(TestingSession.getSelectedTestingSession());\n cp.setInstitution(contactsForImportation.get(i).getObject2().getInstitution());\n cp.setInstitutionName(contactsForImportation.get(i).getObject2().getInstitution().getName());\n\n cp.setConnectathonParticipantStatus(ConnectathonParticipantStatus.getVendorStatus());\n\n entityManager.clear();\n entityManager.persist(cp);\n entityManager.flush();\n\n FacesMessages.instance().add(StatusMessage.Severity.INFO, \"Conact \" + contactsForImportation.get(i).getObject2()\n .getLastname() + \" \" + contactsForImportation.get(i).getObject2().getEmail()\n + \" is imported\");\n renderAddPanel = false;\n getAllConnectathonParticipants();\n\n } catch (Exception e) {\n LOG.warn(USER + contactsForImportation.get(i).getObject2().getEmail()\n + \" is already added - This case case should not occur...\");\n StatusMessages.instance().addFromResourceBundle(StatusMessage.Severity.ERROR,\n \"gazelle.users.connectaton.participants.CannotImportParticipant\", cp.getFirstname(),\n cp.getLastname(), cp.getEmail());\n\n }\n } else {\n LOG.warn(USER + contactsForImportation.get(i).getObject2().getEmail()\n + \" is already added - This case case should not occur...\");\n StatusMessages.instance().addFromResourceBundle(StatusMessage.Severity.ERROR,\n \"gazelle.users.connectaton.participants.CannotImportParticipant\",\n contactsForImportation.get(i).getObject2().getFirstname(),\n contactsForImportation.get(i).getObject2().getLastname(),\n contactsForImportation.get(i).getObject2().getEmail());\n }\n }\n }\n\n }", "private static boolean addMembersToGroup(ContentResolver resolver, long[] rawContactsToAdd,\n long groupId, int[] rawContactsIndexInIcc, Intent intent, int groupIdInIcc) {\n boolean isAllOk = true;\n if (rawContactsToAdd == null) {\n Log.e(TAG, \"[addMembersToGroup] no members to add\");\n return true;\n }\n // add members to usim\n int subId = intent.getIntExtra(SimGroupUtils.EXTRA_SUB_ID, -1);\n int i = -1;\n for (long rawContactId : rawContactsToAdd) {\n try {\n // add members to usim first\n i++;\n if (subId > 0 && groupIdInIcc >= 0 && rawContactsIndexInIcc[i] >= 0) {\n int simIndex = rawContactsIndexInIcc[i];\n boolean success = ContactsGroupUtils.USIMGroup.addUSIMGroupMember(subId,\n simIndex, groupIdInIcc);\n if (!success) {\n isAllOk = false;\n Log.w(TAG, \"[addMembersToGroup] fail simIndex:\" + simIndex\n + \",groupId:\" + groupId);\n continue;\n }\n }\n\n final ArrayList<ContentProviderOperation> rawContactOperations =\n new ArrayList<ContentProviderOperation>();\n\n // Build an assert operation to ensure the contact is not already in the group\n final ContentProviderOperation.Builder assertBuilder = ContentProviderOperation\n .newAssertQuery(Data.CONTENT_URI);\n assertBuilder.withSelection(Data.RAW_CONTACT_ID + \"=? AND \" +\n Data.MIMETYPE + \"=? AND \" + GroupMembership.GROUP_ROW_ID + \"=?\",\n new String[] { String.valueOf(rawContactId),\n GroupMembership.CONTENT_ITEM_TYPE, String.valueOf(groupId)});\n assertBuilder.withExpectedCount(0);\n rawContactOperations.add(assertBuilder.build());\n\n // Build an insert operation to add the contact to the group\n final ContentProviderOperation.Builder insertBuilder = ContentProviderOperation\n .newInsert(Data.CONTENT_URI);\n insertBuilder.withValue(Data.RAW_CONTACT_ID, rawContactId);\n insertBuilder.withValue(Data.MIMETYPE, GroupMembership.CONTENT_ITEM_TYPE);\n insertBuilder.withValue(GroupMembership.GROUP_ROW_ID, groupId);\n rawContactOperations.add(insertBuilder.build());\n\n // Apply batch\n if (!rawContactOperations.isEmpty()) {\n resolver.applyBatch(ContactsContract.AUTHORITY, rawContactOperations);\n }\n } catch (RemoteException e) {\n // Something went wrong, bail without success\n Log.e(TAG, \"[addMembersToGroup]Problem persisting user edits for raw contact ID \" +\n String.valueOf(rawContactId), e);\n isAllOk = false;\n } catch (OperationApplicationException e) {\n // The assert could have failed because the contact is already in the group,\n // just continue to the next contact\n Log.w(TAG, \"[addMembersToGroup] Assert failed in adding raw contact ID \" +\n String.valueOf(rawContactId) + \". Already exists in group \" +\n String.valueOf(groupId), e);\n isAllOk = false;\n }\n }\n return isAllOk;\n }", "private void initPeers() {\n this.servers.clear();\n this.clients.clear();\n\n if (SharedPrefUtils.isConnectionNfcEnabled(this)) {\n clients.add(new NFCClient(this, walletServiceBinder));\n servers.add(new NFCServerACSCLTV(this, walletServiceBinder));\n servers.add(new NFCServerCLTV(this, walletServiceBinder));\n\n }\n\n if (SharedPrefUtils.isConnectionBluetoothLeEnabled(this)) {\n clients.add(new BluetoothLEClient(this, walletServiceBinder));\n servers.add(new BluetoothLEServer(this, walletServiceBinder));\n }\n\n if (SharedPrefUtils.isConnectionWiFiDirectEnabled(this)) {\n clients.add(new WiFiClient(this, walletServiceBinder));\n servers.add(new WiFiServer(this, walletServiceBinder));\n }\n\n for (AbstractServer server : servers) {\n server.setPaymentRequestDelegate(getClientPaymentRequestDelegate());\n }\n\n for (AbstractClient client : clients) {\n client.setPaymentRequestDelegate(getClientPaymentRequestDelegate());\n if(client instanceof NFCClient) {\n client.start();\n }\n }\n\n }", "private void cleanPeerList() {\n\t\tfor (int i = 0; i < peers.size(); i++) {\n\t\t\tPeer p = peers.get(i);\n\t\t\tif (p == null)\n\t\t\t\tcontinue;\n\t\t\tif (p.closed()) {\n\t\t\t\tp.cancelAllPieces();\n\t\t\t\tsynchronized (this) {\n\t\t\t\t\tpeers.remove(i--);\n\t\t\t\t}\n\t\t\t\tcontinue;\n\t\t\t} else {\n\t\t\t\tp.checkDisconnect();\n\t\t\t}\n\t\t}\n\t}", "void updatePartnerInfo(int[] partner_ids, int[] enjoyment_gained) {\n\t\tif(single_all_the_way) return;\n\t\tint new_couples = 0;\n\t\tfor(int i = 0; i < d; i++){\n\t\t\tif(enjoyment_gained[i] == 6){\n\t\t\t\tif(relation[i][partner_ids[i]] != 1) {\n\t\t\t\t\t//arrange destination for newly found couples\t\t\t\t\t\n\t\t\t\t\tPoint des1 = this.pits[this.pits.length - 1 - this.couples_found].pos;\n\t\t\t\t\tPoint des2 = this.pits[this.pits.length - 2 - this.couples_found].pos;\n\t\t\t\t\tdancers[i].des_pos = findNearestActualPoint(des1,des2);\n\t\t\t\t\tdancers[i].pit_id = this.pits.length - 1 - this.couples_found;\n\t\t\t\t\tdancers[partner_ids[i]].des_pos = findNearestActualPoint(des2,des1);\n\t\t\t\t\tdancers[partner_ids[i]].pit_id = this.pits.length - 2 - this.couples_found;\n\t\t\t\t\tthis.connected = false;\n\t\t\t\t\tthis.couples_found += 2;\n\t\t\t\t\tnew_couples += 2;\n\t\t\t\t}\n\t\t\t\trelation[i][partner_ids[i]] = 1;\n\t\t\t\trelation[partner_ids[i]][i] = 1;\n\t\t\t\tdancers[i].soulmate = partner_ids[i];\n\t\t\t}\n\t\t\telse if(enjoyment_gained[i] == 4){\n\t\t\t\trelation[i][partner_ids[i]] = 2;\n\t\t\t}\n\t\t\telse if(enjoyment_gained[i] == 3){\n\t\t\t\trelation[i][partner_ids[i]] = 3;\n\t\t\t}\n\t\t\tdanced[i][partner_ids[i]] += 6;\n\t\t}\n\t\t//if(new_couples != 0) System.out.println(\"new couples: \" + new_couples);\n\t}", "private boolean initiateConnections(RegistrySendsNodeManifest event)\n\t\t\tthrows UnknownHostException, IOException {\n\t\t// close all getConnections() from previous overlay.\n\t\tfor (Map.Entry<Integer, TCPConnection> entry : this.nodesToSendTo.getConnections()\n\t\t\t\t.entrySet()) {\n\t\t\tTCPConnection connector = entry.getValue();\n\t\t\tconnector.closeSocket();\n\t\t}\n\t\t//Create sockets to peers\n\t\tallNodes = event.getAllNodes();\n\t\tint numConnectionsToMake = event.getRoutingTableSize();\n\t\tnodesToSendTo = new TCPConnectionsCache();\n\t\tfor (int i = 0; i < numConnectionsToMake; i++) {\n\t\t\tString ipAdd = \"\";\n\t\t\tfor (int j = 0; j < event.getIPLen(i); j++) {\n\t\t\t\tint ipPortion = event.getHopIP(i)[j] & 0xFF;\n\t\t\t\tipAdd += ipPortion;\n\t\t\t\tif (j < event.getIPLen(i) - 1)\n\t\t\t\t\tipAdd += \".\";\n\t\t\t}\n\t\t\tSocket hopSocket = new Socket(ipAdd, event.getHopPort(i));\n\t\t\tTCPConnection hop = new TCPConnection(hopSocket, this);\n\t\t\tnodesToSendTo.putConnection(hop, event.getHopID(i));\n\t\t}\n\t\t//Ensure each socket connection was successful\n\t\tboolean connectionsAllGood = true;\n\t\tfor (Map.Entry<Integer, TCPConnection> entry : nodesToSendTo.getConnections()\n\t\t\t\t.entrySet()) {\n\t\t\tTCPConnection value = entry.getValue();\n\t\t\tif (!value.checkSocketStatus())\n\t\t\t\treturn false;\n\t\t}\n\t\treturn connectionsAllGood;\n\t}", "private void constructACLMessage()\n {\n PlayIntroAction playIntroObject = new PlayIntroAction();\n playIntroObject.setLenght(numberOfMeasures);\n playIntroObject.setNow(true);\n playIntroObject.setDuration(-1);\n msg = new ACLMessage(ACLMessage.CFP);\n msg.setLanguage(codec.getName());\n msg.setOntology(ontology.getName());\n for(int i = 0; i < receivers.size(); i++)\n {\n try\n {\n //fill the content using the Ontology concept\n myAgent.getContentManager().fillContent(msg,new Action((AID)receivers.elementAt(i),playIntroObject));\n }catch (Exception ex) { ex.printStackTrace(); }\n //Set the receiver of the message\n msg.addReceiver((AID)receivers.elementAt(i));\n\n }\n\n //Set the protocol that we gonna use\n msg.setProtocol(FIPANames.InteractionProtocol.FIPA_CONTRACT_NET);\n //We indicate the deadline of the reply\n msg.setReplyByDate(new Date(System.currentTimeMillis() + 30000));\n\n\n }", "public static void assignRecipients(Participant[] participants, \n Random rand) {\n System.out.println();\n printHighlighted(\"ASSIGN RECIPIENTS FOR ALL PARTICIPANTS\");\n \n boolean allHaveMatches = false;\n while (!allHaveMatches){\n resetMatches(participants);\n \n for (int i = 0; i < participants.length; i++) {\n Participant person = participants[i];\n printHighlighted(\"SEARCH FOR: \\\"\" + \n person.getName().toUpperCase() + \"\\\"\");\n \n // to avoid infinite loop when an impossible matching scenario occurs\n int retryCount = 0;\n while (!person.hasRecipient() && \n retryCount < participants.length * RETRY_COUNT_MULTIPLIER) {\n // random index of Participant in participants array\n int num = rand.nextInt(participants.length);\n \n // NOT itself AND recipient does NOT have gifter/\"Santa\"\n if (num != i && !participants[num].hasSender()) {\n person.setRecipient(participants[num]);\n participants[num].setSender(person);\n System.out.println(\"Random participant found.\");\n } else if (num == i) { // does not count towards retryCount\n System.out.println(\"Random participant was themselves...\" + \n \"RETRYING.\");\n } else if (participants[num].hasSender()) {\n System.out.println(\"Random participant was \\\"\" + \n participants[num].getName() + \n \"\\\" who already has sender: \\\"\" + \n participants[num].getSenderName() + \n \"\\\"...RETRYING.\");\n retryCount++;\n } else {\n System.out.println(\"Other error...RETRYING\");\n retryCount++;\n }\n \n if (retryCount > participants.length * RETRY_COUNT_MULTIPLIER) {\n printHighlighted(\"OVER RETRY THRESHOLD...WILL RESET AFTER LOOP\");\n }\n }\n \n System.out.println();\n }\n \n allHaveMatches = allHaveMatches(participants);\n if (allHaveMatches) {\n printHighlighted(\"ALL PARTICIPANTS HAVE MATCHES\");\n } else {\n printHighlighted(\"NOT ALL PARTICIPANTS HAVE MATCHES\");\n System.out.println();\n printHighlighted(\"RESTARTING LOOP\");\n }\n \n System.out.println();\n }\n }", "public void askToAll() {\n\t\tfor(ClientThread player: players) {\n\t\t\tif(player != dealer)\n\t\t\t\tplayer.send(new Package(\"ASK\",null));\n\t\t\telse {\n\t\t\t\tdealer.send(new Package(\"MESSAGE\",\"As dealer, you'll wait for other players...\"));\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n\tpublic void pushDataToEcc() {\n\t\t\r\n\t}", "public boolean needAnnounce() {\n\t\tint peersPerThread = Config.getConfig().getInt(\"peer-max_connecting\") / Config.getConfig().getInt(\"peer-max_concurrent_connecting\");\n\t\tboolean needEnoughPeers = peersWanted() >= peersPerThread;\n\t\tboolean notExceedMaxPendingPeers = peers.size() < peerManager.getMaxPendingPeers(torrentStatus);\n\t\tboolean hasConnectingSpace = getFreeConnectingCapacity() > 0;\n\t\treturn needEnoughPeers && notExceedMaxPendingPeers && hasConnectingSpace;\n\t}", "public void add(PeerInt p){\n\t\tMLog.log(\"adding peer\");\n\t\tpeers.add(p);\n\t}", "public void setPeer(Peer peer);", "public void sendingMessageForEmp(Set<String> emailCCList){\n\tSimpleMailMessage[] mailMessageArray = new SimpleMailMessage[1];\r\n Iterator iterator = emailCCList.iterator();\r\n // for (int index = 0; iterator.hasNext(); index ++){\r\n while(iterator.hasNext())\r\n {\r\n String mailids=(String)iterator.next();\r\n SimpleMailMessage message = new SimpleMailMessage();\r\n String toAddress = (String)iterator.next();\r\n message.setFrom(\"[email protected]\");\r\n message.setTo(\"[email protected]\");\r\n message.setSubject(\"With CC\");\r\n message.setCc(mailids);\r\n message.setText(\"Mail Sent from @[email protected]\");\r\n mailMessageArray[0] = message;\r\n//}\r\n\r\n System.out.println(\"Sending email ....\");\r\n mailSender.send(mailMessageArray);\r\n System.out.println(\"Sent email ....\");\r\n }\r\n\r\n}", "void addPeer(Uuid peer) throws RemoteException;", "private void reEstablishConnections() {\n// System.out.println(\"Impossible to create overlay, starting over...\");\n for (NodeRecord node : registeredNodes.values()) {\n node.getNodesToConnectToList().clear();\n node.resetNumberOfConnections();\n }\n createOverlay();\n }", "private void connectAll()\n {\n\t\tint i = 0;\n\t\tint j = 1;\n\t\twhile (i < getNodes().size()) {\n\t\t\twhile (j < getNodes().size()) {\n\t\t\t\tLineEdge l = new LineEdge(false);\n\t\t\t\tl.setStart(getNodes().get(i));\n\t\t\t\tl.setEnd(getNodes().get(j));\n\t\t\t\taddEdge(l);\n\t\t\t\tj++;\n\t\t\t}\n\t\t\ti++; j = i+1;\n\t\t}\n\n }", "void enforceCollectiveDeliveryPolicy(Message msg){ \r\n\t\t//from the message obtained from msg.getRefersTo() get the message id, while from msg.getSenderId() we get the sender to look up the entry in the data structure\r\n\t\ttry{\r\n\t\t\tboolean policySucceeded = checkCollectiveDeliveryPolicy(msg); //return true if policy conclusively succeeded, false if still valid but still not succeeded, Exception if conclusively failed. \r\n\t\t\tif (policySucceeded){ //collective policy conclusively succeeded. Purge entries from corresponding data structures.\r\n\t\t\t\t//collectiveDiscardCondition.lock(); //with the concurrent map should also work without this\r\n\t\t\t\tdiscardEntriesInPeerDeliveryPolicyDataStructure(msg.getRefersTo(), msg.getReceiverId());\r\n\t\t\t\tdiscardCollectivePolicyEntry(msg.getRefersTo(), msg.getReceiverId());\r\n\t\t\t\t//TODO if (DeliveryPolicy.Message.ACKNOWLEDGE is set for the initial message)\r\n\t\t\t\tsend(PredefinedMessageHelper.createAcknowledgeMessageFromAdaptersAcknowledgeMessage(msg)); //or send to TEE directly\r\n\t\t\t}\r\n\t\t}catch(Exception e){ //collective policy conclusively failed. Purge entries, and inform the original sender of the ERR.\r\n\t\t\t//if (!collectiveDiscardCondition.isHeldByCurrentThread()) collectiveDiscardCondition.lock();\r\n\t\t\t\r\n\t\t\tdiscardEntriesInPeerDeliveryPolicyDataStructure(msg.getRefersTo(), msg.getReceiverId());\r\n\t\t\tdiscardCollectivePolicyEntry(msg.getRefersTo(), msg.getReceiverId());\r\n\t\t\t\r\n\t\t\t//this implies that I want the broker to deliver me messages which will have: \r\n\t\t\t//sender=the actual peer that failed/succeeded, receiver: the component who originally sent the message to which they are replying to\r\n\t\t\t//plus refersTo field, containing the id of the original message - check with Philipp\r\n\t\t\tsend(PredefinedMessageHelper.createDeliveryErrorMessageFromAdaptersCommunicationErrorMessage(msg)); \r\n\t\t}finally{\r\n\t\t\t//collectiveDiscardCondition.unlock();\r\n\t\t}\r\n\r\n\t}", "public void addNotify()\n { \n super.addNotify(); // creates the peer\n startGame(); // start the thread\n }", "private void indirectAssociations_DeriveIndirectInheritance() {\n try{\n \tList<FamixAssociation> indirectInheritanceAssociations = new ArrayList<FamixAssociation>();\n\t for (FamixAssociation directAssociation : theModel.associations) {\n if (directAssociation.to == null || directAssociation.from == null || directAssociation.to.equals(\"\") || directAssociation.from.equals(\"\")){ \n \tnumberOfNotConnectedWaitingAssociations ++;\n }\n else if (directAssociation instanceof FamixInheritanceDefinition){ \n \t\t\t\tindirectInheritanceAssociations.addAll(indirectAssociations_AddIndirectInheritanceAssociation(directAssociation.from, directAssociation.to, directAssociation.lineNumber));\n\t\t\t\t}\n\t\t\t}\n\t for (FamixAssociation indirectInheritanceAssociation : indirectInheritanceAssociations) {\n\t \taddToModel(indirectInheritanceAssociation);\n\t }\n } catch (Exception e) {\n\t this.logger.debug(new Date().toString() + \" \" + e);\n\t e.printStackTrace();\n }\n }", "public void doCollectMeeting() {\n\t}", "public void testFullTest() {\n\n resetCounter();\n \n XMPPConnection x0 = getConnection(0);\n XMPPConnection x1 = getConnection(1);\n\n XMPPConnection.DEBUG_ENABLED = true;\n\n FixedResolver tr0 = new FixedResolver(\"127.0.0.1\", 20080);\n FixedTransportManager ftm0 = new FixedTransportManager(tr0);\n JmfMediaManager jmf0 = new JmfMediaManager(ftm0);\n List<JingleMediaManager> trl0 = new ArrayList<JingleMediaManager>();\n trl0.add(jmf0);\n\n FixedResolver tr1 = new FixedResolver(\"127.0.0.1\", 20040);\n FixedTransportManager ftm1 = new FixedTransportManager(tr1);\n JmfMediaManager jmf1 = new JmfMediaManager(ftm1);\n List<JingleMediaManager> trl1 = new ArrayList<JingleMediaManager>();\n trl1.add(jmf1);\n\n JingleManager man0 = new JingleManager(x0, trl0);\n JingleManager man1 = new JingleManager(x1, trl1);\n \n man1.addJingleSessionRequestListener(new JingleSessionRequestListener() {\n public void sessionRequested(final JingleSessionRequest request) {\n\n try {\n\n JingleSession session = request.accept();\n session.addListener(new JingleSessionListener() {\n\n public void sessionEstablished(PayloadType pt, TransportCandidate rc, TransportCandidate lc,\n JingleSession jingleSession) {\n incCounter();\n System.out.println(\"Establish In\");\n }\n\n public void sessionDeclined(String reason, JingleSession jingleSession) {\n }\n\n public void sessionRedirected(String redirection, JingleSession jingleSession) {\n }\n\n public void sessionClosed(String reason, JingleSession jingleSession) {\n // incCounter();\n }\n\n public void sessionMediaReceived(JingleSession jingleSession, String participant) {\n // Do Nothing\n }\n\n public void sessionClosedOnError(XMPPException e, JingleSession jingleSession) {\n // incCounter();\n }\n });\n\n session.startIncoming();\n } catch (XMPPException e) {\n e.printStackTrace();\n }\n\n }\n });\n\n for (int i = 0; i < 3; i++)\n try {\n\n JingleSession js0 = man0.createOutgoingJingleSession(x1.getUser());\n\n js0.addListener(new JingleSessionListener() {\n\n public void sessionEstablished(PayloadType pt, TransportCandidate rc, TransportCandidate lc,\n JingleSession jingleSession) {\n incCounter();\n System.out.println(\"Establish Out\");\n }\n\n public void sessionDeclined(String reason, JingleSession jingleSession) {\n }\n\n public void sessionRedirected(String redirection, JingleSession jingleSession) {\n }\n\n public void sessionClosed(String reason, JingleSession jingleSession) {\n // incCounter();\n }\n\n public void sessionMediaReceived(JingleSession jingleSession, String participant) {\n // Do Nothing\n }\n\n public void sessionClosedOnError(XMPPException e, JingleSession jingleSession) {\n // incCounter();\n }\n });\n\n js0.startOutgoing();\n\n Thread.sleep(8000);\n js0.terminate();\n\n Thread.sleep(3000);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n System.out.println(valCounter());\n assertTrue(valCounter() == 6);\n }", "public void begin() {\n multicastAlgorithm.setPacketOutlet(this);\n unicastAlgorithm.setPacketOutlet(this);\n receiver.setMulticastAlgorithm(multicastAlgorithm);\n receiver.setUnicastAlgorithm(unicastAlgorithm);\n receiver.launch(true);\n sender.launch(true);\n }", "public static void initialize()\n {\n localPeerIDCount = 0;\n\n }", "@Override\n\tpublic void addParties(ArrayList<Party> others) {\n\n\t}", "private void updateChatAttendees() {\n if (updateChatAttendeeIdList.size() == 1) { //size()==0 indicates user has been dropped\n Toast.makeText(this, R.string.error_chat_participant, Toast.LENGTH_LONG).show();\n return;\n }\n ArrayList<String> dropAttendeeIdList = new ArrayList<>();\n dropAttendeeIdList.addAll(chatAttendeeIdList);\n dropAttendeeIdList.removeAll(updateChatAttendeeIdList);\n ArrayList<String> addAttendeeIdList = new ArrayList<>();\n addAttendeeIdList.addAll(updateChatAttendeeIdList);\n addAttendeeIdList.removeAll(chatAttendeeIdList);\n if (addAttendeeIdList.isEmpty() && dropAttendeeIdList.isEmpty()) { //no changes\n return;\n }\n\n if (!chat.creatorId.equals(myId)) {\n Toast.makeText(this, R.string.only_creator_change_attendee, Toast.LENGTH_LONG).show();\n return;\n }\n\n if (!dropAttendeeIdList.isEmpty()) {\n String message = null;\n switch (httpServerManager.dropConversationAttendees(conversationId, dropAttendeeIdList)) {\n case 3: //ok\n break;\n case 1: //no user\n message = \"Cannot find one or more participants in database\";\n break;\n case 4:\n message = \"Cannot find chat with id: \" + conversationId + \"in database\";\n break;\n case -1:\n message = \"Server error. Please try again\";\n //TODO: mark Conversation_Attendees table as Sync_Needed\n break;\n }\n if (message != null) {\n Toast.makeText(this, message, Toast.LENGTH_SHORT).show();\n return;\n }\n }\n\n if (!addAttendeeIdList.isEmpty()) {\n // save unregistered attendees (those with negative ids)\n for (int j = 0; j < addAttendeeIdList.size(); j++) {\n String attendeeId = addAttendeeIdList.get(j);\n if (attendeeId.startsWith(\"-\")) {\n Attendee attendee = null;\n for (int i = 0; i < chat.attendees.size(); i++) {\n if (attendeeId.equals(chat.attendees.get(i).id)) {\n attendee = chat.attendees.get(i);\n break;\n }\n }\n if (attendee == null || !conversationManager.saveUnregisteredAttendee(attendee)) {\n Toast.makeText(this, R.string.error_create_chat, Toast.LENGTH_SHORT).show();\n return;\n }\n\n chatAttendeeIdList.add(attendee.id);\n updateChatAttendeeIdList.remove(attendeeId);\n updateChatAttendeeIdList.add(attendee.id);\n addAttendeeIdList.set(j, attendee.id);\n }\n }\n String message = null;\n switch (httpServerManager.addConversationAttendees(conversationId, addAttendeeIdList)) {\n case 3: //ok\n break;\n case 1: //no user\n message = \"Cannot find one or more users in database\";\n break;\n case 4:\n message = \"Cannot find chat with id: \" + conversationId + \"in database\";\n break;\n case -1:\n message = \"Server unavailable. Please check your network connection\";\n //TODO: mark Conversation_Attendees table as Sync_Needed\n break;\n }\n if (message != null) {\n Toast.makeText(this, message, Toast.LENGTH_SHORT).show();\n return;\n }\n }\n\n //notify dropped chat attendees\n if (!dropAttendeeIdList.isEmpty()) {\n chatServerManager.dropConversationAttendees(myId, conversationId, dropAttendeeIdList, chatAttendeeIdList);\n }\n\n //notifiy existing chat attendees of new users and new users to start chat\n if (!addAttendeeIdList.isEmpty()) {\n List<String> recipients = new ArrayList<>();\n recipients.addAll(updateChatAttendeeIdList);\n recipients.removeAll(addAttendeeIdList);\n chatServerManager.addConversationAttendees(myId, conversationId, addAttendeeIdList, recipients);\n chatServerManager.startConversation(myId, conversationId, addAttendeeIdList);\n }\n }", "private void sendActivationsToNecessaryGroups(DataGroupInfo group)\n {\n Set<String> activeGroupIds = getUserActivatedGroupIds();\n List<DataGroupInfo> toActivate = group.groupStream()\n .filter(g -> !g.activationProperty().isActivatingOrDeactivating() && activeGroupIds.contains(g.getId()))\n .collect(Collectors.toList());\n if (!toActivate.isEmpty())\n {\n if (LOGGER.isTraceEnabled())\n {\n StringBuilder sb = new StringBuilder(\"Sending Activations to Necessary Groups: \\n\");\n toActivate.stream().forEach(dgi -> sb.append(\" \").append(dgi.getId()).append('\\n'));\n LOGGER.trace(sb.toString());\n }\n try\n {\n new DefaultDataGroupActivator(myController.getToolbox().getEventManager()).setGroupsActive(toActivate, true);\n }\n catch (InterruptedException e)\n {\n LOGGER.error(e, e);\n }\n }\n }", "private void readPeers() {\n\t\tif(peersFile.exists()) {\n\t\t\ttry {\n\t\t\t\tBufferedReader reader = new BufferedReader(new FileReader(peersFile));\n\t\t\t\tString line = reader.readLine();\n\t\t\t\tint lineNumber = 1;\n\t\t\t\twhile(line != null && peers.size() < maximumConnections) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tInetAddress candidate = InetAddress.getByName(line);\n\t\t\t\t\t\tcheckPeer(candidate);\n\t\t\t\t\t} catch (UnknownHostException e) {\n\t\t\t\t\t\tString logMsg = String.format(\"Invalid host address \\\"%s\\\" in file %s at line number %d\", line, peersFile.getName(), lineNumber);\n\t\t\t\t\t\tDecentLogger.write(logMsg);\n\t\t\t\t\t}\n\t\t\t\t\tline = reader.readLine();\n\t\t\t\t\tlineNumber++;\n\t\t\t\t}\n\t\t\t\treader.close();\n\t\t\t}\n\t\t\tcatch (FileNotFoundException e1) {\n\t\t\t\tString logMsg = String.format(\"Peer file %s not found\", peersFile.getName());\n\t\t\t\tDecentLogger.write(logMsg);\n\t\t\t} \n\t\t\tcatch (IOException e1) {\n\t\t\t\tDecentLogger.write(\"Unable to read file due to \"+e1.getMessage());\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\ttry {\n\t\t\t\tpeersFile.createNewFile();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public void getRelationsComplete(Integer result, ArrayList<Friend> newFriends);", "public final void populateGraphWithArena(final Arena arena) {\r\n for (final GraphNode node : vertexCorrespondence.values()) {\r\n node.dispose();\r\n }\r\n vertexCorrespondence.clear();\r\n for (final GraphConnection connection : edgeCorrespondence.values()) {\r\n connection.dispose();\r\n }\r\n edgeCorrespondence.clear();\r\n\r\n final Collection<? extends ParityVertex> vertices = arena.getVertices();\r\n for (final ParityVertex vertex : vertices) {\r\n GraphNode node = new GraphNode(graph, vertex.getPlayer()\r\n .getZestStyleFlag(), Integer.toString(vertex.getPriority()));\r\n node.setTooltip(new Label(vertex.getName()));\r\n vertexCorrespondence.put(vertex, node);\r\n }\r\n for (final ParityVertex fromVertex : vertices) {\r\n for (final ParityVertex toVertex : fromVertex.getSuccessors()) {\r\n final GraphConnection connection = new GraphConnection(graph,\r\n ZestStyles.CONNECTIONS_DIRECTED,\r\n vertexCorrespondence.get(fromVertex),\r\n vertexCorrespondence.get(toVertex));\r\n if (fromVertex.equals(toVertex)) {\r\n connection.setCurveDepth(20);\r\n } else if (toVertex.getSuccessors().contains(fromVertex)) {\r\n connection.setCurveDepth(10);\r\n }\r\n connection.setLineColor(BLACK);\r\n edgeCorrespondence.put(new ParityEdge(fromVertex, toVertex),\r\n connection);\r\n }\r\n }\r\n\r\n graph.setLayoutAlgorithm(new SpringLayoutAlgorithm(\r\n LayoutStyles.NO_LAYOUT_NODE_RESIZING), true);\r\n }", "@Ignore\n @Test\n public void startReiver() throws IOException, InterruptedException {\n\n final int maxPeers = 10;\n PeerDHT[] peers = createPeers(PORT, maxPeers, \"receiver\");\n for (int i = 1; i < maxPeers; i++) {\n \tPeerDHT peer = peers[i];\n peer.peer().bootstrap().peerAddress(peers[0].peer().peerAddress()).start().awaitUninterruptibly();\n peer.peer().objectDataReply(new ObjectDataReply() {\n @Override\n public Object reply(final PeerAddress sender, final Object request) throws Exception {\n System.out.println(\"got it!\");\n return \"recipient got it\";\n }\n });\n }\n Thread.sleep(Long.MAX_VALUE);\n }", "public void addPeerToList(WifiP2pDevice peer) {\n stopRefreshActionBar();\n int peer_index = -1;\n if ((peer_index = peers_.indexOf(peer)) != -1) {\n peers_.get(peer_index).deviceName = peer.deviceName;\n peers_.get(peer_index).deviceAddress = peer.deviceAddress;\n peers_.get(peer_index).status = peer.status;\n } else {\n peers_.add(peer);\n }\n displayEmptyView();\n System.out.println(\"Peers found\");\n ((PeersAdapter)adapter_).update();\n listener_.onDiscoveringPeersRequestDone();\n }", "private void setUpRelations() {\n g[0].getAuthorities().add(a[0]);\n g[1].getAuthorities().add(a[0]);\n g[1].getAuthorities().add(a[1]);\n g[2].getAuthorities().add(a[2]);\n\n u[0].getGroups().add(g[0]);\n u[0].getOwnAuthorities().add(a[2]);\n u[1].getGroups().add(g[1]);\n u[1].getOwnAuthorities().add(a[2]);\n u[2].getOwnAuthorities().add(a[2]);\n u[2].getOwnAuthorities().add(a[3]);\n u[3].getGroups().add(g[1]);\n u[3].getGroups().add(g[2]);\n merge();\n }", "protected void validatePartnerLinkUsers() {\r\n for (IAePartnerLinkOperationUser user : mUsers) {\r\n validatePartnerLinkUser(user);\r\n }\r\n }", "private void sendUpdate(int dest) {\n Set<AS> prevAdvedTo = this.adjOutRib.get(dest);\n Set<AS> newAdvTo = new HashSet<AS>();\n BGPPath pathOfMerit = this.locRib.get(dest);\n\n /*\n * If we have a current best path to the destination, build a copy of\n * it, apply export policy and advertise the route\n */\n if (pathOfMerit != null) {\n BGPPath pathToAdv = pathOfMerit.deepCopy();\n\n pathToAdv.prependASToPath(this.asn);\n\n /*\n * Advertise to all of our customers\n */\n for (AS tCust : this.customers) {\n tCust.advPath(pathToAdv);\n newAdvTo.add(tCust);\n }\n\n /*\n * Check if it's our locale route (NOTE THIS DOES NOT APPLY TO\n * HOLE PUNCHED ROUTES, so the getDest as opposed to the\n * getDestinationAS _IS_ correct) or if we learned of it from a\n * customer\n */\n if (pathOfMerit.getDest() == this.asn\n || (this.getRel(pathOfMerit.getNextHop()) == 1)) {\n for (AS tPeer : this.peers) {\n tPeer.advPath(pathToAdv);\n newAdvTo.add(tPeer);\n }\n for (AS tProv : this.providers) {\n tProv.advPath(pathToAdv);\n newAdvTo.add(tProv);\n }\n }\n }\n\n /*\n * Handle the case where we had a route at one point, but have since\n * lost any route, so obviously we should send a withdrawl\n */\n if (prevAdvedTo != null) {\n prevAdvedTo.removeAll(newAdvTo);\n for (AS tAS : prevAdvedTo) {\n tAS.withdrawPath(this, dest);\n }\n }\n\n /*\n * Update the adj-out-rib with the correct set of ASes we have\n * adverstised the current best path to\n */\n this.adjOutRib.put(dest, newAdvTo);\n }", "public void addContacts(List<Contact> contactList){\n for(Contact contact:contactList){\n addContact(contact);\n }\n }", "public void sendDirectedPresence() {\n Cursor cursor = getContentResolver().query(\n Roster.CONTENT_URI,\n new String[]{Roster.LAST_UPDATED},\n null, null, \"last_updated desc\"\n );\n if (cursor.moveToFirst()) {\n long after = cursor.getLong(\n cursor.getColumnIndex(Roster.LAST_UPDATED));\n Presence presence = new Presence(Type.available);\n presence.setTo(\"broadcaster.buddycloud.com\");\n client.sendFromAllResources(presence);\n }\n cursor.close();\n }", "com.microsoft.schemas.crm._2011.contracts.ArrayOfConstraintRelation addNewConstraints();", "private void assignAssistants(Player owner, Assistant a) {\n\t\towner.setAssistants(owner.getAssistants() + a.getNumber());\n\t}", "public static void doHighLatencyPeers(ArrayList<PEPeer> peers_to_choke, ArrayList<PEPeer> peers_to_unchoke, boolean allow_snubbed) {\n\n if (peers_to_choke.size() == 0) {\n\n return;\n }\n\n // System.out.println( \"doHLP: \" + peers_to_choke + \", \" + peers_to_unchoke );\n\n Iterator<PEPeer> choke_it = peers_to_choke.iterator();\n\n int to_remove = 0;\n\n while (choke_it.hasNext()) {\n\n PEPeer peer = choke_it.next();\n\n if (AENetworkClassifier.categoriseAddress(peer.getIp()) != AENetworkClassifier.AT_PUBLIC) {\n\n if (isUnchokable(peer, allow_snubbed)) {\n\n // System.out.println( \" removed \" + peer );\n\n choke_it.remove();\n\n to_remove++;\n\n } else {\n\n // it isn't unchokable so we need to choke it whatever\n\n }\n }\n }\n\n // if we've removed any chokes then we need to balance things by removing an equal number\n // of unchokes\n\n if (to_remove > 0) {\n\n ListIterator<PEPeer> unchoke_it = peers_to_unchoke.listIterator(peers_to_unchoke.size());\n\n // preferrably balance with high latency peers\n\n while (unchoke_it.hasPrevious()) {\n\n PEPeer peer = unchoke_it.previous();\n\n if (AENetworkClassifier.categoriseAddress(peer.getIp()) != AENetworkClassifier.AT_PUBLIC) {\n\n // System.out.println( \" balanced with \" + peer );\n\n unchoke_it.remove();\n\n to_remove--;\n\n if (to_remove == 0) {\n\n return;\n }\n }\n }\n\n if (to_remove > 0) {\n\n unchoke_it = peers_to_unchoke.listIterator(peers_to_unchoke.size());\n\n while (unchoke_it.hasPrevious()) {\n\n PEPeer peer = unchoke_it.previous();\n\n unchoke_it.remove();\n\n to_remove--;\n\n if (to_remove == 0) {\n\n return;\n }\n }\n }\n }\n }", "@Test(expected = IllegalArgumentException.class)\n public void testAddPeerToNonMatchingInterface() {\n replay(participantsConfig);\n\n peerManager.activate();\n\n peerManager.addPeerDetails(newPeer.name().get(),\n newPeer.ip(),\n SW3_ETH1,\n INTERFACE_SW3_ETH1);\n }", "private void signalElectionStart()\n \t{\n \t\tLogging.log(this, \"SENDELECTIONS()-START, electing cluster is \" + mParentCluster);\n \t\tLogging.log(this, \"SENDELECTIONS()-CEPs: \" + mParentCluster.getParticipatingCEPs().size());\n \n \t\tfor(CoordinatorCEPChannel tCEP : mParentCluster.getParticipatingCEPs()) {\n \t\t\t//TODO: enforce sending of BullyElect in any case\n \t\t\tif(tCEP.getPeerPriority().isUndefined() && ! tCEP.isEdgeCEP()/* || tCEP.getPeerPriority() > tCluster.getPriority()*/) {\n \t\t\t\tNode tNode = mParentCluster.getHRMController().getPhysicalNode();\n \t\t\t\t\n \t\t\t\ttCEP.sendPacket(new BullyElect(tNode.getCentralFN().getName(), mParentCluster.getBullyPriority()));\n \t\t\t}\n \t\t}\n \t\tLogging.log(this, \"SENDELECTIONS()-END\");\n \t}", "private synchronized void flushMessageQueue() {\n\t\tif(peers.size() > 0) {\n\t\t\twhile(!noPeersMessageQueue.isEmpty()) {\n\t\t\t\tpropagateToAllPeers(noPeersMessageQueue.poll());\n\t\t\t}\n\t\t}\n\t}", "private static void assignMembersOwnersToMemberships(Collection<Object[]> membershipArrays) {\r\n for (Object[] membershipArray : GrouperUtil.nonNull(membershipArrays)) {\r\n assignMemberOwnerToMembership(membershipArray);\r\n } \r\n }", "private void addPayeeToCollection() {\n\t\tif (getForm().getType() != TRANSFER) {\n\t\t\tPayee payee = new Payee(getForm().getPayFrom());\n\n\t\t\tif (payee.getIdentifier().length() != 0) {\n\t\t\t\tgetPayees().add(payee);\n\t\t\t\tgetForm().getPayFromChooser().displayElements();\n\t\t\t}\n\t\t}\n\t}", "@Override\n public void run() {\n if (nearMe.size() < HelperConstants.MAX_BYZANTINE_USERS + 1) {\n // If there are less nearby neighbors than required, there is no need to ask for proofs\n return;\n }\n\n for (GridUser gridUser: nearMe) {\n int targetPort = Utils.getListenerServicePortFromId(gridUser.getId());\n\n Thread t = new Thread(() -> sendRecordAndReceive(myRequest, gridUser, targetPort));\n t.start();\n ongoingProofRequests.add(t);\n }\n\n try {\n for (Thread t: ongoingProofRequests) {\n t.join();\n }\n } catch (InterruptedException e) {\n e.printStackTrace();\n for (Thread t: ongoingProofRequests) t.interrupt();\n }\n }", "void connect() throws UnsupportedProtocolVersionException {\n if (isShutdown) return;\n\n List<Host> hosts = new ArrayList<Host>(cluster.metadata.getContactPoints());\n // shuffle so that multiple clients with the same contact points don't all pick the same control\n // host\n Collections.shuffle(hosts);\n setNewConnection(reconnectInternal(hosts.iterator(), true));\n }", "public void setup_clients()\n {\n ClientInfo t = new ClientInfo();\n for(int i=0;i<5;i++)\n {\n // for mesh connection between clients\n // initiate connection to clients having ID > current node's ID\n if(i > my_c_id)\n {\n // get client info\n String t_ip = t.hmap.get(i).ip;\n int t_port = Integer.valueOf(t.hmap.get(i).port);\n Thread x = new Thread()\n {\n \tpublic void run()\n {\n try\n {\n Socket s = new Socket(t_ip,t_port);\n // SockHandle instance with svr_hdl false and rx_hdl false as this is the socket initiator\n // and is a connection to another client node\n SockHandle t = new SockHandle(s,my_ip,my_port,my_c_id,c_list,s_list,false,false,cnode);\n }\n catch (UnknownHostException e) \n {\n \tSystem.out.println(\"Unknown host\");\n \tSystem.exit(1);\n } \n catch (IOException e) \n {\n \tSystem.out.println(\"No I/O\");\n e.printStackTrace(); \n \tSystem.exit(1);\n }\n \t}\n };\n \n x.setDaemon(true); \t// terminate when main ends\n x.setName(\"Client_\"+my_c_id+\"_SockHandle_to_Client\"+i);\n x.start(); \t\t\t// start the thread\n }\n }\n\n // another thread to check until all connections are established ( ie. socket list size =4 )\n // then send a message to my_id+1 client to initiate its connection setup phase\n Thread y = new Thread()\n {\n public void run()\n {\n int size = 0;\n // wait till client connections are setup\n while (size != 4)\n {\n synchronized(c_list)\n {\n size = c_list.size();\n }\n }\n // if this is not the last client node (ID =4)\n // send chain init message to trigger connection setup\n // phase on the next client\n if(my_c_id != 4)\n {\n c_list.get(my_c_id+1).send_setup();\n System.out.println(\"chain setup init\");\n }\n // send the setup finish, from Client 4\n // indicating connection setup phase is complete\n else\n {\n c_list.get(0).send_setup_finish();\n }\n }\n };\n \n y.setDaemon(true); \t// terminate when main ends\n y.start(); \t\t\t// start the thread\n }", "@Override\n public ModuleImplAdvertisement getAllPurposePeerGroupImplAdvertisement() {\n JxtaLoader loader = getLoader();\n\n // For now, use the well know NPG naming, it is not identical to the \n // allPurpose PG because we use the class ShadowPeerGroup which \n // initializes the peer config from its parent.\n ModuleImplAdvertisement implAdv = loader.findModuleImplAdvertisement(PeerGroup.refNetPeerGroupSpecID);\n\n return implAdv;\n }", "public void makeComplete() {\n\t\t// A complete graph has N(N-1)/2 edges. Create an ArrayList for those\n\t\t// for performance.\n\t\tint n = nodeArray.size();\n\t\tthis.edges = new ArrayList<Edge>(n * (n - 1) / 2);\n\n\t\t// Connect every node to the others\n\t\tfor (int i = 0; i < nodeArray.size(); i++) {\n\t\t\tfor (int k = i + 1; k < nodeArray.size(); k++) {\n\n\t\t\t\tEdge edge = new Edge(nodeArray.get(i), nodeArray.get(k));\n\t\t\t\tedges.add(edge);\n\t\t\t}\n\t\t}\n\t}", "public static void main(String[] args){\n\t\tInterview interview = new Interview();\r\n\t\tinterview.loadCandidates();\r\n\t\tinterview.setupAndPrintCandidateData();\r\n\t\t\r\n\t\t// Test the Social Media Challenge\r\n\t\tMember m1 = new Member(\"A\",\"[email protected]\");\r\n\t\tMember m2 = new Member(\"B1\",\"[email protected]\");\r\n\t\tMember m3 = new Member(\"C1\",\"[email protected]\");\r\n\t\tMember m4 = new Member(\"D1\", \"[email protected]\");\r\n\t\tMember m5 = new Member(\"E2\",\"[email protected]\");\r\n\t\tMember m6 = new Member(\"F2\", \"[email protected]\");\r\n\t\tMember m7 = new Member(\"G2\", \"[email protected]\");\r\n\t\tMember m8 = new Member(\"H2\", \"[email protected]\");\r\n\t\tMember m9 = new Member(\"I2\", \"[email protected]\");\r\n\t\tMember m10 = new Member(\"J2\", \"[email protected]\");\r\n\t\tMember m11 = new Member(\"K2\", \"[email protected]\");\r\n\t\tMember m12 = new Member(\"L2\", \"[email protected]\");\r\n\t\tMember m13 = new Member(\"M2\", \"M2gmail.com\");\r\n\t\tMember m14 = new Member(\"N3\", \"[email protected]\");\r\n\t\tMember m15 = new Member(\"O3\", \"[email protected]\");\r\n\t\tMember m16 = new Member(\"P3\", \"[email protected]\");\r\n\t\tMember m17 = new Member(\"Q3\", \"[email protected]\");\r\n\t\tMember m18 = new Member(\"R3\", \"[email protected]\");\r\n\t\t \r\n\t\t// Add friends of M1.\r\n\t\tm1.AddFriend(m2);\r\n\t\tm1.AddFriend(m3);\r\n\t\tm1.AddFriend(m4);\r\n\t\t\r\n\t\t// Add m2 friends\r\n\t\tm2.AddFriend(m5);\r\n\t\tm2.AddFriend(m6);\r\n\t\tm2.AddFriend(m7);\r\n\t\t \r\n\t\t// Add m3 friends\r\n\t\tm3.AddFriend(m8);\r\n\t\tm3.AddFriend(m9);\r\n\t\tm3.AddFriend(m10);\r\n\t\t\r\n\t\t// Add m4 friends\r\n\t\tm4.AddFriend(m11);\r\n\t\tm4.AddFriend(m12);\r\n\t\tm4.AddFriend(m13);\r\n\t\t\r\n\t\t// Add m5 friends\r\n\t\tm5.AddFriend(m14);\r\n\t\tm5.AddFriend(m15);\r\n\t\tm5.AddFriend(m16);\r\n\t\t\r\n\t\t// Add m6 friends\r\n\t\tm6.AddFriend(m17);\r\n\t\tm6.AddFriend(m18);\r\n\t\t \r\n\t\tSocialMedia.printFriends(m1);\r\n\t}", "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}", "private void addAllCertificate(\n java.lang.Iterable<? extends com.google.protobuf.ByteString> values) {\n ensureCertificateIsMutable();\n com.google.protobuf.AbstractMessageLite.addAll(\n values, certificate_);\n }", "public void imprimirPeersConectados() {\n\t\tSystem.out.println();\n\t\tSystem.out.println(\n\t\t\t\tDisplayConstants.COMMAND_PREFIX + \"Peers conectados: \" + this.listaChavesPublicas.keySet().toString());\n\t\tSystem.out.println();\n\t}", "private void contactUs() {\n }", "private void connectToNotary() throws RemoteException, InvalidSignatureException {\n\t\tfor (String notaryID : notaryServers.keySet()) {\n\t\t\tNotaryInterface notary = notaryServers.get(notaryID);\n\n\t\t\tString cnonce = cryptoUtils.generateCNonce();\n\t\t\tString toSign = notary.getNonce(this.id) + cnonce + this.id;\n\t\t\tX509Certificate res = notary\n\t\t\t\t.connectToNotary(this.id, cnonce, cryptoUtils.getStoredCert(),\n\t\t\t\t\tcryptoUtils.signMessage(toSign));\n\n\t\t\tcryptoUtils.addCertToList(notaryID, res);\n\t\t}\n\t}" ]
[ "0.7194329", "0.5854281", "0.5666508", "0.5655992", "0.56338745", "0.55661964", "0.5507185", "0.5471742", "0.5429113", "0.5390252", "0.5361651", "0.5277631", "0.5250047", "0.52377415", "0.5231754", "0.5220142", "0.51638293", "0.51563746", "0.5151288", "0.51306546", "0.5113474", "0.5112489", "0.5102572", "0.5092872", "0.50880706", "0.50833887", "0.5080728", "0.5055568", "0.50498474", "0.50432205", "0.502626", "0.5016018", "0.4996292", "0.499487", "0.49676308", "0.4955968", "0.49463692", "0.4919211", "0.49169478", "0.4910914", "0.49099955", "0.4902672", "0.49008697", "0.489244", "0.4891623", "0.48877195", "0.48870617", "0.4885569", "0.4877623", "0.48711237", "0.48636287", "0.48622474", "0.4858281", "0.48568243", "0.48368818", "0.48314333", "0.48236343", "0.48060626", "0.48029903", "0.4795117", "0.47923505", "0.47859657", "0.478386", "0.47699627", "0.4758959", "0.47490227", "0.47377962", "0.47314364", "0.4728595", "0.4725803", "0.47207326", "0.47185078", "0.47075668", "0.4706187", "0.470368", "0.47030187", "0.47025287", "0.4701076", "0.47009307", "0.4700138", "0.46976864", "0.46942613", "0.4689079", "0.46890184", "0.46871248", "0.4684351", "0.46749914", "0.4674548", "0.4672345", "0.46690825", "0.46627364", "0.4662366", "0.46588832", "0.46577957", "0.46555766", "0.46480733", "0.46437836", "0.46429548", "0.4636089", "0.463084", "0.46257427" ]
0.0
-1
Try to connect the peer with all peers inside list.
private void connectingPeer() { for (int index = 0; index < this.peers.size(); index++) { String peerUrl = urlAdderP2PNodeName((String) this.peers.get(index)); try { Node distNode = NodeFactory.getNode(peerUrl); P2PService peer = (P2PService) distNode.getActiveObjects(P2PService.class.getName())[0]; if (!peer.equals(this.localP2pService)) { // Send a message to the remote peer to record me peer.register(this.localP2pService); // Add the peer in my group of acquaintances this.acqGroup.add(peer); } } catch (Exception e) { logger.debug("The peer at " + peerUrl + " couldn't be contacted", e); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void connectToAll() {\n for (AStarNode node : getNodes()) {\n node.resetConnection();\n for (AStarNode connect : getNodes()) {\n if (isValid(node, connect)) {\n node.connect(connect);\n }\n }\n }\n }", "public void getAlreadyConnectedPeers() {\n ArrayList<Peer> alreadyConnected = parent.getConnections(name);\n for(Peer p : alreadyConnected) {\n if(p.connected()) {\n addPeer(p.getIP());\n nodeConnection(p.getIP());\n }\n }\n }", "boolean set_up_connection_to_peers() {\n sockets = new Socket[num_peers];\n int cnt = 0;\n for (int i = 0; i < peer_ip.length; i++) {\n if (peer_id[i] < id) {\n try {\n sockets[i] = new Socket(peer_ip[i], peer_port[i]);\n tcp_out_stream[i] = new ObjectOutputStream(sockets[i].getOutputStream());\n print(\"Peer \" + id + \" successfully connects to \" + peer_id[i]);\n cnt++;\n } catch (IOException e) {\n // TODO Auto-generated catch block\n print(\"Failed to connect to \" + peer_id[i] + \", \" + peer_ip[i] + \":\" + peer_port[i]);\n return false;\n }\n } else {\n sockets[i] = null; //to be connected by later peers.\n }\n }\n print(\"Peer \" + id + \" TCP connection done. Connected to \" + cnt + \" peers\");\n return true;\n }", "public void sendPeerListToAll() {\r\n\t\tPacket packet = new Packet();\r\n\t\tpacket.eventCode = 1;\r\n\t\tfor(int i = 0; i < peerClientNodeConnectionList.size(); i++) {\r\n\t\t\tPeer peer = new Peer();\r\n\t\t\tpeer.peerID = peerClientNodeConnectionList.get(i).peerClientID;\r\n\t\t\tpeer.peerIP = peerClientNodeConnectionList.get(i).peerClientIP;\r\n\t\t\tpeer.peerPort = peerClientNodeConnectionList.get(i).peerClientListeningPort;\r\n\t\t\tpacket.peerList.add(peer);\r\n\t\t}\r\n\t\t\r\n\t\tfor(int i = 0; i < peerClientNodeConnectionList.size(); i++) {\r\n\t\t\ttry {\r\n\t\t\t\tpeerClientNodeConnectionList.get(i).outStream.writeObject(packet);\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}\t\t\t\r\n\t\t}\r\n\t}", "public void peersAdded(List<Response> peerList) {\n peerList.stream()\n .filter(peer -> connectionMap.get(peer.getString(\"address\")) == null &&\n !peer.getString(\"version\").isEmpty())\n .forEach(peer -> {\n connectionList.add(peer);\n connectionMap.put(peer.getString(\"address\"), peer);\n if (State.fromCode(peer.getInt(\"state\")) == State.CONNECTED)\n activeCount++;\n });\n fireTableDataChanged();\n }", "private void connectToUsers() {\n\n\t\tlookUpUsers();\n\t\ttry {\n\t\t\tfor (Map.Entry<String, UserInterface> e : remoteUsers.entrySet()) {\n\t\t\t\tcryptoUtils.addCertToList(e.getKey(), e.getValue().getCertificate());\n\t\t\t\te.getValue().connectUser(this.id, getCertificate());\n\t\t\t}\n\t\t} catch (RemoteException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "void connect() throws UnsupportedProtocolVersionException {\n if (isShutdown) return;\n\n List<Host> hosts = new ArrayList<Host>(cluster.metadata.getContactPoints());\n // shuffle so that multiple clients with the same contact points don't all pick the same control\n // host\n Collections.shuffle(hosts);\n setNewConnection(reconnectInternal(hosts.iterator(), true));\n }", "public void askForPeers() {\n\t\tif(peers.size() < maximumConnections) {\n\t\t\tpropagateToAllPeers(new PeerAskMessage());\n\t\t}\n\t}", "public boolean\tconnectTo(Node peer) {\n\t Link link = new Link(this,peer);\n\t if (links.contains(link))\n\t\treturn false;\n\t links.add(link);\n\t peer.links.add(link);\n\t allLinks.add(link);\n\t return true;\n\t}", "private void cleanPeerList() {\n\t\tfor (int i = 0; i < peers.size(); i++) {\n\t\t\tPeer p = peers.get(i);\n\t\t\tif (p == null)\n\t\t\t\tcontinue;\n\t\t\tif (p.closed()) {\n\t\t\t\tp.cancelAllPieces();\n\t\t\t\tsynchronized (this) {\n\t\t\t\t\tpeers.remove(i--);\n\t\t\t\t}\n\t\t\t\tcontinue;\n\t\t\t} else {\n\t\t\t\tp.checkDisconnect();\n\t\t\t}\n\t\t}\n\t}", "private void connectToPeer() {\n mStatusText.append(\"Connecting to device...\\n\");\n\n String deviceKey = (String) mDevices.getSelectedItem();\n final WifiDirectDevice device = mGoodDevices.get(deviceKey);\n if (device == null) {\n mStatusText.append(\"Device no longer exists, refreshing peers...\\n\");\n discoverPeers();\n return;\n }\n\n WifiP2pConfig config = new WifiP2pConfig();\n config.deviceAddress = device.deviceAddress;\n config.wps.setup = WpsInfo.PBC; // push-button connect (as opposed to PIN, etc)\n\n // Set groupOwnerIntent so there aren't 2 groupowners.\n // It ranges between 0-15 , higher the value, higher\n // the possibility of becoming a groupOwner\n config.groupOwnerIntent = 0;\n\n if (mServiceDevices != null) {\n final WifiDirectDevice wDevice = mServiceDevices.get(deviceKey);\n if (wDevice != null && !wDevice.isGroupOwner && Integer.valueOf(wDevice.record.get(\"id\").toString()) < WifiDirectUtilities.ID) {\n// // Create a group\n// mManager.createGroup(mChannel, new WifiP2pManager.ActionListener() {\n// @Override\n// public void onSuccess() {\n// MainActivity.this.onGroupCreateResult(-1);\n// }\n//\n// @Override\n// public void onFailure(int reasonCode) {\n// MainActivity.this.onGroupCreateResult(reasonCode);\n// }\n// });\n this.mIsGO = true;\n config.groupOwnerIntent = 1;\n }\n }\n\n mManager.connect(mChannel, config, new WifiP2pManager.ActionListener() {\n\n @Override\n public void onSuccess() {\n mStatusText.append(\"Connected via WiFi!\\n\");\n // BroadcastReceiver will note when the connection changes in WIFI_P2P_PEERS_CHANGED_ACTION\n }\n\n @Override\n public void onFailure(int reasonCode) {\n logEvent(TAG, WifiDirectUtilities.getFailureReasonMessage(reasonCode));\n }\n });\n }", "private void connectToRandomNodes(List<String> randomList) {\n wasSuccessful = true;\n attempts = 0;\n for (ListIterator<String> randomListIterator = randomList.listIterator(); randomListIterator.hasNext(); ) {\n String currentRecord = randomListIterator.next();\n NodeRecord currentNode = registeredNodes.get(currentRecord);\n while (currentNode.getConnectionsNeededToInitiate() > 0) {\n if (attempts < 15) {\n int randomConnection = ThreadLocalRandom.current().nextInt(0, registeredNodes.size());\n String randomKey = randomList.get(randomConnection);\n NodeRecord randomNode = registeredNodes.get(randomKey);\n\n if(currentNode.equals(randomNode) || currentNode.getNodesToConnectToList().contains(randomNode)\n || randomNode.getNodesToConnectToList().contains(currentNode)\n || randomNode.getNumberOfConnections() == requiredConnections) {\n ++attempts;\n //do not add and pick again\n } else {\n currentNode.addNodeToConnectTo(randomNode);\n updateConnections(currentNode, randomNode);\n attempts = 0;\n }\n } else {\n wasSuccessful = false;\n break;\n }\n }\n// currentNode.printNodesList();\n }\n }", "void setActivePeers(List<Uuid> activePeers) throws RemoteException;", "private void setUpPeers() {\n SdxParticipantsConfig.PeerConfig peer1 =\n new SdxParticipantsConfig.PeerConfig(Optional.of(PEER1_NAME),\n IpAddress.valueOf(PEER_IP),\n SW1_ETH1,\n INTERFACE_SW1_ETH1);\n\n // Set up the related expectations\n expect(participantsConfig.getPortForPeer(IpAddress.valueOf(PEER_IP)))\n .andReturn(SW1_ETH1).anyTimes();\n expect(participantsConfig.\n getInterfaceNameForPeer(IpAddress.valueOf(PEER_IP)))\n .andReturn(INTERFACE_SW1_ETH1).anyTimes();\n expect(participantsConfig.getPeerForName(Optional.of(PEER1_NAME)))\n .andReturn(peer1).anyTimes();\n expect(participantsConfig.getPeerForIp(IpAddress.valueOf(PEER_IP)))\n .andReturn(peer1).anyTimes();\n\n // Set up expectations for peers that will be added\n expect(participantsConfig.\n getInterfaceNameForPeer(IpAddress.valueOf(NEW_PEER1_IP)))\n .andReturn(null).anyTimes();\n expect(participantsConfig.getPortForPeer(IpAddress.valueOf(NEW_PEER1_IP)))\n .andReturn(null).anyTimes();\n expect(participantsConfig.getPeerForIp(IpAddress.valueOf(NEW_PEER1_IP)))\n .andReturn(null).anyTimes();\n expect(participantsConfig.\n getInterfaceNameForPeer(IpAddress.valueOf(NEW_PEER2_IP)))\n .andReturn(null).anyTimes();\n expect(participantsConfig.getPortForPeer(IpAddress.valueOf(NEW_PEER2_IP)))\n .andReturn(null).anyTimes();\n expect(participantsConfig.getPeerForName(Optional.of(NEW_PEER_NAME)))\n .andReturn(null).anyTimes();\n expect(participantsConfig.node()).andReturn(null).anyTimes();\n }", "private boolean initiateConnections(RegistrySendsNodeManifest event)\n\t\t\tthrows UnknownHostException, IOException {\n\t\t// close all getConnections() from previous overlay.\n\t\tfor (Map.Entry<Integer, TCPConnection> entry : this.nodesToSendTo.getConnections()\n\t\t\t\t.entrySet()) {\n\t\t\tTCPConnection connector = entry.getValue();\n\t\t\tconnector.closeSocket();\n\t\t}\n\t\t//Create sockets to peers\n\t\tallNodes = event.getAllNodes();\n\t\tint numConnectionsToMake = event.getRoutingTableSize();\n\t\tnodesToSendTo = new TCPConnectionsCache();\n\t\tfor (int i = 0; i < numConnectionsToMake; i++) {\n\t\t\tString ipAdd = \"\";\n\t\t\tfor (int j = 0; j < event.getIPLen(i); j++) {\n\t\t\t\tint ipPortion = event.getHopIP(i)[j] & 0xFF;\n\t\t\t\tipAdd += ipPortion;\n\t\t\t\tif (j < event.getIPLen(i) - 1)\n\t\t\t\t\tipAdd += \".\";\n\t\t\t}\n\t\t\tSocket hopSocket = new Socket(ipAdd, event.getHopPort(i));\n\t\t\tTCPConnection hop = new TCPConnection(hopSocket, this);\n\t\t\tnodesToSendTo.putConnection(hop, event.getHopID(i));\n\t\t}\n\t\t//Ensure each socket connection was successful\n\t\tboolean connectionsAllGood = true;\n\t\tfor (Map.Entry<Integer, TCPConnection> entry : nodesToSendTo.getConnections()\n\t\t\t\t.entrySet()) {\n\t\t\tTCPConnection value = entry.getValue();\n\t\t\tif (!value.checkSocketStatus())\n\t\t\t\treturn false;\n\t\t}\n\t\treturn connectionsAllGood;\n\t}", "java.util.List<lightpay.lnd.grpc.Peer> \n getPeersList();", "private void connectAll()\n {\n\t\tint i = 0;\n\t\tint j = 1;\n\t\twhile (i < getNodes().size()) {\n\t\t\twhile (j < getNodes().size()) {\n\t\t\t\tLineEdge l = new LineEdge(false);\n\t\t\t\tl.setStart(getNodes().get(i));\n\t\t\t\tl.setEnd(getNodes().get(j));\n\t\t\t\taddEdge(l);\n\t\t\t\tj++;\n\t\t\t}\n\t\t\ti++; j = i+1;\n\t\t}\n\n }", "public void connectClusters()\n\t{\n//\t\tfor(int i = 0; i<edges.size();i++)\n//\t\t{\n//\t\t\tEdgeElement edge = edges.get(i);\n//\t\t\tString fromNodeID = edge.fromNodeID;\n//\t\t\tNodeElement fromNode = findSubNode(fromNodeID);\n//\t\t\tString toNodeID = edge.toNodeID;\n//\t\t\tNodeElement toNode = findSubNode(toNodeID); \n//\t\t\t\n//\t\t\tif(fromNode != null && toNode != null)\n//\t\t\t{\n//\t\t\t\tPortInfo oport = new PortInfo(edge, fromNode);\n//\t\t\t\tfromNode.addOutgoingPort(oport);\n//\t\t\t\tedge.addIncomingPort(oport);\n//\t\t\t\tPortInfo iport = new PortInfo(edge, toNode);\n//\t\t\t\ttoNode.addIncomingPort(iport);\n//\t\t\t\tedge.addOutgoingPort(iport);\n//\t\t\t}\n//\t\t}\n\t}", "public void addPeerToList(WifiP2pDevice peer) {\n stopRefreshActionBar();\n int peer_index = -1;\n if ((peer_index = peers_.indexOf(peer)) != -1) {\n peers_.get(peer_index).deviceName = peer.deviceName;\n peers_.get(peer_index).deviceAddress = peer.deviceAddress;\n peers_.get(peer_index).status = peer.status;\n } else {\n peers_.add(peer);\n }\n displayEmptyView();\n System.out.println(\"Peers found\");\n ((PeersAdapter)adapter_).update();\n listener_.onDiscoveringPeersRequestDone();\n }", "private void establishConnection() {\n\n try {\n\n for(Clone clone:this.clones){\n ClearConnection connection = new ClearConnection();\n connection.connect(clone.getIp(), clone.getOffloadingPort(), 5 * 1000);\n this.connections.add(connection);\n }\n\n this.protocol = new ERAMProtocol();\n this.ode = new ERAMode();\n\n } catch (Exception e) {\n Log.e(TAG,\"Connection setup with the Remote Server failed - \" + e);\n }\n }", "private void initPeers() {\n this.servers.clear();\n this.clients.clear();\n\n if (SharedPrefUtils.isConnectionNfcEnabled(this)) {\n clients.add(new NFCClient(this, walletServiceBinder));\n servers.add(new NFCServerACSCLTV(this, walletServiceBinder));\n servers.add(new NFCServerCLTV(this, walletServiceBinder));\n\n }\n\n if (SharedPrefUtils.isConnectionBluetoothLeEnabled(this)) {\n clients.add(new BluetoothLEClient(this, walletServiceBinder));\n servers.add(new BluetoothLEServer(this, walletServiceBinder));\n }\n\n if (SharedPrefUtils.isConnectionWiFiDirectEnabled(this)) {\n clients.add(new WiFiClient(this, walletServiceBinder));\n servers.add(new WiFiServer(this, walletServiceBinder));\n }\n\n for (AbstractServer server : servers) {\n server.setPaymentRequestDelegate(getClientPaymentRequestDelegate());\n }\n\n for (AbstractClient client : clients) {\n client.setPaymentRequestDelegate(getClientPaymentRequestDelegate());\n if(client instanceof NFCClient) {\n client.start();\n }\n }\n\n }", "@Override\n\tpublic void establishNeighborConn() throws Exception {\n\t\tList <Thread> tList = new ArrayList<Thread>();\n\t\tList<Integer> neighborPids = neighborMap.get(pid);\n\t\tnNeighbors = neighborPids.size();\n\t\tfor (int neighborPid : neighborPids) {\n\t\t\tThread t = new Thread(new Runnable() {\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tString neighborHostname = pidToHostnameMap.get(neighborPid);\n\t\t\t\t\t\tConnection neighborConn = new ServerConnection();\n\t\t\t\t\t\tint port = 10000 + (100*pid) + neighborPid;\n\t\t\t\t\t\tneighborConn.connectRetry(coordinatorHostname, port);\n\t\t\t\t\t\tneighborPidToHostnameMap.put(neighborPid, neighborHostname);\n\t\t\t\t\t\tneighborPidToConnMap.put(neighborPid, neighborConn);\n\t\t\t\t\t\tsendQueues.put(neighborPid, new LinkedList<String>());\n\t\t\t\t\t\tsayHelloToNeighbor(neighborConn);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t\ttList.add(t);\n\t\t\tt.start();\n\t\t}\n\t\tfor (Thread t : tList) {\n\t\t\tt.join();\n\t\t}\n\t\tSystem.out.println(neighborPidToHostnameMap);\n\t\tSystem.out.println(neighborPidToConnMap);\n\t}", "private void processPeers() {\n\t\tif (System.currentTimeMillis() - lastPeerUpdate > 20000) {\n\t\t\tupdatePeers();\n\t\t\tlastPeerUpdate = System.currentTimeMillis();\n\t\t}\n\t\tif (System.currentTimeMillis() - lastPeerCheck > 5000) {\n\t\t\tcleanPeerList();\n\t\t\tlastPeerCheck = System.currentTimeMillis();\n\t\t}\n\t}", "private void checkSeeds() {\n\t\t//proceed on mainloop 1 second intervals if we're a seed and we want to force disconnects\n\t\tif ((mainloop_loop_count % MAINLOOP_ONE_SECOND_INTERVAL) != 0)\n\t\t\treturn;\n\n\t\tif (!disconnect_seeds_when_seeding ){\n\t\t\treturn;\n\t\t}\n\n\t\tArrayList to_close = null;\n\n\t\tfinal ArrayList peer_transports = peer_transports_cow;\n\t\tfor (int i = 0; i < peer_transports.size(); i++) {\n\t\t\tfinal PEPeerTransport pc = (PEPeerTransport) peer_transports.get(i);\n\n\t\t\tif (pc != null && pc.getPeerState() == PEPeer.TRANSFERING && ((isSeeding() && pc.isSeed()) || pc.isRelativeSeed())) {\n\t\t\t\tif( to_close == null ) to_close = new ArrayList();\n\t\t\t\tto_close.add( pc );\n\t\t\t}\n\t\t}\n\n\t\tif( to_close != null ) {\t\t\n\t\t\tfor( int i=0; i < to_close.size(); i++ ) { \t\t\t\n\t\t\t\tcloseAndRemovePeer( (PEPeerTransport)to_close.get(i), \"disconnect other seed when seeding\", false );\n\t\t\t}\n\t\t}\n\t}", "List<Uuid> getActivePeers() throws RemoteException;", "private void readPeers() {\n\t\tif(peersFile.exists()) {\n\t\t\ttry {\n\t\t\t\tBufferedReader reader = new BufferedReader(new FileReader(peersFile));\n\t\t\t\tString line = reader.readLine();\n\t\t\t\tint lineNumber = 1;\n\t\t\t\twhile(line != null && peers.size() < maximumConnections) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tInetAddress candidate = InetAddress.getByName(line);\n\t\t\t\t\t\tcheckPeer(candidate);\n\t\t\t\t\t} catch (UnknownHostException e) {\n\t\t\t\t\t\tString logMsg = String.format(\"Invalid host address \\\"%s\\\" in file %s at line number %d\", line, peersFile.getName(), lineNumber);\n\t\t\t\t\t\tDecentLogger.write(logMsg);\n\t\t\t\t\t}\n\t\t\t\t\tline = reader.readLine();\n\t\t\t\t\tlineNumber++;\n\t\t\t\t}\n\t\t\t\treader.close();\n\t\t\t}\n\t\t\tcatch (FileNotFoundException e1) {\n\t\t\t\tString logMsg = String.format(\"Peer file %s not found\", peersFile.getName());\n\t\t\t\tDecentLogger.write(logMsg);\n\t\t\t} \n\t\t\tcatch (IOException e1) {\n\t\t\t\tDecentLogger.write(\"Unable to read file due to \"+e1.getMessage());\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\ttry {\n\t\t\t\tpeersFile.createNewFile();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "lightpay.lnd.grpc.Peer getPeers(int index);", "void onDiscoverPeersSuccess();", "@Override\r\n\tpublic void onPeersAvailable(WifiP2pDeviceList peers) {\n\t\t\r\n\t}", "public com.google.common.util.concurrent.ListenableFuture<lnrpc.Rpc.ListPeersResponse> listPeers(\n lnrpc.Rpc.ListPeersRequest request) {\n return futureUnaryCall(\n getChannel().newCall(getListPeersMethod(), getCallOptions()), request);\n }", "private ListenableFuture<ResultSet> selectPeersFuture(final Connection connection) {\n if (isPeersV2) {\n DefaultResultSetFuture peersV2Future =\n new DefaultResultSetFuture(\n null, cluster.protocolVersion(), new Requests.Query(SELECT_PEERS_V2));\n connection.write(peersV2Future);\n final SettableFuture<ResultSet> peersFuture = SettableFuture.create();\n // if peers v2 query fails, query peers table instead.\n GuavaCompatibility.INSTANCE.addCallback(\n peersV2Future,\n new FutureCallback<ResultSet>() {\n\n @Override\n public void onSuccess(ResultSet result) {\n peersFuture.set(result);\n }\n\n @Override\n public void onFailure(Throwable t) {\n // Downgrade to system.peers if we get an invalid query error as this indicates the\n // peers_v2 table does not exist.\n // Also downgrade on server error with a specific error message (DSE 6.0.0 to 6.0.2\n // with search enabled.\n if (t instanceof InvalidQueryException\n || (t instanceof ServerError\n && t.getMessage().contains(\"Unknown keyspace/cf pair (system.peers_v2)\"))) {\n isPeersV2 = false;\n MoreFutures.propagateFuture(peersFuture, selectPeersFuture(connection));\n } else {\n peersFuture.setException(t);\n }\n }\n });\n return peersFuture;\n } else {\n DefaultResultSetFuture peersFuture =\n new DefaultResultSetFuture(\n null, cluster.protocolVersion(), new Requests.Query(SELECT_PEERS));\n connection.write(peersFuture);\n return peersFuture;\n }\n }", "private void updatePeers() {\n\t\tif (files == null)\n\t\t\treturn;\n\t\tArrayList<Piece> neededPieces = files.getNeededPieces();\n\t\tfor (int i = 0; i < peers.size(); i++) {\n\t\t\tPeer p = peers.get(i);\n\t\t\tboolean hasNoPieces = true;\n\t\t\tfor (int j = 0; j < neededPieces.size(); j++) {\n\t\t\t\tif (p.getClient().getBitfield().hasPiece(neededPieces.get(j).getIndex())) {\n\t\t\t\t\thasNoPieces = false;\n\t\t\t\t\tif (!p.getClient().isInterested()) {\n\t\t\t\t\t\tp.addToQueue(new MessageInterested());\n\t\t\t\t\t\tp.getClient().interested();\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (hasNoPieces && p.getClient().isInterested()) {\n\t\t\t\tp.addToQueue(new MessageUninterested());\n\t\t\t\tp.getClient().uninterested();\n\t\t\t}\n\t\t\tif (p.getMyClient().isInterested() && p.getClient().isChoked()) {\n\t\t\t\tp.addToQueue(new MessageUnchoke());\n\t\t\t\tp.getClient().unchoke();\n\t\t\t} else if (!p.getMyClient().isInterested() && !p.getClient().isChoked()) {\n\t\t\t\tp.addToQueue(new MessageChoke());\n\t\t\t\tp.getClient().choke();\n\t\t\t}\n\t\t}\n\t}", "@Test\n public void testGetPeerAddresses() {\n replay(participantsConfig);\n\n peerManager.activate();\n\n List<IpAddress> expectedAddresses = new ArrayList<>();\n expectedAddresses.add(IpAddress.valueOf(PEER_IP));\n expectedAddresses.add(IpAddress.valueOf(NEW_PEER1_IP));\n Collections.sort(expectedAddresses);\n\n List<IpAddress> actualAddresses =\n peerManager.getPeerAddresses(bgpConfig);\n Collections.sort(actualAddresses);\n\n assertEquals(expectedAddresses, actualAddresses);\n }", "public void connect() throws Exception\n {\n if(connected)\n return;\n connectionSocket = new Socket(address, CommonRegister.DEFAULT_PORT);\n localPeerID = ++localPeerIDCount;\n initListener();\n reader = new BufferedReader(new InputStreamReader(connectionSocket.getInputStream()));\n writer = new PrintWriter(connectionSocket.getOutputStream(),true);\n connected = true;\n }", "public void connect(String key){\n\t\tif(peers.containsKey(key) || establishing.contains(key)) return;\n\t\t\n\t\testablishing.add(key);\n\t\tPeerNode newPeer = PeerNode.createPeer(key);\n\t\tif(newPeer == null){\n\t\t\tConsole.message(\"A conexao com o par \" + key + \" nao pode ser estabelecida.\");\n\t\t}else{\n\t\t\t// connected successfully\n\t\t\tpeers.put(newPeer.getKey(), newPeer);\n\t\t\tnew Thread(newPeer).start();\n\t\t\tConsole.logEvent(\"CONNECTED\", key);\n\t\t\tgetMainWindow().updateList();\n\t\t}\n\t\testablishing.remove(key);\n\t}", "public void setup_clients()\n {\n ClientInfo t = new ClientInfo();\n for(int i=0;i<5;i++)\n {\n // for mesh connection between clients\n // initiate connection to clients having ID > current node's ID\n if(i > my_c_id)\n {\n // get client info\n String t_ip = t.hmap.get(i).ip;\n int t_port = Integer.valueOf(t.hmap.get(i).port);\n Thread x = new Thread()\n {\n \tpublic void run()\n {\n try\n {\n Socket s = new Socket(t_ip,t_port);\n // SockHandle instance with svr_hdl false and rx_hdl false as this is the socket initiator\n // and is a connection to another client node\n SockHandle t = new SockHandle(s,my_ip,my_port,my_c_id,c_list,s_list,false,false,cnode);\n }\n catch (UnknownHostException e) \n {\n \tSystem.out.println(\"Unknown host\");\n \tSystem.exit(1);\n } \n catch (IOException e) \n {\n \tSystem.out.println(\"No I/O\");\n e.printStackTrace(); \n \tSystem.exit(1);\n }\n \t}\n };\n \n x.setDaemon(true); \t// terminate when main ends\n x.setName(\"Client_\"+my_c_id+\"_SockHandle_to_Client\"+i);\n x.start(); \t\t\t// start the thread\n }\n }\n\n // another thread to check until all connections are established ( ie. socket list size =4 )\n // then send a message to my_id+1 client to initiate its connection setup phase\n Thread y = new Thread()\n {\n public void run()\n {\n int size = 0;\n // wait till client connections are setup\n while (size != 4)\n {\n synchronized(c_list)\n {\n size = c_list.size();\n }\n }\n // if this is not the last client node (ID =4)\n // send chain init message to trigger connection setup\n // phase on the next client\n if(my_c_id != 4)\n {\n c_list.get(my_c_id+1).send_setup();\n System.out.println(\"chain setup init\");\n }\n // send the setup finish, from Client 4\n // indicating connection setup phase is complete\n else\n {\n c_list.get(0).send_setup_finish();\n }\n }\n };\n \n y.setDaemon(true); \t// terminate when main ends\n y.start(); \t\t\t// start the thread\n }", "protected void connect() {\n for (int attempts = 3; attempts > 0; attempts--) {\n try {\n Socket socket = new Socket(\"localhost\", serverPort);\n attempts = 0;\n\n handleConnection(socket);\n }\n catch (ConnectException e) {\n // Ignore the 'connection refused' message and try again.\n // There may be other relevant exception messages that need adding here.\n if (e.getMessage().equals(\"Connection refused (Connection refused)\")) {\n if (attempts - 1 > 0) {\n // Print the number of attempts remaining after this one.\n logger.warning(\"Connection failed (\" + name + \"). \" + \n (attempts - 1) + \" attempts remaining.\");\n }\n else {\n logger.severe(\"Connection failed (\" + name + \"). \");\n }\n }\n else {\n logger.severe(e.toString());\n break;\n }\n }\n catch (Exception e) {\n logger.severe(\"Socket on module '\" + name + \"': \" + e.toString());\n }\n }\n }", "public lnrpc.Rpc.ListPeersResponse listPeers(lnrpc.Rpc.ListPeersRequest request) {\n return blockingUnaryCall(\n getChannel(), getListPeersMethod(), getCallOptions(), request);\n }", "private void initialize(PeerList peerList, Peer user) {\r\n\t\tclient = new Client(peerList,user);\r\n\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(100, 100, 880, 584);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tclient.setConnected(true);\r\n\t\tclient.listenServer();\r\n\t\tclient.listenPeers();\r\n\t\tif(peerList.getList().size()>0) {\r\n\t\t\tfor(Peer aPeer:peerList.getList()) {\r\n\t\t\t\tif(!(aPeer.getUsername().compareTo(theUser.getUsername())==0)){\r\n\t\t\t\t\tlistModel.add(modelIndex,aPeer.getUsername());\r\n\t\t\t\t\tmodelIndex++;\r\n\t\t\t\t}\r\n\t\t\t\tif(modelIndex>0) {\r\n\t\t\t\t\tlist = new JList<String>(listModel);\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tlistModel.add(0, \"No Peers Online\");\r\n\t\t\t\t\tlist = new JList<String>(listModel);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\tlistModel.add(0, \"No Peers Online\");\r\n\t\t\tlist = new JList<String>(listModel);\t\r\n\t\t}\r\n\t\t\r\n\t\tlist.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\r\n\t\tlist.addMouseListener(new MouseAdapter() {\r\n\t\t public void mouseClicked(MouseEvent evt) {\r\n\t\t JList<String> list = (JList<String>)evt.getSource();\r\n\t\t if (evt.getClickCount() == 2) {\r\n\t\t \t\r\n\t\t // When the user double clicks on the peer list, the messageList gets populated\r\n\t\t \t// with the messages from that peers conversation.\r\n\t\t int index = list.locationToIndex(evt.getPoint());\r\n\t\t String peerName = list.getComponent(index).toString();\r\n\t\t selectedPeer = peerList.getPeer(peerName);\r\n\t\t if (!selectedPeer.getMessageList().isEmpty()) {\r\n\t\t\t\t\r\n\t\t\t\t\t\tString peerMessages = selectedPeer.getMessageListString();\r\n\t\t\t\t\t\tmessageListContent.setText(peerMessages);\r\n\t\t\t\t\t}\r\n\t\t \r\n\t\t }\r\n\t\t }\r\n\t\t});\t\t\r\n\t\tJLabel lblPeers = new JLabel(\"Peers\");\r\n\t\tlblPeers.setFont(new Font(\"Tahoma\", Font.PLAIN, 22));\r\n\t\t\r\n\t\tJLabel lblmessageListContent = new JLabel(\"Message List:\");\r\n\t\tlblmessageListContent.setFont(new Font(\"Tahoma\", Font.PLAIN, 22));\r\n\t\t\r\n\t\tJLabel lblMessage = new JLabel(\"Message:\");\r\n\t\tlblMessage.setFont(new Font(\"Tahoma\", Font.PLAIN, 22));\r\n\t\t\r\n\t\tmessageListContent = new JTextArea();\r\n\t\tmessageListContent.setLineWrap(true);\r\n\t\tmessageListContent.setFont(new Font(\"Monospaced\", Font.PLAIN, 15));\r\n\t\tmessageListContent.setEditable(false);\r\n\t\t\r\n\t\tJTextArea messageBox = new JTextArea();\r\n\t\tmessageBox.setLineWrap(true);\r\n\t\tmessageBox.setToolTipText(\"Enter your text here\");\r\n\t\t\r\n\t\tmessageBox.setRows(5);\r\n\t\t\r\n\t\tJButton send = new JButton(\"Send\");\r\n\t\t//When the send button is clicked, the contents of the message box are cleared and sent to the selected peer.\r\n\t\tsend.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tif(selectedPeer != null) {\r\n\t\t\t\t\tMessage sentMessage = new Message(messageBox.getText(),client.getTheUser().getUsername());\r\n\t\t\t\t\tclient.sendToPeer(sentMessage,selectedPeer,clientPort);\r\n\t\t\t\t\tmessageListContent.append(\"Sent:\"+sentMessage.toString());\r\n\t\t\t\t\tmessageBox.setText(null);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tJScrollPane scrollPane = new JScrollPane(messageListContent,JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);\r\n\t\t\r\n\t\tGroupLayout groupLayout = new GroupLayout(frame.getContentPane());\r\n\t\tgroupLayout.setHorizontalGroup(\r\n\t\t\tgroupLayout.createParallelGroup(Alignment.LEADING)\r\n\t\t\t\t.addGroup(groupLayout.createSequentialGroup()\r\n\t\t\t\t\t.addGap(35)\r\n\t\t\t\t\t.addGroup(groupLayout.createParallelGroup(Alignment.LEADING)\r\n\t\t\t\t\t\t.addComponent(lblPeers, GroupLayout.PREFERRED_SIZE, 217, GroupLayout.PREFERRED_SIZE)\r\n\t\t\t\t\t\t.addComponent(list, GroupLayout.PREFERRED_SIZE, 227, GroupLayout.PREFERRED_SIZE))\r\n\t\t\t\t\t.addGap(48)\r\n\t\t\t\t\t.addGroup(groupLayout.createParallelGroup(Alignment.LEADING)\r\n\t\t\t\t\t\t.addComponent(lblmessageListContent, GroupLayout.PREFERRED_SIZE, 217, GroupLayout.PREFERRED_SIZE)\r\n\t\t\t\t\t\t.addComponent(lblMessage, GroupLayout.PREFERRED_SIZE, 217, GroupLayout.PREFERRED_SIZE)\r\n\t\t\t\t\t\t.addGroup(groupLayout.createSequentialGroup()\r\n\t\t\t\t\t\t\t.addComponent(messageBox, GroupLayout.PREFERRED_SIZE, 474, GroupLayout.PREFERRED_SIZE)\r\n\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\r\n\t\t\t\t\t\t\t.addComponent(send))\r\n\t\t\t\t\t\t.addGroup(groupLayout.createSequentialGroup()\r\n\t\t\t\t\t\t\t.addComponent(messageListContent, GroupLayout.PREFERRED_SIZE, 530, GroupLayout.PREFERRED_SIZE)\r\n\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\r\n\t\t\t\t\t\t\t.addComponent(scrollPane, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\r\n\t\t\t\t\t.addGap(17))\r\n\t\t);\r\n\t\tgroupLayout.setVerticalGroup(\r\n\t\t\tgroupLayout.createParallelGroup(Alignment.TRAILING)\r\n\t\t\t\t.addGroup(groupLayout.createSequentialGroup()\r\n\t\t\t\t\t.addContainerGap()\r\n\t\t\t\t\t.addGroup(groupLayout.createParallelGroup(Alignment.BASELINE)\r\n\t\t\t\t\t\t.addComponent(lblmessageListContent, GroupLayout.PREFERRED_SIZE, 32, GroupLayout.PREFERRED_SIZE)\r\n\t\t\t\t\t\t.addComponent(lblPeers, GroupLayout.PREFERRED_SIZE, 32, GroupLayout.PREFERRED_SIZE))\r\n\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\r\n\t\t\t\t\t.addGroup(groupLayout.createParallelGroup(Alignment.LEADING)\r\n\t\t\t\t\t\t.addGroup(Alignment.TRAILING, groupLayout.createSequentialGroup()\r\n\t\t\t\t\t\t\t.addGroup(groupLayout.createParallelGroup(Alignment.LEADING)\r\n\t\t\t\t\t\t\t\t.addGroup(groupLayout.createSequentialGroup()\r\n\t\t\t\t\t\t\t\t\t.addComponent(messageListContent, GroupLayout.PREFERRED_SIZE, 308, GroupLayout.PREFERRED_SIZE)\r\n\t\t\t\t\t\t\t\t\t.addGap(18)\r\n\t\t\t\t\t\t\t\t\t.addComponent(lblMessage, GroupLayout.PREFERRED_SIZE, 32, GroupLayout.PREFERRED_SIZE))\r\n\t\t\t\t\t\t\t\t.addComponent(scrollPane, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\r\n\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\r\n\t\t\t\t\t\t\t.addGroup(groupLayout.createParallelGroup(Alignment.LEADING, false)\r\n\t\t\t\t\t\t\t\t.addComponent(send, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n\t\t\t\t\t\t\t\t.addComponent(messageBox, GroupLayout.DEFAULT_SIZE, 88, Short.MAX_VALUE))\r\n\t\t\t\t\t\t\t.addGap(14))\r\n\t\t\t\t\t\t.addGroup(groupLayout.createSequentialGroup()\r\n\t\t\t\t\t\t\t.addComponent(list, GroupLayout.DEFAULT_SIZE, 463, Short.MAX_VALUE)\r\n\t\t\t\t\t\t\t.addContainerGap())))\r\n\t\t);\r\n\t\tframe.getContentPane().setLayout(groupLayout);\r\n\t\t\r\n\t\tJMenuBar menuBar = new JMenuBar();\r\n\t\tframe.setJMenuBar(menuBar);\r\n\t\t\r\n\t\tJMenu mnFile = new JMenu(\"File\");\r\n\t\tmenuBar.add(mnFile);\r\n\t\t\r\n\t\tJMenuItem mntmNewMenuItem = new JMenuItem(\"New menu item\");\r\n\t\tmnFile.add(mntmNewMenuItem);\r\n\t\t\r\n\t\tJMenuItem mntmNewMenuItem_1 = new JMenuItem(\"New menu item\");\r\n\t\tmnFile.add(mntmNewMenuItem_1);\r\n\t\t\r\n\t\tJMenu mnHelp = new JMenu(\"Help\");\r\n\t\tmenuBar.add(mnHelp);\r\n\t}", "public boolean peerAlreadyConnected(ByteBuffer peerid){\n\t\tfor(PeerInt p:peers){\n\t\t\tif (p.hasSameID(peerid)){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "private void connectToNotary() throws RemoteException, InvalidSignatureException {\n\t\tfor (String notaryID : notaryServers.keySet()) {\n\t\t\tNotaryInterface notary = notaryServers.get(notaryID);\n\n\t\t\tString cnonce = cryptoUtils.generateCNonce();\n\t\t\tString toSign = notary.getNonce(this.id) + cnonce + this.id;\n\t\t\tX509Certificate res = notary\n\t\t\t\t.connectToNotary(this.id, cnonce, cryptoUtils.getStoredCert(),\n\t\t\t\t\tcryptoUtils.signMessage(toSign));\n\n\t\t\tcryptoUtils.addCertToList(notaryID, res);\n\t\t}\n\t}", "private void lastResortFindPeer() {\n\t\tDecentLogger.write(\"Resolving peers from DNS (last resort)\");\n\t\tfor(String seed: DNS_SEEDS) {\n\t\t\tArrayList<InetAddress> hosts = DNSResolver.getARecords(seed);\n\t\t\tif(hosts != null) {\n\t\t\t\tcheckList(hosts);\n\t\t\t}\n\t\t}\n\t}", "public com.google.common.util.concurrent.ListenableFuture<lnrpc.Rpc.ConnectPeerResponse> connectPeer(\n lnrpc.Rpc.ConnectPeerRequest request) {\n return futureUnaryCall(\n getChannel().newCall(getConnectPeerMethod(), getCallOptions()), request);\n }", "public ArrayList<InetAddress> getPeers() {\n\t\treturn new ArrayList<InetAddress>(peers.keySet());\n\t}", "private void connectDevices() {\n Set<DeviceId> deviceSubjects =\n cfgRegistry.getSubjects(DeviceId.class, Tl1DeviceConfig.class);\n deviceSubjects.forEach(deviceId -> {\n Tl1DeviceConfig config =\n cfgRegistry.getConfig(deviceId, Tl1DeviceConfig.class);\n connectDevice(new DefaultTl1Device(config.ip(), config.port(), config.username(),\n config.password()));\n });\n }", "public static synchronized Boolean addKnownPeers(udpSocket peer) {\n if ((knownPeers.size() - outgoing.size() + 1) <= Integer.parseInt(config.get(\"maximumIncommingConnections\"))) {\n knownPeers.add(peer);\n if (peer.type != \"client from server\") {\n outgoing.add(peer);\n }\n log.info(\"Added peer to udppeerlist\");\n return true;\n }\n log.info(\"Did not add peer to udppeerlist\");\n return false;\n }", "public List<PeerResult> getPeerInfo() throws Exception{\n\t\tRpcRequest postData = getPostData(RpcMethod.GET_PEER_INFO);\n\t\tString result = HttpUtil.httpPostBody(getUrl(), postData.toJsonString());\n\t\tif (StringUtil.isNotEmpty(result)) {\n\t\t\tJSONObject parseObject = JSONObject.parseObject(result);\n\t\t\tif (messageValidate(parseObject))\n\t\t\t\treturn null;\n\t\t\tJSONObject resultJson = parseObject.getJSONObject(\"result\");\n\t\t\tJSONArray jsonArray = resultJson.getJSONArray(\"peers\");\n\t\t\tList<PeerResult> peerList = new ArrayList<>();\n\t\t\tfor (int i = 0; i < jsonArray.size(); i++) {\n\t\t\t\tJSONObject peerJson = jsonArray.getJSONObject(i);\n\t\t\t\tPeerResult peer = JSONObject.toJavaObject(peerJson, PeerResult.class);\n\t\t\t\tpeerList.add(peer);\n\t\t\t}\n\t\t\treturn peerList;\n\t\t}\n\t\treturn null;\n\t}", "private boolean canAddPeer(InetAddress candidate) {\n\t\treturn peers.size() < maximumConnections && !peers.containsKey(candidate) && !candidate.equals(externalIP) && !candidate.equals(internalIP) && !candidate.isLoopbackAddress();\n\t}", "public boolean Connect() throws IllegalStateException {\r\n\t\t\tString host;\r\n\t\t\tint port;\r\n\t\t\tif ( currHostPort == null ) {\r\n\t\t\t\tthrow new IllegalStateException(\"No iterator element.\");\r\n\t\t\t}\r\n\t\t\ttry {\r\n\t\t\t\thost = currHostPort.getHost();\r\n\t\t\t\tport = currHostPort.getPort();\r\n\t\t\t\tsocket = new DatagramSocket();\r\n\t\t\t\tinetaddr = InetAddress.getByName(host);\r\n\t\t\t\tsocket.connect(inetaddr, port);\r\n\t\t\t\tsocket.setSoTimeout(connTimeout);\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\tcatch(Exception e) {\t\t\t\t\t// UnknownHostException / IOException / NullPointerException\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}", "public compactPeerList () {\n recentPeers.compact();\n }", "private void connectClient(String clientName) {\n for(String client : ports.keySet()) {\n if(client != clientName) {\n for(int i = 0; i < 2; i++) {\n //outputs of this go to inputs of others\n String out = ports.get(clientName)[1].get(i);\n String otherIn = ports.get(client)[0].get(i);\n //all outputs of other clients go to this client\n if(out != null && otherIn != null) {\n makeConnection(clientName + \":\" + out, client + \":\" + otherIn);\n }\n //outputs of others go to inputs of this\n String in = ports.get(clientName)[0].get(i);\n String otherOut = ports.get(client)[1].get(i);\n if(in != null && otherOut != null) {\n //this client's outputs go to all other clients\n makeConnection(client + \":\" + otherOut, clientName + \":\" + in);\n }\n }\n }\n }\n\t}", "public abstract void check(ArrayList<Connection> c_list) throws Exception ;", "public Set<String> getPeers() throws Exception\n {\n Pdu pdu = this.channel.writeForReply(makePdu(\"get_peers\"), replyTimeout, \"recv_pids\");\n Set<String> pidSet = new HashSet<>();\n String[] pids = pdu.getStringArray(\"pids\");\n if (pids != null) {\n for (String pid : pids) {\n pidSet.add(pid);\n }\n }\n return pidSet;\n }", "public lnrpc.Rpc.ConnectPeerResponse connectPeer(lnrpc.Rpc.ConnectPeerRequest request) {\n return blockingUnaryCall(\n getChannel(), getConnectPeerMethod(), getCallOptions(), request);\n }", "java.util.List<? extends lightpay.lnd.grpc.PeerOrBuilder> \n getPeersOrBuilderList();", "public RetResult<Peers> Peers() {\n\t\ttry {\n\t\t\tl.acquire();\n\n\t\t\t// Read the file\n\t\t\tRetResult<byte[]> readResult = FileUtils.readFileToByteArray(path);\n\t\t\tbyte[] buf = readResult.result;\n\t\t\terror err = readResult.err;\n\n\t\t\tif (err != null) {\n\t\t\t\treturn new RetResult<Peers>(null, err);\n\t\t\t}\n\n\t\t\t// Check for no peers\n\t\t\tif (buf == null || buf.length == 0) {\n\t\t\t\treturn new RetResult<Peers>(null, null);\n\t\t\t}\n\n\t\t\t// Decode the peers\n\t\t\t// TODO: is the transformation correct?\n\t//\t\tdec := json.NewDecoder(bytes.NewReader(buf));\n\t//\t\terr := dec.Decode(peerSet);\n\t\t\t Peer[] peerSet = JsonUtils.StringToObject(new String(buf), Peer[].class);\n\n\t\t\treturn new RetResult<Peers>(Peers.NewPeersFromSlice(peerSet), null);\n\t\t} catch (InterruptedException e) {\n\t\t\terror err = new error(e.getMessage());\n\t\t\treturn new RetResult<Peers>(null, err);\n\t\t} finally {\n\t\t\tl.release();\n\t\t}\n\t}", "public <T> Connection<T> createRelayConnection(List<T> list) {\n List<Edge<T>> edges = new ArrayList<>(list.size());\n boolean hasPreviousPage;\n boolean hasNextPage;\n KeysetPage keysetPage;\n if (list instanceof PagedList<?>) {\n PagedList<T> data = (PagedList<T>) list;\n hasPreviousPage = data.getFirstResult() != 0;\n hasNextPage = data.getTotalSize() == -1 || data.getFirstResult() + data.getMaxResults() < data.getTotalSize();\n keysetPage = data.getKeysetPage();\n } else {\n hasPreviousPage = true;\n hasNextPage = true;\n keysetPage = null;\n }\n if (keysetPage == null) {\n for (int i = 0; i < list.size(); i++) {\n edges.add(new DefaultEdge<>(list.get(i), new DefaultConnectionCursor(Integer.toString(i + 1))));\n }\n } else {\n PagedList<T> data = (PagedList<T>) list;\n List<Keyset> keysets = keysetPage.getKeysets();\n int listSize = list.size();\n if (listSize != 0 && keysets.size() != listSize) {\n int end = listSize - 1;\n edges.add(new DefaultEdge<>(list.get(0), new DefaultConnectionCursor(Base64.getEncoder().encodeToString(serializeCursor(data.getFirstResult(), data.getMaxResults(), keysetPage.getLowest().getTuple())))));\n for (int i = 1; i < end; i++) {\n T node = list.get(i);\n edges.add(new DefaultEdge<>(node, new DefaultConnectionCursor(Integer.toString(i + 1))));\n }\n edges.add(new DefaultEdge<>(list.get(end), new DefaultConnectionCursor(Base64.getEncoder().encodeToString(serializeCursor(data.getFirstResult(), data.getMaxResults(), keysetPage.getHighest().getTuple())))));\n } else {\n for (int i = 0; i < list.size(); i++) {\n T node = list.get(i);\n edges.add(new DefaultEdge<>(node, new DefaultConnectionCursor(Base64.getEncoder().encodeToString(serializeCursor(data.getFirstResult(), data.getMaxResults(), keysets.get(i).getTuple())))));\n }\n }\n }\n PageInfo pageInfo;\n if (edges.isEmpty()) {\n pageInfo = new DefaultPageInfo(null, null, hasPreviousPage, hasNextPage);\n } else {\n pageInfo = new DefaultPageInfo(edges.get(0).getCursor(), edges.get(edges.size() - 1).getCursor(), hasPreviousPage, hasNextPage);\n }\n return new DefaultConnection<>(edges, pageInfo);\n }", "@Override\n public Boolean call() throws Exception {\n \tMySocket socket = new MySocket(node);\n socket.writeLine(listOfActivePeers);\n socket.close();\n return true;\n }", "java.util.List<java.lang.String>\n getPeerURLsList();", "protected java.util.Set<Node> getPeers() {\n\t\tfinal java.util.Set<Node> peerList = new java.util.HashSet<Node>();\n\t\tpeerList.addAll(peers);\n\t\treturn peerList;\n\t}", "public void connect() {\n\t\tint index = shell.getConnectionsCombo().getSelectionIndex();\n\t\tif (profiles.length == 0 || index < 0 || index >= profiles.length) {\n\t\t\tupdateSelection();\n\t\t\treturn;\n\t\t}\n\t\tIConnectionProfile profile = profiles[index];\n\t\tshell.setEnabled(false);\n\t\tnetworkManager.connect(profile, (s, r) -> {\n\t\t\tif (s) {\n\t\t\t\tcompleted = true;\n\t\t\t\tclose();\n\t\t\t} else {\n\t\t\t\tplugin.sync(() -> {\n\t\t\t\t\tMessageBox messageBox = new MessageBox(shell.isDisposed() ? null : shell, SWT.ICON_ERROR);\n\t\t\t\t\tmessageBox.setMessage(\"Failed to connect!\\n\" + r);\n\t\t\t\t\tmessageBox.open();\n\t\t\t\t\tshell.setEnabled(true);\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\t}", "public void open() throws JSchException {\n for ( TunnelConnection tunnelConnection : tunnelConnections ) {\n tunnelConnection.open();\n }\n }", "public void setPeer(Peer peer);", "private void reEstablishConnections() {\n// System.out.println(\"Impossible to create overlay, starting over...\");\n for (NodeRecord node : registeredNodes.values()) {\n node.getNodesToConnectToList().clear();\n node.resetNumberOfConnections();\n }\n createOverlay();\n }", "protected int numPeers() {\n\t\treturn peers.size();\n\t}", "private ManagedChannel connect() throws InterruptedException {\n for (int i = 0; i < 20; i++) {\n try {\n new Socket().connect(new InetSocketAddress(\"localhost\", 8081));\n break;\n } catch (IOException e) {\n Thread.sleep(500);\n }\n }\n channel = ManagedChannelBuilder.forAddress(\"localhost\", 8081)\n .usePlaintext()\n .build();\n return channel;\n }", "@Override\n public void onFailure(int i) {\n discoverPeersTillSuccess();\n }", "@Ignore\n @Test\n public void startReiver() throws IOException, InterruptedException {\n\n final int maxPeers = 10;\n PeerDHT[] peers = createPeers(PORT, maxPeers, \"receiver\");\n for (int i = 1; i < maxPeers; i++) {\n \tPeerDHT peer = peers[i];\n peer.peer().bootstrap().peerAddress(peers[0].peer().peerAddress()).start().awaitUninterruptibly();\n peer.peer().objectDataReply(new ObjectDataReply() {\n @Override\n public Object reply(final PeerAddress sender, final Object request) throws Exception {\n System.out.println(\"got it!\");\n return \"recipient got it\";\n }\n });\n }\n Thread.sleep(Long.MAX_VALUE);\n }", "private void runConnectionEvent(ClientConnectEvent l) {\n for (ClientConnectionListener l2 : listeners) {\n l2.clientConnectEvent(l);\n }\n }", "@Override\n public void run() {\n List<Integer> list = new ArrayList<Integer>();\n int num_peer = P.peer_port.length;\n int ind = -1;\n for (int i = 0; i < num_peer; i++) {\n list.add(i);\n }\n while (P.choke_thread_running) {\n synchronized (P.lock_current_neighbors) { //lock the object\n\n if(P.current_neighbors==null) continue;\n\n int[] cn = P.current_neighbors.clone(); //current neighbor.\n Arrays.sort(cn);\n if (P.own_file || P.finished) { //select randomly.\n java.util.Collections.shuffle(list);\n int cnt = 0; //#peers selected.\n for (int i = 0; i < num_peer && cnt < P.num_preferred_neighbors; i++) {\n ind = list.get(i);\n if (P.is_interested[ind] && P.peer_id[ind] != P.id) {\n P.current_neighbors[cnt++] = P.peer_id[ind];\n //send unchoke message to previously choked peer.\n if (Arrays.binarySearch(cn, P.peer_id[ind]) < 0) {\n Message msg = new Message();\n msg.length = 0; //no payload.\n msg.type = 1; //unchoke.\n msg.payload = null; //no payload.\n P.send(P.peer_id[ind], msg);\n }\n }\n }\n P.print(\"Choke selected \" + cnt + \" neighbors randomly.\");\n } else { //select according to the download rates.\n int[] order = getIndices(P.download_rates);\n int cnt = 0; //#peers selected.\n for (int i = 0; i < num_peer && cnt < P.num_preferred_neighbors; i++) {\n ind = order[i];\n if (P.is_interested[ind] && P.peer_id[ind] != P.id) {\n P.current_neighbors[cnt++] = P.peer_id[ind];\n //send unchoke message to previously choked peer.\n if (Arrays.binarySearch(cn, P.peer_id[ind]) < 0) {\n Message msg = new Message();\n msg.length = 0; //no payload.\n msg.type = 1; //unchoke.\n msg.payload = null; //no payload.\n P.send(P.peer_id[ind], msg);\n }\n }\n }\n //print debugging info.\n P.print(\"Choke selected \" + cnt + \" neighbors according to download rates.\");\n }\n //send choke message to peers previously unchoked but currently choked.\n Arrays.sort(Arrays.copyOfRange(P.current_neighbors, 0, P.num_preferred_neighbors - 1));\n for (int i = 0; i < P.num_preferred_neighbors; i++) {\n if (Arrays.binarySearch(P.current_neighbors, cn[i]) < 0) { //cn[i] not in current neighbor list.\n Message msg = new Message();\n msg.length = 0; //no payload.\n msg.type = 0; //choke.\n msg.payload = null; //no payload.\n P.send(P.peer_id[ind], msg);\n }\n }\n }\n //sleep some interval.\n try {\n Thread.sleep(1000 * P.unchoking_internal);\n } catch (InterruptedException ex) {\n Thread.currentThread().interrupt();\n }\n }\n }", "protected int sendToEachConnection(Message msg, RendezVousPropagateMessage propHdr) {\r\n\r\n int sentToPeers = 0;\r\n\r\n List peers = Arrays.asList(getPeerConnections());\r\n Iterator eachClient = peers.iterator();\r\n if (LOG.isEnabledFor(Priority.DEBUG)) {\r\n LOG.debug(\"Sending to rendezvous connection :\" + peers.size());\r\n }\r\n while (eachClient.hasNext()) {\r\n PeerConnection pConn = (PeerConnection) eachClient.next();\r\n\r\n // Check if this rendezvous has already processed this propagated message.\r\n if (!pConn.isConnected()) {\r\n if (LOG.isEnabledFor(Priority.DEBUG)) {\r\n LOG.debug(\"Skipping \" + pConn + \" for \" + msg + \"(\" + propHdr.getMsgId() + \") -- disconnected.\");\r\n }\r\n // next!\r\n continue;\r\n }\r\n if (propHdr.isVisited(pConn.getPeerID().toURI())) {\r\n if (LOG.isEnabledFor(Priority.DEBUG)) {\r\n LOG.debug(\"Skipping \" + pConn + \" for \" + msg + \"(\" + propHdr.getMsgId() + \") -- already visited.\");\r\n }\r\n // next!\r\n continue;\r\n }\r\n if (LOG.isEnabledFor(Priority.DEBUG)) {\r\n LOG.debug(\"Sending \" + msg + \"(\" + propHdr.getMsgId() + \") to \" + pConn);\r\n }\r\n if (pConn.sendMessage((Message) msg.clone(), PropSName, PropPName)) {\r\n sentToPeers++;\r\n }\r\n }\r\n if (LOG.isEnabledFor(Priority.DEBUG)) {\r\n LOG.debug(\"Sent \" + msg + \"(\" + propHdr.getMsgId() + \") to \" + sentToPeers + \" of \" + peers.size() + \" peers.\");\r\n }\r\n return sentToPeers;\r\n }", "private void setNodeConnectionList(ArrayList<Pair<String, Integer>> nodeConnectionList)\n\t{\n\t\totherNodes = nodeConnectionList; // set this field.\n\t}", "public void tunnel() {\r\n\t\tboolean status = true;\r\n\t\tfor (CellStorage i : node) {\r\n\t\t\tif (i.getCell().tunnelTo != null) {\r\n\t\t\t\tCellStorage tunnelTo = null;\r\n\t\t\t\t// Searching for destinated node from the tunnel\r\n\t\t\t\tfor (int k = 0; k < node.size(); k++) {\r\n\t\t\t\t\tif (node.get(k).getCell() == i.getCell().tunnelTo) {\r\n\t\t\t\t\t\ttunnelTo = node.get(k);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\ti.setTunnel(tunnelTo);\r\n\r\n\t\t\t\t// Calling validateConnection method to make sure that no duplicated connection\r\n\t\t\t\t// is made.\r\n\t\t\t\t// Create new connection if no duplicate.\r\n\r\n\t\t\t\tstatus = validateConnection(i, tunnelTo);\r\n\t\t\t\tif (status == false) {\r\n\t\t\t\t\tHashMapConnectedNodes tunnelSet = new HashMapConnectedNodes();\r\n\t\t\t\t\ttunnelSet.hmConnectedNodesObj.put(i.getIndex(), i);\r\n\t\t\t\t\ttunnelSet.hmConnectedNodesObj.put(tunnelTo.getIndex(), tunnelTo);\r\n\t\t\t\t\thshMConnectedNodes.add(tunnelSet);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public synchronized void prunePeers() {\n\t\tchecker.checkList(this.getPeers());\n\t}", "public void connect() {\n\t\tif (connected) return;\n\t\tconnected = true;\n\t\tfor (SQLConnection sqlConnection: sqlConnections) {\n\t\t\tsqlConnection.connection();\n\t\t}\n\t}", "public Vector<String> getPeerList()\n\t{\n\t\treturn this.peerList;\n\t}", "public void connect() throws ConnectionFailedException\n {\n isConnected = true;\n }", "lightpay.lnd.grpc.PeerOrBuilder getPeersOrBuilder(\n int index);", "public static void doHighLatencyPeers(ArrayList<PEPeer> peers_to_choke, ArrayList<PEPeer> peers_to_unchoke, boolean allow_snubbed) {\n\n if (peers_to_choke.size() == 0) {\n\n return;\n }\n\n // System.out.println( \"doHLP: \" + peers_to_choke + \", \" + peers_to_unchoke );\n\n Iterator<PEPeer> choke_it = peers_to_choke.iterator();\n\n int to_remove = 0;\n\n while (choke_it.hasNext()) {\n\n PEPeer peer = choke_it.next();\n\n if (AENetworkClassifier.categoriseAddress(peer.getIp()) != AENetworkClassifier.AT_PUBLIC) {\n\n if (isUnchokable(peer, allow_snubbed)) {\n\n // System.out.println( \" removed \" + peer );\n\n choke_it.remove();\n\n to_remove++;\n\n } else {\n\n // it isn't unchokable so we need to choke it whatever\n\n }\n }\n }\n\n // if we've removed any chokes then we need to balance things by removing an equal number\n // of unchokes\n\n if (to_remove > 0) {\n\n ListIterator<PEPeer> unchoke_it = peers_to_unchoke.listIterator(peers_to_unchoke.size());\n\n // preferrably balance with high latency peers\n\n while (unchoke_it.hasPrevious()) {\n\n PEPeer peer = unchoke_it.previous();\n\n if (AENetworkClassifier.categoriseAddress(peer.getIp()) != AENetworkClassifier.AT_PUBLIC) {\n\n // System.out.println( \" balanced with \" + peer );\n\n unchoke_it.remove();\n\n to_remove--;\n\n if (to_remove == 0) {\n\n return;\n }\n }\n }\n\n if (to_remove > 0) {\n\n unchoke_it = peers_to_unchoke.listIterator(peers_to_unchoke.size());\n\n while (unchoke_it.hasPrevious()) {\n\n PEPeer peer = unchoke_it.previous();\n\n unchoke_it.remove();\n\n to_remove--;\n\n if (to_remove == 0) {\n\n return;\n }\n }\n }\n }\n }", "public void attemptReconnect() {\n\t\tConnection.this.reliabilityManager.attemptConnect();\n\t}", "public void clearPeers() {\n peers_.clear();\n ((PeersAdapter)adapter_).update();\n }", "@Test(expected = IllegalArgumentException.class)\n public void testAddAlreadyRegisteredPeer() {\n replay(participantsConfig);\n\n peerManager.activate();\n\n peerManager.addPeerDetails(newPeer.name().get(),\n IpAddress.valueOf(PEER_IP),\n newPeer.connectPoint(),\n newPeer.interfaceName());\n }", "private List<Identifier> determineAdapters(Message msg, PeerInfo newPeerInfo){\r\n\t\t\r\n\t\tif (peerToAdaptersMappings.size() > MAP_SIZE_LIMIT) peerToAdaptersMappings.clear();\r\n\t\t\r\n\t\tif (peerToAdaptersMappings.containsKey(newPeerInfo)){ //uses just peer id comparison here. \r\n\t\t\t//this is a known recipient\r\n\t\t\t//However, we still need to check if the available list of adapters (routing list) is valid.\r\n\t\t\t\r\n\t\t\tPair<List<Identifier>, PeerInfo> p;\r\n\t\t\tp = peerToAdaptersMappings.get(newPeerInfo);\r\n\t\t\t\r\n\t\t\tint i = 1;\r\n\t\t\twhile (p == null && i<4) { //this can happen if another thread flushed the entry in the meantime. That same thread should also update the value, though\r\n\t\t\t\ttry {\r\n\t\t\t\t\tThread.sleep(i*20);\r\n\t\t\t\t} catch (InterruptedException ignored) {}\r\n\t\t\t\tp = peerToAdaptersMappings.get(newPeerInfo);\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (i >= 4 && p == null){\r\n\t\t\t\t//the other thread obviously did not do the job yet. We will take care of it in the rest of the method.\r\n\t\t\t}else{\r\n\t\t\t\tPeerInfo oldPeerInfo = p.second;\r\n\t\t\t\tif (newPeerInfo.equalsByDeepCoparison(oldPeerInfo)){\r\n\t\t\t\t\treturn p.first; //return the existing list of adapters, since nothing changed in the PeerInfo from last time\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} \r\n\t\t\r\n\t\t// if we arrived here it means, either:\r\n\t\t// sending message to this peer for the first time \r\n\t\t// OR\r\n\t\t// the information we have is outdated, so let's update it\r\n\t\t\r\n\r\n\t\tList<Identifier> adapters = adapterMgr.createEndpointForPeer(newPeerInfo); //need not be synced, since invoking createEndpointForPeer multiple times should be fine\r\n\t\tPair<List<Identifier>, PeerInfo> p = new Pair<List<Identifier>, PeerInfo>(adapters, newPeerInfo);\r\n\t\t\r\n\t\tsynchronized(peerToAdaptersMappings){ //just using ConcurrentHashMap is not enough, because we need to save the reference to the map's key in the second object of the Pair, which is the object of the map, and if 2 thread repeat put, the value will get updated, but that value will contain the wrong reference to the key, meaning that subsequently the deep comparison between the old and the new PeerInfo object will not be possible\r\n\t\t\tpeerToAdaptersMappings.remove(newPeerInfo); //in reality, we remove an existing entry, if any. Since the PeerInfo.equals just compares Ids, it should locate the exact entry.\r\n\t\t\tpeerToAdaptersMappings.put(newPeerInfo, p); //we now put in the new value, which is a Pair, whose second element points to the key of the entry in the peerToAdaptersMappings where the Pair value belongs\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t// Now we have the list of all possible Adapters trough which we can deliver the message to the peer.\r\n\t\t// However, depending on peer's stated delivery policy we may want to restrict this list.\r\n\t\t// For example, in case of DeliveryPolicy.PREFERRED, we will just return the first Adapter.\r\n\t\t// But, in case of either TO_ALL_CHANNELS or AT_LEAST_ONE, we return all adapters, because in either case\r\n\t\t// the policy foresees sending to multiple adapters, but interpreting responses from all/one channel as ultimate success, respectively. \r\n\t\t\r\n\t\t\r\n\t\tif (newPeerInfo.getDeliveryPolicy() == DeliveryPolicy.Peer.PREFERRED){\r\n\t\t\tIdentifier preferred = adapters.get(0);\r\n\t\t\tList<Identifier> prefList = new ArrayList<Identifier>();\r\n\t\t\tprefList.add(preferred);\r\n\t\t\treturn prefList;\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn adapters;\r\n\t}", "public void peerConnected(final ServiceManager serviceManager)\n {\n serviceControlPanelsMap = ServiceControlPanelFactory.getInstance().createServiceControlPanelsMap(this, serviceManager);\n\n // refresh the state of the control panels\n refresh();\n\n // notify listeners of the peer connection\n for (final ControlPanelManagerEventListener listener : controlPanelManagerEventListeners)\n {\n listener.handlePeerConnectedEvent(serviceControlPanelsMap);\n }\n }", "protected void handleConnect()\n throws ConnectionFailedException\n { \n int registryPort = getRegistryPort(locator);\n Home home = null;\n Exception savedException = null;\n Iterator it = getConnectHomes().iterator();\n \n while (it.hasNext())\n {\n //TODO: -TME Need to figure this out a little better as am now dealing with\n // with 2 ports, the rmi server and the registry.\n try\n {\n home = (Home) it.next();\n String host = home.host;\n final int port = home.port;\n locator.setHomeInUse(home);\n storeLocalConfig(configuration);\n log.debug(this + \" looking up registry: \" + host + \",\" + port);\n final Registry registry = LocateRegistry.getRegistry(host, registryPort);\n log.debug(this + \" trying to connect to: \" + home);\n Remote remoteObj = lookup(registry, \"remoting/RMIServerInvoker/\" + port);\n log.debug(\"Remote RMI Stub: \" + remoteObj);\n setServerStub((RMIServerInvokerInf) remoteObj);\n connected = true;\n break;\n }\n catch(Exception e)\n {\n savedException = e;\n connected = false;\n RemotingRMIClientSocketFactory.removeLocalConfiguration(locator);\n log.trace(\"Unable to connect RMI invoker client to \" + home, e);\n\n }\n }\n\n if (server == null)\n {\n String message = this + \" unable to connect RMI invoker client\";\n log.debug(message);\n throw new CannotConnectException(message, savedException);\n }\n }", "@Override\n\tpublic void establishCoordinatorConn() throws InterruptedException {\n\t\tList<Thread> tList= new ArrayList<Thread>();\n\t\tfor (int i = 0; i < nProc-1; i++) {\n\t\t\tint clientPid = i + 2;\n\t\t\tThread t = new Thread(new Runnable() {\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tServerConnection conn = new ServerConnection();\n\t\t\t\t\t\tsynchronized (pidToConnMap) {\n\t\t\t\t\t\t\tpidToConnMap.put(clientPid, conn);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tint port = 20000 + (100 * 1) + (clientPid);\n\t\t\t\t\t\tconn.connectRetry(coordinatorHostname, port);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t\ttList.add(t);\n\t\t\tt.start();\n\t\t}\n\t\tfor (Thread t : tList) {\n\t\t\tt.join();\n\t\t}\n\t\tSystem.out.println(pidToConnMap.toString());\n\t}", "public void connectClusters() {\n\t\tif (clusters.size() == 2) { // once have only two clusters\n\t\t\tSystem.out.println(\"DONE!\");\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t\n\t\tcluster close1 = clusters.get(0),\n\t\t\t\tclose2 = clusters.get(1);\n\t\tdouble closestCluster = computeDistance(close1, close2);\n\t\t\n\t\tfor (int i=0; i<clusters.size(); i++) {\n\t\t\tcluster c1 = clusters.get(i);\n\t\t\t\n\t\t\tfor (int j=0; j<clusters.size(); j++) { // go through all the clusters and find closest\n\t\t\t\tif (i!=j) {\n\t\t\t\t\tcluster c2 = clusters.get(j);\n\t\t\t\t\tdouble dist = computeDistance(c1,c2);\n\t\t\t\t\tif (dist < closestCluster) {\n\t\t\t\t\t\tclose1 = c1;\n\t\t\t\t\t\tclose2 = c2;\n\t\t\t\t\t\tclosestCluster = dist;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tmakeCluster(close1, close2);\n\t\t\n\t}", "@Test\n\tpublic void testFastHandshakePeerIDHaveAll() throws Exception {\n\n\t\t// Given\n\t\tPieceDatabase pieceDatabase = MockPieceDatabase.create (\"1\", 16384);\n\t\tpieceDatabase.start (true);\n\t\tBitField wantedPieces = pieceDatabase.getPresentPieces().not();\n\t\tPeerServices peerServices = mock (PeerServices.class);\n\t\tPeerSetContext peerSetContext = new PeerSetContext (peerServices, pieceDatabase, mock (RequestManager.class), null);\n\t\twhen(peerSetContext.requestManager.piecesAvailable (any (ManageablePeer.class))).thenReturn (false);\n\t\tMockConnection mockConnection = new MockConnection();\n\t\tPeerHandler handler = new PeerHandler (peerSetContext, mockConnection, new PeerID(), new PeerStatistics(), true, false);\n\n\t\t// When\n\t\tmockConnection.mockInput (PeerProtocolBuilder.bitfieldMessage (wantedPieces));\n\t\thandler.connectionReady (mockConnection, true, true);\n\n\t\t// Then\n\t\tmockConnection.mockExpectOutput (PeerProtocolBuilder.haveAllMessage());\n\t\tmockConnection.mockExpectOutput (PeerProtocolBuilder.allowedFastMessage (0));\n\t\tmockConnection.mockExpectNoMoreOutput();\n\n\n\t\tpieceDatabase.terminate (true);\n\n\t}", "public List<PeerAddress> all() {\n final List<PeerAddress> all = new ArrayList<PeerAddress>();\n for (final Map<Number160, PeerStatistic> map : peerMapVerified) {\n synchronized (map) {\n for (PeerStatistic peerStatistic : map.values()) {\n all.add(peerStatistic.peerAddress());\n }\n }\n }\n return all;\n }", "private void setupWifip2p() {\n\n manager = (WifiP2pManager) getContext().getSystemService(Context.WIFI_P2P_SERVICE);\n channel = manager.initialize(getContext(), Looper.getMainLooper(), null);\n receiver = new WiFiDirectBroadcastReceiver(manager, channel, this, peerListListener);\n\n mIntentFilter = new IntentFilter();\n mIntentFilter.addAction(WifiP2pManager.WIFI_P2P_STATE_CHANGED_ACTION);\n mIntentFilter.addAction(WifiP2pManager.WIFI_P2P_PEERS_CHANGED_ACTION);\n mIntentFilter.addAction(WifiP2pManager.WIFI_P2P_CONNECTION_CHANGED_ACTION);\n mIntentFilter.addAction(WifiP2pManager.WIFI_P2P_THIS_DEVICE_CHANGED_ACTION);\n\n\n\n peersNames = new ArrayAdapter<String>(getContext(), android.R.layout.simple_selectable_list_item);\n devicesListAdapter = new DevicesListAdapter(devsList, getContext(), new MemberData.onItemClickListener() {\n @Override\n public void callback(int pos) {\n connect(devsList.get(pos));\n }\n });\n\n\n\n builder = new AlertDialog.Builder(getContext());\n\n builder.setTitle(\"Select Peers\")\n .setAdapter(devicesListAdapter, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n //\n }\n })\n .setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n peersDialog.dismiss();\n }\n });\n\n }", "public Service() {\n if (peers[0] == null) {\n Service.peers[0] = new Peer(clave7);\n Service.peers[1] = new Peer(clave8);\n Service.peers[2] = new Peer(clave9);\n Service.peers[0].addPeer(new EntradaTEncam(clave1, HOSTS[0], PUERTO));\n Service.peers[0].addPeer(new EntradaTEncam(clave2, HOSTS[0], PUERTO));\n Service.peers[0].addPeer(new EntradaTEncam(clave3, HOSTS[0], PUERTO));\n Service.peers[0].addPeer(new EntradaTEncam(clave4, HOSTS[1], PUERTO));\n Service.peers[0].addPeer(new EntradaTEncam(clave5, HOSTS[1], PUERTO));\n Service.peers[0].addPeer(new EntradaTEncam(clave6, HOSTS[1], PUERTO));\n //Service.peers[0].addPeer(new EntradaTEncam(clave7, HOSTS[2], PUERTO));\n Service.peers[0].addPeer(new EntradaTEncam(clave8, HOSTS[2], PUERTO));\n Service.peers[0].addPeer(new EntradaTEncam(clave9, HOSTS[2], PUERTO));\n Service.peers[1].addPeer(new EntradaTEncam(clave1, HOSTS[0], PUERTO));\n Service.peers[1].addPeer(new EntradaTEncam(clave2, HOSTS[0], PUERTO));\n Service.peers[1].addPeer(new EntradaTEncam(clave3, HOSTS[0], PUERTO));\n Service.peers[1].addPeer(new EntradaTEncam(clave4, HOSTS[1], PUERTO));\n Service.peers[1].addPeer(new EntradaTEncam(clave5, HOSTS[1], PUERTO));\n Service.peers[1].addPeer(new EntradaTEncam(clave6, HOSTS[1], PUERTO));\n Service.peers[1].addPeer(new EntradaTEncam(clave7, HOSTS[2], PUERTO));\n //Service.peers[1].addPeer(new EntradaTEncam(clave8, HOSTS[2], PUERTO));\n Service.peers[1].addPeer(new EntradaTEncam(clave9, HOSTS[2], PUERTO));\n Service.peers[2].addPeer(new EntradaTEncam(clave1, HOSTS[0], PUERTO));\n Service.peers[2].addPeer(new EntradaTEncam(clave2, HOSTS[0], PUERTO));\n Service.peers[2].addPeer(new EntradaTEncam(clave3, HOSTS[0], PUERTO));\n Service.peers[2].addPeer(new EntradaTEncam(clave4, HOSTS[1], PUERTO));\n Service.peers[2].addPeer(new EntradaTEncam(clave5, HOSTS[1], PUERTO));\n Service.peers[2].addPeer(new EntradaTEncam(clave6, HOSTS[1], PUERTO));\n Service.peers[2].addPeer(new EntradaTEncam(clave7, HOSTS[2], PUERTO));\n Service.peers[2].addPeer(new EntradaTEncam(clave8, HOSTS[2], PUERTO));\n //Service.peers[2].addPeer(new EntradaTEncam(clave9, HOSTS[2], PUERTO));\n }\n }", "public void connectToNodesInSequence(List<String> sequentialList) {\n for (ListIterator<String> recordListIterator = sequentialList.listIterator(); recordListIterator.hasNext();) {\n try {\n String currentRecord = recordListIterator.next();\n int currentPosition = sequentialList.indexOf(currentRecord);\n String nextRecord = sequentialList.get(currentPosition + 1);\n\n NodeRecord currentNode = registeredNodes.get(currentRecord);\n NodeRecord nextNode = registeredNodes.get(nextRecord);\n currentNode.addNodeToConnectTo(nextNode);\n updateConnections(currentNode, nextNode);\n } catch (IndexOutOfBoundsException e) {\n NodeRecord firstNode = registeredNodes.get(sequentialList.get(0));\n NodeRecord lastNode = registeredNodes.get(sequentialList.get(sequentialList.size()-1));\n lastNode.addNodeToConnectTo(firstNode);\n updateConnections(lastNode, firstNode);\n }\n }\n }", "public static void doConnect() {\r\n\t\tlogger.info(\"Connecting to server......\");\r\n\t\tChannelFuture future = null;\r\n\t\ttry {\r\n\t\t\tfuture = bootstrap.connect(new InetSocketAddress(host, port));\r\n\t\t\tfuture.addListener(channelFutureListener);\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\t// future.addListener(channelFutureListener);\r\n\t\t\tlogger.warn(\"Closed connection.\");\r\n\t\t}\r\n\r\n\t}", "public static ArrayList<PEPeer> getNextOptimisticPeers(ArrayList<PEPeer> all_peers, boolean factor_reciprocated, boolean allow_snubbed,\n int num_needed) {\n ArrayList<PEPeer> optimistics = new ArrayList<PEPeer>();\n for (int i = 0; i < all_peers.size(); i++) {\n PEPeer peer = all_peers.get(i);\n\n if (isUnchokable(peer, false) && peer.isChokedByMe()) {\n optimistics.add(peer);\n }\n }\n\n if (optimistics.isEmpty() && allow_snubbed) { // try again, allowing snubbed peers as last resort\n for (int i = 0; i < all_peers.size(); i++) {\n PEPeer peer = all_peers.get(i);\n\n if (isUnchokable(peer, true) && peer.isChokedByMe()) {\n optimistics.add(peer);\n }\n }\n }\n\n if (optimistics.isEmpty())\n return null; // no unchokable peers avail\n\n // factor in peer reciprocation ratio when picking optimistic peers\n\n ArrayList<PEPeer> result = new ArrayList<PEPeer>(optimistics.size());\n\n if (factor_reciprocated) {\n\n ArrayList<PEPeerTransport> ratioed_peers = new ArrayList<PEPeerTransport>(optimistics.size());\n long[] ratios = new long[optimistics.size()];\n Arrays.fill(ratios, Long.MIN_VALUE);\n\n // order by upload ratio\n for (int i = 0; i < optimistics.size(); i++) {\n PEPeer peer = optimistics.get(i);\n\n // score of >0 means we've uploaded more, <0 means we've downloaded more\n long score = peer.getStats().getTotalDataBytesSent() - peer.getStats().getTotalDataBytesReceived();\n\n UnchokerUtil.updateLargestValueFirstSort(score, ratios, peer, ratioed_peers, 0); // higher value = worse score\n }\n\n for (int i = 0; i < num_needed && ratioed_peers.size() > 0; i++) {\n\n double factor = 1F / (0.8 + 0.2 * Math.pow(RandomUtils.nextFloat(), -1)); // map to sorted list using a logistic curve\n\n int pos = (int) (factor * ratioed_peers.size());\n\n result.add(ratioed_peers.remove(pos));\n }\n } else {\n\n for (int i = 0; i < num_needed && optimistics.size() > 0; i++) {\n\n int rand_pos = new Random().nextInt(optimistics.size());\n\n result.add(optimistics.remove(rand_pos));\n }\n }\n\n return (result);\n\n // TODO:\n // in downloading mode, we would be better off optimistically unchoking just peers we are interested in ourselves,\n // as they could potentially reciprocate. however, new peers have no pieces to share, and are not interesting to\n // us, and would never be unchoked, and thus would never get any data.\n // we could use a deterministic method for new peers to get their very first piece from us\n }", "public void checkConnections() {\n Boolean updateCanvas = false;\n\n // Find new connections set within a node and creates them\n for (DrawableNode node : nodes) {\n if (node instanceof LogicNode) {\n String src = ((LogicNode) node).getLogic().getLogic();\n\n for (DrawableNode endNode : getNodes()) {\n int nodeConnectionType = NodeConnection.NO_CONNECTION;\n\n // Here we are checked to see if any connections are linked from this LogicNode\n if (src.contains(\"run(\\\"\" + endNode.getContainedText() + \"\\\"\") ||\n src.contains(\"runAndWait(\\\"\" + endNode.getContainedText() + \"\\\"\") ||\n src.contains(\"runAndJoin(\\\"\" + endNode.getContainedText() + \"\\\"\")) {\n nodeConnectionType = NodeConnection.DYNAMIC_CONNECTION;\n } else if (src.contains(\"getNode(\\\"\" + endNode.getContainedText() + \"\\\"\")) {\n nodeConnectionType = NodeConnection.GET_NODE_CONNECTION;\n }\n\n // If we find a possible connection and it doesn't already exist, we create that connection with the correct type\n if (!connectionExists(node, endNode) && nodeConnectionType != -1) {\n NodeConnection newConnection = new NodeConnection(node, endNode, nodeConnectionType);\n connections.add(newConnection);\n updateCanvas = true;\n }\n }\n } else if (node instanceof TestCaseNode) {\n String src = ((TestCaseNode) node).getLogic().getLogic();\n\n for (DrawableNode endNode : getNodes()) {\n int nodeConnectionType = NodeConnection.NO_CONNECTION;\n\n // Here we are checked to see if any connections are linked from this TestCaseNode\n if (src.contains(\"run(\\\"\" + endNode.getContainedText() + \"\\\"\") ||\n src.contains(\"runAndWait(\\\"\" + endNode.getContainedText() + \"\\\"\") ||\n src.contains(\"runAndJoin(\\\"\" + endNode.getContainedText() + \"\\\"\")) {\n nodeConnectionType = NodeConnection.DYNAMIC_CONNECTION;\n } else if (src.contains(\"getNode(\\\"\" + endNode.getContainedText() + \"\\\"\")) {\n nodeConnectionType = NodeConnection.GET_NODE_CONNECTION;\n }\n\n // If we find a possible connection and it doesn't already exist, we create that connection with the correct type\n if (!connectionExists(node, endNode) && nodeConnectionType != -1) {\n NodeConnection newConnection = new NodeConnection(node, endNode, nodeConnectionType);\n connections.add(newConnection);\n updateCanvas = true;\n }\n }\n } else if (node instanceof SwitchNode) {\n List<Switch> aSwitches = ((SwitchNode) node).getSwitches();\n\n for (DrawableNode endNode : getNodes()) {\n Boolean createConnection = false;\n Boolean enabledConnection = false;\n\n for (Switch aSwitch : aSwitches) {\n if ((aSwitch.getTarget().equals(endNode.getContainedText()))) {\n enabledConnection = aSwitch.isEnabled();\n createConnection = true;\n }\n }\n\n if (createConnection && !connectionExists(node, endNode)) {\n Integer connectionType = NodeConnection.DYNAMIC_CONNECTION;\n if (!enabledConnection) {\n connectionType = NodeConnection.DISABLED_CONNECTION;\n }\n\n NodeConnection newConnection = new NodeConnection(node, endNode, connectionType);\n connections.add(newConnection);\n updateCanvas = true;\n }\n }\n } else if (node instanceof TriggerNode) {\n List<Trigger> triggers = ((TriggerNode) node).getTriggers();\n\n for (Trigger trigger : triggers) {\n String watchName = trigger.getWatch();\n\n for (DrawableNode endNode : getNodes()) {\n Boolean createConnection = false;\n\n if (watchName.equals(endNode.getContainedText())) {\n createConnection = true;\n }\n\n // This connection has the start and end the other way around, the target is specified in the trigger but\n // we want it to look like the watched node is connecting to the trigger as that is the order that they are run\n if (createConnection && !connectionExists(endNode, node)) {\n NodeConnection newConnection = new NodeConnection(endNode, node, NodeConnection.TRIGGER_CONNECTION);\n connections.add(newConnection);\n updateCanvas = true;\n }\n }\n }\n }\n\n // Find connection that are set using the Next node input box\n if (node != null && !node.getNextNodeToRun().isEmpty()) {\n for (DrawableNode endNode : getNodes()) {\n if (node.getNextNodeToRun().equals(endNode.getContainedText())) {\n if (!connectionExists(node, endNode)) {\n NodeConnection newConnection = new NodeConnection(node, endNode, NodeConnection.MAIN_CONNECTION);\n connections.add(newConnection);\n updateCanvas = true;\n }\n }\n }\n }\n }\n\n // Checks old connections and removes ones that don't exist\n List<NodeConnection> listToRemove = new ArrayList<>();\n List<NodeConnection> connectionsLoopTemp = new ArrayList<>(); // We make a copy the list here so that we can the original while iterating over this one\n connectionsLoopTemp.addAll(connections);\n for (NodeConnection nodeConnection : connectionsLoopTemp) {\n if (nodeConnection.getConnectionType().equals(NodeConnection.DYNAMIC_CONNECTION)) {\n if (nodeConnection.getConnectionStart() instanceof LogicNode) {\n if (!((LogicNode) nodeConnection.getConnectionStart()).getLogic().getLogic().contains(\"run(\\\"\" + nodeConnection.getConnectionEnd().getContainedText() + \"\\\"\")) {\n if (!((LogicNode) nodeConnection.getConnectionStart()).getLogic().getLogic().contains(\"runAndWait(\\\"\" + nodeConnection.getConnectionEnd().getContainedText() + \"\\\"\")) {\n if (!((LogicNode) nodeConnection.getConnectionStart()).getLogic().getLogic().contains(\"runAndJoin(\\\"\" + nodeConnection.getConnectionEnd().getContainedText() + \"\\\"\")) {\n if (!((LogicNode) nodeConnection.getConnectionStart()).getLogic().getLogic().contains(\"getNode(\\\"\" + nodeConnection.getConnectionEnd().getContainedText() + \"\\\"\")) {\n listToRemove.add(nodeConnection);\n updateCanvas = true;\n }\n }\n }\n }\n } else if (nodeConnection.getConnectionStart() instanceof TestCaseNode) {\n if (!((TestCaseNode) nodeConnection.getConnectionStart()).getLogic().getLogic().contains(\"run(\\\"\" + nodeConnection.getConnectionEnd().getContainedText() + \"\\\"\")) {\n if (!((TestCaseNode) nodeConnection.getConnectionStart()).getLogic().getLogic().contains(\"runAndWait(\\\"\" + nodeConnection.getConnectionEnd().getContainedText() + \"\\\"\")) {\n if (!((TestCaseNode) nodeConnection.getConnectionStart()).getLogic().getLogic().contains(\"runAndJoin(\\\"\" + nodeConnection.getConnectionEnd().getContainedText() + \"\\\"\")) {\n if (!((TestCaseNode) nodeConnection.getConnectionStart()).getLogic().getLogic().contains(\"getNode(\\\"\" + nodeConnection.getConnectionEnd().getContainedText() + \"\\\"\")) {\n listToRemove.add(nodeConnection);\n updateCanvas = true;\n }\n }\n }\n }\n } else if (nodeConnection.getConnectionStart() instanceof SwitchNode) {\n List<Switch> aSwitches = ((SwitchNode) nodeConnection.getConnectionStart()).getSwitches();\n String endContainedText = nodeConnection.getConnectionEnd().getContainedText();\n Integer removeCount = 0;\n for (Switch aSwitch : aSwitches) {\n if ((!aSwitch.getTarget().equals(endContainedText) || !aSwitch.isEnabled())) {\n removeCount++;\n }\n }\n\n if (removeCount.equals(aSwitches.size())) {\n // Create a disabled connection between these two nodes to give appearance of toggling\n NodeConnection newConnection = new NodeConnection(nodeConnection.getConnectionStart(), nodeConnection.getConnectionEnd(), NodeConnection.DISABLED_CONNECTION);\n connections.add(newConnection);\n\n listToRemove.add(nodeConnection);\n updateCanvas = true;\n }\n }\n } else if (nodeConnection.getConnectionType().equals(NodeConnection.TRIGGER_CONNECTION)) {\n if (nodeConnection.getConnectionEnd() instanceof TriggerNode) { // Here the start and end connections are reversed\n List<Trigger> triggers = ((TriggerNode) nodeConnection.getConnectionEnd()).getTriggers();\n String endContainedText = nodeConnection.getConnectionStart().getContainedText();\n Integer removeCount = 0;\n for (Trigger trigger : triggers) {\n if ((!trigger.getWatch().equals(endContainedText))) {\n removeCount++;\n }\n }\n\n if (removeCount.equals(triggers.size())) {\n listToRemove.add(nodeConnection);\n updateCanvas = true;\n }\n }\n } else if (nodeConnection.getConnectionType().equals(NodeConnection.GET_NODE_CONNECTION)) {\n if (nodeConnection.getConnectionStart() instanceof LogicNode) {\n if (!((LogicNode) nodeConnection.getConnectionStart()).getLogic().getLogic().contains(\"getNode(\\\"\" + nodeConnection.getConnectionEnd().getContainedText() + \"\\\"\")) {\n listToRemove.add(nodeConnection);\n updateCanvas = true;\n }\n } else if (nodeConnection.getConnectionStart() instanceof TestCaseNode) {\n if (!((TestCaseNode) nodeConnection.getConnectionStart()).getLogic().getLogic().contains(\"getNode(\\\"\" + nodeConnection.getConnectionEnd().getContainedText() + \"\\\"\")) {\n listToRemove.add(nodeConnection);\n updateCanvas = true;\n }\n }\n } else if (nodeConnection.getConnectionType().equals(NodeConnection.DISABLED_CONNECTION)) {\n if (nodeConnection.getConnectionStart() instanceof SwitchNode) {\n List<Switch> aSwitches = ((SwitchNode) nodeConnection.getConnectionStart()).getSwitches();\n String endContainedText = nodeConnection.getConnectionEnd().getContainedText();\n Integer removeCount = 0;\n for (Switch aSwitch : aSwitches) {\n if ((!aSwitch.getTarget().equals(endContainedText) || aSwitch.isEnabled())) {\n removeCount++;\n }\n }\n\n if (removeCount.equals(aSwitches.size())) {\n // Create an enabled connection between these two nodes to give appearance of toggling\n NodeConnection newConnection = new NodeConnection(nodeConnection.getConnectionStart(), nodeConnection.getConnectionEnd(), NodeConnection.DYNAMIC_CONNECTION);\n connections.add(newConnection);\n\n listToRemove.add(nodeConnection);\n updateCanvas = true;\n }\n }\n }\n\n if (nodeConnection.getConnectionType().equals(NodeConnection.MAIN_CONNECTION)) {\n if (!nodeConnection.getConnectionStart().getNextNodeToRun().equals(nodeConnection.getConnectionEnd().getContainedText())) {\n listToRemove.add(nodeConnection);\n updateCanvas = true;\n }\n }\n }\n\n connections.removeAll(listToRemove);\n if (updateCanvas) {\n Controller.getInstance().updateCanvasControllerLater();\n }\n }", "@Override\n public List<Link> getConnectionList()\n {\n return connections;\n }", "java.lang.String getPeerURLs(int index);", "public void initMultiPlayer() {\r\n\t\tnew ConnectThread().start();\r\n\t}", "private int getNumPeers() {\n String[] peerIdList = skylinkConnection.getPeerIdList();\n if (peerIdList == null) {\n return 0;\n }\n // The first Peer is the local Peer.\n return peerIdList.length - 1;\n }", "public Status connect(double timeout)\n {\n if(isDestroyed) throw new RuntimeException(\"pvaClientMultiChannel was destroyed\");\n for(int i=0; i< numChannel; ++i) {\n pvaClientChannelArray[i] = pvaClient.createChannel(channelName[i],providerName);\n pvaClientChannelArray[i].issueConnect();\n }\n Status returnStatus = statusCreate.getStatusOK();\n Status status = statusCreate.getStatusOK();\n int numBad = 0;\n for(int i=0; i< numChannel; ++i) {\n if(numBad==0) {\n status = pvaClientChannelArray[i].waitConnect(timeout);\n } else {\n status = pvaClientChannelArray[i].waitConnect(.001);\n }\n if(status.isOK()) {\n ++numConnected;\n isConnected[i] = true;\n continue;\n }\n if(returnStatus.isOK()) returnStatus = status;\n ++numBad;\n if(numBad>maxNotConnected) break;\n }\n return numBad>maxNotConnected ? returnStatus : statusCreate.getStatusOK();\n }" ]
[ "0.6921413", "0.66952515", "0.6567972", "0.65097845", "0.6470138", "0.61357003", "0.6124585", "0.6005187", "0.59704995", "0.5917305", "0.5910352", "0.58398265", "0.5810658", "0.57575434", "0.57137734", "0.57124704", "0.5677388", "0.5673864", "0.5632963", "0.5613977", "0.55849195", "0.55534315", "0.5545631", "0.55009466", "0.54694724", "0.54112536", "0.54111904", "0.5402958", "0.5395158", "0.5315052", "0.53148013", "0.5305004", "0.5300119", "0.5293931", "0.5290717", "0.52880645", "0.5287363", "0.5243577", "0.52429897", "0.5216219", "0.521512", "0.52108854", "0.5195759", "0.5171854", "0.5162749", "0.5150787", "0.5131267", "0.51187766", "0.5116717", "0.51140803", "0.51139724", "0.5108106", "0.51064193", "0.5102931", "0.51028425", "0.510025", "0.5097992", "0.50972295", "0.5085445", "0.50826454", "0.5071193", "0.50449336", "0.5042962", "0.5034832", "0.50322264", "0.50232565", "0.5013307", "0.49975708", "0.49954295", "0.49881902", "0.4986487", "0.49731985", "0.49670994", "0.49668682", "0.4953629", "0.49441198", "0.49208432", "0.49181342", "0.49095806", "0.4909131", "0.49069673", "0.4900903", "0.4899393", "0.48832282", "0.48786682", "0.48734176", "0.48730955", "0.48706797", "0.4869734", "0.4865411", "0.4852559", "0.48428407", "0.4825635", "0.48211795", "0.4817569", "0.4809267", "0.4806958", "0.48054639", "0.47902614", "0.47817466" ]
0.69476175
0
Add the default name of the P2P Node to a specified url.
private static String urlAdderP2PNodeName(String url) { if (url.endsWith("/")) { url += P2P_NODE_NAME; } else { url += ("/" + P2P_NODE_NAME); } return url; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setNilUrlName()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlString target = null;\r\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(URLNAME$12, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(URLNAME$12);\r\n }\r\n target.setNil();\r\n }\r\n }", "public void setDefaultUrl(String url) {\n\t\tthis.defaultUrl = url;\n\t}", "public void xsetUrlName(org.apache.xmlbeans.XmlString urlName)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlString target = null;\r\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(URLNAME$12, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(URLNAME$12);\r\n }\r\n target.set(urlName);\r\n }\r\n }", "public void setUrlName(java.lang.String urlName)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(URLNAME$12, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(URLNAME$12);\r\n }\r\n target.setStringValue(urlName);\r\n }\r\n }", "default HttpUrl getNodeUrl() {\n return HttpUrl.parse(getHost()).newBuilder().port(getPort()).build();\n }", "@Override\n\tpublic String getUrlName() {\n\t\treturn URL_NAME;\n\t}", "public void setUrlName(String urlName) {\n this.urlName = urlName;\n }", "Builder addUrl(String value);", "void setDefaultEndpoint(Endpoint defaultEndpoint);", "void setSubmoduleUrl(String name, String url) throws GitException, InterruptedException;", "public abstract String associatePredefinedAddress(NodeMetadata node, String ip);", "void addHadithUrl(Object newHadithUrl);", "public String getUrlName() {\n return urlName;\n }", "public void addNode(String ip, int port) throws UnknownHostException {\t\r\n\t\tNodeRef ref = new NodeRef(ip, port); // create data node reference\r\n\t\tnodeMap.put(ref.getIp().getHostAddress(), ref);\r\n\t}", "void setDefaultEndpointUri(String endpointUri);", "T setUrlTarget(String urlTarget);", "public String getUrlName() {\n\t\treturn \"neoload\";\n\t}", "public void addUrlArg(String key, String value);", "public void setNode_2(String node_2);", "public void setDefaultHost() {\r\n\t\tsetHost(DEFAULT_HOST);\r\n\t}", "private final void createAndAddNode(String name) {\n\t}", "public void setServerUrl(String newUrl) {\n if(newUrl == null){\n return;\n }\n props.setProperty(\"url\", newUrl);\n saveProps();\n }", "public String createHrefForUser(final String name) {\n\t\treturn this.userUrlPrefix + name;\n\t}", "protected String overwriteSwaggerDefaultUrl(String html) {\n\t\treturn html.replace(Constants.SWAGGER_UI_DEFAULT_URL, StringUtils.EMPTY);\n\t}", "protected String newLinkName(){\n\t\treturn \"WomoEvtLnk_\" + linkNr++;\n\t}", "void addNode(String node);", "Builder addUrl(URL value);", "@Override\n\tpublic void setNodeName(String name) {\n\n\t}", "@Override\n\t\t\tpublic void onConnectRemoteNode(String url) {\t \t\t\t\n\t\t\t}", "void setNilPoolName();", "public java.lang.String getUrlName()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(URLNAME$12, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }", "public void setURL(String url);", "private static void connectToNameNode(){\n int nameNodeID = GlobalContext.getNameNodeId();\n ServerConnectMsg msg = new ServerConnectMsg(null);\n\n if(comm_bus.isLocalEntity(nameNodeID)) {\n log.info(\"Connect to local name node\");\n comm_bus.connectTo(nameNodeID, msg.getByteBuffer());\n } else {\n log.info(\"Connect to remote name node\");\n HostInfo nameNodeInfo = GlobalContext.getHostInfo(nameNodeID);\n String nameNodeAddr = nameNodeInfo.ip + \":\" + nameNodeInfo.port;\n log.info(\"name_node_addr = \" + String.valueOf(nameNodeAddr));\n comm_bus.connectTo(nameNodeID, nameNodeAddr, msg.getByteBuffer());\n }\n }", "public String getURL() {\n\t\treturn getName();\n\t}", "public void createHost( String hostname );", "public void changeUrl() {\n url();\n }", "Endpoint getDefaultEndpoint();", "Builder addSameAs(URL value);", "void setRemoteUrl(String name, String url, String GIT_DIR) throws GitException, InterruptedException;", "@Override\n\tpublic String generateUrl(String keyName) {\n\t\treturn null;\n\t}", "static String generateNodeName(final String hostName, final String hostPort) {\n return hostName + ':' + hostPort + '_' + \"solr\";\n }", "public void setServer(URL url) {\n\n\t}", "private void setEndpoint(Node node, DescriptorEndpointInfo ep) {\n NamedNodeMap map = node.getAttributes();\n\n String epname = map.getNamedItem(\"endpoint-name\").getNodeValue();\n String sername = map.getNamedItem(\"service-name\").getNodeValue();\n String intername = map.getNamedItem(\"interface-name\").getNodeValue();\n ep.setServiceName(new QName(getNamespace(sername), getLocalName(sername)));\n ep.setInterfaceName(new QName(getNamespace(intername), getLocalName(intername)));\n ep.setEndpointName(epname);\n }", "public DefaultHref(String baseUrl)\r\n {\r\n this.parameters = new HashMap();\r\n setFullUrl(baseUrl);\r\n }", "public void addNameServerPort(String nsp) {\n\t\tif (nsp != null)\n\t\t// check to see if item is already in list\n\t\tif (_nameserverPorts.indexOf(nsp) < 0)\n\t\t\t_nameserverPorts.add(nsp);\n\t}", "public void setUrl(String url);", "public void setUrl(String url);", "public void setNode_1(String node_1);", "default void setUrlSuffix(@Nullable String urlSuffix) {}", "protected void setDefaultName() {\r\n this.name = evaluateName();\r\n if (this.getModelerScene().getModelerFile().isLoaded()) {\r\n updateName(null);\r\n }\r\n setLabel(name);\r\n }", "public abstract String toUrl(Object inNode);", "@Override\n public void addServer(String address, String port, String name) {\n model.addElement(\"Server name: #\" + name + \"# Server address: #\" + address + \"# Server port: #\" + port + \"#\");\n }", "public void setLinkName(String linkName);", "void addHadithBookUrl(Object newHadithBookUrl);", "private String createUrlWithPort(String gadgetUrl) {\n try {\n URL origUrl = new URL(gadgetUrl);\n URL urlWithPort = null;\n String origHost = origUrl.getHost();\n if (origUrl.getPort() <= 0 && origHost != null && origHost.length() != 0\n && !STAR.equals(origHost)) {\n if (origUrl.getProtocol().equalsIgnoreCase(HTTP)) {\n urlWithPort = new URL(origUrl.getProtocol(), origUrl.getHost(), HTTP_PORT, origUrl.getFile());\n }\n else if (origUrl.getProtocol().equalsIgnoreCase(HTTPS)) {\n urlWithPort = new URL(origUrl.getProtocol(), origUrl.getHost(), HTTPS_PORT, origUrl.getFile());\n }\n return urlWithPort == null ? origUrl.toString() : urlWithPort.toString();\n } else {\n return origUrl.toString();\n }\n } catch (MalformedURLException e) {\n return gadgetUrl;\n }\n }", "private String createURLWithPort(String uri) {\n\t\treturn HOST + port + uri;\n\t}", "@Override\n\tpublic GraphName getDefaultNodeName() {\n\t\treturn GraphName.of(\"rosjava/chatter\");\t}", "Neuron setName(String name);", "private void addNode(String name)\n {\n try (Session session = driver.session())\n {\n // Wrapping Cypher in an explicit transaction provides atomicity\n // and makes handling errors much easier.\n try (Transaction tx = session.beginTransaction())\n {\n tx.run(\"MERGE (a:Node {value: {x}})\", parameters(\"x\", name));\n tx.success(); // Mark this write as successful.\n }\n }\n }", "public static String setURL(String endpoint) {\n String url = hostName + endpoint;\n\n log.info(\"Enpoint: \" + endpoint);\n\n return url;\n\n }", "public void addName() throws JNCException {\n setLeafValue(Routing.NAMESPACE,\n \"name\",\n null,\n childrenNames());\n }", "private URL createURLaddUser() {\n try {\n String urlString;\n\n urlString = \"http://cs262.cs.calvin.edu:8081/fitness/users\";\n\n return new URL(urlString);\n\n } catch (Exception e) {\n Toast.makeText(this, \"Failed to make URL\", Toast.LENGTH_SHORT).show();\n }\n\n return null;\n }", "private Node createAddNetwork(String name, double v1, double v2) {\n Node number1 = numberNode.extend()\n .withName(\"number1\")\n .withInputValue(\"number\", v1);\n Node number2 = numberNode.extend()\n .withName(\"number2\")\n .withInputValue(\"number\", v2);\n return Node.NETWORK\n .withName(name)\n .withChildAdded(number1)\n .withChildAdded(number2)\n .withChildAdded(addNode)\n .withRenderedChild(addNode)\n .connect(\"number1\", \"add\", \"v1\")\n .connect(\"number2\", \"add\", \"v2\");\n }", "public com.walgreens.rxit.ch.cda.PN addNewName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.walgreens.rxit.ch.cda.PN target = null;\n target = (com.walgreens.rxit.ch.cda.PN)get_store().add_element_user(NAME$8);\n return target;\n }\n }", "private static void addSeedURL()\r\n\t{\r\n\t\tSystem.out.println(\"Enter a website to search for keywords.\");\r\n\t\tString userInput = input.nextLine();\r\n\t\t\r\n\t\tif(userInput.length() >= 7 && !(userInput.substring(0, 6).equals(\"https://\")))\r\n\t\t{\r\n\t\t\tuserInput = \"http://\" + userInput;\r\n\t\t\t\r\n\t\t\ttry \r\n\t\t\t{\r\n\t\t\t\tSharedLink.addLink(userInput);\r\n\t\t\t} \r\n\t\t\tcatch (InterruptedException e) \r\n\t\t\t{\r\n\t\t\t\t//do nothing\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void setUrl(\n java.lang.String value) {\n value.getClass();\n bitField0_ |= 0x00000002;\n url_ = value;\n }", "private void setUrl(\n java.lang.String value) {\n value.getClass();\n bitField0_ |= 0x00000001;\n url_ = value;\n }", "public Resource getDefaultGraphName() {\n \t\treturn createResource(this.baseGraphName);\n \t}", "Target(String host) {\n try {\n address = new InetSocketAddress(InetAddress.getByName(host), 80);\n } catch (UnknownHostException e) {\n// e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.\n failure = e;\n }\n }", "public String getNetspeakUrlName() {\n return \"NetspeakUrl\"; // TODO: parameter\n }", "private RestNodeModel renameNode(ContentModel node)\n {\n String newName = node.getName() + \"_updated\";\n JsonObject renameJson = Json.createObjectBuilder().add(\"properties\",\n Json.createObjectBuilder().add(\"cm:name\", newName)).build();\n return restClient.authenticateUser(testUser).withCoreAPI().usingNode(node).updateNode(renameJson.toString());\n }", "public void addNode(String hostname, String IP) throws IOException, XMLStreamException {\n Integer nodeID = returnHash(hostname);\n if (!IPmap.containsKey(nodeID)) {\n IPmap.put(nodeID, IP);\n //writeToXML();\n for (Map.Entry<Integer, String> entry : IPmap.entrySet()) {\n System.out.println(\"Key: \" + entry.getKey() + \". Value: \" + entry.getValue());\n }\n } else System.out.println(\"Node already in use.\");\n }", "public void addLocalConfigDefaultPdnType() throws JNCException {\n setLeafValue(Epc.NAMESPACE,\n \"local-config-default-pdn-type\",\n null,\n childrenNames());\n }", "public void unsetUrlName()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(URLNAME$12, 0);\r\n }\r\n }", "private String urlLink(final String url, final String name) {\n Tag aTag = new Tag(\"a\");\n aTag.add(name);\n aTag.addParameter(\"href\", baseUrl + url);\n return aTag.toString();\n }", "public void setURL(String url) {\n \t\tblueURL = url;\n\t}", "IParser setServerBaseUrl(String theUrl);", "public Endpoint registerProducer(NodeName nodeName, String name, String type, String path)\n throws IOTException {\n NodeInformation nodeInformation = nodeCatalog.getNode(nodeName);\n if (nodeInformation == null) {\n handleError(\"Cannot find the specified node: \" + nodeName);\n return null;\n }\n \n Endpoint endpoint = endpointAllocator.allocate(nodeName, name, type, path);\n nodeInformation.addProducer(endpoint);\n \n return endpoint;\n }", "public void addURL(URL url) {\n logger.debug(this + \" adding URL \" + url);\n super.addURL(url);\n }", "void setHostname(String hostname);", "Builder addAdditionalType(URL value);", "@Override\r\n\tpublic String getUrl() {\n\t\treturn null;\r\n\t}", "public NodeUpdate name(String nodeName){\n\t\tapiParams.element(\"Name\", nodeName);\r\n\t\t\treturn this;\r\n\t\t}", "@Override\n protected Content defaultAction(TypeMirror type, LinkInfo linkInfo) {\n link.add(utils.getTypeName(type, false));\n return link;\n }", "@Override\r\n public String getUrl()\r\n {\n return null;\r\n }", "String addNewNode(Double lat, Double lon);", "public void setName (String name) {\n this.name = name;\n NameRegistrar.register (\"server.\"+name, this);\n }", "void setPoolName(java.lang.String poolName);", "private String getURL() {\n\t\t// TODO : Generate URL\n\t\treturn null;\n\t}", "@Override\r\n\tpublic void addPartner(String name) {\n\t\tpartner = partner.concat(\" \"+name);\r\n\t}", "public void addParameterToLink(String name, String value) {\n \t\tparameterName.add(name);\n \t\tparameterValue.add(value);\n \t}", "public void setNode(String node)\n {\n this.node = node;\n }", "void setNodeServiceUrl(String nodeServiceUri)\n throws IOException, SoapException;", "public void setURL(String _url) { url = _url; }", "public void setNode_5(String node_5);", "default String getLocalNodeName() {\n return \"local\";\n }", "String getLinkName();", "protected Element myPlnk(){\n\t\treturn el(\"bpws:partnerLink\", new Node[]{\n\t\t\t\tattr(\"partnerLinkType\", \"nswomo:evtrcvType\"),\n\t\t\t\tattr(\"name\", PLNKNAME),\n\t\t\t\tattr(\"partnerRole\", \"service\")\n\t\t});\n\t}", "@Returns(\"targetId\")\n String createTarget(@ParamName(\"url\") String url);", "@Override\r\n\tpublic void getUrl() {\n\r\n\t}" ]
[ "0.5741296", "0.5719367", "0.56815183", "0.56056494", "0.56038135", "0.5581097", "0.55140567", "0.5272715", "0.5240364", "0.52173704", "0.5158951", "0.5109192", "0.50778973", "0.50544286", "0.5040382", "0.50242627", "0.50241154", "0.50186986", "0.50163186", "0.5008749", "0.50056833", "0.49968314", "0.4992539", "0.4970489", "0.4947486", "0.4939935", "0.49387646", "0.49117917", "0.48992282", "0.4884557", "0.48803434", "0.48759496", "0.4875073", "0.4872415", "0.48688167", "0.48635098", "0.4862661", "0.4855742", "0.48513582", "0.4842766", "0.484102", "0.48409197", "0.483585", "0.48318115", "0.48263887", "0.48235142", "0.48235142", "0.4822232", "0.48144555", "0.48115155", "0.48055342", "0.4786735", "0.4779406", "0.47740942", "0.4768955", "0.47687945", "0.47683454", "0.47646484", "0.4763971", "0.4758739", "0.47572285", "0.47474605", "0.4747078", "0.4742231", "0.47340363", "0.47221884", "0.4722111", "0.47201255", "0.47198412", "0.47172555", "0.47147822", "0.4705671", "0.47045985", "0.46972403", "0.46944046", "0.4692098", "0.46828064", "0.467657", "0.4675953", "0.4670503", "0.46691343", "0.46575403", "0.46514207", "0.46511513", "0.46507707", "0.46426705", "0.46323952", "0.46239632", "0.46164632", "0.45784506", "0.4574216", "0.45709985", "0.4569417", "0.45677495", "0.45634463", "0.45633402", "0.4551095", "0.4548567", "0.4546333", "0.45415303" ]
0.7138029
0
Pega o instante que terminou menos oque comecou e divide por 1000(milisegundo)
public long termina() { return (System.currentTimeMillis() - inicio) / 1000; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public DuploQuantidadeFaturacao(){\r\n faturacao = 0;\r\n quantidade = 0;\r\n }", "@Test\n\tvoid calcularSalarioConMasCuarentaHorasPagoPositivoTest() {\n\t\tEmpleadoPorComision empleadoPorComision = new EmpleadoPorComision(\"Eiichiro oda\", \"p33\", 400000, 500000);\n\t\tdouble salarioEsperado = 425000;\n\t\tdouble salarioEmpleadoPorComision = empleadoPorComision.calcularSalario();\n\t\tassertEquals(salarioEsperado, salarioEmpleadoPorComision);\n\n\t}", "public void iniciar(){\nSystem.out.println(\"El primer contador comenzara en el número 0\");\ncontador=0;\nSystem.out.println(\"El segundo contador comenzara en el número 100\");\ncontador2=100;}", "public void carroPulando() {\n\t\tpulos++;\n\t\tpulo = (int) (PULO_MAXIMO/10);\n\t\tdistanciaCorrida += pulo;\n\t\tif (distanciaCorrida > distanciaTotalCorrida) {\n\t\t\tdistanciaCorrida = distanciaTotalCorrida;\n\t\t}\n\t}", "public static void Number(){\n for(int c=1000;c<=1000000;c++)\n {\n VampireNumber(c);\n }\n }", "@Override\r\n\tpublic int div() {\n\t\treturn 0;\r\n\t}", "void imprimeCalculos(){\n int a,b;\n a=calculaX();\n b=calculaY();\n System.out.println(\"Valor de X=\"+a);\n System.out.println(\"Valor de Y=\"+b);\n if(a==0){\n proporcion=0;\n }else{\n proporcion=(b/a);\n System.out.println(\"Valor de proporcion es: \"+proporcion);\n }\n }", "public float carga(){\n return (this.capacidade/this.tamanho);\n }", "long buscarPrimeiro();", "long buscarUltimo();", "public void doMore(){\n\t/**\n\t * ArithmeticExceptiont this exception occurs when an integer is \n\t * divided by zero.\n\t * \n\t * */\t\n\t\tint number=500/0;\n\t\t\n\t}", "@Override\n\tpublic double perimetro() {\n\t\treturn 0;\n\t}", "public static void main(String[] args) {\n\n double valorTotal = 36000;\n\n for (int parcela = (int) valorTotal; parcela >= 1; parcela--) {\n double valorParcela = valorTotal / parcela;\n if (valorParcela >= 1000) {\n System.out.println(parcela + \" parcelas de \" + valorParcela + \"R$\");\n }\n }\n }", "public static void main(String[] args) {\n\t\tdouble media = 0, cont = 0, soma = 0;\r\n\t\tfor (int aux = 1000; aux <= 2000; aux++) {\r\n\t\t\tif (aux % 2 != 0) {\r\n\t\t\t\tsoma += aux;\r\n\t\t\t\tcont++;\r\n\t\t\t}\r\n\t\t}\r\n\t\tmedia = soma / cont;\r\n\t\tSystem.out.println(media);\r\n\t}", "public void start() {\n boolean continua = true;\n Dati datiRMP;\n int codPiatto;\n int codRiga;\n int quantiCoperti;\n int quanteComande;\n String descPiatto;\n String catPiatto;\n Modulo modRMP = RMPModulo.get();\n Modulo modPiatto = PiattoModulo.get();\n Modulo modCategoria = CategoriaModulo.get();\n ModuloRisultati modRisultati = getModuloRisultati();\n Campo chiaveRMP;\n int codRMP;\n int codMenu;\n int[] codici;\n double qtaOff;\n double qtaCom;\n double gradimento = 0.0;\n PanCoperti panCoperti;\n\n try { // prova ad eseguire il codice\n\n /* azzera il numero di coperti serviti */\n panCoperti = getPanCoperti();\n panCoperti.setNumCopertiPranzo(0);\n panCoperti.setNumCopertiCena(0);\n\n /* svuota i dati del modulo risultati */\n getModuloRisultati().query().eliminaRecords();\n\n datiRMP = this.getDati();\n chiaveRMP = modRMP.getCampoChiave();\n\n /* spazzola le RMP trovate */\n for (int k = 0; k < datiRMP.getRowCount(); k++) {\n\n this.quanti++;\n\n codRMP = datiRMP.getIntAt(k, chiaveRMP);\n codPiatto = datiRMP.getIntAt(k, modRMP.getCampo(RMP.CAMPO_PIATTO));\n descPiatto = datiRMP.getStringAt(k,\n modPiatto.getCampo(Piatto.CAMPO_NOME_ITALIANO));\n catPiatto = datiRMP.getStringAt(k,\n modCategoria.getCampo(Categoria.CAMPO_SIGLA));\n\n codRiga = addPiatto(codPiatto, descPiatto, catPiatto);\n\n if (codRiga <= 0) {\n continua = false;\n break;\n }// fine del blocco if\n\n /* incrementa di 1 il numero di volte in cui il piatto è stato proposto\n * per questa riga risultati */\n incrementaCampo(codRiga, Campi.Ris.quanteVolte, 1);\n\n /* determina il numero dei coperti presenti nel menu al\n * quale questa RMP appartiene */\n codMenu = datiRMP.getIntAt(k, modRMP.getCampo(RMP.CAMPO_MENU));\n quantiCoperti = getQuantiCoperti(codMenu);\n\n /* incrementa il numero di coperti potenziali per questa riga risultati */\n incrementaCampo(codRiga, Campi.Ris.quantiCoperti, quantiCoperti);\n\n /* determina il numero di comande effettuate\n * per questa RMP */\n quanteComande = getQuanteComande(codRMP);\n\n /* incrementa il numero di comande effettuate per questa riga risultati */\n incrementaCampo(codRiga, Campi.Ris.quanteComande, quanteComande);\n\n /* interruzione nella superclasse */\n if (super.isInterrompi()) {\n continua = false;\n break;\n }// fine del blocco if\n\n } // fine del ciclo for\n\n /* spazzola le righe dei risultati per regolare il gradimento */\n if (continua) {\n codici = modRisultati.query().valoriChiave();\n for (int k = 0; k < codici.length; k++) {\n codRiga = codici[k];\n gradimento = 0.0;\n qtaOff = modRisultati.query()\n .valoreDouble(Campi.Ris.quantiCoperti.getCampo(), codRiga);\n qtaCom = modRisultati.query()\n .valoreDouble(Campi.Ris.quanteComande.getCampo(), codRiga);\n if (qtaOff != 0) {\n gradimento = qtaCom / qtaOff;\n gradimento = Lib.Mat.arrotonda(gradimento, 4);\n }// fine del blocco if\n modRisultati.query().registraRecordValore(codRiga,\n Campi.Ris.gradimento.getCampo(),\n gradimento);\n } // fine del ciclo for\n }// fine del blocco if\n\n datiRMP.close();\n\n getNavigatore().aggiornaLista();\n\n /* aggiorna il numero di coperti serviti */\n Filtro filtro;\n Number numero;\n Modulo moduloRMT = RMTModulo.get();\n Filtro filtroMenu = getFiltroMenu();\n Filtro filtroPranzo = FiltroFactory.crea(MenuModulo.get().getCampo(Menu.Cam.pasto), Ristorante.COD_DB_PRANZO);\n Filtro filtroCena = FiltroFactory.crea(MenuModulo.get().getCampo(Menu.Cam.pasto), Ristorante.COD_DB_CENA);\n filtro = new Filtro();\n filtro.add(filtroMenu);\n filtro.add(filtroPranzo);\n numero = moduloRMT.query().somma(RMT.Cam.coperti.get(), filtro);\n panCoperti.setNumCopertiPranzo(Libreria.getInt(numero));\n filtro = new Filtro();\n filtro.add(filtroMenu);\n filtro.add(filtroCena);\n numero = moduloRMT.query().somma(RMT.Cam.coperti.get(), filtro);\n panCoperti.setNumCopertiCena(Libreria.getInt(numero));\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n } // fine del blocco try-catch\n }", "Millimeter createMillimeter();", "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 }", "public Inatnum quotient(Inatnum a) throws Exception{//purpose: to find the quotient of 2 natural numbers\n int N =n;// we need to initialize our n value which we are looping\n if(a.isZero()==true) {return a;}// if our a value is zero then we just return a because 0 divided by any number is 0\n Inatnum res = new zeronatnum(); // we need to set our res to zero to initialize it\n //INV: N>=a.getVal() && res = res + 1, where (res && 1) => Inatnum && N = N - a.getVal() \n while(N>=a.getVal()) {\n\t\t\t\t //INV: N=a.getVal() && res = 0, where 0=> Inatnum && N = this.getVal()\n N=N-a.getVal(); // Initiates N as n subtracted from a.getVal() \n\t\t\t\t //INV: N>=a.getVal() && res = 0, where 0=> Inatnum && N = N - a.getVal()\n res = res.succ(); // initiates res as the succ of res\n\t\t\t\t //INV: N>=a.getVal() && res = res + 1, where (res && 1) => Inatnum && N = N - a.getVal()\n }return res;\n\t\t ////N<a.getVal() \n\t\t //Termination Argument: N starts at this.getVal(), n decrements each time through the loop, eventually \n // N < a.getVal() and loop terminates\n\t }", "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 void run() {\n\t\tint result;\n\t\tRandom random=new Random(Thread.currentThread().getId());\n\t\twhile (true) {\n\t\t\tresult=1000/(int)(random.nextDouble()*1000000000);\n\t\t\tif (Thread.currentThread().isInterrupted()) {\n\t\t\t\tSystem.out.printf(\"%d : interrupted\\n\",Thread.currentThread().getId());\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "public void calcular()\r\n/* 530: */ {\r\n/* 531:556 */ this.facturaProveedorSRI.setMontoIva(this.facturaProveedorSRI.getBaseImponibleDiferenteCero().multiply(\r\n/* 532:557 */ ParametrosSistema.getPorcentajeIva().divide(BigDecimal.valueOf(100L))));\r\n/* 533: */ }", "public int precioFinal(){\r\n int monto=super.PrecioFinal();\r\n\t \t \r\n\t if (pulgadas>40){\r\n\t monto+=precioBase*0.3;\r\n\t }\r\n\t if (sintonizador){\r\n\t monto+=50;\r\n\t }\r\n\t \r\n\t return monto;\r\n\t }", "public int disminuir(int contador){\nSystem.out.println(\"Escoge la cantidad a disminuir\");\nnum=teclado.nextInt();\nfor(int i=0 ; i<num ; i++){\ncontador=contador-1;}\nreturn contador;}", "public int run(){\n\t\tint result = 0;\n\t\tfor(int a = 1; a<=900; a++){\n\t\t\tfor(int b = a; b<=900; b++){\n\t\t\t\tfor(int c = b; c<=900; c++){\n\t\t\t\t\tif(a+b+c == 1000){\n\t\t\t\t\t\tif(Math.pow(a, 2)+Math.pow(b, 2) == Math.pow(c, 2)){\n\t\t\t\t\t\t\tresult = a*b*c;\n\t\t\t\t\t\t\tSystem.out.println(a+\" \"+b+\" \"+c+\" \"+result);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn result;\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}", "@Override\n\tpublic Double calculerFonds(Integer idBanque) {\n\t\treturn 1000.0;\n\t}", "public void reduct() {\n\t\tint divider = bunmo;\n\t\tif(bunja < bunmo){\n\t\t\tdivider = bunja;\n\t\t}\n\t\twhile(divider > 1){\n//\t\twhile(!util.Uitl.isPrime(bunmo)||!util.Uitl.isPrime(bunja)){\n\t\t\tboolean canDivide = (bunmo%divider==0)&&(bunja%divider==0);\n\t\t\tif(canDivide){\n\t\t\t\tbunja/=divider;\n\t\t\t\tbunmo/=divider;\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\tdivider--;\n\t\t\t}\n\t\t}\n\t}", "@Test\n\tpublic void test100000() {\n\n\tdouble tax = Main.calcTax(100_000.);\n\tassertEquals(1750., tax, .01);\n\n\t}", "public Divide(){\n }", "public static void main(String[] args) throws InterruptedException, ExecutionException {\t\r\n\t\tScanner reader = new Scanner(System.in);\r\n\t\t/*\r\n\t\t * Limite maximo de números. \r\n\t\t */\t\r\n\t\tList<Future<Long>> list = new ArrayList<Future<Long>>();\r\n\t\t/*\r\n\t\t * Lista que guarda los tiempos de ejecución de cada hilo. \r\n\t\t */\t\r\n\t\tArrayList<Long> ListaTiempo = new ArrayList<Long>();\r\n\t\tSystem.out.print(\"ingrese numeros limite de numeros para analizar:\");\r\n\t\t/*\r\n\t\t * Variable que guarda el numero captado por consola. \r\n\t\t */\t\r\n\t\tint numeros = reader.nextInt();\r\n\t\t/*\r\n\t\t * Variable que incrementa para generar los hilos. \r\n\t\t */\t\r\n\t\tint hilos = 1;\r\n\t\t/*\r\n\t\t * Variable que guarda el tiempo de ejecucion del hilo uno. \r\n\t\t */\t\r\n\t\tlong tiempoHiloUno = 0;\r\n\t\t\r\n\t\t//while que itera hasta 16 hilos.\r\n\t\twhile (hilos <= 16) {\r\n\t\t\t//Calculo del límite.\r\n\t\t\tint limite = numeros / hilos;\r\n\t\t\t/*\r\n\t\t\t * Se crea el pool de hilos. \r\n\t\t\t */\t\r\n\t\t\tExecutorService servicio = Executors.newFixedThreadPool(hilos);\r\n\t\t\tint inferior = 1;\r\n\t\t\tint superior = limite;\r\n\t\t\tlong initialTime = System.currentTimeMillis();\r\n\t\t\t//Itera segun el numero de hilos.\r\n\t\t\tfor (int i = 1; i <= hilos; i++) {\r\n\t\t\t\tFuture<Long> resultado = servicio.submit(new Nprimos(superior, inferior));\r\n\t\t\t\tlist.add(resultado);\r\n\t\t\t\tinferior = superior + 1;\r\n\t\t\t\tsuperior += limite;\r\n\t\t\t\t//Si supera el límite rompe el ciclo.\r\n\t\t\t\tif (superior > limite * hilos) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t// se termina de ejecutar cuando todos los hilos terminan de trabajar.\r\n\t\t\tfor (Future<Long> resultado : list) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tListaTiempo.add(resultado.get());\r\n\t\t\t\t} catch (InterruptedException | ExecutionException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(hilos==1) {\r\n\t\t\t\ttiempoHiloUno = System.currentTimeMillis() - initialTime; \r\n\t\t\t}\r\n\t\t\tSystem.out.print(\" \\n \" + \"(\" + hilos + \")\" + \"tiempo de ejecución: \"+ (System.currentTimeMillis() - initialTime) + \" ms\\n\");\r\n\t\t\tSystem.out.print(\" speed up = \" + (double)(tiempoHiloUno /(System.currentTimeMillis() - initialTime)) + \" \\n\");\r\n\t\t\tservicio.shutdown();\r\n\t\t\t//Se incrementa variable hilos.\r\n\t\t\thilos++;\r\n\t\t}\r\n\r\n\t}", "@Override\n\tpublic double compete() {\n\t\tdouble result=MyTools.getRandomNum(500, 800);\n\t\tsetThisResult(result);\n\t\treturn result;\n\t}", "@Override\n public double tuition(){\n return 2500;\n }", "@Test\n\tpublic void testMultiplica2Enteros0() {\n\t\tdouble resultado= Producto.multiplica2enteros(100, 0);\n\t\tdouble esperado= 0;\n\t\t\n\t\tassertEquals(esperado, resultado);\n\t}", "@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}", "public void Millas_M(){\r\n System.out.println(\"Cálcular Metros o Kilometros de Millas Marinas\");\r\n System.out.println(\"Ingrese un valor en Millas Marinas\");\r\n cadena =numero.next(); \r\n valor = metodo.Doble(cadena);\r\n valor = metodo.NegativoD(valor);\r\n totalM = valor * 1852 ;\r\n Millas_KM(totalM);\r\n }", "public void calcularQuinA(){\n sueldoQuinAd = sueldoMensual /2;\n\n }", "public static void main(String[] args) {\n\t\tScanner entrada = new Scanner(System.in);\n\t\tint n, cent, dez, uni;\n\t\t\n\t\tSystem.out.print(\"Digite um número positivo menor que 1000: \");\n\t\tn = entrada.nextInt();\n\t\t\n\t\tif (n>=0 && n<1000) {\n\t\t\tcent = n/100;\n\t\t\tn = n-cent*100;\n\t\t\tdez = n/10;\n\t\t\tn = n-dez*10;\n\t\t\tuni = n;\n\t\t\t\n\t\t\tSystem.out.println(\"Centenas:\"+cent+\"\\nDezenas:\"+dez+\"\\nUnidades:\"+uni);\n\t\t}\n\t\telse\n\t\t\tSystem.out.println(\"O valor deve ser positivo e menor que 1000\");\n\t\t\n\t\tentrada.close();\n\t}", "public static void Promedio(){\n int ISumaNotas=0;\n int IFila=0,ICol=0;\n int INota;\n float FltPromedio;\n for(IFila=0;IFila<10;IFila++)\n {\n ISumaNotas+=Integer.parseInt(StrNotas[IFila][1]);\n }\n FltPromedio=ISumaNotas/10;\n System.out.println(\"El promedio de la clase es:\"+FltPromedio);\n }", "public Integer gerarSequencialContaBoleto() throws ErroRepositorioException ;", "@Override\n protected Void doInBackground(Void... params) {\n while(myProgress<TIEMPOMAXIMO){\n if (isCancelled())\n break;\n\n if(Cancelar==true){\n myProgress=TIEMPOMAXIMO;\n }else {\n\n if(issumartiempo==true){\n TIEMPOMAXIMO=TIEMPOAUMENTADO+TIEMPOLIMITE;\n\n }\n myProgress++;\n\n publishProgress(myProgress);\n\n\n SystemClock.sleep(1000);}\n }\n return null;\n }", "public static void main(String[] args) {\n int primeiroNumero = 10; // Armazena o valor 10 para o primeiro número\n int segundoNumero = 2; // Armazena o valor 10 para o segundo número\n int resultado = 0; // Armazena do resultado da operação\n \n // Forma de adição\n resultado = primeiroNumero + segundoNumero;\n \n //Apresenta o resultado da adição\n System.out.printf(\"Resultado da adição = %d\\n\", resultado);\n \n \n // Forma de subtração\n resultado = primeiroNumero - segundoNumero;\n \n //Apresenta o resultado da subtração\n System.out.printf(\"Resultado da subtração = %d\\n\", resultado);\n \n \n // Forma de multiplicação\n resultado = primeiroNumero * segundoNumero;\n \n //Apresenta o resultado da multiplicação\n System.out.printf(\"Resultado da multiplicação = %d\\n\", resultado);\n \n \n // Forma de divisão\n resultado = primeiroNumero / segundoNumero;\n \n //Apresenta o resultado da divisão\n System.out.printf(\"Resultado da divisão = %d\\n\", resultado);\n \n \n // Forma de resto\n resultado = primeiroNumero % segundoNumero;\n \n //Apresenta o resultado do resto da divisão\n System.out.printf(\"Resultado do resto da divisão = %d\\n\", resultado);\n \n }", "@Override\n public double salario() {\n return 2600 * 1.10;\n }", "@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 }", "private int pasarMilisegundoASegundo( long milisegundos )\n {\n return (int)(milisegundos/MILISEGUNDOS_EN_SEGUNDO);\n }", "public static double calculateLimit() {\n return 500;\n }", "public void daiMedicina() {\n System.out.println(\"Vuoi curare \" + nome + \" per 200 Tam? S/N\");\n String temp = creaturaIn.next();\n if (temp.equals(\"s\") || temp.equals(\"S\")) {\n puntiVita += 60;\n soldiTam -= 200;\n }\n checkStato();\n }", "private static int getNumber() {\n LOG.info(\"Generating Value\");\n return 1 / 0;\n }", "@Test\n public void testGetSetTemperaturaExteriorMinima() {\n System.out.println(\"getSetTemperaturaExteriorMinima\");\n double expResult = 10.0;\n Simulacao simulacao = new Simulacao();\n simulacao.setSala(sala);\n AlterarTemperaturasMeioController instance = new AlterarTemperaturasMeioController(simulacao);\n instance.setTemperaturaExteriorMinima(expResult);\n double result = instance.getTemperaturaExteriorMinima();\n assertEquals(expResult, result, 0.0);\n }", "@Override\n\tpublic int horas_trabajo() {\n\t\treturn 1000;\n\t}", "public PrimeCounter(long startValue) {\n\t\t\tnum = startValue;\n\t\t}", "public Calculadora(){\n this.operador1 = 0.0;\n this.operador2 = 0.0;\n this.resultado = 0.0;\n }", "public static void metodo01 ( int x )\r\n {\r\n // repetir enquanto valor maior que zero\r\n while ( x > 0 )\r\n {\r\n // mostrar valor\r\n IO.println ( \"Valor = \" + x );\r\n // passar ao próximo\r\n x = x - 1;\r\n } // fim se\r\n }", "public PrimeNumberCalculator() {\n\t\t\t\tthis.threads = 1;\n\t\t}", "@Override\n public void init()\n {\n out = mul(num(100.0/Math.log10(length)), log10(div(sum(truerange(), length), diff(highest(length), lowest(length)))));\n }", "public static void main(String[] args) {\n\t\tdivide.divide(-2147483648, 1);\n\t}", "public int probabilidadesHastaAhora(){\n return contadorEstados + 1;\n }", "@Test\n public void testGetSetTemperaturaExteriorMaxima() {\n System.out.println(\"getSetTemperaturaExteriorMaxima\");\n double expResult = 20.0;\n Simulacao simulacao = new Simulacao();\n simulacao.setSala(sala);\n AlterarTemperaturasMeioController instance = new AlterarTemperaturasMeioController(simulacao);\n instance.setTemperaturaExteriorMaxima(expResult);\n double result = instance.getTemperaturaExteriorMaxima();\n assertEquals(expResult, result, 0.0);\n }", "@Test\n public void checkDivisibilityByHundred() {\n LeapYear leapYear = new LeapYear();\n boolean flag = leapYear.isItDivisibleByHundred(1600);\n assertTrue(flag);\n }", "int main()\n{\n int a;\n std::cin>>a;\n int b=(a%10)+(a/1000);\n std::cout<<b;\n}", "public void precioFinal(){\r\n if(getConsumoEnergetico() == Letra.A){\r\n precioBase = 100+precioBase;\r\n }\r\n else if((getConsumoEnergetico() == Letra.B)){\r\n precioBase = 80+precioBase;\r\n }\r\n else if(getConsumoEnergetico() == Letra.C){\r\n precioBase = 60+precioBase;\r\n }\r\n else if((getConsumoEnergetico() == Letra.D)){\r\n precioBase = 50+precioBase;\r\n }\r\n else if(getConsumoEnergetico() == Letra.E){\r\n precioBase = 30+precioBase;\r\n }\r\n else if((getConsumoEnergetico() == Letra.F)){\r\n precioBase = 10+precioBase;\r\n }\r\n else{\r\n aux=1;\r\n System.out.println(\"...No existe...\");\r\n }\r\n if (aux==0){\r\n peso();\r\n }\r\n \r\n }", "@Test(expected = ArithmeticException.class)\r\n\tpublic void testDivPorCero() {\r\n\t\tSystem.out.println(\" Ejecutando Test: testDivPorCero()\");\r\n\t\tint result = calc.div(5, 0);\r\n\t}", "@Test\n public void testDivide() {\n\n Currency usd = Currency.getInstance(\"USD\");\n\n Money money = new Money(new BigDecimal(\"50.00\"), usd, RoundingMode.CEILING);\n Money quotient = money.divide(new BigDecimal(\"6\"));\n Money expected = new Money(new BigDecimal(\"8.34\"), usd, RoundingMode.CEILING);\n \n assertEquals(\"Division CEILING\", expected, quotient);\n \n money = new Money(new BigDecimal(\"50.00\"), usd, RoundingMode.FLOOR);\n quotient = money.divide(new BigDecimal(\"6\"));\n expected = new Money(new BigDecimal(\"8.33\"), usd, RoundingMode.FLOOR);\n \n assertTrue(\"Division FLOOR\", quotient.equals(expected));\n \n }", "CalculationResult goInfinite();", "@Override\r\n\tpublic double porcentajeDelComercio() {\n\t\treturn 0.25;\r\n\t}", "@Test\n\tpublic void testOneMillion() {\n\n\tdouble tax = Main.calcTax(1_000_000.);\n\tassertEquals(50_250., tax, .01);\n\n\t}", "public static void main(String[] args) {\n int min=100;\n int max=999;\n int random = (int) (min + Math.random() * (max - min));\n int a=random%10;\n int a1=(random/10)%10;\n int a2=(random/100)%10;\n System.out.println(\"Число = \" +random +\" наибольшее число = \" +Math.max(a, Math.max(a1,a2)));\n}", "public static void dormir(long milis)\r\n\t{\r\n\t\tlong inicial=System.currentTimeMillis();\r\n\t\twhile(System.currentTimeMillis()-inicial < milis) {/*Esperar a que pase el tiempo*/}\r\n\t}", "public void aumentarMinas(){\n\r\n if(espM==false){\r\n minascerca++;\r\n }\r\n }", "public PghModulo() {\r\n }", "public void calcularIndicePlasticidad(){\r\n\t\tindicePlasticidad = limiteLiquido - limitePlastico;\r\n\t}", "@Test\n\tpublic void test50000() {\n\n\tdouble tax = Main.calcTax(50_000.);\n\tassertEquals(500., tax, .01);\n\n\t}", "public void calcularEntropia(){\n //Verificamos si será con la misma probabilida o con probabilidad\n //especifica\n if(contadorEstados == 0){\n //Significa que será con la misma probabilidad por lo que nosotros\n //calcularemos las probabilidades individuales\n for(int i = 0; i < numEstados; i++){\n probabilidadEstados[i] = 1.0 / numEstados;\n }\n }\n for(int i = 0; i < numEstados; i++){\n double logEstado = Math.log10(probabilidadEstados[i]);\n logEstado = logEstado * (-1);\n double logDos = Math.log10(2);\n double divisionLog = logEstado / logDos;\n double entropiaTmp = probabilidadEstados[i] * divisionLog;\n resultado += entropiaTmp;\n }\n }", "public static void main(String[] args) {\n\n BigDecimal test = BigDecimal.valueOf(12051);\n BigDecimal result = test.divide(BigDecimal.valueOf(100),2, BigDecimal.ROUND_UP);\n BigDecimal result1 = test.divide(BigDecimal.valueOf(100),2, BigDecimal.ROUND_CEILING);\n System.out.println(result);\n System.out.println(result1);\n }", "public void enfoncerDel() {\n\t\tthis.valC = this.valC/10;\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}", "@Override\n\tpublic double dividir(double numerador, double denominador) throws ArithmeticException {\n\t\treturn 0;\n\t}", "@Override\r\n public void run() {\n try {\r\n for (int x = 1; x <= 10500; x++) {\r\n System.out.println(x);\r\n sleep(5000);\r\n if (x % 50 == 0) {\r\n System.out.println(\"counting\");\r\n }\r\n }\r\n\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }", "@Test\n\tpublic void testPotencia0() {\n\t\tdouble resultado=Producto.potencia(0, 8);\n\t\tdouble esperado=0;\n\t\t\n\t\tassertEquals(esperado,resultado);\n\t}", "public Number() {\n boolean flag = false;\n BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));\n while (!flag) {\n try {\n System.out.println(\"Введите число : \");\n number = Integer.valueOf(bufferedReader.readLine());\n flag = true;\n } catch (Exception e) {\n System.out.println(\"Не корректный ввод числа\");\n flag = false;\n }\n }\n }", "public float calcular(float dinero, float precio) {\n // Cálculo del cambio en céntimos de euros \n cambio = Math.round(100 * dinero) - Math.round(100 * precio);\n // Se inicializan las variables de cambio a cero\n cambio1 = 0;\n cambio50 = 0;\n cambio100 = 0;\n // Se guardan los valores iniciales para restaurarlos en caso de no \n // haber cambio suficiente\n int de1Inicial = de1;\n int de50Inicial = de50;\n int de100Inicial = de100;\n \n // Mientras quede cambio por devolver y monedas en la máquina \n // se va devolviendo cambio\n while(cambio > 0) {\n // Hay que devolver 1 euro o más y hay monedas de 1 euro\n if(cambio >= 100 && de100 > 0) {\n devolver100();\n // Hay que devolver 50 céntimos o más y hay monedas de 50 céntimos\n } else if(cambio >= 50 && de50 > 0) {\n devolver50();\n // Hay que devolver 1 céntimo o más y hay monedas de 1 céntimo\n } else if (de1 > 0){\n devolver1();\n // No hay monedas suficientes para devolver el cambio\n } else {\n cambio = -1;\n }\n }\n \n // Si no hay cambio suficiente no se devuelve nada por lo que se\n // restauran los valores iniciales\n if(cambio == -1) {\n de1 = de1Inicial;\n de50 = de50Inicial;\n de100 = de100Inicial;\n return -1;\n } else {\n return dinero - precio;\n }\n }", "private static int newNumber()\n\t{\n\t\tdouble initial = Math.random();\n\t\tdouble rangeAdjusted = initial * (10000 - 1001) + 1000;\n\t\tint rounded = (int)Math.round(rangeAdjusted);\n\t\treturn rounded;\n\t}", "public double calculoCuotaEspecialOrdinario() {\n\tdouble resultado =0;\n\tresultado = (getMontoCredito()+(getMontoCredito()*getInteres()/100))/getPlazo(); \n\treturn resultado;\n}", "public final int mo30874cb(int i) {\n AppMethodBeat.m2504i(2014);\n int min = Math.min(100, super.mo30874cb(i));\n AppMethodBeat.m2505o(2014);\n return min;\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 int Recebe_salario() {\n\t\treturn 8000;\r\n\t}", "public static int f_total_people(){\n Scanner keyboard = new Scanner(System.in);\n System.out.println(\"imput the total people do you need?\");\n int v_total_people= keyboard.nextInt();\n while(v_total_people<1 || v_total_people>1000){\n System.out.println(\"ERROR the value should be between 1 to 1000, imput again the total people do you want:\");\n v_total_people=keyboard.nextInt();\n }\n return v_total_people;\n }", "public void setMozzarella(double countNo) {\n mozzarella = countNo;\r\n }", "private void peso(){\r\n if(getPeso()>80){\r\n precioBase+=100;\r\n }\r\n else if ((getPeso()<=79)&&(getPeso()>=50)){\r\n precioBase+=80;\r\n }\r\n else if ((getPeso()<=49)&&(getPeso()>=20)){\r\n precioBase+=50;\r\n }\r\n else if ((getPeso()<=19)&&(getPeso()>=0)){\r\n precioBase+=10;\r\n }\r\n }", "public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n \n int t = in.nextInt();\n \n int count = 1;\n \n while(count<=t)\n {\n long n = in.nextLong();\n \n long backupN = n;\n \n int zeroes = (n+\"\").length()-1;\n \n // StringBuilder sb = new StringBuilder(\"1\");\n \n // for(int i = 0;i<zeroes;i++)\n // {\n // sb.append(\"0\");\n // }\n \n // System.out.println(sb.toString());\n \n long divisor = (long)Math.pow(10,zeroes);\n //Integer.parseInt(sb.toString());\n \n \n // System.out.println(\"divisor = \"+divisor);\n \n int counter = 0;\n while(n>0)\n {\n // System.out.println(\"value of n = \"+n);\n // System.out.println(\"value of divisor = \"+divisor);\n long q = n/divisor;\n \n if(q != 0 && backupN%q == 0)\n {\n \n counter++;\n }\n n = n%divisor;\n divisor = divisor/10;\n } \n \n System.out.println(counter);\n count++;\n }\n }", "@Override\r\n\tpublic int hitungBiayaKopi(int jumlahHalaman) {\n\t\treturn jumlahHalaman * 750;\r\n\t}", "public double getSalario() {\r\n\t\treturn super.getSalario()-10000;\r\n\t}", "public int geraNumeroUnico()\r\n {\r\n Random numero = new Random();\r\n numUnico = numero.nextInt(99999);\r\n numUnico = numUnico + 1000;\r\n \r\n if(conjNumeros.contains(numUnico) == true)\r\n isUnico = false;\r\n else \r\n isUnico = true;\r\n \r\n while(isUnico == false)\r\n { \r\n numUnico = numero.nextInt(99999);\r\n numUnico = numUnico + 1000;\r\n \r\n if(conjNumeros.contains(numUnico) == true)\r\n isUnico = false;\r\n else\r\n isUnico = true;\r\n } \r\n conjNumeros.add(numUnico);\r\n \r\n return numUnico;\r\n }", "@Override\n public long progressInterval() {\n return 500;\n }", "private void puntuacion(){\n timer++;\n if(timer == 10){\n contador++;\n timer = 0;\n }\n }", "public int criarConta(double valor){\n\t\tint idAux;\n\n\t\t// lock no banco\n\t\tthis.lockBanco.lock();\n\n\t\ttry{\n\t\t\t// criar a conta\n\t\t\tConta conta = new Conta(this.lastId, valor);\n\n\t\t\t// meter no map\n\t\t\tthis.contas.put(lastId, conta);\n\n\t\t\t// incrementar o id\n\t\t\tidAux = this.lastId;\n\t\t\tthis.lastId++;\n\n\t\t} finally{\n\t\t\t// unlock do banco\n\t\t\tthis.lockBanco.unlock();\n\t\t}\n\n\t\treturn idAux;\n\t}", "public void crunch(){\n cpuBurstTime--;\n rem--;\n }", "public abstract float perimetro();", "public static void main(String [] args){\n int longitud;\n int ayuda;\n Random numero = new Random();\n Scanner console = new Scanner(System.in);\n System.out.println(\"Digite el n\");\n longitud=console.nextInt();\n //long start = System.nanoTime();\n ayuda=Puerto(50);\n //long end = System.nanoTime();\n //System.out.println(end-start);\n System.out.print(\"Se puede arreglar de\" +\" \" +ayuda+\" \"+\"formas.\");\n }", "@Override\n // TODO implement call() for expert mode using minimax\n public Integer call() throws Exception {\n Integer val = 0;\n Thread.sleep(150);\n return val;\n }", "@Test\n public void testDividir() {\n\tSystem.out.println(\"dividir\");\n\tdouble valor1 = 0.0;\n\tdouble valor2 = 0.0;\n\tCalculadora instance = new Calculadora();\n\tdouble expResult = 0.0;\n\tdouble result = instance.dividir(valor1, valor2);\n\tassertEquals(expResult, result, 0.0);\n\t// TODO review the generated test code and remove the default call to fail.\n\tfail(\"The test case is a prototype.\");\n }" ]
[ "0.57835877", "0.5642158", "0.5626513", "0.56103384", "0.5551957", "0.5520991", "0.5514856", "0.54792005", "0.54606414", "0.5449232", "0.541578", "0.53987193", "0.53751606", "0.53742075", "0.5355826", "0.5352461", "0.53304124", "0.5312822", "0.53031975", "0.52864695", "0.52836984", "0.52721626", "0.526818", "0.52640253", "0.5254305", "0.52411747", "0.52375925", "0.52308285", "0.52193797", "0.5200554", "0.51888525", "0.51704264", "0.516644", "0.5165499", "0.51504076", "0.51433736", "0.5132239", "0.51310277", "0.5131", "0.5130758", "0.51273865", "0.5122625", "0.51205987", "0.5108988", "0.51016176", "0.50965106", "0.5092224", "0.5079569", "0.5069979", "0.5067149", "0.50648195", "0.5064616", "0.50600153", "0.50566167", "0.5054946", "0.505133", "0.5047844", "0.50451916", "0.50448686", "0.5044845", "0.5042887", "0.50413823", "0.50238353", "0.50218236", "0.5018074", "0.50096595", "0.5007553", "0.5004083", "0.5001114", "0.49975523", "0.49927267", "0.49913898", "0.49855503", "0.49853754", "0.49842653", "0.49839303", "0.49814525", "0.49782264", "0.49781665", "0.49775586", "0.49742272", "0.4971073", "0.4965456", "0.49627802", "0.4962095", "0.4961755", "0.49603343", "0.4953904", "0.49530405", "0.4952406", "0.49513912", "0.49508506", "0.4950484", "0.4947754", "0.49411058", "0.49408442", "0.49397632", "0.49387008", "0.49307132", "0.49299252" ]
0.5555715
4
Sets whether or not native OS fonts should be used when possible.
public static void setUseNativeFonts ( final boolean useNativeFonts ) { NativeFonts.useNativeFonts = useNativeFonts; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void doStandardFonts() {\r\n\t\trenderer.txt.setUseStandardFonts(ui.viewStandardFonts.isSelected());\r\n\t}", "public boolean isFontSet() { return false; }", "private void setFont() {\n\t}", "private void setFont() {\n try {\n setFont(Font.loadFont(new FileInputStream(FONT_PATH), 23));\n } catch (FileNotFoundException e) {\n setFont(Font.font(\"Verdana\", 23));\n }\n }", "@Action(selectedProperty = \"bigFontSet\", enabledProperty = \"windowsOS\")\n public void toggleFontSet() {\n }", "private void setFont() {\n Typeface font = Typeface.createFromAsset(getContext().getAssets(), mFontPath);\n setTypeface(font, Typeface.NORMAL);\n }", "public void initFont() {\r\n\t\tFont dosFont = null;\r\n try {\r\n \t//setup font\r\n\t\t\t\tURL fontUrl = getURL(\"fonts/DOSFont.ttf\");\r\n\t\t \tdosFont = Font.createFont(Font.TRUETYPE_FONT, fontUrl.openStream());\r\n\t \tdosFont = dosFont.deriveFont(Font.PLAIN, 15);\r\n\t \tGraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();\r\n\t \tge.registerFont(dosFont);\r\n\t } catch(Exception e) {\r\n\t e.printStackTrace();\r\n\t System.exit(-1);\r\n\t }\r\n screen.setFont(dosFont);//set font on JTextArea\r\n\t}", "private void loadSystemFont(String font){\n mFont = new Font(font, mFontStyle, (int)mFontSize);\n }", "private void updateFontSet() {\n if (!isBigFontSet()) {\n UIFontUtils.initFontDefaults(UIManager.getDefaults(), null);\n } else {\n// <snip> Install sscaled font\n FontPolicy windowsPolicy = FontPolicies.getDefaultWindowsPolicy();\n FontSet fontSet = windowsPolicy.getFontSet(null, UIManager\n .getLookAndFeelDefaults());\n WrapperFontSet scaled = new WrapperFontSet(fontSet, 5);\n UIFontUtils.initFontDefaults(UIManager.getDefaults(), scaled);\n// </snip>\n }\n updateLookAndFeel();\n }", "private void setFont() {\n\t\tsessionTitle.setFont(FONT_TITLE);\n\t\tdetailedDescription.setFont(FONT_DESCRIPTION);\n\t\texitButton.setFont(FONT_BUTTON);\n\t}", "public native void setFont(Font value) /*-{\n\t\tvar jso = [email protected]::getJsObj()();\n\t\tjso.font = [email protected]::getJsObj()();\n }-*/;", "public static boolean setSelectedDefaultFontName(String name) {\n return nativeSetSelectedDefaultFontName(name);\n }", "private void setupFont() {\n CalligraphyConfig.initDefault(new CalligraphyConfig.Builder()\n .setDefaultFontPath(\"fonts/Montserrat-Regular.otf\")\n .setFontAttrId(R.attr.fontPath)\n .build()\n );\n }", "public static void setDefaultFont(Font f) {\r\n defaultFont = f;\r\n }", "void setFontFamily(ReaderFontSelection f);", "public void setFont(Font value) {\r\n this.font = value;\r\n }", "@Override\n public void setTypeface() {\n mAppNameTxt.setTypeface(Typeface.createFromAsset(getContext().getAssets(),\n CUSTOM_FONTS_ROOT + CUSTOM_FONT_NAME));\n }", "private void settypeface() {\n }", "public void allowUnsupportedFont() {\n if (mBuilderPtr == 0) {\n throw new IllegalStateException(\"Unable to allow unsupported font.\");\n }\n nAllowUnsupportedFont(mBuilderPtr);\n }", "boolean isAlwaysvectorfont();", "@Override\n public void setFont(String font) {\n graphicsEnvironmentImpl.setFont(canvas, font);\n }", "public void setTrueFont(Font font)\n\t{\n\t\tString bodyRule = \"body { font-family: \" + font.getFamily() + \"; \" +\n\t\t\t\t\"font-size: \" + font.getSize() + \"pt; }\";\n\t\t((HTMLDocument)getDocument()).getStyleSheet().addRule(bodyRule);\n\t\t//Sets the font for when the JEditorPane is switched to plain text.\n\t\tsetFont(font);\n\t}", "private void setupFonts()\r\n\t{\r\n\t\tSystem.out.println(\"In setupFonts()\");\r\n\t\t\r\n\t\t// set up the text fonts\r\n\t\ttry\r\n\t\t{\r\n\t\t\ttextFont = Font.createFont(Font.TRUETYPE_FONT, AppletResourceLoader.getFileFromJar(GameConstants.PATH_FONTS + \"FOXLEY8_.ttf\"));\r\n\t\t\ttextFont = textFont.deriveFont(16.0f);\r\n\t\t\ttextFontBold = textFont.deriveFont(Font.BOLD, 16.0f);\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"ERROR IN setupFonts(): \" + e.getClass().getName() + \" - \" + e.getMessage());\r\n\t\t}\r\n\t}", "@Override\n public boolean isConcurrentFontManagementSupported() {\n return false;\n }", "public void setFont(Font f) {\n font = f;\n compute();\n }", "@Override\r\n public void setFont(Font font) {\r\n super.setFont(new Font(\"Arial\", Font.PLAIN, 11)); \r\n }", "public void GetFont (){\n fontBol = false;\n fontBolS = true;\n fontBolA = true;\n fontBolW = true;\n }", "public void setMatchFontName(String matchFontName);", "public void setFontName(String name)\n {\n font.setFontName(name);\n }", "public FontConfig() {\n\t\tthis.name = \"Monospaced\";\n\t\tthis.style = FontStyle.PLAIN;\n\t\tthis.size = DEFAULT_SIZE;\n\t}", "private void setFonts() {\n fileTitle.setFont(MasterDisplay.titleFont);\n entryFileButton.setFont(MasterDisplay.tabAndButtonFont);\n entryFileLabel.setFont(MasterDisplay.tabAndButtonFont);\n itemFileButton.setFont(MasterDisplay.tabAndButtonFont);\n itemFileLabel.setFont(MasterDisplay.tabAndButtonFont);\n outputFolderButton.setFont(MasterDisplay.tabAndButtonFont);\n outputFolderLabel.setFont(MasterDisplay.tabAndButtonFont);\n }", "public void setLabelFont(Font f);", "public void GetFontS (){\n fontBolS = false;\n fontBol = true;\n fontBolA = true;\n fontBolW = true;\n }", "public void applyFonts()\n\t{\n\t\tFont font = s_cfg.getFont( FontKey.GUI_NOM );\n\t\tm_executorsTable.applyFonts();\n\t\tm_btnTakeControl.setFont( font );\n\t\tm_btnReleaseControl.setFont( font );\n\t\tm_btnBackground.setFont( font );\n\t\tm_btnStartMonitor.setFont( font );\n\t\tm_btnStopMonitor.setFont( font );\n\t\tm_btnKillExecutor.setFont( font );\n\t\tm_btnStopExecutor.setFont( font );\n\t\tm_btnRefresh.setFont( font );\n\t}", "public String getFontName();", "public String getFontName();", "public String getFontName();", "public void setFont(Font font)\n {\n this.font = font;\n }", "public void setFontName(String name) {\n\t\tthis.fontName = name;\n\t}", "public void assertCustomFonts()\n {\n Style root = getStyle(\"base\");\n assertFonts(root);\n }", "public void setFont( Font font ) {\r\n this.font = font;\r\n }", "private void loadFont() {\n\t\ttry {\n\t\t\tfont = Font.createFont(Font.TRUETYPE_FONT, new FileInputStream(\"assets/fonts/forced_square.ttf\"));\n\t\t} catch (Exception e) {\n\t\t\tfont = new Font(\"Helvetica\", Font.PLAIN, 22);\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void setFont(RMFont aFont) { }", "public void set_fonts(Graphics2D g2, float scale) {\n if ( XHSIPreferences.get_instance().get_bold_fonts() ) {\n this.font_statusbar = new Font(\"Verdana\", Font.PLAIN, 9);\n this.font_tiny = new Font( \"Verdana\", Font.BOLD, 10);\n this.font_small = new Font( \"Verdana\", Font.BOLD, 12);\n this.font_medium = new Font( \"Verdana\", Font.BOLD, 16);\n this.font_large = new Font( \"Verdana\", Font.PLAIN, 24);\n this.font_zl = new Font( \"Verdana\", Font.PLAIN, Math.round(64.0f * scale));\n this.font_yl = new Font( \"Verdana\", Font.PLAIN, Math.round(32.0f * scale));\n this.font_xxl = new Font( \"Verdana\", Font.BOLD, Math.round(24.0f * scale));\n this.font_xl = new Font( \"Verdana\", Font.BOLD, Math.round(21.0f * scale));\n this.font_l = new Font( \"Verdana\", Font.BOLD, Math.round(18.0f * scale));\n this.font_m = new Font( \"Verdana\", Font.BOLD, Math.round(16.0f * scale));\n this.font_s = new Font( \"Verdana\", Font.BOLD, Math.round(14.0f * scale));\n this.font_xs = new Font( \"Verdana\", Font.BOLD, Math.round(12.0f * scale));\n this.font_xxs = new Font( \"Verdana\", Font.BOLD, Math.round(10.0f * scale));\n this.font_normal = new Font( \"Verdana\", Font.BOLD, Math.round(14.0f * scale));\n } else {\n this.font_statusbar = new Font(\"Verdana\", Font.PLAIN, 9);\n this.font_tiny = new Font( \"Verdana\", Font.PLAIN, 10);\n this.font_small = new Font( \"Verdana\", Font.PLAIN, 12);\n this.font_medium = new Font( \"Verdana\", Font.PLAIN, 16);\n this.font_large = new Font( \"Verdana\", Font.PLAIN, 24);\n this.font_zl = new Font( \"Verdana\", Font.PLAIN, Math.round(64.0f * scale));\n this.font_yl = new Font( \"Verdana\", Font.PLAIN, Math.round(32.0f * scale));\n this.font_xxl = new Font( \"Verdana\", Font.PLAIN, Math.round(24.0f * scale));\n this.font_xl = new Font( \"Verdana\", Font.PLAIN, Math.round(21.0f * scale));\n this.font_l = new Font( \"Verdana\", Font.PLAIN, Math.round(18.0f * scale));\n this.font_m = new Font( \"Verdana\", Font.PLAIN, Math.round(16.0f * scale));\n this.font_s = new Font( \"Verdana\", Font.PLAIN, Math.round(14.0f * scale));\n this.font_xs = new Font( \"Verdana\", Font.PLAIN, Math.round(12.0f * scale));\n this.font_xxs = new Font( \"Verdana\", Font.PLAIN, Math.round(10.0f * scale));\n this.font_normal = new Font( \"Verdana\", Font.PLAIN, Math.round(14.0f * scale));\n }\n\n // calculate font metrics\n // W is probably the largest characher...\n FontMetrics fm;\n\n fm = g2.getFontMetrics(this.font_large);\n this.line_height_large = fm.getAscent();\n this.max_char_advance_large = fm.stringWidth(\"WW\") - fm.stringWidth(\"W\");\n this.digit_width_large = fm.stringWidth(\"88\") - fm.stringWidth(\"8\");\n\n fm = g2.getFontMetrics(this.font_medium);\n this.line_height_medium = fm.getAscent();\n this.max_char_advance_medium = fm.stringWidth(\"WW\") - fm.stringWidth(\"W\");\n this.digit_width_medium = fm.stringWidth(\"88\") - fm.stringWidth(\"8\");\n\n fm = g2.getFontMetrics(this.font_small);\n this.line_height_small = fm.getAscent();\n this.max_char_advance_small = fm.stringWidth(\"WW\") - fm.stringWidth(\"W\");\n this.digit_width_small = fm.stringWidth(\"88\") - fm.stringWidth(\"8\");\n\n fm = g2.getFontMetrics(this.font_tiny);\n this.line_height_tiny = fm.getAscent();\n this.max_char_advance_tiny = fm.stringWidth(\"WW\") - fm.stringWidth(\"W\");\n this.digit_width_tiny = fm.stringWidth(\"88\") - fm.stringWidth(\"8\");\n\n fm = g2.getFontMetrics(this.font_zl);\n this.line_height_zl = fm.getAscent();\n this.max_char_advance_zl = fm.stringWidth(\"WW\") - fm.stringWidth(\"W\");\n this.digit_width_zl = fm.stringWidth(\"88\") - fm.stringWidth(\"8\");\n\n fm = g2.getFontMetrics(this.font_yl);\n this.line_height_yl = fm.getAscent();\n this.max_char_advance_yl = fm.stringWidth(\"WW\") - fm.stringWidth(\"W\");\n this.digit_width_yl = fm.stringWidth(\"88\") - fm.stringWidth(\"8\");\n\n fm = g2.getFontMetrics(this.font_xxl);\n this.line_height_xxl = fm.getAscent();\n this.max_char_advance_xxl = fm.stringWidth(\"WW\") - fm.stringWidth(\"W\");\n this.digit_width_xxl = fm.stringWidth(\"88\") - fm.stringWidth(\"8\");\n\n fm = g2.getFontMetrics(this.font_xl);\n this.line_height_xl = fm.getAscent();\n this.max_char_advance_xl = fm.stringWidth(\"WW\") - fm.stringWidth(\"W\");\n this.digit_width_xl = fm.stringWidth(\"88\") - fm.stringWidth(\"8\");\n\n fm = g2.getFontMetrics(this.font_l);\n this.line_height_l = fm.getAscent();\n this.max_char_advance_l = fm.stringWidth(\"WW\") - fm.stringWidth(\"W\");\n this.digit_width_l = fm.stringWidth(\"88\") - fm.stringWidth(\"8\");\n\n fm = g2.getFontMetrics(this.font_m);\n this.line_height_m = fm.getAscent();\n this.max_char_advance_m = fm.stringWidth(\"WW\") - fm.stringWidth(\"W\");\n this.digit_width_m = fm.stringWidth(\"88\") - fm.stringWidth(\"8\");\n\n fm = g2.getFontMetrics(this.font_s);\n this.line_height_s = fm.getAscent();\n this.max_char_advance_s = fm.stringWidth(\"WW\") - fm.stringWidth(\"W\");\n this.digit_width_s = fm.stringWidth(\"88\") - fm.stringWidth(\"8\");\n\n fm = g2.getFontMetrics(this.font_xs);\n this.line_height_xs = fm.getAscent();\n this.max_char_advance_xs = fm.stringWidth(\"WW\") - fm.stringWidth(\"W\");\n this.digit_width_xs = fm.stringWidth(\"88\") - fm.stringWidth(\"8\");\n\n fm = g2.getFontMetrics(this.font_xxs);\n this.line_height_xxs = fm.getAscent();\n this.max_char_advance_xxs = fm.stringWidth(\"WW\") - fm.stringWidth(\"W\");\n this.digit_width_xxs = fm.stringWidth(\"88\") - fm.stringWidth(\"8\");\n\n fm = g2.getFontMetrics(this.font_normal);\n this.line_height_normal = fm.getAscent();\n this.max_char_advance_normal = fm.stringWidth(\"WW\") - fm.stringWidth(\"W\");\n this.digit_width_normal = fm.stringWidth(\"88\") - fm.stringWidth(\"8\");\n\n }", "public void setFont(String font)\n {\n getStateHelper().put(PropertyKeys.font, font);\n }", "public void setResultsFont()\r\n {\r\n Font UserTextFont = MetalLookAndFeel.getUserTextFont();\r\n if (ResultsTextPane != null)\r\n\t ResultsTextPane.setFont(new Font(\"Monospaced\", Font.PLAIN, UserTextFont.getSize() ));\r\n }", "public final void setIsFreeText(java.lang.Boolean isfreetext)\r\n\t{\r\n\t\tsetIsFreeText(getContext(), isfreetext);\r\n\t}", "private void tweakPlatformDefaults() {\n if (PlatformUtils.isAppCode()) {\n SHOW_MAIN_TOOLBAR = false;\n SHOW_ICONS_IN_MENUS = false;\n SHOW_MEMORY_INDICATOR = false;\n }\n }", "private void loadSettingFont() {\n\t\tSharedPreferences mysettings = getSharedPreferences(\n\t\t\t\tPREFERENCES_FILE_NAME, 0);\n\t\tindexFont = mysettings.getInt(\"indexFont\", 1);\n\t\tLog.d(\"indexFont\", indexFont + \"\");\n\t\tswitch (indexFont) {\n\t\tcase 0:\n\t\t\tmTypeface = Typeface.DEFAULT;\n\t\t\tbreak;\n\t\tcase 1:\n\t\t\tmTypeface = Typeface.createFromAsset(getApplicationContext()\n\t\t\t\t\t.getAssets(), \"SEGOEUI.TTF\");\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tmTypeface = Typeface.createFromAsset(getApplicationContext()\n\t\t\t\t\t.getAssets(), \"tinhyeu.ttf\");\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\tmTypeface = Typeface.createFromAsset(getApplicationContext()\n\t\t\t\t\t.getAssets(), \"thuphap.ttf\");\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tmTypeface = Typeface.createFromAsset(getApplicationContext()\n\t\t\t\t\t.getAssets(), \"SEGOEUI.TTF\");\n\t\t\tbreak;\n\t\t}\n\t}", "public static boolean useIText() {\n\t\treturn (isWindows() || isLinux() || isSolaris());\n\t}", "public void setFont(Font f) {\n super.setFont(f);\n columnWidth = 0;\n }", "public void setFont(Font font) {\n\tthis.font = font;\n }", "@Override\r\n\tpublic void setmOs() {\n\t\tthis.mOs = \"Mac OS\";\r\n\t}", "public static void setFont(Font font){\n\t\tGComponent.fGlobalFont = font;\n\t}", "public void setLabelFont(Font value) {\n labelFont = value;\n }", "public void setTextFont(Font font);", "protected boolean getUseUnicode() {\n return this.useUnicode;\n }", "public static String getFontName() {\n return \"Comic Sans MS\";\n }", "private void setCustomTypeface(Context context, AttributeSet attrs) {\n if (isInEditMode() || attrs == null || Build.VERSION.SDK_INT < Build.VERSION_CODES.HONEYCOMB) {\n return;\n }\n\n TypedArray styledAttrs = context.obtainStyledAttributes(attrs, R.styleable.PinCodeView);\n String fontName = styledAttrs.getString(R.styleable.PinCodeView_typeface);\n styledAttrs.recycle();\n\n if (fontName != null) {\n Typeface typeface = getFont(context, fontName);\n setTypeface(typeface);\n }\n }", "@Override\r\n public void setFont(Font font) {\r\n super.setFont(new Font(\"Times New Roman\", Font.BOLD, 18));\r\n }", "private void setNativeLAndF() {\r\n\t\ttry {\r\n\t\t\tUIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\r\n\t\t} catch (Exception e) {\r\n\t\t\t//do nothing. It will default to normal\r\n\t\t}\r\n\t}", "public void changeFonts(){\n Typeface typeFace = Typeface.createFromAsset (this.getAssets (), \"fonts/courier.ttf\");\n sloganTV.setTypeface (typeFace);\n }", "public static void setCustomFont(TextView textview, Context context, AttributeSet attrs) {\n TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.CTextViewDefault);\n String font = a.getString(R.styleable.CTextViewDefault_customFont);\n setCustomFont(textview, font, context);\n a.recycle();\n }", "public void init() {\n\n /**\n * FontFile1 = A stream containing a Type 1 font program\n * FontFile2 = A stream containing a TrueType font program\n * FontFile3 = A stream containing a font program other than Type 1 or\n * TrueType. The format of the font program is specified by the Subtype entry\n * in the stream dictionary\n */\n try {\n\n // get an instance of our font factory\n FontFactory fontFactory = FontFactory.getInstance();\n\n if (entries.containsKey(FONT_FILE)) {\n Stream fontStream = (Stream) library.getObject(entries, FONT_FILE);\n if (fontStream != null) {\n font = fontFactory.createFontFile(\n fontStream, FontFactory.FONT_TYPE_1);\n }\n }\n\n if (entries.containsKey(FONT_FILE_2)) {\n Stream fontStream = (Stream) library.getObject(entries, FONT_FILE_2);\n if (fontStream != null) {\n font = fontFactory.createFontFile(\n fontStream, FontFactory.FONT_TRUE_TYPE);\n }\n }\n\n if (entries.containsKey(FONT_FILE_3)) {\n\n Stream fontStream = (Stream) library.getObject(entries, FONT_FILE_3);\n String subType = fontStream.getObject(\"Subtype\").toString();\n if (subType != null &&\n (subType.equals(FONT_FILE_3_TYPE_1C) ||\n subType.equals(FONT_FILE_3_CID_FONT_TYPE_0) ||\n subType.equals(FONT_FILE_3_CID_FONT_TYPE_0C))\n ) {\n font = fontFactory.createFontFile(\n fontStream, FontFactory.FONT_TYPE_1);\n }\n if (subType != null && subType.equals(FONT_FILE_3_OPEN_TYPE)) {\n// font = new NFontOpenType(fontStreamBytes);\n font = fontFactory.createFontFile(\n fontStream, FontFactory.FONT_OPEN_TYPE);\n }\n }\n }\n // catch everything, we can fall back to font substitution if a failure\n // occurs. \n catch (Throwable e) {\n logger.log(Level.FINE, \"Error Reading Embedded Font \", e);\n }\n\n }", "public void fontLoader(){\n try {\n //create the font to use. Specify the size!\n customFont = Font.createFont(Font.TRUETYPE_FONT, new File(\".\\\\resources\\\\DS-DIGI.ttf\")).deriveFont(40f);\n GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();\n ge.registerFont(customFont);\n } catch (IOException e) {\n e.printStackTrace();\n } catch(FontFormatException e) {\n e.printStackTrace();\n }\n }", "public void GetFontW (){\n fontBolW = false;\n fontBolS = true;\n fontBolA = true;\n fontBol = true;\n }", "public void setCharSet(byte charset)\n {\n font.setCharset(charset);\n }", "public void setFont(Font newFont) {\n\tfont = newFont;\n }", "private void initFontAndChange(Context context) {\n changeFont(context);\n }", "public void setFont(Font newFont) {\r\n\t\tfont = newFont;\r\n\t}", "public void GetFontA (){\n fontBolA = false;\n fontBolS = true;\n fontBol = true;\n fontBolW = true;\n }", "private void applyFontStyle() {\r\n\t\tfinal Font font = SWTGraphicUtil.buildFontFrom(this.control, PromptSupport.getFontStyle(this.control));\r\n\t\tthis.control.setFont(font);\r\n\t\tSWTGraphicUtil.addDisposer(this.control, font);\r\n\t}", "public void setTextFont(Font font)\n {\n setFont(font);\n }", "public void setModifierFont(String name, int type, int size, float tracking, Boolean kerning) \n {\n RendererSettings.getInstance().setLabelFont(name, type, size, kerning, tracking);\n _SPR.RefreshModifierFont();\n }", "public void setFont(String str) {\n if (Strings.notEmpty(str)) {\n Typeface typeface = FontUtils.getTypeface(this.textView.getContext(), str);\n if (typeface != null) {\n this.textView.setTypeface(typeface);\n }\n }\n }", "public final void setFont(NativeCallback fontCallback) {\n\t\t// checks if consistent\n\t\tif (fontCallback != null) {\n\t\t\t// resets callback\n\t\t\tsetFont((FontCallback<DatasetContext>) null);\n\t\t\t// adds the callback proxy function to java script object\n\t\t\tsetValueAndAddToParent(CommonProperty.FONT, fontCallback);\n\t\t} else {\n\t\t\t// stores the font\n\t\t\tsetValueAndAddToParent(CommonProperty.FONT, getOriginalFont());\n\t\t}\n\t}", "private native void init(Font font, String nativeName, int size);", "public synchronized void setProvider(FontProvider fontProvider) {\n/* 136 */ this.fontInfoByName = createFontInfoByName(fontProvider.getFontInfo());\n/* 137 */ this.fontProvider = fontProvider;\n/* */ }", "protected void installDefaults() {\n this.controlPanel.setBackground(null);\n\n Font font = this.controlPanel.getFont();\n if (font == null || font instanceof UIResource) {\n Font toSet = RadianceThemingCortex.GlobalScope.getFontPolicy().getFontSet().\n getControlFont();\n this.controlPanel.setFont(toSet);\n }\n }", "private static native Font createFont(String name, GFontPeer peer, int gdkfont);", "@Override public boolean hasNativeTextFields () {\n return _os == OS.WINDOWS || _os == OS.LINUX;\n }", "public void setBigFontSet(boolean bigFontSet) {\n boolean old = isBigFontSet();\n if (old == bigFontSet) return;\n this.hasBig = bigFontSet;\n updateFontSet();\n firePropertyChange(\"bigFontSet\", old, isBigFontSet());\n }", "public void setFont(Font font)\n{\n\ttextArea().setFont(font);\n}", "private static void setUIFont(FontUIResource fontUIResource) {\n\t\t\n\t}", "public void setFont( Font font ) {\n\t\tgraphics.setFont( font );\n\t}", "@Override\n public void setFont(Font f) {\n super.setFont(f);\n menuDirty = true;\n ResizeUtils.updateSize(this, actions);\n }", "public String getFontName() {\n return getFontName(Locale.getDefault());\n }", "public SelectFontFamilyDlg(Frame arg0, boolean arg1) {\r\n\t\tsuper(arg0,\r\n\t\t\tResourceManager.get( \"select.font.family.dialog.title\"),\r\n\t\t\targ1);\r\n\t}", "private void setOs() {\n\t\tthis.os = System.getProperty(\"os.name\");\n\t}", "private static void buildFonts() {\r\n fontSMALL = new Font( strDEFAULT_TYPEFACE, Font.BOLD, FONT_SIZE_SM );\r\n fontMEDIUM = new Font( strDEFAULT_TYPEFACE, Font.BOLD, FONT_SIZE_MD );\r\n fontLARGE = new Font( strDEFAULT_TYPEFACE, Font.BOLD, FONT_SIZE_LG );\r\n }", "public void setIsFontItalic(boolean value) {\n this.isFontItalic = value;\n }", "public void setFontNameText( String text )\r\n\t{\r\n\t\t// set the text in the Font Name text field as per the String passed in\r\n\t\tfontNameTextField.setText( text );\r\n\t}", "public boolean hasOverrideFor(String fontKey) {\n return super.hasValueFor(fontKey);\n }", "@javax.annotation.Nullable\n @ApiModelProperty(value = \"Disable font embedding in PDFs.\")\n @JsonProperty(JSON_PROPERTY_NO_EMBED_FONTS)\n @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)\n\n public Boolean getNoEmbedFonts() {\n return noEmbedFonts;\n }", "public static Font createTrueTypeFont(Doc paramDoc, String paramString, boolean paramBoolean) throws PDFNetException {\n/* 220 */ return __Create(CreateTrueTypeFont(paramDoc.__GetHandle(), paramString, paramBoolean, true), paramDoc);\n/* */ }", "public final void setIsFreeText(com.mendix.systemwideinterfaces.core.IContext context, java.lang.Boolean isfreetext)\r\n\t{\r\n\t\tgetMendixObject().setValue(context, MemberNames.IsFreeText.toString(), isfreetext);\r\n\t}", "public void setNative(boolean on) {\n if (on)\n setAccessFlags(getAccessFlags() | Constants.ACCESS_NATIVE);\n else\n setAccessFlags(getAccessFlags() & ~Constants.ACCESS_NATIVE);\n }", "public String getDefaultFontFamily() {\n return this.defaultFontFamily;\n }", "@FXML\r\n void fontAction() {\r\n // default css code for each characteristics of the text\r\n String textFont = \"-fx-font-family: \";\r\n String textSize = \"-fx-font-size: \";\r\n String textStyle = \"\";\r\n\r\n // Create and take the input from the Font dialog\r\n Dialog<Font> fontSelector = new FontSelectorDialog(null);\r\n Optional<Font> result = fontSelector.showAndWait();\r\n\r\n // add changes to the default CSS code above based on the users\r\n if (result.isPresent()) {\r\n Font newFont = result.get();\r\n textFont += \"\\\"\" + newFont.getFamily() + \"\\\";\";\r\n textSize += newFont.getSize() + \"px;\";\r\n\r\n // some basics CSS font characteristics\r\n String style = newFont.getStyle();\r\n String style_italic = \"-fx-font-style: italic;\";\r\n String style_regular = \"-fx-font-weight: normal ;\";\r\n String style_bold = \"-fx-font-weight: bold;\";\r\n switch (style) {\r\n case \"Bold Italic\":\r\n textStyle += style_bold + \"\\n\" + style_italic;\r\n case \"Italic\":\r\n textStyle += style_italic;\r\n case \"Regular\":\r\n textStyle += style_regular;\r\n case \"Regular Italic\":\r\n textStyle += style_italic;\r\n default:\r\n textStyle += style_bold;\r\n }\r\n\r\n // Add all characteristic to a single string\r\n String finalText = textFont + \"\\n\" + textSize;\r\n finalText += \"\\n\" + textStyle;\r\n // Display options and set that options to the text\r\n defOutput.setStyle(finalText);\r\n }\r\n }", "public void updateFonts() {\n\t\tfor (int i = 0; i < this.getMenuCount(); i++) {\n\t\t\tJMenu m;\n\t\t\tif ((m = getMenu(i)) != null) {\n\n\t\t\t\t// old method\n\t\t\t\t// problem with keyboard shortcuts\n\t\t\t\t// setMenuFontRecursive(m, app.getPlainFont());\n\n\t\t\t\t// force rebuild next time menu is opened\n\t\t\t\t// see BaseMenu.menuSelected()\n\t\t\t\tm.removeAll();\n\n\t\t\t\t// update title (always visible)\n\t\t\t\tm.setFont(app.getPlainFont());\n\t\t\t}\n\t\t}\n\t}" ]
[ "0.72596335", "0.6835969", "0.669483", "0.6621498", "0.63954455", "0.63669294", "0.61762774", "0.61742264", "0.6134118", "0.61088663", "0.60672104", "0.6033868", "0.60256934", "0.59900427", "0.59400535", "0.5919348", "0.5912981", "0.5912399", "0.58909416", "0.5874083", "0.5868667", "0.5864428", "0.58513886", "0.57812315", "0.57650864", "0.573602", "0.57206273", "0.57069623", "0.5706438", "0.568385", "0.56278855", "0.56129634", "0.55837417", "0.5559409", "0.5537603", "0.5537603", "0.5537603", "0.5502982", "0.55025995", "0.5499857", "0.54828596", "0.54794556", "0.54677224", "0.54346156", "0.5427826", "0.541886", "0.54062754", "0.5400971", "0.53999823", "0.53985065", "0.5395913", "0.5390514", "0.5389185", "0.53824013", "0.53820795", "0.5374254", "0.5369507", "0.5368797", "0.53681374", "0.53663296", "0.5360994", "0.5354301", "0.5300481", "0.52904946", "0.5287436", "0.5283285", "0.52797467", "0.5276105", "0.5274627", "0.52623224", "0.52612346", "0.52375805", "0.5226477", "0.5219637", "0.52054405", "0.5202563", "0.52002186", "0.51839036", "0.51766694", "0.51724195", "0.51622516", "0.51508415", "0.51302856", "0.51237", "0.5119974", "0.51183003", "0.51172", "0.5095907", "0.5091568", "0.5091027", "0.50853956", "0.50728685", "0.5060604", "0.50505394", "0.50417185", "0.50371283", "0.50324625", "0.50295824", "0.50209016", "0.50156844" ]
0.78050923
0
~ Constructors Creates a PushProjectIntoMultiJoinRule.
private PushProjectIntoMultiJoinRule() { super( new RelOptRuleOperand( ProjectRel.class, new RelOptRuleOperand(MultiJoinRel.class, ANY))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Join createJoin();", "Multi createMulti();", "public Joins()\n {\n joins = new ArrayList<Join>();\n }", "LogicalOperator rewriteJoin(ArrayList<CogroupInput> gis, LogicalPlan lp) throws ParseException, PlanException{\n\n log.trace(\"Entering rewriteJoin\");\n log.debug(\"LogicalPlan: \" + lp);\n int n = gis.size();\n ArrayList<ExpressionOperator> flattenedColumns = new ArrayList<ExpressionOperator>();\n ArrayList<LogicalPlan> generatePlans = new ArrayList<LogicalPlan>();\n ArrayList<Boolean> flattenList = new ArrayList<Boolean>();\n\n /*\n\t\t * Construct the projection operators required for the generate\n\t\t * Make sure that the operators are flattened\n\t\t */\n\n\n\n //Construct the cogroup operator and add it to the logical plan\n // for join, inner is true for all the inputs involved in the join\n for (int i = 0; i < n; i++) {\n (gis.get(i)).isInner = true;\n }\n LogicalOperator cogroup = parseCogroup(gis, lp);\n lp.add(cogroup);\n log.debug(\"Added operator \" + cogroup.getClass().getName() + \" to the logical plan\");\n\n for (int i = 0; i < n; i++) {\n LogicalPlan projectPlan = new LogicalPlan();\n LogicalOperator projectInput = cogroup;\n ExpressionOperator column = new LOProject(projectPlan, new OperatorKey(scope, getNextId()), projectInput, i+1);\n flattenList.add(true);\n flattenedColumns.add(column);\n projectPlan.add(column);\n if(projectInput instanceof ExpressionOperator) {\n projectPlan.add(projectInput);\n projectPlan.connect(projectInput, column);\n }\n log.debug(\"parseCogroup: Added operator \" + column.getClass().getName() + \" \" + column + \" to logical plan \" + projectPlan);\n generatePlans.add(projectPlan);\n }\n\n\n\n /*\n\t\t * Construct the foreach operator from the foreach logical plan\n\t\t * Add the foreach operator to the top level logical plan\n\t\t */\n LogicalOperator foreach = new LOForEach(lp, new OperatorKey(scope, getNextId()), generatePlans, flattenList);\n lp.add(foreach);\n log.debug(\"Added operator \" + foreach.getClass().getName() + \" to the logical plan\");\n lp.connect(cogroup, foreach);\n log.debug(\"Connected operator \" + cogroup.getClass().getName() + \" to opeator \" + foreach.getClass().getName() + \" in the logical plan \" + lp);\n\n log.trace(\"Exiting rewriteJoin\");\n return foreach;\n }", "LogicalOperator parseFRJoin(ArrayList<CogroupInput> gis, LogicalPlan lp) throws ParseException, PlanException{\n\n log.trace(\"Entering parseCogroup\");\n log.debug(\"LogicalPlan: \" + lp);\n\n int n = gis.size();\n log.debug(\"Number of cogroup inputs = \" + n);\n\n ArrayList<LogicalOperator> los = new ArrayList<LogicalOperator>();\n ArrayList<ArrayList<LogicalPlan>> plans = new ArrayList<ArrayList<LogicalPlan>>();\n MultiMap<LogicalOperator, LogicalPlan> groupByPlans = new MultiMap<LogicalOperator, LogicalPlan>();\n //Map<LogicalOperator, LogicalPlan> groupByPlans = new HashMap<LogicalOperator, LogicalPlan>();\n boolean[] isInner = new boolean[n];\n\n int arity = gis.get(0).plans.size();\n\n for (int i = 0; i < n ; i++){\n\n CogroupInput gi = gis.get(i);\n los.add(gi.op);\n ArrayList<LogicalPlan> planList = gi.plans;\n plans.add(gi.plans);\n int numGrpByOps = planList.size();\n log.debug(\"Number of group by operators = \" + numGrpByOps);\n\n if(arity != numGrpByOps) {\n throw new ParseException(\"The arity of the group by columns do not match.\");\n }\n for(int j = 0; j < numGrpByOps; ++j) {\n groupByPlans.put(gi.op, planList.get(j));\n for(LogicalOperator root: planList.get(j).getRoots()) {\n log.debug(\"Cogroup input plan root: \" + root);\n }\n }\n isInner[i] = gi.isInner;\n }\n\n LogicalOperator frj = new LOFRJoin(lp, new OperatorKey(scope, getNextId()), groupByPlans, isInner, gis.get(0).op);\n lp.add(frj);\n log.debug(\"Added operator \" + frj.getClass().getName() + \" object \" + frj + \" to the logical plan \" + lp);\n\n for(LogicalOperator op: los) {\n lp.connect(op, frj);\n log.debug(\"Connected operator \" + op.getClass().getName() + \" to \" + frj.getClass().getName() + \" in the logical plan\");\n }\n\n log.trace(\"Exiting parseFRJoin\");\n return frj;\n }", "JoinCondition createJoinCondition();", "public ParallelProcessor(List<Rule> rules) {\n _rules = rules;\n }", "public JoinProjectTransposeRule( AlgOptRuleOperand operand, String description ) {\n this( operand, description, false, AlgFactories.LOGICAL_BUILDER );\n }", "public RuleSet (RuleSet RS1, RuleSet RS2, SensorList sList, SensorMap sMap, RuleMap rMap) {\n \n // CREATING COMBINATION RULESET FROM RS1 & RS2\n \n this.references = new ArrayList();\n this.sList = sList;\n this.rulelist = RS1.rulelist;\n this.totalProb = 0.0;\n this.id = counter.incrementAndGet();\n this.precedences = new ArrayList ();\n Sensor precondition = RS1.getPrecursorWithID().merge(RS2.getPrecursorWithID());\n\n \n ArrayList <Integer> common_non_wildcarded_indexes = RS1.getSuccessor().detectCommonNonWilcardedIndexes(RS2.getSuccessor());\n\n Sensor root = new Sensor(RS1.getPrecursorWithID().tokenMap);\n \n int number = common_non_wildcarded_indexes.size();\n \n boolean insert;\n \n // THERE IS A CONFLICT ONLY IF SOME COMMON NON WILDCARDED INDEXES EXIST\n if (number >= 1) {\n SensorList conflicted_indexes_list = root.expand(common_non_wildcarded_indexes.get(0));\n \n if (number >= 2) { \n \n // Expanding the conflicted indexes in ArrayList\n for (int h = 2; h<=number; h++) {\n \n conflicted_indexes_list.expandListAt(common_non_wildcarded_indexes.get(h-1));\n }\n }\n \n for (int j = 0; j < conflicted_indexes_list.size(); j++) {\n \n // We only need to insert the Rules with postcondition corresponding to either RS1 or RS2\n //\n // So we check for post. matches in the first and then second RuleSet\n insert = false;\n\n // SEARCHING FOR MATCH IN FIRST RULESET\n for (int h1 = 0; h1 < RS1.size(); h1++) {\n ///\n if (RS1.getSuccessor(h1).sensorMatch(conflicted_indexes_list.getSensor(j+1))) {\n insert = true;\n \n break;\n }\n }\n \n // SEARCHING FOR MATCH IN SECOND RULESET\n if (!insert) {\n \n for (int h2 = 0; h2 < RS2.size(); h2++) {\n \n \n if (RS2.getSuccessor(h2).sensorMatch(conflicted_indexes_list.getSensor(j+1))) {\n insert = true;\n \n break;\n }\n \n\n }\n }\n \n // If the Rule postcondition was found in RS1 or RS2, we shall create it\n if (insert) {\n \n Rule rule = new Rule(precondition, conflicted_indexes_list.getSensor(j+1));\n \n rule.ruleset_id = this.id;\n \n int aa = sMap.getMatchingOccurencies(precondition);\n \n int tt = rMap.getMatchingOccurencies(rule);\n \n \n rule.prec_occurrencies = aa;\n rule.occurrencies = tt;\n \n this.rulelist.addRule(rule);\n this.add(rule);\n \n }\n \n }\n \n }\n \n \n // UPDATING RULESET PROBABILITY\n if (this.size() > 0) {\n for (int i = 0; i < this.size(); i++) {\n\n totalProb = totalProb + this.getRule(i).getProb();\n totalProb = Math.round(totalProb * 1000);\n totalProb = totalProb/1000;\n \n }\n }\n \n }", "public final void entryRuleOpMultiAssign() throws RecognitionException {\r\n try {\r\n // InternalDroneScript.g:530:1: ( ruleOpMultiAssign EOF )\r\n // InternalDroneScript.g:531:1: ruleOpMultiAssign EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getOpMultiAssignRule()); \r\n }\r\n pushFollow(FOLLOW_1);\r\n ruleOpMultiAssign();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getOpMultiAssignRule()); \r\n }\r\n match(input,EOF,FOLLOW_2); if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n }\r\n return ;\r\n }", "public TemplateGroup(TemplateGroup source) {\n if (source.Conditions != null) {\n this.Conditions = new Condition[source.Conditions.length];\n for (int i = 0; i < source.Conditions.length; i++) {\n this.Conditions[i] = new Condition(source.Conditions[i]);\n }\n }\n if (source.EventConditions != null) {\n this.EventConditions = new EventCondition[source.EventConditions.length];\n for (int i = 0; i < source.EventConditions.length; i++) {\n this.EventConditions[i] = new EventCondition(source.EventConditions[i]);\n }\n }\n if (source.PolicyGroups != null) {\n this.PolicyGroups = new PolicyGroup[source.PolicyGroups.length];\n for (int i = 0; i < source.PolicyGroups.length; i++) {\n this.PolicyGroups[i] = new PolicyGroup(source.PolicyGroups[i]);\n }\n }\n if (source.GroupID != null) {\n this.GroupID = new Long(source.GroupID);\n }\n if (source.GroupName != null) {\n this.GroupName = new String(source.GroupName);\n }\n if (source.InsertTime != null) {\n this.InsertTime = new Long(source.InsertTime);\n }\n if (source.LastEditUin != null) {\n this.LastEditUin = new Long(source.LastEditUin);\n }\n if (source.Remark != null) {\n this.Remark = new String(source.Remark);\n }\n if (source.UpdateTime != null) {\n this.UpdateTime = new Long(source.UpdateTime);\n }\n if (source.ViewName != null) {\n this.ViewName = new String(source.ViewName);\n }\n if (source.IsUnionRule != null) {\n this.IsUnionRule = new Long(source.IsUnionRule);\n }\n }", "public MultiMoveCascadePileRuleChecker(long emptyCascadePileCount, long emptyOpenPileCount) {\n this.emptyCascadePileCount = emptyCascadePileCount;\n this.emptyOpenPileCount = emptyOpenPileCount;\n }", "@Test\n public void testMultiCrossJoin3() throws Exception {\n String sql = \"SELECT * FROM g1 cross join (g2 cross join g3)\";\n Node fileNode = sequenceSql(sql, TSQL_QUERY);\n\n Node queryNode = verify(fileNode, Query.ID, Query.ID);\n\n Node selectNode = verify(queryNode, Query.SELECT_REF_NAME, Select.ID);\n verify(selectNode, Select.SYMBOLS_REF_NAME, MultipleElementSymbol.ID);\n\n Node fromNode = verify(queryNode, Query.FROM_REF_NAME, From.ID);\n\n Node jpNode1 = verify(fromNode, From.CLAUSES_REF_NAME, JoinPredicate.ID);\n verifyJoin(jpNode1, JoinTypeTypes.JOIN_CROSS);\n \n Node jpNode2 = verify(jpNode1, JoinPredicate.RIGHT_CLAUSE_REF_NAME, JoinPredicate.ID);\n verifyJoin(jpNode2, JoinTypeTypes.JOIN_CROSS);\n \n verifyUnaryFromClauseGroup(jpNode1, JoinPredicate.LEFT_CLAUSE_REF_NAME, \"g1\");\n\n verifyUnaryFromClauseGroup(jpNode2, JoinPredicate.LEFT_CLAUSE_REF_NAME, \"g2\");\n verifyUnaryFromClauseGroup(jpNode2, JoinPredicate.RIGHT_CLAUSE_REF_NAME, \"g3\");\n \n verifySql(\"SELECT * FROM g1 CROSS JOIN (g2 CROSS JOIN g3)\", fileNode);\n }", "RubikInterpolator(TransformGroup[][][] targets, TransformGroup platform, ViewCube cube) {\n this.groups = targets;\n this.platform = platform;\n //this.cube = cube;\n }", "public <E1_NEW_OUT> JoinClause<K, E0, E1, E1_NEW_OUT> projecting(\n DistributedFunction<E1, E1_NEW_OUT> rightProjectFn\n ) {\n return new JoinClause<>(this.leftKeyFn, this.rightKeyFn, rightProjectFn);\n }", "@Override\n public Relation project(AttrList attributes) {\n // First, compute a superset of `attributes` that also takes join\n // attributes into account\n AttrList joinAttrs = operator.getJoinAttrList();\n AttrList withJoinAttrs = attributes.union(joinAttrs);\n\n // now project each operand in turn on those attributes\n Relation left = projectOperandOn(operator.getLeft(), withJoinAttrs);\n Relation right = projectOperandOn(operator.getRight(), withJoinAttrs);\n\n // recompute that join first\n Relation r = optimized(left).join(right);\n\n // if not equal it means that extra join attributes have been added by\n // the union above. We need to project them away now.\n if (!withJoinAttrs.equals(attributes)) {\n r = r.project(attributes);\n }\n return r;\n }", "public abstract Multigraph buildMatchedGraph();", "public MultiCube cloneAndCast() {\r\n\t\tMultiCube multi = new MultiCube(itemID, x, y, z);\r\n\t\tLinkedList<Cube> cubes = new LinkedList<>();\r\n\r\n\t\tfor (Cube cube : list) {\r\n\t\t\tCube newCube = new Cube(cube);\r\n\t\t\t// TODO [Warning] onGrid=true is forced here\r\n\t\t\tnewCube.onGrid = true;\r\n\t\t\tnewCube.multicube = multi;\r\n\t\t\tcubes.add(newCube);\r\n\t\t}\r\n\t\tmulti.list = cubes;\r\n\r\n\t\treturn multi;\r\n\t}", "@Test\n public void testMergeJoinLowerLimit() throws Exception {\n MergeJoinPOP mergeJoin = new MergeJoinPOP(null, null,\n Lists.newArrayList(joinCond(\"c1\", \"EQUALS\", \"c2\")), JoinRelType.RIGHT);\n mockOpContext(mergeJoin, initReservation, maxAllocation);\n\n numRows = 10;\n\n // create left input rows like this.\n // \"a1\" : 5, \"b1\" : wideString, \"c1\" : <id>\n List<String> leftJsonBatches = Lists.newArrayList();\n StringBuilder leftBatchString = new StringBuilder();\n leftBatchString.append(\"[\");\n for (int i = 0; i < numRows; i++) {\n leftBatchString.append(\"{\\\"a1\\\": 5, \" + \"\\\"b1\\\" : \" + \"\\\"\" + wideString + \"\\\",\" + \"\\\"c1\\\" : \" + i + \"},\");\n }\n leftBatchString.append(\"{\\\"a1\\\": 5, \" + \"\\\"b1\\\" : \" + \"\\\"\" + wideString + \"\\\",\" + \"\\\"c1\\\" : \" + numRows + \"}\");\n leftBatchString.append(\"]\");\n\n leftJsonBatches.add(leftBatchString.toString());\n\n // create right input rows like this.\n // \"a2\" : 6, \"b2\" : wideString, \"c2\" : <id>\n List<String> rightJsonBatches = Lists.newArrayList();\n StringBuilder rightBatchString = new StringBuilder();\n rightBatchString.append(\"[\");\n for (int i = 0; i < numRows; i++) {\n rightBatchString.append(\"{\\\"a2\\\": 6, \" + \"\\\"b2\\\" : \" + \"\\\"\" + wideString + \"\\\",\" + \"\\\"c2\\\" : \" + i + \"},\");\n }\n rightBatchString.append(\"{\\\"a2\\\": 6, \" + \"\\\"b2\\\" : \" + \"\\\"\" + wideString + \"\\\",\" + \"\\\"c2\\\" : \" + numRows + \"}\");\n rightBatchString.append(\"]\");\n rightJsonBatches.add(rightBatchString.toString());\n\n // output rows will be like this.\n // \"a1\" : 5, \"b1\" : wideString, \"c1\" : 1, \"a2\":6, \"b2\" : wideString, \"c2\": 1\n // \"a1\" : 5, \"b1\" : wideString, \"c1\" : 2, \"a2\":6, \"b2\" : wideString, \"c2\": 2\n // \"a1\" : 5, \"b1\" : wideString, \"c1\" : 3, \"a2\":6, \"b2\" : wideString, \"c2\": 3\n\n // set very low value of output batch size so we can do only one row per batch.\n fragContext.getOptions().setLocalOption(\"drill.exec.memory.operator.output_batch_size\", 128);\n\n LegacyOperatorTestBuilder opTestBuilder = legacyOpTestBuilder()\n .physicalOperator(mergeJoin)\n .baselineColumns(\"a1\", \"b1\", \"c1\", \"a2\", \"b2\", \"c2\")\n .expectedNumBatches(10) // verify number of batches\n .inputDataStreamsJson(Lists.newArrayList(leftJsonBatches, rightJsonBatches));\n\n for (long i = 0; i < numRows + 1; i++) {\n opTestBuilder.baselineValues(5l, wideString, i, 6l, wideString, i);\n }\n\n opTestBuilder.go();\n }", "public MultiList(){}", "public EnumerateJoinsRule(JoinEnum joinEnum) {\n this.joinEnum = joinEnum;\n }", "protected RolapEvaluator _push(List<List<Member>> aggregationList) {\n root.execution.checkCancelOrTimeout();\n return new RolapEvaluator(root, this, aggregationList);\n }", "public Rule(List<ICondition> conditions)\r\n\t{\r\n\t\tif (conditions != null)\r\n\t\t{\r\n\t\t\tthis.conditions = conditions;\r\n\t\t}\r\n\t}", "@Test\n public void testMultiCrossJoin() throws Exception {\n String sql = \"SELECT * FROM (g1 cross join g2) cross join g3\";\n Node fileNode = sequenceSql(sql, TSQL_QUERY);\n Node queryNode = verify(fileNode, Query.ID, Query.ID);\n\n Node selectNode = verify(queryNode, Query.SELECT_REF_NAME, Select.ID);\n\n verify(selectNode, Select.SYMBOLS_REF_NAME, MultipleElementSymbol.ID);\n\n Node fromNode = verify(queryNode, Query.FROM_REF_NAME, From.ID);\n\n Node jpNode1 = verify(fromNode, From.CLAUSES_REF_NAME, JoinPredicate.ID);\n verifyJoin(jpNode1, JoinTypeTypes.JOIN_CROSS);\n\n Node jpNode2 = verify(jpNode1, JoinPredicate.LEFT_CLAUSE_REF_NAME, JoinPredicate.ID);\n verifyJoin(jpNode2, JoinTypeTypes.JOIN_CROSS);\n\n verifyUnaryFromClauseGroup(jpNode2, JoinPredicate.LEFT_CLAUSE_REF_NAME, \"g1\");\n verifyUnaryFromClauseGroup(jpNode2, JoinPredicate.RIGHT_CLAUSE_REF_NAME, \"g2\");\n verifyUnaryFromClauseGroup(jpNode1, JoinPredicate.RIGHT_CLAUSE_REF_NAME, \"g3\");\n \n verifySql(\"SELECT * FROM (g1 CROSS JOIN g2) CROSS JOIN g3\", fileNode);\n }", "AssignmentRule createAssignmentRule();", "public RuleSet (RuleList rulelist, SensorList sList) {\n \n this.references = new ArrayList();\n this.rulelist = rulelist;\n this.totalProb = -1.0;\n this.id = counter.incrementAndGet();\n this.indexesOfPrec = new ArrayList();\n this.precedences = new ArrayList ();\n this.sList = sList;\n }", "public final void entryRuleOpMultiAssign() throws RecognitionException {\n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:317:1: ( ruleOpMultiAssign EOF )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:318:1: ruleOpMultiAssign EOF\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getOpMultiAssignRule()); \n }\n pushFollow(FOLLOW_ruleOpMultiAssign_in_entryRuleOpMultiAssign608);\n ruleOpMultiAssign();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getOpMultiAssignRule()); \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleOpMultiAssign615); if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "public MultiKey() {}", "@Test\n public void testMultiCrossJoin2() throws Exception {\n String sql = \"SELECT * FROM (g1 cross join g2) cross join (g3 cross join g4)\";\n Node fileNode = sequenceSql(sql, TSQL_QUERY);\n\n Node queryNode = verify(fileNode, Query.ID, Query.ID);\n\n Node selectNode = verify(queryNode, Query.SELECT_REF_NAME, Select.ID);\n\n verify(selectNode, Select.SYMBOLS_REF_NAME, MultipleElementSymbol.ID);\n\n Node fromNode = verify(queryNode, Query.FROM_REF_NAME, From.ID);\n\n Node jpNode1 = verify(fromNode, From.CLAUSES_REF_NAME, JoinPredicate.ID);\n verifyJoin(jpNode1, JoinTypeTypes.JOIN_CROSS);\n\n Node jpNode2 = verify(jpNode1, JoinPredicate.LEFT_CLAUSE_REF_NAME, JoinPredicate.ID);\n verifyJoin(jpNode2, JoinTypeTypes.JOIN_CROSS);\n\n Node jpNode3 = verify(jpNode1, JoinPredicate.RIGHT_CLAUSE_REF_NAME, JoinPredicate.ID);\n verifyJoin(jpNode3, JoinTypeTypes.JOIN_CROSS);\n \n verifyUnaryFromClauseGroup(jpNode2, JoinPredicate.LEFT_CLAUSE_REF_NAME, \"g1\");\n verifyUnaryFromClauseGroup(jpNode2, JoinPredicate.RIGHT_CLAUSE_REF_NAME, \"g2\");\n\n verifyUnaryFromClauseGroup(jpNode3, JoinPredicate.LEFT_CLAUSE_REF_NAME, \"g3\");\n verifyUnaryFromClauseGroup(jpNode3, JoinPredicate.RIGHT_CLAUSE_REF_NAME, \"g4\");\n \n verifySql(\"SELECT * FROM (g1 CROSS JOIN g2) CROSS JOIN (g3 CROSS JOIN g4)\", fileNode);\n }", "public Join dup (Join self)\n {\n if (self == null)\n return null;\n\n Join copy = new Join ();\n if (self.getIdentity () != null)\n copy.setAddress (self.getIdentity ());\n copy.group = self.group;\n copy.status = self.status;\n return copy;\n }", "private PersonContainsKeywordsPredicate createNewPersonPredicateForMultipleTags(List<Tag> tagList) {\n Set<Tag> multipleTagSet = new HashSet<Tag>(tagList);\n PersonContainsKeywordsPredicate newPredicate = new PersonContainsKeywordsPredicate(new\n ArrayList<>(multipleTagSet));\n return newPredicate;\n }", "protected void createProjectExprs( Project projRel, AlgNode joinChild, int adjustmentAmount, RexBuilder rexBuilder, List<AlgDataTypeField> joinChildrenFields, List<Pair<RexNode, String>> projects ) {\n List<AlgDataTypeField> childFields = joinChild.getRowType().getFieldList();\n if ( projRel != null ) {\n List<Pair<RexNode, String>> namedProjects = projRel.getNamedProjects();\n int nChildFields = childFields.size();\n int[] adjustments = new int[nChildFields];\n for ( int i = 0; i < nChildFields; i++ ) {\n adjustments[i] = adjustmentAmount;\n }\n for ( Pair<RexNode, String> pair : namedProjects ) {\n RexNode e = pair.left;\n if ( adjustmentAmount != 0 ) {\n // Shift the references by the adjustment amount\n e = e.accept( new AlgOptUtil.RexInputConverter( rexBuilder, childFields, joinChildrenFields, adjustments ) );\n }\n projects.add( Pair.of( e, pair.right ) );\n }\n } else {\n // No projection; just create references to the inputs\n for ( int i = 0; i < childFields.size(); i++ ) {\n final AlgDataTypeField field = childFields.get( i );\n projects.add( Pair.of( (RexNode) rexBuilder.makeInputRef( field.getType(), i + adjustmentAmount ), field.getName() ) );\n }\n }\n }", "public final void entryRuleOpMultiAssign() throws RecognitionException {\r\n try {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:400:1: ( ruleOpMultiAssign EOF )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:401:1: ruleOpMultiAssign EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getOpMultiAssignRule()); \r\n }\r\n pushFollow(FOLLOW_ruleOpMultiAssign_in_entryRuleOpMultiAssign788);\r\n ruleOpMultiAssign();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getOpMultiAssignRule()); \r\n }\r\n match(input,EOF,FOLLOW_EOF_in_entryRuleOpMultiAssign795); if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n }\r\n return ;\r\n }", "public PropertyDefList createDependings()\n throws MatrixException\n {\n for (final PropertyDef prop : this.properties) {\n if (prop.getTo() != null) {\n prop.getTo().create();\n }\n }\n\n return this;\n }", "Rule createRule();", "Rule createRule();", "Rule createRule();", "@Test\n public void testMergeJoinUpperLimit() throws Exception {\n MergeJoinPOP mergeJoin = new MergeJoinPOP(null, null,\n Lists.newArrayList(joinCond(\"c1\", \"EQUALS\", \"c2\")), JoinRelType.LEFT);\n mockOpContext(mergeJoin, initReservation, maxAllocation);\n\n numRows = 100000;\n\n // create left input rows like this.\n // \"a1\" : 5, \"c1\" : <id>\n List<String> leftJsonBatches = Lists.newArrayList();\n StringBuilder leftBatchString = new StringBuilder();\n leftBatchString.append(\"[\");\n for (int i = 0; i < numRows; i++) {\n leftBatchString.append(\"{\\\"a1\\\": 5, \" + \"\\\"c1\\\" : \" + i + \"},\");\n }\n leftBatchString.append(\"{\\\"a1\\\": 5, \" + \"\\\"c1\\\" : \" + numRows + \"}\");\n leftBatchString.append(\"]\");\n\n leftJsonBatches.add(leftBatchString.toString());\n\n // create right input rows like this.\n // \"a2\" : 6, \"c2\" : <id>\n List<String> rightJsonBatches = Lists.newArrayList();\n StringBuilder rightBatchString = new StringBuilder();\n rightBatchString.append(\"[\");\n for (int i = 0; i < numRows; i++) {\n rightBatchString.append(\"{\\\"a2\\\": 6, \" + \"\\\"c2\\\" : \" + i + \"},\");\n }\n rightBatchString.append(\"{\\\"a2\\\": 6, \" + \"\\\"c2\\\" : \" + numRows + \"}\");\n rightBatchString.append(\"]\");\n rightJsonBatches.add(rightBatchString.toString());\n\n // output rows will be like this.\n // \"a1\" : 5, \"c1\" : 1, \"a2\":6, \"c2\": 1\n // \"a1\" : 5, \"c1\" : 2, \"a2\":6, \"c2\": 2\n // \"a1\" : 5, \"c1\" : 3, \"a2\":6, \"c2\": 3\n\n // expect two batches, batch limited by 65535 records\n LegacyOperatorTestBuilder opTestBuilder = legacyOpTestBuilder()\n .physicalOperator(mergeJoin)\n .baselineColumns(\"a1\", \"c1\", \"a2\", \"c2\")\n .expectedNumBatches(2) // verify number of batches\n .inputDataStreamsJson(Lists.newArrayList(leftJsonBatches, rightJsonBatches));\n\n for (long i = 0; i < numRows + 1; i++) {\n opTestBuilder.baselineValues(5l, i, 6l, i);\n }\n\n opTestBuilder.go();\n }", "FromTableJoin createFromTableJoin();", "public ChainOperator(){\n\n }", "public MultiShapeLayer() {}", "protected MultiException() {\n\t\t// Can't delegate to the other constructor or GWT RPC gets cranky\n\t\tsuper(MULTIPLE);\n\t\t_causes = Collections.<Throwable> emptySet();\n\t}", "protected PmdRuleset createPmdRuleset(List<ActiveRule> activeRules, String profileName) {\n PmdRuleset ruleset = new PmdRuleset(profileName);\n\n for (ActiveRule activeRule : activeRules) {\n if (activeRule.getRule().getRepositoryKey().equals(PhpmdRuleRepository.PHPMD_REPOSITORY_KEY)) {\n String configKey = activeRule.getRule().getConfigKey();\n PmdRule rule = new PmdRule(configKey, mapper.to(activeRule.getSeverity()));\n List<ActiveRuleParam> activeRuleParams = activeRule.getActiveRuleParams();\n if (activeRuleParams != null && !activeRuleParams.isEmpty()) {\n List<PmdProperty> properties = new ArrayList<PmdProperty>();\n for (ActiveRuleParam activeRuleParam : activeRuleParams) {\n properties.add(new PmdProperty(activeRuleParam.getRuleParam().getKey(), activeRuleParam.getValue()));\n }\n rule.setProperties(properties);\n }\n ruleset.addRule(rule);\n processXPathRule(activeRule.getRuleKey(), rule);\n }\n }\n return ruleset;\n }", "public BaseJoin compileJoin(Condition condition, int position, Rule rule, Condition previousCond) {\n\t\tTestCondition tc = (TestCondition)condition;\n ShellFunction fn = (ShellFunction)tc.getFunction();\n fn.lookUpFunction(ruleCompiler.getEngine());\n Parameter[] oldpm = fn.getParameters();\n Parameter[] pms = new Parameter[oldpm.length];\n for (int ipm=0; ipm < pms.length; ipm++) {\n if (oldpm[ipm] instanceof ValueParam) {\n pms[ipm] = ((ValueParam)oldpm[ipm]).cloneParameter();\n } else if (oldpm[ipm] instanceof BoundParam) {\n BoundParam bpm = (BoundParam)oldpm[ipm];\n // now we need to resolve and setup the BoundParam\n Binding b = rule.getBinding(bpm.getVariableName());\n BoundParam newpm = new BoundParam(b.getLeftRow(),\n b.getLeftIndex(),9,bpm.isObjectBinding());\n newpm.setVariableName(bpm.getVariableName());\n pms[ipm] = newpm;\n } else if (oldpm[ipm] instanceof FunctionParam2) {\n \tFunctionParam2 fpm = (FunctionParam2)oldpm[ipm];\n \t// resolve any bound parameter in the function parameter\n \tfpm.configure(null, rule);\n \tpms[ipm] = fpm;\n }\n }\n BaseJoin joinNode=null;\n if (tc.isNegated()) {\n joinNode = new NTestNode(ruleCompiler.getEngine().nextNodeId(),fn.getFunction(),pms);\n } else {\n joinNode = new TestNode(ruleCompiler.getEngine().nextNodeId(),fn.getFunction(),pms);\n }\n ((TestNode)joinNode).lookUpFunction(ruleCompiler.getEngine());\n\t\treturn joinNode;\n\t}", "FlowRule build();", "public MhsmNetworkRuleSet() {\n }", "public FlowRule() {\r\n }", "protected void createSubQueryJoinTableAggregation() throws ODataApplicationException {\r\n try {\r\n final List<JPAOnConditionItem> left = association\r\n .getJoinTable()\r\n .getJoinColumns(); // Person -->\r\n final List<JPAOnConditionItem> right = association\r\n .getJoinTable()\r\n .getInverseJoinColumns(); // Team -->\r\n createSelectClauseAggregation(subQuery, queryJoinTable, left);\r\n final Expression<Boolean> whereCondition = createWhereByAssociation(from, queryJoinTable, parentQuery.jpaEntity);\r\n subQuery.where(applyAdditionalFilter(whereCondition));\r\n handleAggregation(subQuery, queryJoinTable, right);\r\n } catch (final ODataJPAModelException e) {\r\n throw new ODataJPAQueryException(e, HttpStatusCode.INTERNAL_SERVER_ERROR);\r\n }\r\n }", "public FetchRule() {\n }", "public SingleRuleBuilder newRule() {\n return new SingleRuleBuilder();\n }", "public ForkJoinPoolMgr() {\n }", "Merge() {\n //Unused Constructor.\n }", "public HashMultiSet() {\n\t\tmultiSet = new HashMap<>();\n\t}", "public RuleConfiguration() {\n\t\trule = new Rule();\n\t}", "@Test\n public void testHashJoinLowerLimit() throws Exception {\n HashJoinPOP hashJoin = new HashJoinPOP(null, null,\n Lists.newArrayList(joinCond(\"c1\", \"EQUALS\", \"c2\")), JoinRelType.INNER);\n mockOpContext(hashJoin, initReservation, maxAllocation);\n\n numRows = 10;\n\n // create left input rows like this.\n // \"a1\" : 5, \"b1\" : wideString, \"c1\" : <id>\n List<String> leftJsonBatches = Lists.newArrayList();\n StringBuilder leftBatchString = new StringBuilder();\n leftBatchString.append(\"[\");\n for (int i = 0; i < numRows; i++) {\n leftBatchString.append(\"{\\\"a1\\\": 5, \" + \"\\\"b1\\\" : \" + \"\\\"\" + wideString + \"\\\",\" + \"\\\"c1\\\" : \" + i + \"},\");\n }\n leftBatchString.append(\"{\\\"a1\\\": 5, \" + \"\\\"b1\\\" : \" + \"\\\"\" + wideString + \"\\\",\" + \"\\\"c1\\\" : \" + numRows + \"}\");\n leftBatchString.append(\"]\");\n\n leftJsonBatches.add(leftBatchString.toString());\n\n // create right input rows like this.\n // \"a2\" : 6, \"b2\" : wideString, \"c2\" : <id>\n List<String> rightJsonBatches = Lists.newArrayList();\n StringBuilder rightBatchString = new StringBuilder();\n rightBatchString.append(\"[\");\n for (int i = 0; i < numRows; i++) {\n rightBatchString.append(\"{\\\"a2\\\": 6, \" + \"\\\"b2\\\" : \" + \"\\\"\" + wideString + \"\\\",\" + \"\\\"c2\\\" : \" + i + \"},\");\n }\n rightBatchString.append(\"{\\\"a2\\\": 6, \" + \"\\\"b2\\\" : \" + \"\\\"\" + wideString + \"\\\",\" + \"\\\"c2\\\" : \" + numRows + \"}\");\n rightBatchString.append(\"]\");\n rightJsonBatches.add(rightBatchString.toString());\n\n // output rows will be like this.\n // \"a1\" : 5, \"b1\" : wideString, \"c1\" : 1, \"a2\":6, \"b2\" : wideString, \"c2\": 1\n // \"a1\" : 5, \"b1\" : wideString, \"c1\" : 2, \"a2\":6, \"b2\" : wideString, \"c2\": 2\n // \"a1\" : 5, \"b1\" : wideString, \"c1\" : 3, \"a2\":6, \"b2\" : wideString, \"c2\": 3\n\n // set very low value of output batch size so we can do only one row per batch.\n fragContext.getOptions().setLocalOption(\"drill.exec.memory.operator.output_batch_size\", 128);\n\n LegacyOperatorTestBuilder opTestBuilder = legacyOpTestBuilder()\n .physicalOperator(hashJoin)\n .baselineColumns(\"a1\", \"b1\", \"c1\", \"a2\", \"b2\", \"c2\")\n .expectedNumBatches(10) // verify number of batches\n .inputDataStreamsJson(Lists.newArrayList(leftJsonBatches, rightJsonBatches));\n\n for (long i = 0; i < numRows + 1; i++) {\n opTestBuilder.baselineValues(5l, wideString, i, 6l, wideString, i);\n }\n\n opTestBuilder.go();\n }", "private List<ConcurrentRule> makeConcurrentRulesDuetoDependency(\r\n\t\t\tfinal ConcurrentRule cr1, \r\n\t\t\tfinal Rule r2,\r\n\t\t\tfinal Hashtable<?, ?> matchmap) {\n\t\tfinal DependencyPairContainer \r\n\t\tdependencyContainer = this.makeDependencyPairContainer();\r\n\t\tdependencyContainer.enableProduceConcurrentRule(true);\r\n\t\t// if this.completeConcurrency Is false, only max overlapping above nodes will be considered\r\n\t\t// otherwise use all overlappings to create concurrent rules\r\n\t\tdependencyContainer.setCompleteConcurrency(this.completeConcurrency);\r\n\t\t\r\n\t\tList<ConcurrentRule> list = null; \r\n\t\ttry {\r\n\t\t\tVector<Pair<Pair<OrdinaryMorphism, OrdinaryMorphism>, Pair<OrdinaryMorphism, OrdinaryMorphism>>>\r\n\t\t\tcriticalPairs = dependencyContainer.getCriticalPair(cr1.getRule(), r2, CriticalPair.EXCLUDE, true);\r\n\t\t\tif (criticalPairs != null) {\r\n\t\t\t\tlist = dependencyContainer.getConcurrentRules();\r\n\t\t\t}\r\n\t\t} catch (Exception ex) {}\r\n\t\t\r\n\t\tif (list == null) \r\n\t\t\tlist = new Vector<ConcurrentRule>(1);\t\t\r\n\t\r\n\t\tif (this.completeConcurrency) {\r\n\t\t\t// make concurrent rule with disjoint (RHS1+LHS2) of (r1, r2)\t\r\n\t\t\tfinal ConcurrentRule cr = new ConcurrentRule(cr1, r2);\r\n\t\t\tif (cr.getRule() != null) {\r\n\t\t\t\tlist.add(cr);\r\n\t\t\t}\r\n\t\t} \r\n\t\t\r\n\t\tfor (int c=0; c<list.size(); c++) {\r\n\t\t\tif (this.completeConcurRuleBackward)\r\n\t\t\t\tlist.get(c).setSecondSourceConcurrentRule(cr1);\r\n\t\t\telse\r\n\t\t\t\tlist.get(c).setFirstSourceConcurrentRule(cr1);\r\n\t\t}\r\n\t\r\n\t\textendRuleNameByIndex(list);\r\n//\t\tSystem.out.println(\"---> ApplicabilityChecker.makeConcurrentRulessDuetoDependency: count: \"+list.size());\r\n\t\treturn list;\r\n\t}", "public Project(Long projectId) {\n this.id = projectId;\n this.groups = new HashSet<>();\n this.nextGroupId = 0L;\n this.symbols = new HashSet<>();\n this.nextSymbolId = 1L;\n\n this.userId = 0L;\n this.mirrorUrls = \"\";\n }", "private Query makeMulti(Collection<Query> queries, boolean disjunct) throws\n ParseException {\n if (queries.isEmpty()) {\n return null; // Stopwords?\n }\n if (disjunct) {\n return new DisjunctionMaxQuery(queries, tieBreakerMultiplier);\n }\n //noinspection UseOfObsoleteCollectionType\n Vector<BooleanClause> clauses = new Vector<>(queries.size());\n for (Query query: queries) {\n //noinspection unchecked\n clauses.add(new BooleanClause(query, BooleanClause.Occur.SHOULD));\n }\n return getBooleanQuery(clauses, true);\n }", "public SeqConditionSet() {\n\t}", "public static void main(String[] args) {\n FinalGroupProjectCS2141 dbProject = new FinalGroupProjectCS2141();\r\n dbProject.createConnection();\r\n }", "private void buildNewTree(PlanNode plan, List<ILogicalOperator> joinOps, MutableInt totalNumberOfJoins)\n throws AlgebricksException {\n // we have to move the inputs in op around so that they match the tree structure in pn\n // we use the existing joinOps and switch the leafInputs appropriately.\n List<PlanNode> allPlans = joinEnum.getAllPlans();\n int leftIndex = plan.getLeftPlanIndex();\n int rightIndex = plan.getRightPlanIndex();\n //System.out.println(\"allPlansSize \" + allPlans.size() + \" leftIndex \" + leftIndex + \" rightIndex \" + rightIndex); // put in trace statements\n //System.out.println(\"allPlansSize \" + allPlans.size());\n PlanNode leftPlan = allPlans.get(leftIndex);\n PlanNode rightPlan = allPlans.get(rightIndex);\n\n ILogicalOperator joinOp = joinOps.get(totalNumberOfJoins.intValue()); // intValue set to 0 initially\n\n if (plan.IsJoinNode()) {\n fillJoinAnnotations(plan, joinOp);\n }\n\n if (leftPlan.IsScanNode()) {\n // leaf\n ILogicalOperator leftInput = leftPlan.getLeafInput();\n skipAllIndexes(leftPlan, leftInput);\n ILogicalOperator selOp = findSelectOrDataScan(leftInput);\n if (selOp != null) {\n addCardCostAnnotations(selOp, leftPlan);\n }\n joinOp.getInputs().get(0).setValue(leftInput);\n addCardCostAnnotations(findDataSourceScanOperator(leftInput), leftPlan);\n } else {\n // join\n totalNumberOfJoins.increment();\n ILogicalOperator leftInput = joinOps.get(totalNumberOfJoins.intValue());\n joinOp.getInputs().get(0).setValue(leftInput);\n buildNewTree(leftPlan, joinOps, totalNumberOfJoins);\n }\n\n if (rightPlan.IsScanNode()) {\n // leaf\n ILogicalOperator rightInput = rightPlan.getLeafInput();\n skipAllIndexes(rightPlan, rightInput);\n ILogicalOperator selOp = findSelectOrDataScan(rightInput);\n if (selOp != null) {\n addCardCostAnnotations(selOp, rightPlan);\n }\n joinOp.getInputs().get(1).setValue(rightInput);\n addCardCostAnnotations(findDataSourceScanOperator(rightInput), rightPlan);\n } else {\n // join\n totalNumberOfJoins.increment();\n ILogicalOperator rightInput = joinOps.get(totalNumberOfJoins.intValue());\n joinOp.getInputs().get(1).setValue(rightInput);\n buildNewTree(rightPlan, joinOps, totalNumberOfJoins);\n }\n }", "protected void createSubQueryJoinTable() throws ODataApplicationException {\r\n try {\r\n final List<JPAOnConditionItem> left = association\r\n .getJoinTable()\r\n .getJoinColumns(); // Team -->\r\n final List<JPAOnConditionItem> right = association\r\n .getJoinTable()\r\n .getInverseJoinColumns(); // Person -->\r\n createSelectClauseJoin(subQuery, queryRoot, right);\r\n Expression<Boolean> whereCondition = createWhereByAssociation(from, queryJoinTable, left);\r\n whereCondition = cb.and(whereCondition, createWhereByAssociation(queryJoinTable, queryRoot, right));\r\n subQuery.where(applyAdditionalFilter(whereCondition));\r\n } catch (final ODataJPAModelException e) {\r\n throw new ODataJPAQueryException(e, HttpStatusCode.INTERNAL_SERVER_ERROR);\r\n }\r\n\r\n }", "public MultiShape3D()\n {\n this( (Geometry)null, (Appearance)null );\n }", "public final void entryRuleOpMulti() throws RecognitionException {\r\n try {\r\n // InternalDroneScript.g:880:1: ( ruleOpMulti EOF )\r\n // InternalDroneScript.g:881:1: ruleOpMulti EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getOpMultiRule()); \r\n }\r\n pushFollow(FOLLOW_1);\r\n ruleOpMulti();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getOpMultiRule()); \r\n }\r\n match(input,EOF,FOLLOW_2); if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n }\r\n return ;\r\n }", "public final void entryRuleOpMulti() throws RecognitionException {\n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:715:1: ( ruleOpMulti EOF )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:716:1: ruleOpMulti EOF\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getOpMultiRule()); \n }\n pushFollow(FOLLOW_ruleOpMulti_in_entryRuleOpMulti1454);\n ruleOpMulti();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getOpMultiRule()); \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleOpMulti1461); if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "IdListRule createIdListRule();", "@Test\n public void testConsideredOperators() {\n EmptyValues secondFragmentLeaf = new EmptyValues(prop(2, 2), BatchSchema.SCHEMA_UNKNOWN_NO_DATA);\n Project secondFragmentProject1 = new Project(prop(2, 1), secondFragmentLeaf, null);\n Project secondFragmentProject0 = new Project(prop(2, 0), secondFragmentProject1, null);\n\n // Fragment 3\n EmptyValues thirdFragmentLeaf1 = new EmptyValues(prop(3, 1), BatchSchema.SCHEMA_UNKNOWN_NO_DATA);\n Project thirdFragmentProject0 = new Project(prop(3, 0), thirdFragmentLeaf1, null);\n\n // Fragment 1\n HashToRandomExchange hashToRandomExchange2 = new HashToRandomExchange(prop(1, 2),\n secondFragmentProject0.getProps(), null, null, BatchSchema.SCHEMA_UNKNOWN_NO_DATA, secondFragmentProject1, null, options);\n Project firstFragmentProject1 = new Project(prop(1, 1), hashToRandomExchange2, null);\n HashToRandomExchange hashToRandomExchange4 = new HashToRandomExchange(prop(1, 4),\n thirdFragmentProject0.getProps(), null, null, BatchSchema.SCHEMA_UNKNOWN_NO_DATA, secondFragmentProject1, null, options);\n Project firstFragmentProject3 = new Project(prop(1, 3), hashToRandomExchange4, null);\n HashJoinPOP hashJoinPOP = new HashJoinPOP(prop(1, 0).cloneWithMemoryExpensive(true), firstFragmentProject1, firstFragmentProject3,\n null, null, null, false, null);\n\n MemoryAllocationUtilities.FindConsideredOperators fco = new MemoryAllocationUtilities.FindConsideredOperators(1);\n hashJoinPOP.accept(fco, null);\n List<PhysicalOperator> consideredOperators = fco.getConsideredOperators();\n List<PhysicalOperator> nonConsideredOperators = fco.getNonConsideredOperators();\n\n assertEquals(1, consideredOperators.size()); // HashJoin\n assertTrue(consideredOperators.stream().allMatch(op -> op.getProps().getMajorFragmentId() == 1));\n assertEquals(1, consideredOperators.stream().map(op -> op.getProps().getLocalOperatorId()).distinct().count());\n\n assertEquals(4, nonConsideredOperators.size());\n assertTrue(nonConsideredOperators.stream().allMatch(op -> op.getProps().getMajorFragmentId() == 1));\n // no operator is visited more than once\n assertEquals(4, nonConsideredOperators.stream().map(op -> op.getProps().getLocalOperatorId()).distinct().count());\n\n\n fco = new MemoryAllocationUtilities.FindConsideredOperators(2);\n secondFragmentProject0.accept(fco, null);\n consideredOperators = fco.getConsideredOperators();\n nonConsideredOperators = fco.getNonConsideredOperators();\n\n assertEquals(0, consideredOperators.size());\n\n assertEquals(3, nonConsideredOperators.size());\n assertTrue(nonConsideredOperators.stream().allMatch(op -> op.getProps().getMajorFragmentId() == 2));\n assertEquals(3, nonConsideredOperators.stream().map(op -> op.getProps().getLocalOperatorId()).distinct().count());\n\n fco = new MemoryAllocationUtilities.FindConsideredOperators(3);\n thirdFragmentProject0.accept(fco, null);\n consideredOperators = fco.getConsideredOperators();\n nonConsideredOperators = fco.getNonConsideredOperators();\n\n assertEquals(0, consideredOperators.size());\n\n assertEquals(2, nonConsideredOperators.size());\n assertTrue(nonConsideredOperators.stream().allMatch(op -> op.getProps().getMajorFragmentId() == 3));\n assertEquals(2, nonConsideredOperators.stream().map(op -> op.getProps().getLocalOperatorId()).distinct().count());\n\n\n // visiting wrong fragment root\n fco = new MemoryAllocationUtilities.FindConsideredOperators(3);\n secondFragmentProject0.accept(fco, null); // fco visiting fragment 2 root instead of fragment 3\n consideredOperators = fco.getConsideredOperators();\n nonConsideredOperators = fco.getNonConsideredOperators();\n\n assertEquals(0, consideredOperators.size());\n assertEquals(0, nonConsideredOperators.size());\n }", "@Override\n protected PlanNode clone() throws CloneNotSupportedException {\n NestedLoopsJoinNode node = (NestedLoopsJoinNode) super.clone();\n\n // Clone the predicate.\n if (predicate != null)\n node.predicate = predicate.duplicate();\n else\n node.predicate = null;\n\n return node;\n }", "PropertyRule createPropertyRule();", "public final void entryRuleOpMulti() throws RecognitionException {\r\n try {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:798:1: ( ruleOpMulti EOF )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:799:1: ruleOpMulti EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getOpMultiRule()); \r\n }\r\n pushFollow(FOLLOW_ruleOpMulti_in_entryRuleOpMulti1634);\r\n ruleOpMulti();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getOpMultiRule()); \r\n }\r\n match(input,EOF,FOLLOW_EOF_in_entryRuleOpMulti1641); if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n }\r\n return ;\r\n }", "private JavaRuleContext buildTestJavaRuleContext() {\n Map<String, Object> ruleParameters = new HashMap<>();\n ruleParameters.put(JDBCBuildMapRule.ARG_APPLICATION, new Application());\n ruleParameters.put(JDBCBuildMapRule.ARG_SCHEMA, new Schema());\n ruleParameters.put(JDBCBuildMapRule.ARG_STATE, Collections.emptyMap());\n ruleParameters.put(JDBCBuildMapRule.ARG_RESULT_SET, mock(ResultSet.class));\n ruleParameters.put(JDBCBuildMapRule.ARG_CONNECTION, mock(Connection.class));\n return new JavaRuleContext(this.sailPointContext, ruleParameters);\n }", "public TargetCollection(TargetCollection targetCollection){\n targets = targetCollection.getTargets();\n }", "public AntComposite(Composite pComposite, AntProject pProject) {\r\n\t\tsuper(pComposite, pProject);\r\n\t}", "@Override\r\n\tpublic BuilderResponse call() throws Exception {\n\t\tint createsSubmitted = 0;\r\n\t\tint pendingCreates = 0;\r\n\t\t// Walk over the source list\r\n\t\tMap<MigratableObjectType, Set<String>> batchesToCreate = new HashMap<MigratableObjectType, Set<String>>();\r\n\t\tfor(MigratableObjectData source: sourceList){\r\n\t\t\t// Is this entity already in the destination?\r\n\t\t\tif(!destMap.containsKey(source.getId())){\r\n\t\t\t\t// We can only add this entity if its dependencies are in the destination\r\n\t\t\t\tif(JobUtil.dependenciesFulfilled(source, destMap.keySet())) {\r\n\t\t\t\t\tMigratableObjectType objectType = source.getId().getType();\r\n\t\t\t\t\tSet<String> batchToCreate = batchesToCreate.get(objectType);\r\n\t\t\t\t\tif (batchToCreate==null) {\r\n\t\t\t\t\t\tbatchToCreate = new HashSet<String>();\r\n\t\t\t\t\t\tbatchesToCreate.put(objectType, batchToCreate);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbatchToCreate.add(source.getId().getId());\r\n\t\t\t\t\tcreatesSubmitted++;\r\n\t\t\t\t\tif(batchToCreate.size() >= this.batchSize){\r\n\t\t\t\t\t\tJob createJob = new Job(batchToCreate, objectType, Type.CREATE);\r\n\t\t\t\t\t\tthis.queue.add(createJob);\r\n\t\t\t\t\t\tbatchesToCreate.remove(objectType);\r\n\t\t\t\t\t}\r\n\t\t\t\t}else{\r\n\t\t\t\t\t// This will get picked up in a future round.\r\n\t\t\t\t\tpendingCreates++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t// Submit any creates left over\r\n\t\tfor (MigratableObjectType objectType : batchesToCreate.keySet()) {\r\n\t\t\tSet<String> batchToCreate = batchesToCreate.get(objectType);\r\n\t\t\tif(!batchToCreate.isEmpty()){\r\n\t\t\t\tJob createJob = new Job(batchToCreate, objectType, Type.CREATE);\r\n\t\t\t\tthis.queue.add(createJob);\r\n\t\t\t}\r\n\t\t}\r\n\t\tbatchesToCreate.clear();\r\n\t\t// Report the results.\r\n\t\treturn new BuilderResponse(createsSubmitted, pendingCreates);\r\n\t}", "public HostToGroupMapping() {\n }", "protected void createProjectPair(String baseName, MultiJobDetail detail, boolean update) throws IOException {\r\n // Building job\r\n\n if (!getInstance().getJobNames().contains(baseName)) {\r\n projectsAdded.add(baseName);\r\n FreeStyleProject p;\n if (getTopProject().getParent() instanceof Jenkins) {\n p = getInstance().createProject(FreeStyleProject.class, baseName);\n }\n else {\n Folder parentFolder = (Folder)getTopProject().getParent();\n p = parentFolder.createProject(FreeStyleProject.class, baseName);\n }\n if (p == null) {\r\n return;\r\n }\r\n SCM scm = getTopProject().getScm();\r\n p.setScm(scm);\r\n addDeleteWorkspaceBeforeBuildStarts(p);\r\n addSetup(p);\r\n // Set the label after addSetup because otherwise it's overwritten by the defaul value in VectorCASTSetup\n Label label = getTopProject().getAssignedLabel();\n p.setAssignedLabel(label);\n addBuildCommands(p, detail, baseName, detail.getProjectName());\r\n if (getOptionUseReporting()) {\r\n addReportingCommands(p, detail, baseName);\r\n addArchiveArtifacts(p);\r\n addXunit(p);\r\n addVCCoverage(p);\r\n addPostReportingGroovy(p);\r\n // RMK : TODO - fixup/combine groovy\r\n } else {\r\n addPostbuildGroovy(p, detail, baseName);\r\n }\r\n p.save();\r\n } else {\r\n projectsExisting.add(baseName);\r\n }\r\n }", "@Override\n\tpublic void createProjectsReference(ProjectsReference proj) {\n\t\tString sql = \"INSERT INTO projects_reference VALUES (?,?,?,?,?,?,now(),now(),?,?,?,?)\";\n\t\t\n\t\tthis.getJdbcTemplate().update(sql, new Object[] { \n\t\t\t\tproj.getProj_ref_id(),\n\t\t\t\tproj.getProj_id(),\n\t\t\t\tproj.getItm_id(),\n\t\t\t\tproj.getTime(),\n\t\t\t\tproj.getPrice(),\n\t\t\t\tproj.getCretd_usr(),\n\t\t\t\tproj.getProj_ref_desc(),\n\t\t\t\tproj.getActual_time(),\n\t\t\t\tproj.getTopix_article_id(),\n\t\t\t\tproj.getActivated()\n\t\t});\n\t\t\n\t\tUserDetailsApp user = UserLoginDetail.getUser();\n\t\t\n\t\tProjects proj2 = new Projects();\n\t\tproj2 = getJdbcTemplate().queryForObject(\"select * from projects where proj_id=\"+proj.getProj_id(), new BeanPropertyRowMapper<Projects>(Projects.class));\n\t\tItem itm = new Item();\n\t\titm = getJdbcTemplate().queryForObject(\"select * from item where itm_id=\"+proj.getItm_id(), new BeanPropertyRowMapper<Item>(Item.class));\n\t\tCustomer cus = new Customer();\n\t\tcus = getJdbcTemplate().queryForObject(\"select * from customer where cus_id =\"+proj2.getCus_id(), new BeanPropertyRowMapper<Customer>(Customer.class));\n\t\t\n\t\tString audit = \"INSERT INTO audit_logging (aud_id,parent_id,parent_object,commit_by,commit_date,commit_desc,parent_ref) VALUES (default,?,?,?,now(),?,?)\";\n\t\tthis.getJdbcTemplate().update(audit, new Object[]{\n\t\t\t\t\n\t\t\t\tproj.getProj_ref_id(),\n\t\t\t\t\"Projects Reference:\"+proj2.getProj_id(),\n\t\t\t\tuser.getUserModel().getUsr_name(),\n\t\t\t\t\"Created Item name=\"+itm.getItm_name()+\" on Project name=\"+proj2.getProj_name()+\", customer=\"+cus.getCus_name()\n\t\t\t\t+\", target_time=\"+proj.getTime()+\", actual_time=\"+proj.getActual_time()+\", price=\"+proj.getPrice()+\", desc=\"+proj.getProj_ref_desc()\n\t\t\t\t+\", topix_article_id=\"+proj.getTopix_article_id()+\", activated=\"+((proj.getActivated() == 0) ? \"No\" : \"Yes\"),\n\t\t\t\tproj2.getProj_name()+\" : \"+itm.getItm_name()\n\t\t});\n\t}", "public Join(Operator operator1, Operator operator2, TupleTransformation tupleTrans) {\n o1 = operator1;\n o2 = operator2;\n this.tupleTrans = tupleTrans;\n tuple1 = o1.next();\n }", "@Before(\"execution(@DimensionsEqual *.new(..))\")\n public void constructor(final JoinPoint jpoint) {\n final Object[] args = jpoint.getArgs();\n final Map<Class<?>, Object> ref = new HashMap<>();\n for (int arg = 0; arg < args.length; ++arg) {\n for (int idx = 0; idx < this.clazz.length; ++idx) {\n final Class<?> type = args[arg].getClass().getComponentType();\n if (type != null && this.clazz[idx].isAssignableFrom(type)) {\n SameDimensionCheck.validate(args[arg]);\n }\n if (!this.clazz[idx].isAssignableFrom(args[arg].getClass())) {\n continue;\n }\n final Object reference = ref.get(this.clazz[idx]);\n if (reference == null) {\n ref.put(this.clazz[idx], args[arg]);\n continue;\n }\n SameDimensionCheck.validate(reference, args[arg]);\n }\n }\n }", "public static NewExpression new_(Constructor constructor, Iterable<Expression> expressions, Iterable<Member> members) { throw Extensions.todo(); }", "public Project() {\n\t\t\n\t}", "public Project3() {\n\t\tcreateComponent();\n\t\twireComponent();\n\t}", "public final EObject entryRuleJoinOperator() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleJoinOperator = null;\n\n\n try {\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:537:2: (iv_ruleJoinOperator= ruleJoinOperator EOF )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:538:2: iv_ruleJoinOperator= ruleJoinOperator EOF\n {\n newCompositeNode(grammarAccess.getJoinOperatorRule()); \n pushFollow(FOLLOW_ruleJoinOperator_in_entryRuleJoinOperator1182);\n iv_ruleJoinOperator=ruleJoinOperator();\n\n state._fsp--;\n\n current =iv_ruleJoinOperator; \n match(input,EOF,FOLLOW_EOF_in_entryRuleJoinOperator1192); \n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "@Test\n @DisplayName(\"push test1\")\n void push_test1(){\n mongoOperations.updateMulti(\n new Query(),\n new Update()\n .push(\"category1\")\n .each(\"spring\",\"data\",\"mongoDB\",\"gogo\"),\n UserTestArray.class\n );\n //Sending command '{\"update\": \"userTestArray\", \"ordered\": true, \"$db\": \"ticket\", \"updates\": [{\"q\": {}, \"u\": {\"$push\": {\"category1\": {\"$each\": [\"spring\", \"data\", \"mongoDB\", \"gogo\"]}}}, \"multi\": true}]}' with request id 4 to database ticket on connection [connectionId{localValue:2, serverValue:47}] to server localhost:27017\n }", "Pivots createPivots();", "void buildExecuteKieSession() {\n\n commands = new ArrayList<>();\n commands.add(CommandFactory.newInsertElements(allProfiles));\n commands.add(CommandFactory.newFireAllRules());\n commands.add(CommandFactory.newQuery(ROLE_ASSIGNMENTS_RESULTS_KEY, ROLE_ASSIGNMENTS_QUERY_NAME));\n\n // Run the rules\n results = kieSession.execute(CommandFactory.newBatchExecution(commands));\n\n }", "public RulesBook(Collection<Rule<A, B>> rules) {\n this(rules, StreamingRulesEngine.create());\n }", "@Test\n public void testDslMultipleJobsInSeedVarious() throws Exception {\n createSeedJob(readDslScript(\"./dsl/testDslMultipleJobsInSeedVarious.groovy\"));\n /* Fetch the newly created job and check its trigger configuration */\n FreeStyleProject createdJob = (FreeStyleProject) j.getInstance().getItem(\"test-job1\");\n WorkflowJob createdPipelineJob;\n PipelineTriggersJobProperty pipelineTriggers;\n /* Go through all triggers to validate DSL */\n Map<TriggerDescriptor, Trigger<?>> triggers = createdJob.getTriggers();\n assertEquals(1, triggers.size());\n List<String> dispNames = new ArrayList<>();\n for (Trigger<?> entry : triggers.values()) {\n BitBucketPPRTrigger tmp2 = (BitBucketPPRTrigger) entry;\n assertEquals(1, tmp2.getTriggers().size());\n String tmpNname = tmp2.getTriggers().get(0).getActionFilter().getClass().getName();\n String dispName = tmpNname.substring(tmpNname.lastIndexOf(\".\") + 1);\n dispNames.add(dispName);\n }\n assertEquals(1, dispNames.size());\n assertEquals(dispNames.get(0), \"BitBucketPPRPullRequestCreatedActionFilter\");\n\n /* Verify second job content */\n createdJob = (FreeStyleProject) j.getInstance().getItem(\"test-job2\");\n /* Go through all triggers to validate DSL */\n triggers = createdJob.getTriggers();\n assertEquals(1, triggers.size());\n dispNames.clear();\n for (Trigger<?> entry : triggers.values()) {\n BitBucketPPRTrigger tmp2 = (BitBucketPPRTrigger) entry;\n assertEquals(1, tmp2.getTriggers().size());\n String tmpNname = tmp2.getTriggers().get(0).getActionFilter().getClass().getName();\n String dispName = tmpNname.substring(tmpNname.lastIndexOf(\".\") + 1);\n dispNames.add(dispName);\n }\n assertEquals(1, dispNames.size());\n assertEquals(dispNames.get(0), \"BitBucketPPRPullRequestUpdatedActionFilter\");\n\n /* Verify third job content */\n createdPipelineJob = (WorkflowJob) j.getInstance().getItem(\"test-job3\");\n /* Go through all triggers to validate DSL */\n pipelineTriggers = (PipelineTriggersJobProperty) createdPipelineJob.getProperty(PipelineTriggersJobProperty.class);\n triggers = pipelineTriggers.getTriggersMap();\n assertEquals(1, triggers.size());\n dispNames.clear();\n for (Trigger<?> entry : triggers.values()) {\n BitBucketPPRTrigger tmp2 = (BitBucketPPRTrigger) entry;\n assertEquals(2, tmp2.getTriggers().size());\n String tmpName = tmp2.getTriggers().get(0).getActionFilter().getClass().getName();\n String dispName = tmpName.substring(tmpName.lastIndexOf(\".\") + 1);\n dispNames.add(dispName);\n tmpName = tmp2.getTriggers().get(1).getActionFilter().getClass().getName();\n dispName = tmpName.substring(tmpName.lastIndexOf(\".\") + 1);\n dispNames.add(dispName);\n }\n assertEquals(2, dispNames.size());\n assertEquals(dispNames.get(0), \"BitBucketPPRRepositoryPushActionFilter\");\n assertEquals(dispNames.get(1), \"BitBucketPPRPullRequestCommentDeletedActionFilter\");\n }", "public MultiKey(final K key1, final K key2, final K key3) {\n this(newArray(key1, key2, key3), false);\n }", "E3Rule createE3Rule();", "private void CreatePIDelegationRules() throws isisicatclient.IcatException_Exception {\n Rule piAddExperimenters = new Rule();\r\n piAddExperimenters.crudFlags = \"C\";\r\n piAddExperimenters.what = \"InvestigationUser <-> Investigation <-> InvestigationUser [role = 'principal_experimenter'] <-> User [name = :user]\";\r\n port.create(sessionId, piAddExperimenters);\r\n }", "public PipelineImpl() {\n }", "public Project() {\n\t}", "public Project() {\n\t}", "@Test\n public void testDslTriggerPushActionPipeline() throws Exception {\n createSeedJob(readDslScript(\"./dsl/testDslTriggerPushActionPipeline.groovy\"));\n /* Fetch the newly created job and check its trigger configuration */\n WorkflowJob createdJob = (WorkflowJob) j.getInstance().getItem(\"test-job\");\n /* Go through all triggers to validate DSL */\n PipelineTriggersJobProperty pipelineTriggers = (PipelineTriggersJobProperty) createdJob.getProperty(PipelineTriggersJobProperty.class);\n Map<TriggerDescriptor, Trigger<?>> triggers = pipelineTriggers.getTriggersMap();\n assertEquals(1, triggers.size());\n List<String> dispNames = new ArrayList<>();\n boolean isToApprove = false;\n for (Trigger<?> entry : triggers.values()) {\n BitBucketPPRTrigger tmp2 = (BitBucketPPRTrigger) entry;\n assertEquals(1, tmp2.getTriggers().size());\n String tmpNname = tmp2.getTriggers().get(0).getActionFilter().getClass().getName();\n String dispName = tmpNname.substring(tmpNname.lastIndexOf(\".\") + 1);\n dispNames.add(dispName);\n\n BitBucketPPRRepositoryPushActionFilter tmp3 = (BitBucketPPRRepositoryPushActionFilter) tmp2.getTriggers().get(0)\n .getActionFilter();\n isToApprove = tmp3.shouldSendApprove();\n }\n assertEquals(1, dispNames.size());\n assertEquals(dispNames.get(0), \"BitBucketPPRRepositoryPushActionFilter\");\n assertFalse(isToApprove);\n }", "SortOperator(String databaseDir, HashMap<String,String[]> schema, String fromTableName, String[] joinTableNames, String[] columnsInfo, Expression whereExpression, String[] orderBy){\n this.orderBy = columnsInfo2TableColumnsArray(orderBy);\n if (whereExpression == null) {\n projectOperator = new ProjectOperator(databaseDir, schema, fromTableName, columnsInfo);\n }\n else if(joinTableNames == null) {\n projectOperator = new ProjectOperator(databaseDir, schema, fromTableName, columnsInfo, whereExpression);\n }\n else {\n projectOperator = new ProjectOperator(databaseDir, schema, fromTableName, joinTableNames, columnsInfo, whereExpression);\n }\n }", "@Override\n\tprotected TargetPruner createTargetPruner() {\n\t\treturn new IDL3TargetPruner();\n\t}", "public ProjectCaseExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "public void initSubprojects(){\n\t\tArrayList<SubprojectField> fieldsFirestation=new ArrayList<SubprojectField>(Arrays.asList(\n\t\t\t\tnew SubprojectField(10, false, false),\n\t\t\t\tnew SubprojectField(10, false, false),\n\t\t\t\tnew SubprojectField(50, true, false),\n\t\t\t\tnew SubprojectField(10, false, false),\n\t\t\t\tnew SubprojectField(20, false, false),\n\t\t\t\tnew SubprojectField(30, false, false),\n\t\t\t\tnew SubprojectField(40, true, false),\n\t\t\t\tnew SubprojectField(20, false, false),\n\t\t\t\tnew SubprojectField(50, false, true)));\n\t\tprojectsAvailable.add(new Subproject(\"Feuerwache\",fieldsFirestation,0));\n\t\tArrayList<SubprojectField> fieldsNorthStreet=new ArrayList<SubprojectField>(Arrays.asList(\n\t\t\t\tnew SubprojectField(10, false, false),\n\t\t\t\tnew SubprojectField(30, false, false),\n\t\t\t\tnew SubprojectField(10, false, false),\n\t\t\t\tnew SubprojectField(20, false, false),\n\t\t\t\tnew SubprojectField(50, false, false),\n\t\t\t\tnew SubprojectField(20, true, false),\n\t\t\t\tnew SubprojectField(10, false, false),\n\t\t\t\tnew SubprojectField(30, true, false),\n\t\t\t\tnew SubprojectField(30, false, true)));\n\t\tprojectsAvailable.add(new Subproject(\"Landebahn Nord\",fieldsNorthStreet,1));\n\t\tArrayList<SubprojectField> fieldsSouthStreet=new ArrayList<SubprojectField>(Arrays.asList(\n\t\t\t\tnew SubprojectField(20, false, false),\n\t\t\t\tnew SubprojectField(10, false, false),\n\t\t\t\tnew SubprojectField(20, true, false),\n\t\t\t\tnew SubprojectField(10, false, false),\n\t\t\t\tnew SubprojectField(50, false, false),\n\t\t\t\tnew SubprojectField(50, false, false),\n\t\t\t\tnew SubprojectField(10, true, false),\n\t\t\t\tnew SubprojectField(20, false, false),\n\t\t\t\tnew SubprojectField(40, false, true)));\n\t\tprojectsAvailable.add(new Subproject(\"Landebahn S�d\",fieldsSouthStreet,2));\n\t\tArrayList<SubprojectField> fieldsTerminalA=new ArrayList<SubprojectField>(Arrays.asList(\n\t\t\t\tnew SubprojectField(20, false, false),\n\t\t\t\tnew SubprojectField(20, false, false),\n\t\t\t\tnew SubprojectField(10, true, false),\n\t\t\t\tnew SubprojectField(30, false, false),\n\t\t\t\tnew SubprojectField(10, true, false),\n\t\t\t\tnew SubprojectField(50, false, true)));\n\t\tprojectsAvailable.add(new Subproject(\"Terminal A\",fieldsTerminalA,3));\n\t\tArrayList<SubprojectField> fieldsTerminalB=new ArrayList<SubprojectField>(Arrays.asList(\n\t\t\t\tnew SubprojectField(20, false, false),\n\t\t\t\tnew SubprojectField(10, false, false),\n\t\t\t\tnew SubprojectField(30, true, false),\n\t\t\t\tnew SubprojectField(10, false, false),\n\t\t\t\tnew SubprojectField(10, false, false),\n\t\t\t\tnew SubprojectField(50, true, false),\n\t\t\t\tnew SubprojectField(20, false, false),\n\t\t\t\tnew SubprojectField(50, false, true)));\n\t\tprojectsAvailable.add(new Subproject(\"Terminal B\",fieldsTerminalB,4));\n\t\tArrayList<SubprojectField> fieldsMainTerminal=new ArrayList<SubprojectField>(Arrays.asList(\n\t\t\t\tnew SubprojectField(20, false, false),\n\t\t\t\tnew SubprojectField(10, true, false),\n\t\t\t\tnew SubprojectField(30, false, false),\n\t\t\t\tnew SubprojectField(10, false, false),\n\t\t\t\tnew SubprojectField(10, false, false),\n\t\t\t\tnew SubprojectField(20, true, false),\n\t\t\t\tnew SubprojectField(50, true, false),\n\t\t\t\tnew SubprojectField(10, false, false),\n\t\t\t\tnew SubprojectField(50, false, true)));\n\t\tprojectsAvailable.add(new Subproject(\"Hauptterminal\",fieldsMainTerminal,5));\n\t\tArrayList<SubprojectField> fieldsParkStation=new ArrayList<SubprojectField>(Arrays.asList(\n\t\t\t\tnew SubprojectField(50, false, false),\n\t\t\t\tnew SubprojectField(50, false, false),\n\t\t\t\tnew SubprojectField(50, true, false),\n\t\t\t\tnew SubprojectField(20, false, false),\n\t\t\t\tnew SubprojectField(20, true, false),\n\t\t\t\tnew SubprojectField(20, false, false),\n\t\t\t\tnew SubprojectField(50, false, false),\n\t\t\t\tnew SubprojectField(20, false, true)));\n\t\tprojectsAvailable.add(new Subproject(\"Parkplatz\",fieldsParkStation,6));\n\t\tArrayList<SubprojectField> fieldsPreStation=new ArrayList<SubprojectField>(Arrays.asList(\n\t\t\t\tnew SubprojectField(20, false, false),\n\t\t\t\tnew SubprojectField(10, false, false),\n\t\t\t\tnew SubprojectField(50, true, false),\n\t\t\t\tnew SubprojectField(20, false, false),\n\t\t\t\tnew SubprojectField(50, false, false),\n\t\t\t\tnew SubprojectField(20, false, true)));\n\t\tprojectsAvailable.add(new Subproject(\"Vorfeld\",fieldsPreStation,7));\n\t}", "public Project() { }" ]
[ "0.52258205", "0.51233685", "0.4922506", "0.49158898", "0.48587722", "0.48537588", "0.48045284", "0.4781775", "0.45288515", "0.44730625", "0.44597092", "0.44128743", "0.4388128", "0.43782568", "0.43413603", "0.43239498", "0.4299166", "0.42898378", "0.42839038", "0.42774022", "0.42683864", "0.4243802", "0.42345667", "0.42302608", "0.42300266", "0.42272818", "0.42268732", "0.42088577", "0.42088303", "0.41999522", "0.41633722", "0.41631433", "0.41615418", "0.41368002", "0.41101655", "0.41101655", "0.41101655", "0.41039038", "0.40966833", "0.40891817", "0.40803567", "0.40689158", "0.4058105", "0.40539587", "0.40475342", "0.4039837", "0.40380192", "0.4023351", "0.4013749", "0.40029934", "0.39874512", "0.39838326", "0.39708903", "0.3969182", "0.39655936", "0.39504796", "0.39479205", "0.39418048", "0.39389", "0.39386666", "0.39328814", "0.39295125", "0.39282787", "0.3927053", "0.3924333", "0.39137357", "0.39093864", "0.38967612", "0.38900813", "0.3889956", "0.388634", "0.3884147", "0.38802394", "0.387207", "0.38706252", "0.386982", "0.38660067", "0.3863877", "0.3863473", "0.38622925", "0.38616765", "0.38616478", "0.38605747", "0.3857634", "0.3849916", "0.3845169", "0.38434187", "0.38375708", "0.38357309", "0.3833215", "0.38264075", "0.3825245", "0.3821005", "0.3821005", "0.38201487", "0.38134834", "0.38101196", "0.3805432", "0.37980065", "0.3794001" ]
0.78659034
0
TODO Autogenerated method stub
public boolean doBusiness() { if(!verifyService.verify()) { return false; } //doBusiness业务逻辑 System.out.println("处理业务逻辑。。。。"); //业务逻辑处理完后发送消息 sendMsgService.sendMsg(); return true; }
{ "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
fire if last bullet was fired over 100ms ago
public void fireBullet(int direction , int posX, int posY ){ if ( clockBullet.getElapsedTime().asMilliseconds() > 100 ){ int lowestbulletNo = 10; for( int i = 9; i > 0; i-- ){ if ( bulletSpace.get(i).isEnabled() == false){ lowestbulletNo = i;//find the first bullet in the gun barrol } } if ( lowestbulletNo < 10 ){ bulletSpace.get(lowestbulletNo).setDirection(direction); bulletSpace.get(lowestbulletNo).setDistance(0); bulletSpace.get(lowestbulletNo).setPosX(posX - map.getX()) ; bulletSpace.get(lowestbulletNo).setPosY(posY - map.getY()) ; bulletSpace.get(lowestbulletNo).enabled(true); bulletSpace.get(lowestbulletNo).setRotation(direction+1); } } clockBullet.restart(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void fireBullet() {\n\r\n\t\tif (count > 0)\r\n\t\t\treturn;\r\n\t\t// ...and if all the bullets aren't currently in use...\r\n\t\tint slot = getAvailableBullet();\r\n\t\tif (slot < 0)\r\n\t\t\treturn;\r\n\t\t// ...then launch a new bullet\r\n\t\tbullets[slot].setLocation(locX, locY);\r\n\t\tbullets[slot].setDirection(angle);\r\n\t\tbullets[slot].reset();\r\n\t\t// Reset the timer\r\n\t\tcount = RELOAD;\r\n\t}", "public boolean firedRecently(double time);", "private void checkIsAbleToFire() {\n\n\t\tif (ticksToNextFire <= currentTickCount) {\n\t\t\tisAbleToFire = true;\n\t\t} else {\n\t\t\tisAbleToFire = false;\n\t\t}\n\t}", "@Override\r\n public int fire() {\r\n if (this.getBulletsCount() == 0) {\r\n return 0;\r\n }\r\n this.setBulletsCount(this.getBulletsCount() - 10);\r\n return 10;\r\n }", "public void buffTimer() {\r\n if (seconds - lastBuffCheck >= 1) {\r\n lastBuffCheck = seconds;\r\n for (int i = 0; i < buffs.size(); i++) {\r\n buffs.set(i, buffs.get(i)-1);\r\n if (buffs.get(i) <= 0) {\r\n buffs.remove(i);\r\n }\r\n }\r\n } else if (seconds < lastBuffCheck) {\r\n lastBuffCheck = 0;\r\n }\r\n }", "protected boolean canFire()\n\t\t{\n\t\treturn ( TimeUtils.timeSinceMillis(startTime) > this.fireDelay );\n\t\t}", "public void fire() {\n\n\t\t// A player cannot continually fire, there is a delay between each bullet.\n\t\tif (isAbleToFire) {\n\n\t\t\taudio.playMusic(\"Audio/Fire.wav\");\n\n\t\t\tif (multiBulletIsActive) {\n\n\t\t\t\tmultiBulletFire();\n\n\t\t\t} else if (speedBulletIsActive) {\n\n\t\t\t\tspeedBulletFire();\n\n\t\t\t} else if (quickFireBulletIsActive) {\n\n\t\t\t\tquickFireBulletFire();\n\n\t\t\t} else {\n\n\t\t\t\t// Single fire.\n\t\t\t\t// Adjust bullet position to be fired from the center of the player.\n\t\t\t\tbulletArrayList.add(new Bullet(xPosition + ((width / 2) - bulletWidth / 2), bulletYPosition,\n\t\t\t\t\t\tbulletWidth, bulletHeight, \"Red\"));\n\t\t\t}\n\n\t\t\t// Stop the player from being able to fire for 'ticksBetweemFire' amount.\n\t\t\tticksToNextFire = currentTickCount + ticksBetweenFire;\n\t\t}\n\t}", "@Override\n public void update() {\n if (timeSource.getTime() >= endTime) {\n logger.debug(\"Final laser cooldown complete laser ready to fire\");\n System.out.println(\"Firing again\");\n laser.changeState(new FiringState(laser, owner));\n }\n }", "private void speedBulletFire() {\n\n\t\tbulletArrayList.add(\n\t\t\t\tnew Bullet(xPosition + ((width / 2) - bulletWidth / 2), bulletYPosition, bulletWidth, bulletHeight, \"Yellow\"));\n\n\t\tfor (int i = 0; i < bulletArrayList.size(); i++) {\n\t\t\tbulletArrayList.get(i).setSpeed(5);\n\t\t}\n\t}", "public void onHitByBullet() {\r\n\t\t// Move ahead 100 and in the same time turn left papendicular to the bullet\r\n\t\tturnAheadLeft(100, 90 - hitByBulletBearing);\r\n\t}", "public void fireBullet(){\n\t\tBullet bullet = new Bullet(ship);\n\t\tbullets.add(bullet);\n\t\tsoundMan.playBulletSound();\n\t}", "public void shoot(){\r\n \tgame.pending.add(new Bullet(this, bulletlife));\t\r\n }", "public void tryToFire() {\n\t\tif (System.currentTimeMillis() - lastFire < firingInterval) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// if we waited long enough, create the shot entity, and record the time.\n\t\tlastFire = System.currentTimeMillis();\n\t\tShotEntity shot = new ShotEntity(this,\"shot.gif\",ship.getX()+10,ship.getY()-30, 1);\n\t\tentities.add(shot);\n\t}", "public boolean thoughtBubbleTimer(boolean debug) {\r\n if (debug) {\r\n if (seconds - lastBubble >= 5) {\r\n lastBubble = seconds;\r\n return true;\r\n } else if (seconds < lastBubble) {\r\n lastBubble = 0;\r\n }\r\n } else {\r\n if (minutes - lastBubble >= 1) {\r\n lastBubble = minutes;\r\n return true;\r\n } else if (minutes < lastBubble) {\r\n lastBubble = 0;\r\n }\r\n }\r\n return false;\r\n }", "public void shootBullet( ){\n bulletsFired.add(new Bullet((short)(this.xPos + BOX_HEIGHT), (short)((this.getYPos() + (BOX_HEIGHT+15))), this.xPos, this.id, (byte) 0, (byte) 0, shootingDirection, currentWeapon.getKey()));\n\n byte weaponFired = currentWeapon.getKey();\n switch (weaponFired){\n case PISTOL_ID: bulletsFired.get(bulletsFired.size()-1).setDmg(DEFAULT_DMG);\n bulletsFired.get(bulletsFired.size()-1).setRange(DEFAULT_RANGE);\n audioHandler.updateSFXVolume(audioHandler.getSoundEffectVolume());\n audioHandler.playSoundEffect(audioHandler.pistolSound);\n break;\n case MACHINEGUN_ID: bulletsFired.get(bulletsFired.size()-1).setDmg(MACHINEGUN_DMG);\n bulletsFired.get(bulletsFired.size()-1).setRange(MACHINEGUN_RANGE);\n audioHandler.updateSFXVolume(audioHandler.getSoundEffectVolume());\n audioHandler.playSoundEffect(audioHandler.machineGunSound);\n break;\n case SHOTGUN_ID: bulletsFired.get(bulletsFired.size()-1).setDmg(SHOTGUN_DMG);\n bulletsFired.get(bulletsFired.size()-1).setRange(SHOTGUN_RANGE);\n audioHandler.updateSFXVolume(audioHandler.getSoundEffectVolume());\n audioHandler.playSoundEffect(audioHandler.shotgunSound);\n break;\n case SNIPER_ID: bulletsFired.get(bulletsFired.size()-1).setDmg(SNIPER_DMG);\n bulletsFired.get(bulletsFired.size()-1).setRange(SNIPER_RANGE);\n audioHandler.updateSFXVolume(audioHandler.getSoundEffectVolume());\n audioHandler.playSoundEffect(audioHandler.machineGunSound);\n break;\n case UZI_ID: bulletsFired.get(bulletsFired.size()-1).setDmg(UZI_DMG);\n bulletsFired.get(bulletsFired.size()-1).setRange(UZI_RANGE);\n audioHandler.updateSFXVolume(audioHandler.getSoundEffectVolume());\n audioHandler.playSoundEffect(audioHandler.machineGunSound);\n break;\n case AI_WEAPON_ID: bulletsFired.get(bulletsFired.size()-1).setDmg(AI_DMG);\n bulletsFired.get(bulletsFired.size()-1).setRange(DEFAULT_RANGE);\n System.out.println(\"Bullet sound \" + audioHandler.getSoundEffectVolume());\n audioHandler.updateSFXVolume(audioHandler.getSoundEffectVolume());\n audioHandler.playSoundEffect(audioHandler.pistolSound);\n break;\n default: bulletsFired.get(bulletsFired.size()-1).setDmg(DEFAULT_DMG);\n bulletsFired.get(bulletsFired.size()-1).setRange(DEFAULT_RANGE);\n\n }\n }", "@Override\n\tpublic void shoot() {\n\t\tthis.fired = true;\n\t\tghost.shot=true;\n\t}", "public void onShootPressed(){\n if(player.getRechargeTimer()<=0) {\n playShootingSound();\n Bullet bullet = new Bullet();\n player.setRechargeTimer(shotRechargeTime);\n bullet.moveCentreTo(player.getCentreX(), player.getCentreY());\n bullet.setRotation(player.getRotation());\n bullet.setSpeed(new Point2D(15 * Math.cos(Math.toRadians(bullet.getRotation() - 90)), 15 * Math.sin(Math.toRadians(bullet.getRotation() - 90))));\n if(player.getTripleShotTimer()>0){\n Bullet bullet1 = new Bullet();\n bullet1.moveCentreTo(player.getCentreX(), player.getCentreY());\n bullet1.setRotation(player.getRotation()+15);\n bullet1.setSpeed(new Point2D(15 * Math.cos(Math.toRadians(bullet1.getRotation() - 90)), 15 * Math.sin(Math.toRadians(bullet1.getRotation() - 90))));\n Bullet bullet2 = new Bullet();\n bullet2.moveCentreTo(player.getCentreX(), player.getCentreY());\n bullet2.setRotation(player.getRotation()-15);\n bullet2.setSpeed(new Point2D(15 * Math.cos(Math.toRadians(bullet2.getRotation() - 90)), 15 * Math.sin(Math.toRadians(bullet2.getRotation() - 90))));\n }\n }\n }", "@Override\r\n public void timePassed(double dt) {\r\n return;\r\n }", "public void setRemainingFireTicks(int debug1) {\n/* 2105 */ super.setRemainingFireTicks(this.abilities.invulnerable ? Math.min(debug1, 1) : debug1);\n/* */ }", "private void multiBulletFire() {\n\n\t\tbulletArrayList.add(new Bullet(xPosition + ((width / 2) - bulletWidth / 2) + 20, bulletYPosition, bulletWidth,\n\t\t\t\tbulletHeight, \"Blue\"));\n\t\tbulletArrayList.add(new Bullet(xPosition + ((width / 2) - bulletWidth / 2) - 10, bulletYPosition, bulletWidth,\n\t\t\t\tbulletHeight, \"Blue\"));\n\t\tbulletArrayList.add(new Bullet(xPosition + ((width / 2) - bulletWidth / 2) + 50, bulletYPosition, bulletWidth,\n\t\t\t\tbulletHeight, \"Blue\"));\n\t}", "private void quickFireBulletFire() {\n\n\t\tbulletArrayList.add(\n\t\t\t\tnew Bullet(xPosition + ((width / 2) - bulletWidth / 2), bulletYPosition, bulletWidth, bulletHeight, \"Pink\"));\n\t}", "public void trackBullets(){\n for (int i = 0; i < bullets.size(); i++){\n Bullet tempBullet = bullets.get(i);\n //update the position of the bullets\n tempBullet.update();\n tempBullet.drawBullet();\n //check if the bullet hit the boundary, remove the bullet from the list of the bullet\n if(tempBullet.detectBound()){\n bullets.remove(i);\n continue;\n }\n //detect if the bullet hit the boss and cause the damage if yes\n if(tempBullet.hitObject(Main.boss) && Main.boss.alive){\n Main.boss.decreaseHealth(attack);\n tempBullet.drawHit();\n bullets.remove(i);\n if(Main.boss.health <= 0){\n Main.boss.alive = false;\n Main.boss.deadTime = millis();\n Main.score += 100;\n }\n }\n //detect if the bullet hit the enemy and cause the damage if yes\n for(int j = 0; j < Main.enemies.size(); j++){\n Enemy tempEnemy = Main.enemies.get(j);\n if(tempBullet.hitObject(tempEnemy) && tempEnemy.alive){\n tempBullet.drawHit();\n tempEnemy.decreaseHealth(attack);\n // if enemy is totally hitted, wait one 1s, and then removed\n if(tempEnemy.health <= 0){\n tempEnemy.alive = false;\n tempEnemy.deadTime = millis();\n }\n bullets.remove(i);\n break;\n }\n }\n }\n }", "public void shoot()\n {\n\n if(reload<=0)//if the tower has reloaded\n {\n int randomizer=Greenfoot.getRandomNumber(20)-10; \n MinigunBullet bullet = new MinigunBullet(this.getRotation()+randomizer, damage,this);\n getWorld().addObject(bullet, getX(), getY());\n bullet.move(30);\n reload=3;\n }\n else//reload\n {\n reload--;\n }\n\n }", "public boolean isFired() {\n\t\t// TODO Auto-generated method stub\n\t\treturn shot;\n\t}", "public void tick() {\r\n\r\n\t\tif (!targeted) {\r\n\t\t\tTarget = acquireTarget();\r\n\t\t} else if (timeSinceLastShot > firingSpeed) {\r\n\t\t\tangle = calculateAngle();\r\n\t\t\tshoot(Target);\r\n\t\t\ttimeSinceLastShot = 0;\r\n\t\t}\r\n\t\tif (Target == null || Target.isAlive() == false) {\r\n\t\t\ttargeted = false;\r\n\t\t}\r\n\r\n\t\ttimeSinceLastShot += Delta();\r\n\r\n\t\tfor (Dart dart : darts) {\r\n\t\t\tdart.tick();\r\n\t\t}\r\n\r\n\t\tdraw();\r\n\t}", "public void tick() {\n if (ShulkerEntity.this.world.getDifficulty() != Difficulty.PEACEFUL) {\n --this.attackTime;\n LivingEntity livingentity = ShulkerEntity.this.getAttackTarget();\n ShulkerEntity.this.getLookController().setLookPositionWithEntity(livingentity, 180.0F, 180.0F);\n double d0 = ShulkerEntity.this.getDistanceSq(livingentity);\n if (d0 < 400.0D) {\n if (this.attackTime <= 0) {\n this.attackTime = 20 + ShulkerEntity.this.rand.nextInt(10) * 20 / 2;\n ShulkerEntity.this.world.addEntity(new ShulkerBulletEntity(ShulkerEntity.this.world, ShulkerEntity.this, livingentity, ShulkerEntity.this.getAttachmentFacing().getAxis()));\n ShulkerEntity.this.playSound(SoundEvents.ENTITY_SHULKER_SHOOT, 2.0F, (ShulkerEntity.this.rand.nextFloat() - ShulkerEntity.this.rand.nextFloat()) * 0.2F + 1.0F);\n }\n } else {\n ShulkerEntity.this.setAttackTarget((LivingEntity)null);\n }\n\n super.tick();\n }\n }", "public boolean shootLastShotHit(Board enemyBoard) \r\n {\r\n \t\r\n \t\r\n \treturn true;\r\n }", "@Override\n protected boolean isFinished() {\n return Timer.getFPGATimestamp()-startT >= 1.5;\n }", "public void setBulletsFired(ArrayList<Bullet> bullets) {\n if(!bulletsFired.isEmpty()) {\n //System.out.println(bullets.get(0).getxPos() != bulletsFired.get(0).getxPos());\n this.bulletsFired = bullets;\n }\n }", "boolean isDelayed();", "@Override\r\n public void timePassed(double dt) {\r\n\r\n }", "@Override\r\n public void timePassed(double dt) {\r\n\r\n }", "public void checkLavaTileUpdates() {\n // 1 second (1 bn nanoseconds) between each tick\n long timeBetweenTicks = 1000;\n long newTime = System.currentTimeMillis();\n\n // if it has been 1 second: decrement ticks, set a new time and return true\n if (newTime - timeLastTick >= timeBetweenTicks) {\n timeLastTick = newTime;\n updateLavaTiles();\n }\n }", "public void trackBullets(){\n // bossbullet control, if it hit the bound, remove the bullet\n for(int i = 0; i < bossBullets.size(); i++){\n Bullet tempBullet = bossBullets.get(i);\n tempBullet.update();\n tempBullet.drawBullet();\n // print (tempBullet.posX, tempBullet.posY,'\\n');\n if(tempBullet.detectBound()){\n bossBullets.remove(i);\n continue;\n }\n\n if(tempBullet.hitObject(Main.player) && !Main.player.invincible){\n Main.player.decreaseHealth(1);\n Main.player.posX = width / 2;\n Main.player.posY = height * 9 / 10;\n Main.player.invincible = true;\n Main.player.invincibleTime = millis();\n }\n\n }\n }", "@Override\r\n public void timePassed() {\r\n }", "boolean trigger(int ticks);", "public boolean tick(){\n\t\tif(System.currentTimeMillis() - time > TICK_TIME){\n\t\t\tif(this.getSprite().equals(\"bomb1.gif\")){\n\t\t\t\tthis.setSprite(\"bomb2.gif\");\n\t\t\t}else{\n\t\t\t\tthis.setSprite(\"bomb1.gif\");\n\t\t\t}\n\t\t\ttime = System.currentTimeMillis();\n\t\t\tif(--maxTicks <= 0){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn exploded;\n\t}", "@Override\n public void timePassed() {\n }", "public void act() \n {\n if(timer > 0){\n timer--;\n }else{\n Greenfoot.playSound(\"explosionSound.wav\");\n getWorld().removeObject(this);\n }\n }", "public void shoot() {\r\n\t\twhile (rounds > 1) {\r\n\t\t\trounds--;\r\n\t\t\tSystem.out.println(gunType + \" is shooting now\\n\" + rounds + \" \\nCLACK! CLACK! CLAK! CLAK! CLAK!\");\r\n\t\t\tif (rounds == 1) {\r\n\t\t\t\tSystem.out.println(\"Magazine's Empty!! \\nRELOAD!!\\nRELOAD!!!\\nRELAOD!!!\");\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t}", "public void isShot() {\r\n\t\tlives -=1;\r\n\t\tif(isDead())\r\n\t\t{\r\n\t\t\tthis.erase();\r\n\t\t}\r\n\t}", "public boolean shoot() {\n if (!isReloading && System.currentTimeMillis() - previousShotTime > shootInterval * 1000 && ammoRemaining > 0) {\n\n previousShotTime = System.currentTimeMillis();\n\n ammoRemaining--;\n audioPlayer.setSpatial(holder);\n audioPlayer.playOnce();\n // score -= 50;\n Vec2 angle = Vec2\n .Vector2FromAngleInDegrees(transform.getGlobalRotation().getAngleInDegrees() - 90 + (Math.random() * spread * 2 - spread));\n\n Vec2 spawnPosition = transform.getWorldPosition();\n\n Projectile p = new Projectile(spawnPosition,\n Vec2\n .Vector2FromAngleInDegrees(\n transform.getGlobalRotation().getAngleInDegrees() - 90 + (Math.random() * spread * 2 - spread)),\n new Sprite(projectilePath));\n p.setSpeed(speed);\n p.setSource(holder);\n p.getCollider().addInteractionLayer(\"Block\");\n p.getCollider().addInteractionLayer(\"Hittable\");\n p.getCollider().addInteractionLayer(\"Walk\");\n p.setOnCollisionListener(other -> {\n if (other.getGameObject() instanceof Player && other.getGameObject() != holder) {\n Player player = (Player) other.getGameObject();\n player.hit(alteredDmg);\n if (GameEngine.DEBUG) {\n System.out.println(\"Bullet Hit \" + other.getName());\n }\n p.destroy();\n\n// player.destroy();\n } else if (other.getGameObject() instanceof Enemy) {\n Enemy e = ((Enemy) other.getGameObject());\n e.hit(alteredDmg);\n if (!e.isAlive()) { // CHeck if enemy survived\n ((Player) p.getSource()).killedEnemy();\n }\n p.destroy();\n } else if (other.getTag() == \"Block\") {\n p.destroy();\n }\n\n });\n return true;\n } else if(ammoRemaining <= 0){\n reloadWeapon();\n return false;\n }else\n return false;\n }", "public boolean hit(Bullet bullet) {\n //System.out.println(\"A golyo nem csapodott meg be semmibe.\");\n return false;\n }", "boolean updateDeathsTillForget() {\n\t\tdeathsTillForget -= 1;\n\t\treturn (deathsTillForget < 1);\n\t}", "public void tick(){\r\n if(timer != 0)\r\n timer++;\r\n }", "protected boolean isFinished() {\n long tEnd = System.currentTimeMillis();\n long tDelta = tEnd - tStart;\n double elapsedSeconds = tDelta / 1000.0;\n if (elapsedSeconds > 0.2) {\n \t System.out.println(\"End Fire\");\n \t return true;\n }\n else if(elapsedSeconds > 0.15) {\n \t System.out.println(\"end Fire\");\n Robot.m_Cannon.set(-1);\n }\n else if(elapsedSeconds > 0.05) {\n \t System.out.println(\"mid Fire\");\n Robot.m_Cannon.stop();\n }\n return false;\n }", "public boolean hasPassed(final long delta){\n return stamp + delta <= System.currentTimeMillis();\n }", "protected void handleFiring(double dt)\r\n\t{\r\n\t\t//Fire if the mouse button is pressed.\r\n\t\tif (input.getMouseButton(InputHandler.FIRE) && charge <= 0 && energy >= energyUse)\r\n\t\t{\r\n\t\t\tEntityBullet bullet = (EntityBullet)c.createEntity(w, EI.EntityBullet);\r\n\t\t\tdouble xDir = Math.cos(horizontalDir)*Math.cos(verticalDir),\r\n\t\t\t\t\tyDir = Math.sin(horizontalDir)*Math.cos(verticalDir), zDir = Math.sin(verticalDir);\r\n\t\t\t\r\n\t\t\tdouble xDisp = shotX*Math.cos(verticalDir) - shotZ*Math.sin(verticalDir);\r\n\t\t\tdouble zDisp = shotX*Math.sin(verticalDir) + shotZ*Math.cos(verticalDir);\r\n\t\t\t\r\n\t\t\tdouble yDisp = xDisp*Math.sin(horizontalDir) - shotY*Math.cos(horizontalDir);\r\n\t\t\txDisp = xDisp*Math.cos(horizontalDir) + shotY*Math.sin(horizontalDir);\r\n\t\t\t\r\n\t\t\t//t is to prevent bullets from spawning through walls.\r\n\t\t\t\r\n\t\t\tdouble t = w.getCollision().getBulletCollision(x, y, z, xDisp, yDisp, zDisp);\r\n\t\t\t\r\n\t\t\tif (t == 1)\r\n\t\t\t{\r\n\t\t\t\t//Create the bullet\r\n\t\t\t\tenergy -= energyUse;\r\n\t\t\t\tbullet.setPosition(x+xDisp, y+yDisp, z+zDisp);\r\n\t\t\t\tint vel = 60;\r\n\t\t\t\t\r\n\t\t\t\tbullet.setVelocity(vel*xDir, vel*yDir, vel*zDir);\r\n\t\t\t\tbullet.setDamage(1, 1);//damage, knockback\r\n\t\t\t\tbullet.setColor(0, 1, 0);\r\n\t\t\t\t\r\n\t\t\t\tbullet.setOwner(player);\r\n\t\t\t\t\r\n\t\t\t\tw.create(bullet);\r\n\t\t\t\t\r\n\t\t\t\tcharge = shotDelay;\r\n\t\t\t\t\r\n\t\t\t\t//Laser gun sound\r\n\t\t\t\tc.getSoundHandler().playSound(0);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//Weapon recharging\r\n\t\tcharge -= dt;\r\n\t}", "private void killBullet() {\r\n this.dead = true;\r\n }", "public void update() {\r\n super.update();\r\n life -= 1;\r\n if(life <= 0) {\r\n killBullet();\r\n }\r\n }", "public void lifeLost() {\n\n\t\tif (invincipleTimer <= currentTickCount) {\n\t\t\tSystem.out.println(\"Life Lost!\");\n\n\t\t\thealth--;\n\t\t\tinvincipleTimer = currentTickCount + invicibleLength;\n\t\t}\n\t}", "@Override\n public void update(Bullet b){\n if(!(b.getData() instanceof DriverBulletData)){\n hit(b);\n return;\n }\n\n float hitDst = 7f;\n\n DriverBulletData data = (DriverBulletData) b.getData();\n\n //if the target is dead, just keep flying until the bullet explodes\n if(data.to.isDead()){\n return;\n }\n\n float baseDst = data.from.distanceTo(data.to);\n float dst1 = b.distanceTo(data.from);\n float dst2 = b.distanceTo(data.to);\n\n boolean intersect = false;\n\n //bullet has gone past the destination point: but did it intersect it?\n if(dst1 > baseDst){\n float angleTo = b.angleTo(data.to);\n float baseAngle = data.to.angleTo(data.from);\n\n //if angles are nearby, then yes, it did\n if(Mathf.angNear(angleTo, baseAngle, 2f)){\n intersect = true;\n //snap bullet position back; this is used for low-FPS situations\n b.set(data.to.x + Angles.trnsx(baseAngle, hitDst), data.to.y + Angles.trnsy(baseAngle, hitDst));\n }\n }\n\n //if on course and it's in range of the target\n if(Math.abs(dst1 + dst2 - baseDst) < 4f && dst2 <= hitDst){\n intersect = true;\n } //else, bullet has gone off course, does not get recieved.\n\n if(intersect){\n data.to.handlePayload(b, data);\n }\n }", "public void setFired(boolean b) {\n\t\t// TODO Auto-generated method stub\n\t\tshot=b;\n\t}", "public void onUpdate(float pSecondsElapsed){\n\t\t\t\ttimer -= pSecondsElapsed;\n\t\t\t\tif(timer <= 0){\n\t\t\t\t\tshoot();\n\t\t\t\t\ttimer = 0.5f;\n\t\t\t\t}\n\t\t\t}", "public void onUpdate(float pSecondsElapsed){\n\t\t\t\ttimer -= pSecondsElapsed;\n\t\t\t\tif(timer <= 0){\n\t\t\t\t\tshoot();\n\t\t\t\t\ttimer = 0.5f;\n\t\t\t\t}\n\t\t\t}", "public void onUpdate(float pSecondsElapsed){\n\t\t\t\ttimer -= pSecondsElapsed;\n\t\t\t\tif(timer <= 0){\n\t\t\t\t\tshoot();\n\t\t\t\t\ttimer = 0.5f;\n\t\t\t\t}\n\t\t\t}", "@Override\n\t\t\tpublic void handle(long now) {\n\t\t\t\tif (now > lastTimeCall + 1_000_000_001) {\n\t\t\t\t\tduration = duration.subtract(Duration.seconds(1));\n\n\t\t\t\t\tint remainingSeconds = (int) duration.toSeconds();\n\t\t\t\t\tint min = (remainingSeconds) / SECONDS_PER_MINUTE;\n\t\t\t\t\tint sec = (remainingSeconds) % SECONDS_PER_MINUTE;\n\n\t\t\t\t\tif (min == 0 && sec == 0) {\n\t\t\t\t\t\ttimer.stop();\n\t\t\t\t\t\tgameStage.hide();\n\t\t\t\t\t\tGameController.gameBgm.stop();\n\t\t\t\t\t\tSystem.out.println(\"Times up\");\n\t\t\t\t\t\t// show final score\n\t\t\t\t\t\t//TimesUpSubScene timesUp = new TimesUpSubScene();\n\n\n\t\t\t\t\t}\n\t\t\t\t\ttimerLabel.textProperty().setValue(String.format(\"%02d\", min) + \" : \" + String.format(\"%02d\", sec));\n\t\t\t\t\tlastTimeCall = now;\n\t\t\t\t}\n\n\t\t\t}", "public void tick() {\n if (alpha > life ){\n alpha -= (life - 0.0001f);\n }else {\n handler.removeObject(this);\n }\n }", "public void Hit()\n {\n this.numLives--;\n //Oscillate visible and not if the number of lives is greater than zero\n if(this.numLives > 0)\n {\n this.damaged = true;\n this.Blink(1);\n\n }\n }", "public void fire() {\n\t\t// Has player waited cooldown before trying to fire again?\n\t\tif (System.currentTimeMillis() - this.lastFired > Config.WEAPON_COOLDOWN_TIME * 1000) {\n\t\t\t\n\t\t\t// Can this airship drop bombs?\n\t\t\tif (this.properties.FIRES_TNT) {\n\t\t\t\tBlock[] cannons = getCannons();\n\t\t\t\tint numfiredcannons = 0;\n\t\t\t\tfor (int i = 0; i < cannons.length; i++) {\n\t\t\t\t\tif (cannons[i] != null && cannonHasTnt(cannons[i], Config.NUM_TNT_TO_FIRE_NORMAL)) {\n\t\t\t\t\t\tdouble dist = 0.4;\n\t\t\t\t\t\tBlockFace face = ((Directional) cannons[i].getState().getData()).getFacing();\n\t\t\t\t\t\tint x = face.getModX();\n\t\t\t\t\t\tint z = face.getModZ();\n\t\t\t\t\t\tdist *= getCannonLength(cannons[i], -x, -z);\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (cannons[i].getRelative(x, 0, z).getType().equals(Material.AIR)) {\n\t\t\t\t\t\t\tif (numfiredcannons < this.properties.MAX_NUMBER_OF_CANNONS) {\n\t\t\t\t\t\t\t\tnumfiredcannons++;\n\t\t\t\t\t\t\t\tlastFired = System.currentTimeMillis();\n\t\t\t\t\t\t\t\twithdrawTnt(cannons[i], Config.NUM_TNT_TO_FIRE_NORMAL);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t// Spawn primed tnt firing in the direction of the dispenser TODO: maybe add sound effects for tnt firing? :P\n\t\t\t\t\t\t\t\tTNTPrimed tnt = cannons[i].getWorld().spawn(cannons[i].getLocation().clone().add(x, 0, z), TNTPrimed.class);\n\t\t\t\t\t\t\t\ttnt.setVelocity(new Vector(x * dist, 0.5, z * dist));\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t// More cannons on ship than allowed. Not all fired - can break out of loop now.\n\t\t\t\t\t\t\t\tplayer.sendMessage(ChatColor.AQUA + \"Some cannons did not fire. Max cannon limit is \" + ChatColor.GOLD + this.properties.MAX_NUMBER_OF_CANNONS);\n\t\t\t\t\t\t\t\tbreak;\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} else\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + this.properties.SHIP_TYPE + \" CANNOT FIRE TNT\");\n\t\t} else\n\t\t\tplayer.sendMessage(ChatColor.GOLD + \"COOLING DOWN FOR \" + ChatColor.AQUA + (int)(Math.round(6 - (System.currentTimeMillis() - this.lastFired) / 1000)) + ChatColor.GOLD + \" MORE SECONDS\");\n\t}", "public double getSlowToFire();", "void tick(long tickSinceStart);", "@Override\n protected void execute() {\n double timePassed = Timer.getFPGATimestamp() - timePoint;\n\n boolean rumbleOver = (state == RUMBLE && timePassed > timeOn);\n boolean breakOver = (state == BREAK && timePassed > timeOff);\n\n if (rumbleOver) {\n rumble(false);\n if (repeatCount >= 0)\n repeatCount--;\n } else if (breakOver)\n rumble(true);\n }", "private void fire(GameEngine gameEngine) {\n Bullet bullet1 = gameEngine.getBulletEnemy();\n if (bullet1 == null) {\n return;\n }\n bullet1.init(this, positionX + imageWidth/2, positionY, 0);\n gameEngine.addGameObject(bullet1);\n gameEngine.playSound(1);\n }", "@Override\n\tpublic void tick() {\n\t\tsuper.tick();\n\t\tif(isNthTick(5) && !getPlayer().hasPotionEffect(PotionEffectType.WITHER)){\n\t\t\tgetPlayer().addPotionEffect(new PotionEffect(PotionEffectType.WITHER, getRemainingTicks(), 1));\n\t\t}\n\t}", "@Override\n protected boolean isFinished() {\n if (_timer.get() > 1.0) {\n return true;\n }\n return false;\n }", "public void onTick(long i) {\n life--;\n y++;\n }", "void update() {\n for (int i = 0; i < bullets.size(); i++) {//if any bullets expires remove it\n if (bullets.get(i).off) {\n bullets.remove(i);\n i--;\n }\n }\n move();//move everything\n checkPositions();//check if anything has been shot or hit\n }", "public void timePassed(double dt) {\r\n // Currently- nothing\r\n }", "public boolean hasBeenShot(){\n return this.hasBeenShot;\n }", "private void shoot()\n\t{\n\t\t//Speed movement of the bullet\n\t\tint speed = 0;\n\t\t//Damage dealt by the bullet\n\t\tint damage = 0;\n\t\t//Angle used to shoot. Used only by the vulcan weapon\n\t\tdouble angle = 0;\n\t\t\n\t\tif(weapon == PROTON_WEAPON)\n\t\t{\n\t\t\tspeed = 15;\n\t\t\tdamage = 10;\n\t\t\tbulletPool.getBulletPool(weapon).getBullet(getX()+37, getY()-this.getHeight()+30, speed, damage, 0);\n\t\t\tSoundManager.getInstance().playSound(\"protonshoot\", false);\n\t\t}\t\n\t\telse if(weapon == VULCAN_WEAPON)\n\t\t{\n\t\t\tspeed = 15;\n\t\t\tdamage = 2;\n\t\t\tangle = 10;\n\t\t\t\n\t\t\tbulletPool.getBulletPool(weapon).getThreeBullets(getX() +27, getX()+37, getX()+47,\n\t\t\t\t\tgetY()-this.getHeight()+30, speed, damage, (int)angle);\n\t\t\tSoundManager.getInstance().playSound(\"vulcanshoot\", false);\n\t\t}\t\t\n\t\telse\n\t\t{\n\t\t\tspeed = 15;\n\t\t\tdamage = 15;\n\t\t\tangle = 0;\n\t\t\t\n\t\t\tbulletPool.getBulletPool(weapon).getBullet(getX()+37, getY()-this.getHeight()+30,\n\t\t\t\t\t\tspeed, damage, angle);\n\t\t\tSoundManager.getInstance().playSound(\"gammashoot\", false);\n\t\t}\t\n\t}", "public void update(float delta) {\n rangeTimer++;//update bullet distance\n //delete bullet if hit collison or met ranged\n if (rangeTimer == RANGE) {\n bullet.setShoot(false);\n rangeTimer = 0;\n } else {\n //update bullet timings\n bullet.updateTimer(delta);\n //make bullet go to p x y - follows player to increase difficulty\n if (this.bullet.x < playerX + 1.5) {\n this.bullet.x += Gdx.graphics.getDeltaTime() * Bullet.SPEED;\n }\n if (this.bullet.x >playerX + 1.5) {\n this.bullet.x -= Gdx.graphics.getDeltaTime() * Bullet.SPEED;\n }\n if (this.bullet.y < playerY + 0.5) {\n this.bullet.y += Gdx.graphics.getDeltaTime() * Bullet.SPEED;\n }\n if (this.bullet.y > playerY + 1.5) {\n this.bullet.y -= Gdx.graphics.getDeltaTime() * Bullet.SPEED;\n }\n }\n }", "protected void timerTicked() {\n\t\t// 5% of the time, increment or decrement the counter\n\t\tif (Math.random() >= 0.05) return; // do nothing 95% of the time\n\n\t\t// \"flip a coin\" to determine whether to increment or decrement\n\t\tboolean move = Math.random() >= 0.5;\n\t\t\n\t\t// send the move-action to the game\n\t\tgame.sendAction(new CounterMoveAction(this, move));\n\t}", "@Override\r\n public void update(long timePassed) {\n\r\n }", "public void drop() {\n\t\t// Has player waited cooldown before trying to fire again?\n\t\tif (System.currentTimeMillis() - this.lastFired > Config.WEAPON_COOLDOWN_TIME * 1000) {\n\t\t\t\n\t\t\t// Can this airship drop bombs?\n\t\t\tif (this.properties.DROPS_BOMB) {\n\t\t\t\tBlock[] cannons = getCannons();\n\t\t\t\tint numfiredcannons = 0;\n\t\t\t\tfor (int i = 0; i < cannons.length; i++) {\n\t\t\t\t\tif (cannons[i] != null && cannons[i].getRelative(0, -1, 0).getType().equals(Material.AIR) && cannonHasTnt(cannons[i], Config.NUM_TNT_TO_DROP_BOMB)) {\n\t\t\t\t\t\tif (numfiredcannons < this.properties.MAX_NUMBER_OF_CANNONS ) {\n\t\t\t\t\t\t\tnumfiredcannons++;\n\t\t\t\t\t\t\tlastFired = System.currentTimeMillis();\n\t\t\t\t\t\t\twithdrawTnt(cannons[i], Config.NUM_TNT_TO_DROP_BOMB);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// Spawn primed tnt firing downwards TODO: maybe add sound effects for tnt firing? :P\n\t\t\t\t\t\t\tTNTPrimed tnt = cannons[i].getWorld().spawn(cannons[i].getLocation().clone().add(0, -1, 0), TNTPrimed.class);\n\t\t\t\t\t\t\ttnt.setVelocity(new Vector(0, -0.5, 0));\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// More cannons on ship than allowed. Not all fired - can break out of loop now.\n\t\t\t\t\t\t\tplayer.sendMessage(ChatColor.AQUA + \"Some cannons did not fire. Max cannon limit is \" + ChatColor.GOLD + this.properties.MAX_NUMBER_OF_CANNONS);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + this.properties.SHIP_TYPE + \" CANNOT DROP BOMBS\");\n\t\t} else\n\t\t\tplayer.sendMessage(ChatColor.GOLD + \"COOLING DOWN FOR \" + ChatColor.AQUA + (int)(Math.round(6 - (System.currentTimeMillis() - this.lastFired) / 1000)) + ChatColor.GOLD + \" MORE SECONDS\");\n\t}", "private void ShootListener() {\n shoot.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n if (presenter.canShoot()) {\n shoot(presenter.getBullet());\n presenter.checkLastBullet();\n }\n\n }\n });\n }", "@Override\n public void onComplete(long dt) {\n }", "public void onTick(){\n if(mService!=null && mService.hasAlarm(kookPlaatID)){\n vegetableState = VegetableStates.VEGETABLE_SELECTED;\n VegetableAlarm vegAlarm = mService.getTimer(kookPlaatID);\n progress.setProgress(progress.getMax() - vegAlarm.getTimeLeft());\n\n if(vegAlarm.isRunning()){\n text.setText(formatTime(vegAlarm.getTimeLeft()));\n }else if(vegAlarm.isFinished()){\n timerState = TimerStates.TIMER_FINISHED;\n updateUI();\n }else if(!vegAlarm.isRunning()){\n timerState = TimerStates.TIMER_PAUSED;\n updateUI();\n }\n }\n }", "private void checkTickListener()\n\t{\n\t}", "public Fireball update(int time) {\r\n\t\tif(shouldRemove()==false){\r\n\t\t\tgraphic.draw();\r\n\t\t}\r\n\t\t\r\n\t\trandGen=new Random();\r\n\t\t\r\n\t\t//Decrements the countdown by time\r\n\t\tfireballCountdown-=time;\r\n\t\t\r\n\t\t//As long as fireballcountdown<=0 it prints out a new fireball\r\n\t\tif(fireballCountdown <=0){\r\n\t\t\t\r\n\t\t\t//Sets a new number in the coundown starting the process again\r\n\t\t\tfireballCountdown = randGen.nextInt(3001)+3000;\r\n\t\t\t\r\n\t\t\t//Makes the fires produce fireballs\r\n\t\t\tFireball fire= new Fireball(graphic.getX(),graphic.getY(),\r\n\t\t\t\t\t(float)(randGen.nextFloat()*(2*Math.PI)));\r\n\t\t\tif(shouldRemove()==false){\r\n\t\t\t\tLevel.fireballs.add(fire);\r\n\t\t\t}\r\n\t\t\treturn fire;\r\n\t\t\t\r\n\t\t}\r\n\t\telse return null;\r\n\t\t\r\n\t}", "public void enemyShoot()\r\n\t{\r\n\t\tfor (Enemy enemies : enemy)\r\n\t\t{\r\n\t\t\tif (enemies.getHasFired())\r\n\t\t\t{\r\n\t\t\t\tBullet enemyPew = enemies.shoot();\r\n\t\t\t\tif (enemyPew != null)\r\n\t\t\t\t{\r\n\t\t\t\t\tbullets.add(enemyPew);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n protected boolean isFinished() {\n return (System.currentTimeMillis() >= thresholdTime || (currentAngle > (totalAngleTurn - 2) && currentAngle < (totalAngleTurn + 2)));\n }", "public void shoot(float direction) {\n\t\tif(pause != 0) return;\n\t\tbullets.add(new Bullet(player.getPosition(),direction));\n\t\tpause = cooldown;\n\t}", "@Override\r\n\tpublic void onThink() {\n\t\tint random = (shotsFired + 1) % 3 - 1;\r\n\t\tVacuumProjectile projectile = new VacuumProjectile(DAMAGE * this.owner.finalDamageOutputModifier, SPEED, this.owner.direction, Point.add(this.owner.gridLoc, new Point(0, random)), this.owner.teamID);\r\n\t\tthis.getMap().addGameElement(projectile);\r\n\t\tthis.shotsFired++;\r\n\t\tif(this.shotsFired >= NUM_SHOTS) {\r\n\t\t\tthis.finishSpell();\r\n\t\t}\r\n\t}", "public void endGunFlash() {\n if (System.currentTimeMillis() - lastAttack > 200) {\n gunFlash = false;\n ((Geometry)gun.getChild(\"Box\")).getMaterial().setColor(\"Color\", ColorRGBA.Gray);\n }\n }", "public void updateTime(int time)\n\t{\n\t\tshotsRemaining = rateOfFire;\n\t}", "public void onTick(long millisecondsUntilDone) {\n\n Log.i(\"Seconds left\", String.valueOf(millisecondsUntilDone / 1000));\n\n }", "public void update(float dt) {\n\t\tIterator<Bullet> iter = bullets.iterator();\n\t\twhile(iter.hasNext()) {\n\t\t\tBullet b = iter.next();\n\t\t\t\n\t\t\tb.update(dt);\n\t\t\tif(b.getY() > 480 - bullet_size_h) iter.remove();\n\t\t}\n\t}", "public void shootGun() {\n\t\tammo--;\n\t}", "void shoot_ship_missiles(long now) {\n if (pressed_key_codes.contains(KeyCode.SPACE)) {\n // Rate of fire cannot exceed 2 missiles per second\n if (now - missile_timer > 500000000) {\n missile_audio.play();\n Missile missile = ship.shootMissile();\n ImageView ship_missile_image_view = new ImageView(ship_missile_image);\n ship_missile_image_view.setX(missile.x_position);\n ship_missile_image_view.setY(missile.y_position);\n ship_missile_image_view.setFitWidth(Dimensions.SHIP_MISSILE_WIDTH);\n ship_missile_image_view.setFitHeight(Dimensions.SHIP_MISSILE_HEIGHT);\n ship_missile_image_views.add(ship_missile_image_view);\n game_pane.getChildren().add(ship_missile_image_view);\n missile_timer = now;\n }\n }\n }", "public void gotHit(Bullet bullet) {\n\t\tif (bullet.getOwner() != this) {\n\t\t\tDefaultModeScoring.addHitScore(bullet.getOwner());\n\t\t\tAudioManager.startAudio(bullet.getSoundName());\n\t\t\tif (!isDead())\n\t\t\t\tAudioManager.startAudio(getSoundName());\n\t\t\tsetHp(getHp() - bullet.getDamage());\n\t\t\tif (bullet.getSpeed().x() > 0)\n\t\t\t\tgetPush().setX(getPush().x() + bullet.getPush());\n\t\t\telse\n\t\t\t\tgetPush().setX(getPush().x() - bullet.getPush());\n\t\t\tif (getHp() <= 0 && !isDead())\n\t\t\t\tdie();\n\t\t}\n\t}", "boolean onRepeat(float delta, EntityRef target);", "public void drawFire(Graphics g){\n \n if(player.getScore()>= initScore+1000){\n fireRecord.add(new Fire());\n initScore+=1000;\n } \n \n for(int i=0; i<fireRecord.size(); i++){\n Fire current = fireRecord.get(i);\n boolean test = current.test(player.getX(), player.getY(), player.getW(), player.getH(),-5); \n if(!delay){\n if(test){\n player.loseLife();\n delay = true; //If player loses a life, become invulnerable for a short period of time\n }\n }\n \n if (moveCount%5000 == 0){ /// Delay after taking dmg\n delay = false;\n } \n \n if(moveCount%speedAdj==0){ //Adjust Speed\n current.addX();\n current.addY();\n }\n g.drawImage(current.getImage(), current.getX(), current.getY(), this); \n } \n }", "@Override\n public void onTick(long arg0) {\n }", "public void shoot(ArrayList<Bullet> alienBullets)\r\n\t{\r\n\t\t//do nothing usually\r\n\t}", "public void run() {\n isRunningTime = true;\n\n coolDownTime.put(target, coolDownTime.get(target) - 1);\n\n if(coolDownTime.get(target) <= 0) {\n coolDownTime.remove(target);\n\n target.sendMessage(DwD + ChatColor.GOLD + \"Your Dark Cloud cooldown has expired.\");\n\n isRunningTime = false;\n\n taskCoolDownToCancel.cancel();\n }\n }", "@Override\n public void update() {\n \tif(++this.timeoutCounter < 5) { return; }\n \t\n \tList<EntityDog> dogList = this.world.getEntitiesWithinAABB(EntityDog.class, new AxisAlignedBB(this.pos.getX(), this.pos.getY() + 0.5D, this.pos.getZ(), this.pos.getX() + 1.0D, this.pos.getY() + 0.5D + 0.05000000074505806D, this.pos.getZ() + 1.0D).grow(5));\n\n \tfor(EntityDog dog : dogList) {\n \t\tdog.coords.setBowlPos(this.pos);\n \t\n \t\tint slotIndex = DogUtil.getFirstSlotWithFood(dog, this.inventory);\n \tif(dog.getDogHunger() < 60 && slotIndex >= 0)\n \t\tDogUtil.feedDog(dog, this.inventory, slotIndex);\n }\n \t\n \tthis.timeoutCounter = 0;\n }", "boolean updateTicksTillForget(long ticks) {\n\t\tticksTillForget -= ticks;\n\t\treturn (ticksTillForget < 1);\n\t}", "public void notifyAllTimePassed() {\r\n // Make a copy of the Sprites before iterating over them.\r\n List<Sprite> spritesCopy = new ArrayList<Sprite>(this.sprites);\r\n for (Sprite s : spritesCopy) {\r\n s.timePassed();\r\n }\r\n }", "@Override\n\tpublic void fire(Ball firer) {\n\t balls.add(firer);\n\t firer.setAbsorbed(true);\n\t setBalls();\n\t firer.setVx(0);\n\t firer.setVy(0);\n\t //somehow ball being fired out came back and hit!\n\t if (firer.equals(firingBall)) {\n\t firingBall = null;\n\t gb.removeFromActiveList(this);\n\t }\n\t gb.resetScore();\n\t\tsuper.fire(firer);\n\t}" ]
[ "0.66400826", "0.6622434", "0.63675034", "0.63341856", "0.6194662", "0.6148526", "0.6122824", "0.6033919", "0.598366", "0.59150106", "0.5913216", "0.59077996", "0.5897955", "0.5839661", "0.5832484", "0.58319694", "0.58254623", "0.5809448", "0.5809395", "0.58042747", "0.5800016", "0.5796617", "0.5786351", "0.57810634", "0.576973", "0.5769193", "0.57439", "0.5728646", "0.5692797", "0.568884", "0.5688367", "0.5688367", "0.56812453", "0.5673251", "0.56682897", "0.5662451", "0.5635464", "0.56315005", "0.5612036", "0.5606327", "0.5590482", "0.558674", "0.55767405", "0.5568843", "0.55614936", "0.55372334", "0.5535922", "0.55188876", "0.55047375", "0.54954344", "0.5481835", "0.5472866", "0.54460114", "0.54427445", "0.54427445", "0.54427445", "0.54418516", "0.5435948", "0.5435766", "0.5435587", "0.54311514", "0.5423837", "0.5423283", "0.5415948", "0.5410189", "0.5395706", "0.539532", "0.5394529", "0.5390948", "0.53892684", "0.53793913", "0.53756994", "0.5373337", "0.5368306", "0.53643775", "0.53604704", "0.5357775", "0.5356673", "0.5341756", "0.53366566", "0.5331574", "0.5330875", "0.53277653", "0.53174883", "0.5317149", "0.5316699", "0.5315011", "0.5308777", "0.5306666", "0.5304809", "0.52900755", "0.5288844", "0.52827", "0.5276307", "0.52732897", "0.526918", "0.5268532", "0.52676696", "0.5261122", "0.52584517" ]
0.581841
17
Returns the minimum ProbeLevel this MetricsRegistry is recording.
ProbeLevel minimumLevel();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Level getMinimumLevel() {\n\t\treturn minLevel;\n\t}", "public int getLowerThreshold() {\n return lowerThreshold;\n }", "public int getMinLoad() {\n\n\t\treturn this.minLoad;\n\t}", "public int getLowerThreshold() {\r\n\t\tint lowerThreshold;\r\n\t\tlowerThreshold=this.lowerThreshold;\r\n\t\treturn lowerThreshold;\r\n\t}", "private double getMinThreshold() {\n return minThreshold;\n }", "public Level getThreshold() {\n\t\treturn this.hierarchy.getThreshold();\n\t}", "public double getLowThreshold(){\n return lowThreshold;\n }", "public int getTrainingLevel()\n\t{\n\t\tint level = (int) Math.pow(m_skillTrainingExp / 1.25, 0.33333);\n\t\treturn Math.min(level, 100); // Returns the lowest value\n\t}", "public Long getMinLatency() {\n return minLatency;\n }", "public int getLevel() {\n if ( air != null )\n return air.sampleRSSI(CC1000Radio.this);\n else return ADC.VBG_LEVEL; // return a default value of some sort\n }", "double getLowerThreshold();", "public int getRequiredLevel() {\n\t\t\treturn level;\n\t\t}", "public int getRequiredLevel() {\n\t\t\treturn level;\n\t\t}", "public float batteryLevel() {\n return 1;\n }", "private int getFrameworkInitialStartLevel()\n {\n int startLevel;\n //\n final FrameworkStartLevel fsl =\n Activator.bc.getBundle(0).adapt(FrameworkStartLevel.class);\n if (null != fsl) {\n startLevel = fsl.getInitialBundleStartLevel();\n } else {\n startLevel = 1; // Fallback to the default initial bundle start level\n }\n return startLevel;\n }", "public float getMinAvailability()\n\t{\n\t\treturn piecePicker.getMinAvailability();\n\t}", "public float getminP() {\n Reading minPressureReading = null;\n float minPressure = 0;\n if (readings.size() >= 1) {\n minPressure = readings.get(0).pressure;\n for (int i = 1; i < readings.size(); i++) {\n if (readings.get(i).pressure < minPressure) {\n minPressure = readings.get(i).pressure;\n }\n }\n } else {\n minPressure = 0;\n }\n return minPressure;\n }", "public int lowestHighscore()\n {\n FileReader filereader;\n PrintWriter writer;\n int lowHighScore = 0;\n try{\n \n filereader = new FileReader(getLevel());\n BufferedReader bufferedreader = new BufferedReader(filereader);\n \n \n String finalLine =\"\";\n for(int i = 0;i<5;i++)\n {\n finalLine = bufferedreader.readLine();\n }\n lowHighScore = Integer.parseInt(finalLine.split(\":\")[1]);\n \n }\n catch(IOException e){}\n return lowHighScore;\n }", "public int getThreshold()\n {\n return threshold;\n }", "private double getMinInitProb(){\r\n\t\treturn probThreshold;\r\n\t}", "public int getMinZoom() {\n if(internalNative == null) {\n if(internalLightweightCmp != null) {\n return internalLightweightCmp.getMinZoomLevel();\n } else {\n // TODO: Browser component\n return 1;\n }\n }\n return internalNative.getMinZoom();\n }", "public int getMin() {\n\t\treturn getMin(0.0f);\n\t}", "public Integer getMinHealthyPercentage() {\n return this.minHealthyPercentage;\n }", "public float getLightLevel() {\n\t\treturn MathUtils.min(this.localLightValue + world.getGlobalLightValue(), 1.0f);\n\t}", "public Integer getMinProperties() {\n\t\treturn minProperties;\n\t}", "public int getMinFrequency() {\n\t\t\tif (mMinFrequency == 0) {\n\t\t\t\tList<String> list = ShellHelper.cat(\n\t\t\t\t\tmRoot.getAbsolutePath() + MIN_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\tmMinFrequency = value / 1000;\n\t\t\t}\n\t\t\treturn mMinFrequency;\n\t\t}", "public PluginVersion getMinSupported() {\n return minSupported;\n }", "@Override\n public int getMinMeasurementNumber() {\n return super.getMinMeasurementNumber();\n }", "public int getMin() {\r\n // get root\r\n RedBlackTree.Node<Grade> min = rbt.root;\r\n // loop to left of tree\r\n while (min.leftChild != null) {\r\n min = min.leftChild;\r\n }\r\n\r\n return min.data.getGrade();\r\n }", "public float getMinConf () {\r\n return min_conf; }", "public int getMinScore() {\r\n return minScore;\r\n\t}", "public double getThreshold() {\r\n return threshold;\r\n }", "public double getThreshold() {\n return threshold;\n }", "public int minValue() {\n\t\treturn minValue(root);\n\t}", "public long getMinimum() {\n\t\treturn this._min;\n\t}", "public int getMinEnchantability(int enchantmentLevel) {\n\t\treturn 5 + (enchantmentLevel - 1) * 8;\n\t}", "public float getThreshold() {\n return threshold;\n }", "public double getMinScale() {\n return minScale;\n }", "public int getMin() {\n\t\treturn min;\n\t}", "public int getMaxLevel() {\n\t\treturn 10;\n\t}", "public Integer getLower_warn() {\n return lower_warn;\n }", "public int findMin() {\r\n\t\treturn this.min.value;\r\n\t}", "public int getMin()\n\t{\n\t\treturn min;\n\t}", "public int getMinEnchantability(int enchantLevel) {\n\t\t//I have enchant Levels of 1-5, so the min level of enchantability needed is 10 at I enchantment\n\t\t//and 30 at V enchantment\n\t\treturn 5+ 5*enchantLevel;\n\t}", "@Override\n public int getLevel() {\n int level;\n\n // ASU ranges from 0 to 31 - TS 27.007 Sec 8.5\n // asu = 0 (-113dB or less) is very weak\n // signal, its better to show 0 bars to the user in such cases.\n // asu = 99 is a special case, where the signal strength is unknown.\n int asu = mSignalStrength;\n if (asu <= 2 || asu == 99) level = SIGNAL_STRENGTH_NONE_OR_UNKNOWN;\n else if (asu >= GSM_SIGNAL_STRENGTH_GREAT) level = SIGNAL_STRENGTH_GREAT;\n else if (asu >= GSM_SIGNAL_STRENGTH_GOOD) level = SIGNAL_STRENGTH_GOOD;\n else if (asu >= GSM_SIGNAL_STRENGTH_MODERATE) level = SIGNAL_STRENGTH_MODERATE;\n else level = SIGNAL_STRENGTH_POOR;\n if (DBG) log(\"getLevel=\" + level);\n return level;\n }", "public int getProcessorLoad() {\n\t\ttry {\n\t\t\treturn super.getProperty(\"ProcessorLoad\", Integer.class);\n\t\t} catch (Exception e) {\n\t\t\treturn -1;\n\t\t}\n\t}", "public PrimEdge calculateMinimum() {\n int minWage = Integer.MAX_VALUE;\n PrimEdge result = null;\n for (Map.Entry<Integer, PrimEdge> entry : dtable.entrySet()) {\n if (entry.getValue().getWage() < minWage) {\n result = entry.getValue();\n minWage = entry.getValue().getWage();\n }\n }\n return result;\n }", "float getThreshold();", "public int getMyNearbyThreshold() {\n return myNearbyThreshold;\n }", "public int getWeapLvl() {\n\t\treturn weaponLevel;\n\t}", "public float getSilicateMin() {\n return silicateMin;\n }", "public float getMinRatio();", "public int getMin() {\n\t\t\treturn harr[0];\n\t\t}", "public int getMaxLevel() {\n\t\treturn 5;\n\t}", "public Double getLowestMainScore() {\n return lowestMainScore;\n }", "public int getLevel(){\n \t\treturn (strength + intelligence + stamina + Math.abs(charm) + Math.abs(cuteness))/5;\n \t}", "public int getMinimumPlayers() {\n return getOption(ArenaOption.MINIMUM_PLAYERS);\n }", "public int getDetectionLevel()\n\t{\n\t\treturn _detectionLevel;\n\t}", "@Override\r\n public Integer minLowerBound() {\r\n return this.getImpl().minLowerBound();\r\n }", "private double getMaxThreshold() {\n return maxThreshold;\n }", "public Long getMinimum() {\r\n\t\treturn minimum;\r\n\t}", "public CheckLevel getDefaultLevel() {\n return defaultLevel;\n }", "public double getLocalSimilarityThreshold() {\n return localSimilarityThreshold;\n }", "public int getLevelRequired() {\n return levelRequired1;\n }", "public byte get_min() {\n return (byte)getSIntBEElement(offsetBits_min(), 8);\n }", "public int getMinimum() {\r\n return min;\r\n }", "public float getMinWidth() {\r\n return width.min;\r\n }", "public int levelSpec() {\n int avg = 0;\n for (int i = 0; i < spec.length; i++) {\n avg += (int) spec[i];\n }\n return avg / 8192;\n }", "public int getMinRating() {\n return minRating;\n }", "public int getMinRssiReadings() {\n return getMinReadings();\n }", "public double getHighThreshold() {\n return highThreshold;\n }", "public int getLow() {\n\t\t\treturn low;\n\t\t}", "public int getThreshold() {\n return threshold; \n }", "public int getAdc_min ()\n {\n return adc_min_;\n }", "public static int getMaxLowLevel(Properties ctx, String trxName) {\n\t\tint AD_Client_ID = Env.getAD_Client_ID(ctx);\n\t\t//\n\t\tfinal String sql = \"SELECT MAX(\" + MUColumnNames.COLUMNNAME_LowLevel + \") FROM M_Product\" + \" WHERE AD_Client_ID=? AND \"\n\t\t\t\t+ MUColumnNames.COLUMNNAME_LowLevel + \" IS NOT NULL\";\n\t\tint LowLevel = DB.getSQLValueEx(trxName, sql, AD_Client_ID);\n\t\treturn LowLevel + 1;\n\t}", "public int getMinDepth() {\n return minDepth;\n }", "public int getLevel ( ) {\n\t\treturn extract ( handle -> handle.getLevel ( ) );\n\t}", "public int getMaxLevel()\r\n\t{\treturn this.maxLevel;\t}", "public static int getLevel()\r\n\t{\r\n\t\treturn level;\r\n\t}", "public int getMinResponseRate() {\n return _minResponseRate;\n }", "public BigDecimal getProportionLow() {\n\t\treturn proportionLow;\n\t}", "@Override\n public double getMaxLoadWeight() {\n return maxLoadWeight;\n }", "public java.lang.Long getMinVolumeSize() {\r\n return minVolumeSize;\r\n }", "public String getIncreasedExposureMin( ) {\n\t\treturn this.increasedExposureMin;\n\t}", "private double getLowest()\n {\n if (currentSize == 0)\n {\n return 0;\n }\n else\n {\n double lowest = scores[0];\n for (int i = 1; i < currentSize; i++)\n {\n if (scores[i] < lowest)\n {\n scores[i] = lowest;\n }\n }\n return lowest;\n }\n }", "public final boolean minimum(){\r\n\t\treturn minimum;\r\n\t}", "public double getMinRating() {\n return min;\n }", "public double confidenceLow() {\n return (mean() - 1.96 * stddev() / Math.sqrt(trials));\n }", "public int minimum() {\n \n if (xft.size() == 0) {\n return -1;\n }\n \n Integer repr = xft.minimum();\n \n assert(repr != null);\n \n return repr.intValue();\n }", "public Integer getMin() { \n\t\treturn getMinElement().getValue();\n\t}", "public Integer minNumberOfCores() {\n return this.minNumberOfCores;\n }", "public int getMin(){\n\t\treturn min;\n\t}", "public int getMinValue() throws Exception {\n\t\treturn RemoteServer.instance().executeAndGetId(\"getminvalue\",\n\t\t\t\tgetRefId());\n\t}", "public int getMinimumPoints() {\n return mWeakMinimumSizeAllowed ? WEAK_MINIMUM_SIZE : MINIMUM_SIZE;\n }", "public double getMinimumScale() {\n\t\treturn 0;\n\t}", "public double getMaxHealthPerLevel()\r\n\t{\treturn this.maxHealthPerLevel;\t}", "public static void setMinimumLevel(Level level) {\n\t\tminLevel = level;\n\t}", "@Override\n public IPeaksSpectrum asMajorPeaks() {\n return getHighestNPeaks(MAJOR_PEAK_NUMBER);\n }", "int getMin() {\n\t\tif (stack.size() > 0) {\n\t\t\treturn minEle;\n\t\t} else {\n\t\t\treturn -1;\n\t\t}\n\t}", "public int getLow() {\n\t\treturn low;\n\t}" ]
[ "0.7070703", "0.6517302", "0.64663357", "0.64287907", "0.6332109", "0.6329234", "0.6140998", "0.61157864", "0.608604", "0.59564775", "0.59342015", "0.58639103", "0.58639103", "0.58411455", "0.5800394", "0.5794524", "0.5790124", "0.5771786", "0.57429355", "0.569174", "0.56786954", "0.565358", "0.5643082", "0.5614808", "0.56129855", "0.5586997", "0.55857414", "0.5585258", "0.55331177", "0.55293196", "0.55278254", "0.5515288", "0.5509874", "0.5504075", "0.55014044", "0.549767", "0.54976386", "0.5495863", "0.547673", "0.5476215", "0.5475691", "0.5464392", "0.5450175", "0.544241", "0.54333365", "0.54310787", "0.5425284", "0.54233015", "0.54152083", "0.5412291", "0.54068464", "0.5405117", "0.54001635", "0.53985274", "0.5386707", "0.53823876", "0.5374917", "0.53707993", "0.5367144", "0.53652066", "0.5364556", "0.53569305", "0.5356081", "0.5356044", "0.5351334", "0.5350744", "0.5347237", "0.5346869", "0.53403234", "0.53389585", "0.5328609", "0.53255635", "0.53217", "0.5320834", "0.5317552", "0.53154194", "0.5308344", "0.5308335", "0.53013694", "0.53006405", "0.52981806", "0.52921486", "0.52788824", "0.52737856", "0.52682984", "0.5265725", "0.5263387", "0.5263129", "0.5263", "0.52592385", "0.5256814", "0.52500457", "0.5246396", "0.5244264", "0.5241405", "0.523733", "0.52358073", "0.52345216", "0.52308017", "0.52278554" ]
0.7317139
0
Gets a set of all current probe names. The returned set is immutable and is a snapshot of the names. So the reader gets a stable view on the names.
Set<String> getNames();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Set<String> getNames() {\n\t\t//\t\tArrayList<String> names = new ArrayList<String>();\n\t\t//\t\tfor (NameSSA n : name.values())\n\t\t//\t\t\tnames.add(n.current());\n\t\treturn name.keySet();\n\t}", "public Stream<String> getNames() {\n return names.stream();\n }", "Collection<String> names();", "public List<String> getNames() {\n return names;\n }", "public ArrayList<String> getNames() {\n return names;\n }", "private static HashSet<String> getNames() {\n String[] names = {\n \"James\",\n \"John\",\n \"Robert\",\n \"Michael\",\n \"William\",\n \"David\",\n \"Richard\",\n \"Charles\",\n \"Joseph\",\n \"Thomas\",\n \"Christopher\",\n \"Daniel\",\n \"Paul\",\n \"Mark\",\n \"Donald\",\n \"George\",\n \"Kenneth\",\n \"Steven\",\n \"Edward\",\n \"Brian\",\n \"Ronald\",\n \"Anthony\",\n \"Kevin\",\n \"Jason\",\n \"Matthew\",\n \"Gary\",\n \"Timothy\",\n \"Jose\",\n \"Larry\",\n \"Jeffrey\",\n \"Frank\",\n \"Scott\",\n \"Eric\",\n \"Stephen\",\n \"Andrew\",\n \"Raymond\",\n \"Gregory\",\n \"Joshua\",\n \"Jerry\",\n \"Dennis\",\n \"Walter\",\n \"Patrick\",\n \"Peter\",\n \"Harold\",\n \"Douglas\",\n \"Henry\",\n \"Carl\",\n \"Arthur\",\n \"Ryan\",\n \"Roger\"\n };\n\n return new HashSet<>(Arrays.asList(names));\n }", "public Map<String, String> getNames() {\n return names;\n }", "SortedSet<String> getNames();", "Iterable<String> getRegisteredNames();", "public LinkedList<String> getNames() {\r\n return names;\r\n }", "public String[] getNames() {\n Enumeration namesEnum = keys();\n String[] namesArray = new String[size()];\n for (int i = 0; i < size(); i++) {\n namesArray[i] = (String) namesEnum.nextElement();\n }\n return namesArray;\n }", "public List<? extends Name> getAllNames() {\n\t\treturn null;\n\t}", "public List<String> getAllNames() {\n\t\tList<String> names = new ArrayList<>();\n\t\tfor(PhoneBookEntry entry : entries.values()) {\n\t\t\tnames.add(entry.getName());\n\t\t}\n\t\tCollections.sort(names);\n\t\treturn Collections.unmodifiableList(names);\n\t}", "public String[] getNames() {\r\n\t\tfinal List<String> names=new ArrayList<>();\r\n\r\n\t\tString s;\r\n\t\tfor (Map.Entry<String,Map<String,Object>> entry1: data.entrySet()) {\r\n\t\t\ts=entry1.getKey();\r\n\t\t\tif (names.indexOf(s)<0) names.add(s);\r\n\t\t\tfor (Map.Entry<String,Object> entry2: entry1.getValue().entrySet()) {\r\n\t\t\t\ts=entry2.getKey();\r\n\t\t\t\tif (names.indexOf(s)<0) names.add(s);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn names.toArray(new String[0]);\r\n\t}", "public Set<String> getSkillNames()\r\n\t{\treturn new TreeSet<String>(this.skills);\t}", "public Set keyNames() {\n return new LinkedHashSet<>( asList( idName() ) );\n }", "public Set<String> getEntriesName(){\n return _entries.keySet(); \n }", "@Updatable\n public Set<Probe> getProbe() {\n if (probe == null) {\n probe = new HashSet<>();\n }\n\n return probe;\n }", "public String[] getLocalNames() {\r\n\t\treturn names.toArray(new String[0]);\r\n\t}", "@Override\n public Set<String> getNames() {\n // TODO(adonovan): for now, the resolver treats all predeclared/universe\n // and global names as one bucket (Scope.PREDECLARED). Fix that.\n // TODO(adonovan): opt: change the resolver to request names on\n // demand to avoid all this set copying.\n HashSet<String> names = new HashSet<>();\n for (Map.Entry<String, Object> bind : getTransitiveBindings().entrySet()) {\n if (bind.getValue() instanceof FlagGuardedValue) {\n continue; // disabled\n }\n names.add(bind.getKey());\n }\n return names;\n }", "public ArrayList<String> getNames(){\r\n \t\tArrayList<String> names = new ArrayList<String>();\r\n \t\tfor (Enumeration<Tag> temp = tags.elements(); temp.hasMoreElements();) \r\n \t\t\tnames.add(temp.nextElement().getName());\r\n \t\treturn names;\r\n \t}", "public String[] getNames(){\n \t\tString[] outStrings = new String[otherNames.length+1];\n \t\toutStrings[0] = this.name;\n\t\tfor(int i=1;i<otherNames.length;i++)\n \t\t\toutStrings[i] = this.otherNames[i-1];\n \t\treturn outStrings;\n \t}", "public List<String> getActiveSetNames()\n {\n List<String> names = New.list(myActiveSetConfig.getSetNames());\n names.remove(USER_ACTIVATED_SET_NAME);\n return names;\n }", "public String[] getNames() {\r\n\t\treturn this.context.getNames();\r\n\t}", "public Set<String> getMetricNames()\r\n\t{\r\n\t\treturn Collections.unmodifiableSet(metricMap.keySet());\r\n\t}", "public Set<String> getTrack_names() {\r\n return this.track_names;\r\n }", "public Set<String> getFlakyTestNames() {\n return new TreeSet<>(flakyTestNames);\n }", "public Set<String> getName() {\r\n return this.name;\r\n }", "@Override\n public java.lang.Object getNames() throws G2AccessException {\n java.lang.Object retnValue = getAttributeValue (SystemAttributeSymbols.NAMES_);\n return (java.lang.Object)retnValue;\n }", "public Set<String> getFileNames() {\n return nameMap.keySet();\n }", "public Collection<String> getAgentsNames();", "public Set<String> loadAllSubstanceNames();", "public Set<String> getTagNames()\r\n\t{\r\n\t\treturn Collections.unmodifiableSet(tagMap.keySet());\r\n\t}", "public List<String> getMapNames() {\r\n\t\treturn mapNames;\r\n\t}", "public static Enumeration getNames() \n {\n return frequency.keys();\n }", "public final ArrayList<String> getNames() {\r\n\t\tArrayList<String> names = new ArrayList<String>();\r\n\r\n\t\t// for every workout in our workoutList\r\n\t\tfor (Workout i : workoutList) {\r\n\t\t\t// get the name and add it to our ArrayList names\r\n\t\t\tnames.add(i.getName());\r\n\t\t}\r\n\r\n\t\treturn names;\r\n\t}", "public Collection<String> getCacheNames()\r\n/* 44: */ {\r\n/* 45:68 */ return (Collection)Collections.unmodifiableSet(this.cacheNames);\r\n/* 46: */ }", "@Override\n public ImmutableList<String> getNameParts() {\n return names.toImmutable();\n }", "@Override\n\tpublic StringList getNames() {\n\t\tStringList ss = new StringList();\n\t\tss.add(\"java\");\n\t\treturn ss;\n\t}", "public LinkedHashSet<String> getPrevNames(){\r\n\t\treturn prevNames;\r\n\t}", "Set<String> getIdentifiers();", "public Set<String> getAttributeNames();", "String[] getFamilyNames() {\n\t\treturn this.familyMap.keySet().toArray(new String[this.familyMap.size()]);\n\t}", "public HashSet<String> getStrings() {\r\n\t\treturn this.strings;\r\n\t}", "public static List<String> getNames() {\n return Collections.unmodifiableList(widgetNames);\n }", "@Override\r\n\tpublic List<String> agentAllName() {\n\t\treturn agentMapper.agentAllName();\r\n\t}", "public Set getAttachmentNames() {\n if (attachments != null) {\n return Collections.unmodifiableSet(attachments.keySet());\n }\n return Collections.EMPTY_SET;\n }", "public Set<Entry> getSet() {\n Set<Entry> litSet = this.litRegister;\n return litSet;\n }", "Set<String> getKeys();", "private ArrayList<String> getNames() {\n\t\tNameDialog n = new NameDialog();\n\t\tnameList = new ArrayList<String>();\n\t\ttry {\n\t\t\tnameList = n.getNames(inputs[1]);\n\t\t}catch(GameException ex) {\n\t\t\tview.close();\n\t\t\tmenuStage.show();\n\t\t}\n\t\treturn nameList;\n\t}", "public Collection<String> getGroupNames() {\n getGroupCache();\n if (groupNames == null) return null;\n return new ArrayList<String>(groupNames);\n }", "public ImmutableList<String> getMemberNames() {\n return members.stream().map(m -> m.getName()).collect(ImmutableList.toImmutableList());\n }", "public ArrayList<String> getAllUserNames() {\n return allUserNames;\n }", "public List<String> getAllPlayerNames() {\n List<String> playerNames = new ArrayList<>(10);\n for (Player p : players) {\n playerNames.add(p.getName());\n }\n return playerNames;\n }", "public Set<String> getApplicationNames() {\n ImmutableSet.Builder<String> names = ImmutableSet.builder();\n File[] files = appsDir.listFiles(File::isDirectory);\n if (files != null) {\n for (File file : files) {\n names.add(file.getName());\n }\n }\n return names.build();\n }", "public abstract String[] names() throws TrippiException;", "public Set<String> getSpectrumFileNames() {\n\n \n return spectrumFiles.keySet();\n\n }", "public String getResearcherNamesList() {\r\n this.researcherNamesList = myIsern.getResearcherNamesList();\r\n return this.researcherNamesList;\r\n }", "public Collection<PropertyTagXrdEntry> getXrdNames() throws WebdavException {\n return xrdNames.values();\n }", "public Set<String> getKeys() {\n return Collections.unmodifiableSet(data.keySet());\n }", "public List getAttributeNames() {\n log.debug(\"getAttributeNames()\");\n ResultSet resultSet = attrNST.selectRows(\"name\");\n return resultSet.toStringList(1);\n }", "public synchronized Enumeration<String> getPropertyNames() {\n return PropertyArray.enumerate(props);\n }", "@DISPID(14) //= 0xe. The runtime will prefer the VTID if present\r\n @VTID(21)\r\n java.lang.String[] getNamesU();", "@Override\n public String[] getPropertyNames() {\n final String[] names = new String[this.properties.size()];\n this.properties.keySet().toArray(names);\n return names;\n }", "@DISPID(10) //= 0xa. The runtime will prefer the VTID if present\r\n @VTID(17)\r\n java.lang.String[] getNames();", "public List<Personname> getPersonnames() {\r\n\r\n if (this.personnames == null) {\r\n\r\n this.personnames = new ArrayList<Personname>();\r\n\r\n }\r\n\r\n return this.personnames;\r\n\r\n }", "public Set<String> getPlayers()\n\t{\n\t\tSet<String> player = playerPieces.keySet();\n\t\treturn player;\n\t}", "Collection<String> getUsernames();", "@Nonnull List<String> getNameList();", "public String [] getNames () { \n return this.listAttributes(); \n }", "public ArrayList<String> getPropNames()\n {\n return this.prop_names;\n }", "public void grabNames()\n \t{\n \t\tfor(Registry.Entry e : this)\n \t\t{\n \t\t\tthis.grabNames(e);\n \t\t}\n \t}", "public Set<String> getFieldNames() {\n Set<String> names = new HashSet<String>();\n for (IdentifierProperties field : fields) {\n names.add(field.getName());\n }\n\n return names;\n }", "public Set<String> keySet()\n\t{\n\t\tverifyParseState();\n\t\t\n\t\treturn values.keySet();\n\t}", "public com.walgreens.rxit.ch.cda.PN[] getNameArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n java.util.List targetList = new java.util.ArrayList();\n get_store().find_all_element_users(NAME$8, targetList);\n com.walgreens.rxit.ch.cda.PN[] result = new com.walgreens.rxit.ch.cda.PN[targetList.size()];\n targetList.toArray(result);\n return result;\n }\n }", "Stream<String> listCollectionNames();", "public static Set getAvailableLocaleNameSet() {\n return getAvailableLocaleNameSet(ICU_BASE_NAME);\n }", "public List<String> getQueryNames() throws SettingsException {\n\t\ttry {\n\t\t\tsearchPrefs.sync();\n\t\t\t\n\t\t\tString[] children = searchPrefs.childrenNames();\n\t\t\tArrayList<String> names = new ArrayList<String>(children.length);\n\t\t\tfor( String child : children ) {\n\t\t\t\tString name = searchPrefs.node(child).get(NAME_KEY, null);\n\t\t\t\tif( name != null )\n\t\t\t\t\tnames.add(name);\n\t\t\t\telse\n\t\t\t\t\t_log.warn(\"No name for search key: \" + child);\n\t\t\t}\n\t\t\t\n\t\t\treturn names;\n\t\t\t\n\t\t} catch( BackingStoreException e ) {\n\t\t\tfinal String MSG = \"Could not load queries from store.\";\n\t\t\t_log.error(MSG, e);\n\t\t\tthrow new SettingsException(MSG, e);\n\t\t}\n\t}", "Set<String> getPlayers();", "public Enumeration<String> getPersonList() {\r\n\t\treturn this.persons.keys();\r\n\t}", "@Override\r\n\tpublic String[] names() {\n\t\treturn new String[] {\"lifesteal\"};\r\n\t}", "public String[] getPropertyNames();", "public static ImmutableSet<Integer> getIds(){\n\t\t\treturn m_namesMap.rightSet();\n\t\t}", "public String[] getStateNames() {\n List<String> st = new ArrayList<>();\n for (AState s : states) {\n st.add(s.getName());\n }\n return st.toArray(new String[st.size()]);\n }", "public static Set getFullLocaleNameSet() {\n return getFullLocaleNameSet(ICU_BASE_NAME);\n }", "public Vector<String> getIdentifiers()\n\t{\n\t\tfinal Vector<String> rets = new Vector<String>();\n\t\trets.add(identifier);\n\t\treturn rets;\n\t}", "public List<String> listPlayerNames() {\n return this.playersNames;\n }", "public String[][] getNames () ;", "public List<String> getDeckNames()\n {\n return deckStore.getNames();\n }", "public ArrayList<String> GetListOfNames() {\n\t\tArrayList<String> nameList = new ArrayList<String>(); // List of names\n\n\t\tfor (Song song : songList)\n\t\t\tnameList.add(song.GetName());\n\t\treturn nameList;\n\t}", "public Set<String> keySet() {\r\n return keys.keySet();\r\n }", "private Set<String> getKeys() {\n return bookDB.keySet();\n }", "public ArrayList<String> getStatsNames() {\n\t\tArrayList<String> arr = new ArrayList<String>();\n\t\tNodeList nl = getStats();\n\t\tint len = nl.getLength();\n\t\tfor (int i = 0; i < len; i++) {\n\t\t\tString name = ParserHelper.requiredAttributeGetter((Element) nl.item(i), \"name\");\n\t\t\tif (name != null) {\n\t\t\t\tarr.add(name);\n\t\t\t}\n\t\t}\n\t\treturn arr;\n\t}", "@ApiModelProperty(value = \"The ID and name of each field present on the issue.\")\n public Map<String, String> getNames() {\n return names;\n }", "@Override\n\t\t\tpublic Set<String> getKeys() {\n\t\t\t\treturn null;\n\t\t\t}", "public String[] getPropertyNames()\n\t{\n\t\treturn _propertyNames;\n\t}", "protected HashSet getNoName(){\n return tester.noName;\n }", "public String[] randomNames() {\n \n \n Random generator = new Random();\n \n Set randomNumbersName = new HashSet();\n\n for(int i = 0; i < model.getNoOfDevices(); i++)\n {\n Boolean unique = false;\n\n while(!unique)\n {\n int oldSize = randomNumbersName.size();\n\n int r = generator.nextInt(names.size());\n randomNumbersName.add(names.get(r));\n\n int newSize = randomNumbersName.size();\n\n if(newSize > oldSize)\n {\n unique = true;\n }\n }\n\n }\n\n return (String[]) randomNumbersName.toArray(new String[model.getNoOfDevices()]);\n \n }", "public String[] getNames() {\n\t\tString[] names = new String[functions.size()];\n\t\tint index = 0;\n\t\tfor (Enumeration en = functions.keys(); en.hasMoreElements(); index++) {\n\t\t\tnames[index] = (String) en.nextElement();\n\t\t}\n\t\treturn names;\n\t}", "public List<String> keys()\n {\n return new ArrayList<String>(keys);\n }" ]
[ "0.736287", "0.7259036", "0.6837194", "0.6759272", "0.66951865", "0.66312075", "0.6622767", "0.6574293", "0.6555181", "0.6487925", "0.6434715", "0.6346447", "0.6254499", "0.6148589", "0.6145237", "0.6136373", "0.6126867", "0.61112154", "0.6109045", "0.60915107", "0.6089013", "0.60592777", "0.6046264", "0.6045398", "0.60444987", "0.603958", "0.60349405", "0.60224575", "0.60047543", "0.5998121", "0.59882087", "0.5974693", "0.59601057", "0.59597737", "0.59594995", "0.5958877", "0.59351856", "0.5921911", "0.5870927", "0.5867955", "0.585464", "0.5845612", "0.583699", "0.5818473", "0.58001894", "0.57708836", "0.57688177", "0.576775", "0.57544076", "0.5744475", "0.5737528", "0.5732834", "0.570742", "0.5699969", "0.56933945", "0.56803983", "0.5680163", "0.5678508", "0.56718475", "0.5661598", "0.5661033", "0.56554127", "0.5628011", "0.56259847", "0.56180525", "0.56173086", "0.560712", "0.55986667", "0.55706745", "0.5545401", "0.5541405", "0.55403304", "0.55374753", "0.55369925", "0.5531047", "0.5527413", "0.55256957", "0.5523244", "0.5505205", "0.5505073", "0.5499424", "0.54930717", "0.54791915", "0.5470109", "0.5467655", "0.54623705", "0.5461161", "0.5456824", "0.5454061", "0.5448194", "0.5434703", "0.5429938", "0.5425152", "0.54222363", "0.5419867", "0.541545", "0.54145384", "0.5411282", "0.5411078", "0.5408383" ]
0.7256544
2